getloadavg: Update documentation.
[gnulib.git] / ChangeLog
1 2010-11-27  Bruno Haible  <bruno@clisp.org>
2
3         getloadavg: Update documentation.
4         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
5
6 2010-11-27  Bruno Haible  <bruno@clisp.org>
7
8         sys_socket: Fix test whether the functions are declared.
9         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
10         not <sys/select.h>.
11
12 2010-11-27  Bruno Haible  <bruno@clisp.org>
13
14         getpass: Make sure to get system declaration on some platforms.
15         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
16         gl_USE_SYSTEM_EXTENSIONS.
17         * modules/getpass (Depends-on): Add extensions.
18
19 2010-11-26  Bruno Haible  <bruno@clisp.org>
20
21         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
22         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23         'iconv' module is present.
24         (ICONV_CONST): New macro.
25         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
26         ICONV_CONST.
27         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
28         set ICONV_CONST.
29         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
30         here.
31         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
32         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
33         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
34         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
35         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
36         present.
37
38 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39
40         ftoastr: comment fix
41         * lib/ftoastr.c: "little" -> "little or no" in comment
42
43 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
44
45         stdint: port to GCC 4.3 + OSX + Octave
46         On this platform, stdint.h is buggy and defines int64_t to long
47         long int.  The replacement defined it to long int, causing
48         problems with C++ style name mangling.  Instead, trust the system
49         definition if INT64_MAX is defined, and likewise for the unsigned
50         variant.   Problem reported by Jarno Rajahalme in
51         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
52         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
53         and don't mess with int64_t and INT64_MAX in this case.
54         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
55
56 2010-11-24  Bruno Haible  <bruno@clisp.org>
57
58         doc: Corrections regarding MacOS X 10.4 and 10.5.
59         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
60         MacOS X.
61         Reported by Simon Josefsson.
62
63 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
64
65         Uninstall ".bin" files installed by relocwrapper.
66         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
67         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
68         unless it is already there.
69
70 2010-11-21  Bruno Haible  <bruno@clisp.org>
71
72         Update for NetBSD 5.0.
73         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
74         NetBSD; the test fails on NetBSD 5.0.
75         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
76         about NetBSD.
77
78 2010-11-21  Bruno Haible  <bruno@clisp.org>
79
80         Update for HP-UX 11.23 and HP-UX 11.31.
81         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
82         HP-UX.
83
84 2010-11-21  Bruno Haible  <bruno@clisp.org>
85
86         Update for MacOS X 10.5.
87         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
88         MacOS X; the test fails on MacOS X 10.5.8.
89         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
90         about MacOS X.
91
92 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
93
94         bootstrap: add bootstrap_sync option.
95         See discussion at
96         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
97         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
98         * build-aux/bootstrap: Accept --bootstrap-sync to update
99         bootstrap if it is not identical to the local gnulib's
100         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
101         enable this by default.  Accept --no-bootstrap-sync to disable
102         it.
103
104 2010-11-20  Bruno Haible  <bruno@clisp.org>
105
106         Ensure that <features.h> is included before __GLIBC__ is tested.
107         * lib/printf-parse.h: Include <features.h>.
108         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
109         Reported by Mike Frysinger <vapier@gentoo.org>.
110
111         Ensure that <features.h> is included before __GLIBC__ is tested.
112         * lib/wchar.in.h: Include <features.h>.
113         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
114         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
115         Reported by Mike Frysinger <vapier@gentoo.org>.
116
117         Ensure that <features.h> is included before __GLIBC__ is tested.
118         * lib/arpa_inet.in.h: Include <features.h>.
119         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
120         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
121         Reported by Mike Frysinger <vapier@gentoo.org>.
122
123         Ensure that <features.h> is included before __GLIBC__ is tested.
124         * build-aux/link-warning.h: Include <features.h>.
125         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
126         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
127         Reported by Mike Frysinger <vapier@gentoo.org>.
128
129         Ensure that <features.h> is included before __GLIBC__ is tested.
130         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
131         Reported by Mike Frysinger <vapier@gentoo.org>.
132
133 2010-11-20  Bruno Haible  <bruno@clisp.org>
134
135         memmem: Fix autoconf test.
136         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
137
138 2010-11-20  Bruno Haible  <bruno@clisp.org>
139
140         Port to uClibc.
141         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
142         * lib/fcntl.in.h: Likewise.
143         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
144         * lib/mbrtowc.c (mbrtowc): Likewise.
145         * lib/relocatable.c (find_shared_library_fullname): Likewise.
146         * lib/strerror_r.c: Likewise.
147         * lib/unistr/u8-strnlen.c: Likewise.
148         * lib/vasnprintf.c (decimal_point_char): Likewise.
149         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
150         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
151         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
152         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
153         * tests/test-sigaction.c (handler, main): Likewise.
154         * lib/freading.h: Treat uClibc like a non-glibc platform.
155         * lib/freading.c: Likewise.
156         * lib/gettext.h: Likewise.
157         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
158         Likewise.
159         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
160         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
161         * lib/propername.c (proper_name_utf8): Likewise.
162         * lib/spawn.in.h: Likewise.
163         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
164         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
165         mem_cd_iconveh_internal): Likewise.
166         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
167         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
168         strstr, strcasestr): Likewise.
169         * lib/unicodeio.c (unicode_to_mb): Likewise.
170         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
171         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
172         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
173         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
174         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
175         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
176         * lib/unistr/u8-stpncpy.c: Likewise.
177         * lib/vasnprintf.c (VASNPRINTF): Likewise.
178         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
179         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
180         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
181         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
182         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
183         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
184         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
185         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
186         Likewise.
187         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
188         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
189         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
190         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
191         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
192         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
193         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
194         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
195         * tests/test-getopt.h (OPTIND_MIN): Likewise.
196         * tests/test-striconveha.c (main): Likewise.
197         * tests/test-vasnprintf-posix.c (test_function): Likewise.
198         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
199         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
200         * doc/posix-functions/getline.texi: Likewise.
201         Reported by Mike Frysinger <vapier@gentoo.org>.
202
203 2010-11-20  Bruno Haible  <bruno@clisp.org>
204
205         nproc: Fix condition.
206         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
207         HAVE_PTHREAD_AFFINITY_NP.
208
209 2010-11-20  Bruno Haible  <bruno@clisp.org>
210
211         Fix a comment.
212         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
213
214 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
215
216         ftoastr: don't assume snprintf
217         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
218         Implement a subset of snprintf here, by using sprintf safely.
219         * modules/ftoastr (Depends-on): Remove snprintf.
220
221 2010-11-19  Jim Meyering  <meyering@redhat.com>
222
223         test-rename.h: fix compilation failure
224         * tests/test-rename.h (test_rename): Add omitted "}".
225
226 2010-11-17  Jim Meyering  <meyering@redhat.com>
227
228         maint.mk: add a URL discussing the no-@acronym policy
229         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
230
231 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
232
233         ftoastr: depend on snprintf, improve comments
234         * lib/ftoastr.c: Also mention Loitsch's draft.
235         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
236         needed in the current implementation, but it might simplify
237         speeding up the code later.
238         * modules/ftoastr: Depend on snprintf; this improves portability.
239         Suggested by Bruno Haible in the same email.
240
241         ftoastr: port to hosts lacking strtof and strtold
242         Problem reported by Bruno Haible in
243         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
244         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
245         environment and strtold (and presumably strtof) are not available.
246         * modules/ftoastr (Files): Add m4/c-strtod.m4.
247         (configure.ac): Require gl_C99_STRTOLD.
248
249 2010-11-18  Bruno Haible  <bruno@clisp.org>
250
251         c-strtold: Avoid link error on AIX 7.
252         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
253         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
254         (gl_C_STRTOLD): Test whether strtold_l exists.
255         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
256
257 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
258
259         intprops: new macro INT_BITS_STRLEN_BOUND
260         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
261         ftoastr.h.  This exposes an internal of intprops.h that was formerly
262         not exposed.  Also, it uses a slightly tighter bound than before;
263         though this makes no practical difference, we might as well be as
264         tight as we easily can.
265
266         ftoastr: new module, for lossless conversion of floats to short strings
267         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
268         * modules/ftoastr: New files.
269
270 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
271
272         bootstrap: port to Solaris sed
273         * build-aux/bootstrap (get_version): Port to Solaris sed.
274         See Ralf Wildenhues's note in
275         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
276
277 2010-11-14  Jim Meyering  <meyering@redhat.com>
278
279         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
280         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
281         and move definition closer to sole use.
282
283 2010-11-13  Jim Meyering  <meyering@redhat.com>
284
285         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
286         Now we require at least autoconf-2.59, which means the work-around
287         is no longer needed.
288         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
289         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
290         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
291         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
292         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
293
294 2010-11-13  Bruno Haible  <bruno@clisp.org>
295
296         rename, renameat: Avoid test failures at NFS mounted locations.
297         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
298         functions.
299         (test_rename): Use assert_nonexistent.
300         * tests/test-rename.c: Include <dirent.h>.
301         * tests/test-renameat.c: Likewise.
302         Reported by Gary V. Vaughan <gary@gnu.org>.
303
304         rename, renameat: Document Linux bug with NFS
305         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
306         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
307         * doc/posix-functions/renameat.texi: Likewise.
308         Suggested by Eric Blake.
309
310 2010-11-13  Bruno Haible  <bruno@clisp.org>
311
312         rename test: Add comments.
313         * tests/test-rename.h (test_rename): Add structure and comments.
314
315 2010-11-13  Eric Blake  <eblake@redhat.com>
316
317         maintainer-makefile: cover a few more files
318         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
319         scripts generated within C files, for libvirt.
320
321 2010-11-13  Bruno Haible  <bruno@clisp.org>
322
323         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
324         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
325         character, return the number of bytes that belong together, not always
326         1.
327         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
328         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
329         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
330         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
331         number of bytes of an invalid character.
332         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
333         (main): Invoke it.
334         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
335         results.
336         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
337         malformed byte sequences.
338         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
339         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
340         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
341         Reported by Ben Pfaff and Paolo Bonzini.
342
343 2010-11-13  Bruno Haible  <bruno@clisp.org>
344
345         openat: Work around glibc bug with fchownat() and empty file names.
346         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
347         (gl_FUNC_FCHOWNAT): Invoke it.
348         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
349         * doc/posix-functions/fchownat.texi: Document the glibc bug.
350         Reported by Gary V. Vaughan <gary@gnu.org>.
351
352 2010-11-13  Bruno Haible  <bruno@clisp.org>
353
354         openat: Ensure autoconf macro ordering.
355         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
356         gl_USE_SYSTEM_EXTENSIONS.
357         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
358
359 2010-11-13  Bruno Haible  <bruno@clisp.org>
360
361         Update comments.
362         * lib/unistr/u8-check.c: Update file name in comments.
363         * lib/unistr/u8-mblen.c: Likewise.
364         * lib/unistr/u8-prev.c: Likewise.
365         * lib/unistr/u8-strmblen.c: Likewise.
366         * lib/unistr/u8-strmbtouc.c: Likewise.
367
368 2010-11-13  Jim Meyering  <meyering@redhat.com>
369
370         tests: avoid test failure on Solaris 10 due to lack of PATH export
371         * tests/test-update-copyright.sh: Don't forget to export PATH.
372
373         init.sh: ensure that IFS is defined, just in case...
374         * tests/init.sh (setup_): Ensure that IFS is defined,
375         so that saving and restoring it works as expected.  This
376         appears to be useful at least for an old version of dash
377         from a long time ago (RH 6).  See here for details:
378         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
379
380         maint.mk: tighten "test a == b" check
381         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
382         test to files that contain something like #!/bin/sh.
383         Without this, coreutils would get two false positives in
384         the comments of C source files.
385
386 2010-11-12  Eric Blake  <eblake@redhat.com>
387
388         bootstrap: fix typo in previous attempt
389         * build-aux/bootstrap (buildreq): Correct the grouping.
390         Reported by Paul Eggert.
391
392         maintainer-makefile: prohibit test x == x
393         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
394         Based on a report by Matthias Bolte.
395
396         bootstrap: allow FreeBSD gzip
397         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
398         which has no '.' and goes to stderr.
399         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
400         Reported by Matthias Bolte.
401
402         maintainer-makefile: check for i18n setup
403         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
404         will likely work.
405
406 2010-11-12  Bruno Haible  <bruno@clisp.org>
407
408         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
409         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
410         * lib/nanosleep.c (nanosleep): Likewise.
411
412 2010-11-11  Bruno Haible  <bruno@clisp.org>
413
414         fcntl-h: Fix for use of C++ on glibc systems.
415         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
416         also on glibc systems in C++ mode.
417         Reported by Gary V. Vaughan <gary@gnu.org>.
418
419 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
420
421         mknod: avoid false failure with dash
422         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
423
424 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
425
426         unlink: Fix "is it should" typo in diagnostic.
427         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
428         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
429
430 2010-11-11  Bruno Haible  <bruno@clisp.org>
431
432         Tests for module 'strerror_r-posix'.
433         * modules/strerror_r-posix-tests: New file.
434         * tests/test-strerror_r.c: New file.
435         * tests/test-string-c++.cc: Check the signature of strerror_r.
436
437         New module 'strerror_r-posix'.
438         * lib/string.in.h (strerror_r): New declaration.
439         * lib/strerror_r.c: New file.
440         * m4/strerror_r.m4: New file.
441         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
442         of strerror_r.
443         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
444         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
445         * modules/strerror_r-posix: New file.
446         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
447         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
448         * doc/posix-functions/strerror_r.texi: Mention the new module and the
449         portability problems.
450
451 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
452
453         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
454         line is also considered for output. Quoted function name in shell
455         command, so temporary files for functions like MyClass::operator()
456         are removed correctly without errors.
457
458 2010-11-09  Bruno Haible  <bruno@clisp.org>
459
460         * doc/posix-functions/strerror.texi: List more failing platforms.
461
462         * doc/posix-functions/strerror.texi: Add a comment.
463
464 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
465
466         fdopendir: fix bug on MacOS X when low on file descriptors
467
468         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
469         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
470         All callers changed.
471         (fdopendir): Invoke save_cwd at the top level, not after using
472         multiple dup() calls to use up file descriptors.  Then retry
473         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
474         less than the maximum number of open file descriptors, because
475         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
476         on Mac OS X 10.6.4 for tar 1.24
477         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
478         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
479         and for tar 1.25
480         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
481
482 2010-11-07  Bruno Haible  <bruno@clisp.org>
483
484         vasnprintf: Support I flag on glibc systems.
485         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
486         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
487         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
488         snprintf function.
489         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
490         glibc systems.
491         * tests/test-vasnprintf-posix3.c: New file.
492         * modules/vasnprintf-posix-tests (Files): Add it.
493         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
494
495 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
496
497         [html] Fix copy/paste bug: Use unique name for compiler warnings.
498         * MODULES.html.sh: For compiler warnings, use name
499         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
500
501 2010-11-05  Eric Blake  <eblake@redhat.com>
502
503         ceil, floor: avoid spurious failure with icc
504         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
505         [denormals-as-zero] when optimizing without -mieee-fp option.
506         * tests/test-floorf2.c (floorf_reference): Likewise.
507         * tests/test-ceilf1.c (dummy): New function.
508         (main): Use it to outsmart icc's optimization.
509         * tests/test-floorf1.c (dummy, main): Likewise.
510
511         tests: require working signbit
512         * modules/ceilf-tests (Depends-on): Add signbit.
513         * modules/ceill-tests (Depends-on): Likewise.
514         * modules/floorf-tests (Depends-on): Likewise.
515         * modules/floorl-tests (Depends-on): Likewise.
516         * modules/round-tests (Depends-on): Likewise.
517         * modules/roundf-tests (Depends-on): Likewise.
518         * modules/roundl-tests (Depends-on): Likewise.
519         * modules/trunc-tests (Depends-on): Likewise.
520         * modules/truncf-tests (Depends-on): Likewise.
521         * modules/truncl-tests (Depends-on): Likewise.
522
523         strtod: work around icc bug
524         * lib/strtod.c (minus_zero): Define to working value.
525         (strtod): Use it to avoid icc bug.
526
527         copysign: enhance tests
528         * modules/copysign-tests (Files): Add minus-zero.h.
529         * tests/test-copysign.c (main): Also test zeros.
530
531 2010-11-04  Eric Blake  <eblake@redhat.com>
532
533         ceil, floor, round, trunc: enhance tests of -0
534         * tests/test-ceilf1.c (main): Ensure correct sign of result.
535         * tests/test-ceill.c (main): Likewise.
536         * tests/test-floorf1.c (main): Likewise.
537         * tests/test-floorl.c (main): Likewise.
538         * tests/test-round1.c (main): Likewise.
539         * tests/test-roundf1.c (main): Likewise.
540         * tests/test-roundl.c (main): Likewise.
541         * tests/test-trunc1.c (main): Likewise.
542         * tests/test-truncf1.c (main): Likewise.
543         * tests/test-truncl.c (main): Likewise.
544
545 2010-11-04  Eric Blake  <eblake@redhat.com>
546
547         frexp, tests: work around ICC bug with -zero
548         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
549         works with more compilers.
550         * tests/minus-zero.h: New file.
551         * modules/ceilf-tests (Files): Include it.
552         * modules/ceill-tests (Files): Likewise.
553         * modules/floorf-tests (Files): Likewise.
554         * modules/floorl-tests (Files): Likewise.
555         * modules/frexp-nolibm-tests (Files): Likewise.
556         * modules/frexp-tests (Files): Likewise.
557         * modules/frexpl-nolibm-tests (Files): Likewise.
558         * modules/frexpl-tests (Files): Likewise.
559         * modules/isnan-tests (Files): Likewise.
560         * modules/isnand-nolibm-tests (Files): Likewise.
561         * modules/isnand-tests (Files): Likewise.
562         * modules/isnanf-nolibm-tests (Files): Likewise.
563         * modules/isnanf-tests (Files): Likewise.
564         * modules/isnanl-nolibm-tests (Files): Likewise.
565         * modules/isnanl-tests (Files): Likewise.
566         * modules/round-tests (Files): Likewise.
567         * modules/roundf-tests (Files): Likewise.
568         * modules/roundl-tests (Files): Likewise.
569         * modules/ldexpl-tests (Files): Likewise.
570         * modules/signbit-tests (Files): Likewise.
571         * modules/snprintf-posix-tests (Files): Likewise.
572         * modules/sprintf-posix-tests (Files): Likewise.
573         * modules/strtod-tests (Files): Likewise.
574         * modules/trunc-tests (Files): Likewise.
575         * modules/truncf-tests (Files): Likewise.
576         * modules/truncl-tests (Files): Likewise.
577         * modules/vsnprintf-posix-tests (Files): Likewise.
578         * modules/vsprintf-posix-tests (Files): Likewise.
579         * modules/vasnprintf-posix-tests (Files): Likewise.
580         * modules/vasprintf-posix-tests (Files): Likewise.
581         * tests/test-ceilf1.c (main): Use it.
582         * tests/test-ceill.c (main): Likewise.
583         * tests/test-floorf1.c (main): Likewise.
584         * tests/test-floorl.c (main): Likewise.
585         * tests/test-frexp.c (main): Likewise.
586         * tests/test-frexpl.c (main): Likewise.
587         * tests/test-isnan.c (main): Likewise.
588         * tests/test-isnand.h (main): Likewise.
589         * tests/test-isnanf.h (main): Likewise.
590         * tests/test-isnanl.h (main): Likewise.
591         * tests/test-ldexpl.c (main): Likewise.
592         * tests/test-round.c (main): Likewise.
593         * tests/test-roundf.c (main): Likewise.
594         * tests/test-roundl.c (main): Likewise.
595         * tests/test-signbit.c (test_signbitf, test_signbitd)
596         (test_signbitl): Likewise.
597         * tests/test-snprintf-posix.h (test_function): Likewise.
598         * tests/test-sprintf-posix.h (test_function): Likewise.
599         * tests/test-strtod.c (main): Likewise.
600         * tests/test-trunc1.c (main): Likewise.
601         * tests/test-truncf1.c (main): Likewise.
602         * tests/test-truncl.c (main): Likewise.
603
604         isnanl: work around icc bug
605         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
606
607 2010-11-03  Eric Blake  <eblake@redhat.com>
608
609         tests: fix compiler warnings
610         * tests/test-getopt.h (test_getopt): Fix condition.
611         * tests/test-getopt_long.h (test_getopt_long): Likewise.
612         * tests/test-pipe2.c (main): Likewise.
613         * tests/test-quotearg-simple.c (main): Avoid icc warning.
614
615         utimens: fix broken m4 test
616         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
617
618 2010-10-28  Bruno Haible  <bruno@clisp.org>
619
620         posix_spawn*, getdtablesize: Relax license.
621         * modules/posix_spawn (License): Change to LGPLv2+.
622         * modules/posix_spawnp (License): Likewise.
623         * modules/posix_spawn-internal (License): Likewise.
624         * modules/posix_spawnattr_init (License): Likewise.
625         * modules/posix_spawnattr_getflags (License): Likewise.
626         * modules/posix_spawnattr_setflags (License): Likewise.
627         * modules/posix_spawnattr_getpgroup (License): Likewise.
628         * modules/posix_spawnattr_setpgroup (License): Likewise.
629         * modules/posix_spawnattr_getschedparam (License): Likewise.
630         * modules/posix_spawnattr_setschedparam (License): Likewise.
631         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
632         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
633         * modules/posix_spawnattr_getsigdefault (License): Likewise.
634         * modules/posix_spawnattr_setsigdefault (License): Likewise.
635         * modules/posix_spawnattr_getsigmask (License): Likewise.
636         * modules/posix_spawnattr_setsigmask (License): Likewise.
637         * modules/posix_spawnattr_destroy (License): Likewise.
638         * modules/posix_spawn_file_actions_init (License): Likewise.
639         * modules/posix_spawn_file_actions_addclose (License): Likewise.
640         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
641         * modules/posix_spawn_file_actions_addopen (License): Likewise.
642         * modules/posix_spawn_file_actions_destroy (License): Likewise.
643         * modules/getdtablesize (License): Likewise.
644         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
645
646 2010-10-26  Bruno Haible  <bruno@clisp.org>
647
648         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
649         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
650         Cygwin and mingw.
651         Suggested by Eric Blake.
652
653 2010-10-26  Bruno Haible  <bruno@clisp.org>
654
655         stdio: Work around compilation error due to renameat() on Solaris 10.
656         * lib/stdio.in.h: Include <unistd.h> on Solaris.
657         * lib/renameat.c: Don't include <unistd.h> here.
658         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
659         Reported by Paul Eggert and Eric Blake.
660
661 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
662
663         renameat: port to Solaris 10, which declares renameat in unistd.h
664
665         * lib/renameat.c: Include unistd.h before stdio.h, because
666         Solaris 10 declares renameat in unistd.h.  Problem encountered
667         when building GNU tar 1.24 on Solaris 10.
668
669 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
670
671         fdopendir: fix C89 compilation
672         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
673         compilers.
674
675 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
676
677         inttostr: simplify by removing unnecessary redundancy
678         * lib/anytostr.c: Don't include verify.h.
679         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
680         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
681         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
682         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
683         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
684         Likewise.
685         * modules/inttostr (Depends-on): Remove 'verify'.
686
687 2010-10-23  Bruno Haible  <bruno@clisp.org>
688
689         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
690         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
691         Reported by Eric Blake.
692
693 2010-10-23  Bruno Haible  <bruno@clisp.org>
694
695         Tests: Fix LOCALE_JA on MirBSD 10.
696         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
697         to an UTF-8 locale.
698         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
699         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
700         Reported by Eric Blake.
701
702 2010-10-21  Bruno Haible  <bruno@clisp.org>
703
704         nl_langinfo test: Avoid test failure on NetBSD 5.
705         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
706         Reported by Eric Blake.
707
708 2010-10-21  Eric Blake  <eblake@redhat.com>
709
710         c-stack: work around libsigsegv 2.8 bug
711         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
712         overflow on at least PowerPC64.
713
714 2010-10-17  Bruno Haible  <bruno@clisp.org>
715
716         userspec: Drop redundant file.
717         * modules/userspec (Files): Remove lib/inttostr.h.
718
719 2010-10-17  Bruno Haible  <bruno@clisp.org>
720
721         nl_langinfo tests: Silence some warnings.
722         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
723         Reported by Jim Meyering.
724
725 2010-10-17  Bruno Haible  <bruno@clisp.org>
726
727         Make use of GCC's attribute __alloc_size__.
728         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
729         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
730         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
731         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
732         __alloc_size__.
733         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
734         Suggested by Jim Meyering.
735
736 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
737
738         bootstrap: anchor .gitignore entries.
739         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
740         with...
741         (insert_vc_ignore): ... this new function, which prepends `/' to
742         all .gitignore entries before passing them to
743         insert_sorted_if_absent.
744
745 2010-10-16  Bruno Haible  <bruno@clisp.org>
746
747         nextafter: Fix configure check.
748         * modules/nextafter (configure.ac): Correct expected prototype.
749
750 2010-10-16  Bruno Haible  <bruno@clisp.org>
751
752         termios: Update documentation.
753         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
754
755 2010-10-16  Bruno Haible  <bruno@clisp.org>
756
757         tests: Make them compile with TinyCC.
758         * tests/test-strstr.c (main): Remove parentheses around array
759         initializer.
760
761 2010-10-15  Eric Blake  <eblake@redhat.com>
762
763         ignore-value: make header idempotent
764         * lib/ignore-value.h: Add double-inclusion guards.
765         Reported by Stefan Berger.
766
767 2010-10-15  Jim Meyering  <meyering@redhat.com>
768
769         GNUmakefile: handle "stable" target, not "major"
770         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
771         lists in maint.mk and announce-gen.  Without this, "make stable"
772         would fail to ensure that $(VERSION) is up to date.
773
774 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
775
776         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
777         & co.
778
779 2010-10-14  Bruno Haible  <bruno@clisp.org>
780
781         vasnprintf: Don't set errno to 0.
782         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
783         block that sets it to 0.
784         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
785
786 2010-10-14  Bruno Haible  <bruno@clisp.org>
787
788         socketlib: Fix.
789         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
790         gl_PREREQ_SYS_H_WINSOCK2.
791         Reported by Ian Beckwith <ianb@erislabs.net>.
792
793 2010-10-13  Jim Meyering  <meyering@redhat.com>
794
795         test-select-stdin.c: avoid warn_unused_result warnings
796         * tests/test-select-stdin.c: Include "macros.h".
797         ASSERT that read and fflush succeed.
798
799 2010-10-13  Jim Meyering  <meyering@redhat.com>
800
801         git-version-gen: do require git-VC'd files in cwd
802         * build-aux/git-version-gen: Reject a git version string
803         if there are no commits associated with the current directory.
804         This avoids an unlikely false-positive (unrelated dir whose parent
805         repository also contains a tag matching v*), as pointed out
806         by Giuseppe Scrivano in
807         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
808
809 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
810
811         argv-iter: omit nonconforming declaration
812         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
813         enum arg_iter_err declaration, which doesn't conform to C99.
814         Solaris 10 cc warns about this.
815
816 2010-10-13  Eric Blake  <eblake@redhat.com>
817
818         termios: fix compilation on mingw
819         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
820         (gl_TERMIOS_H): Adjust it on mingw.
821         * modules/termios (Makefile.am): Substitute new key.
822         * lib/termios.in.h (includes): Make include_next conditional.
823         * doc/posix-headers/termios.texi (termios.h): Update
824         documentation.
825         Reported by Daniel P. Berrange.
826
827 2010-10-13  Jim Meyering  <meyering@redhat.com>
828
829         git-version-gen: don't require that .git/ be in the current dir
830         * build-aux/git-version-gen: Adjust this script so that it works
831         when run from any working directory beneath the top-level .git/-
832         containing directory.  Inspired by a patch from Giuseppe Scrivano,
833         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
834
835         test-select: avoid warn_unused_result warnings
836         * tests/test-select.c: Include "macros.h".
837         ASSERT that each call to read, write, and pipe succeeds.
838         While not technically required, also check each "close".
839         * modules/select-tests (Files): Add tests/macros.h.
840
841         test-symlinkat: remove declaration of unused local
842         * tests/test-symlinkat.c (main): Remove unused local, "buf".
843
844         test-inttostr: avoid shadowing warnings
845         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
846         and use malloc rather than the stack for the same reason as
847         mentioned in the comment justifying the other allocation.
848
849 2010-10-11  Bruno Haible  <bruno@clisp.org>
850
851         stdlib: Allow multiple gnulib generated replacements to coexist.
852         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
853         Reported by Sam Steingold <sds@gnu.org>.
854
855 2010-10-11  Jim Meyering  <meyering@redhat.com>
856
857         fix a documentation typo
858         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
859
860 2010-10-11  Eric Blake  <eblake@redhat.com>
861
862         futimens: work around Solaris 11 bug
863         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
864         * tests/test-futimens.h (test_futimens): Enhance, rather than
865         weaken test.
866         * doc/posix-functions/futimens.texi (futimens): Document the bug.
867
868 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
869
870         Indentation.
871         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
872         higher-level operators more to the left.
873
874 2010-10-11  Jim Meyering  <meyering@redhat.com>
875
876         test-futimens: avoid unwarranted test failure on Solaris 5.11
877         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
878         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
879         because it tries to dereference the NULL name argument.
880
881 2010-10-11  Bruno Haible  <bruno@clisp.org>
882
883         Indentation.
884         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
885         indentation.
886
887 2010-10-11  Jim Meyering  <meyering@redhat.com>
888
889         spawn.in.h: make indentation consistent with parentheses
890         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
891         Make indentation consistent with parentheses.
892
893 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
894
895         Fix mismatched parens in previous commit
896         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
897         parens.
898
899 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
900
901         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
902
903         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
904         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
905         * lib/malloca.c: Include "verify.h".
906         (verify1): Remove, replacing with a verify call.
907         * lib/relocwrapper.c (verify1): Likewise.
908         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
909         Likewise.
910         * modules/malloca (Depends-on): Add 'verify'.
911         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
912         * modules/vasnprintf (Depends-on): Add 'verify'.
913         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
914         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
915         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
916         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
917         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
918         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
919         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
920
921         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
922
923         Formerly the style was sometimes 2*X - 1, because the C standard
924         was wrongly thought to disallow ?: in integral constant expressions.
925         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
926         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
927         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
928         * lib/stdint.in.h (_verify_intmax_size): Likewise.
929         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
930         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
931         verify that time_t cannot be floating.
932
933 2010-10-08  Eric Blake  <eblake@redhat.com>
934
935         time: enforce recent POSIX ruling that time_t is integral
936         * lib/time.in.h (__time_t_must_be_integral): Detect any
937         problematic systems, allowing the rest of gnulib to assume POSIX.
938
939 2010-10-08  Jim Meyering  <meyering@redhat.com>
940
941         fdopendir: fix a bug on systems lacking openat and /proc support
942         OpenBSD 4.7 is one such system.  The most noticeable effect was
943         failure of any application making nontrivial use of fts: rm, du,
944         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
945           ./rm: traversal failed: `a': Bad file descriptor
946         Debugging that, you see that even though FD 6 was closed just
947         prior to the opendir call in fd_clone_opendir, its resulting
948         dir->dd_fd was 8, rather than the expected value of 6:
949
950         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
951         93                close (fd);
952         (gdb) n
953         94                dir = fd_clone_opendir (dupfd);
954         (gdb) n
955         95                saved_errno = errno;
956         (gdb) p dir->dd_fd
957         $11 = 8
958
959         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
960         The problem is that on OpenBSD, fd_clone_opendir has to resort
961         to using the old-style save/restore CWD mechanism, due to its
962         lack of openat/proc support, and *that* would steal the FD (6)
963         that opendir was supposed to use.
964
965         The fix is to squirrel away the desired FD so that save_cwd uses a
966         different one, and then free the dest FD right before calling opendir.
967         That guarantees opendir will use the required file descriptor.
968
969         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
970
971 2010-10-08  Bruno Haible  <bruno@clisp.org>
972
973         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
974         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
975
976 2010-10-08  Bruno Haible  <bruno@clisp.org>
977
978         nanosleep: Make replacement POSIX compliant.
979         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
980         is out of range.
981         Reported by Jim Meyering.
982
983 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
984
985         bootstrap: add hook for altering gnulib.mk, for Bison
986         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
987         the Bison bootstrapping process can rewrite file names and variables
988         in this file before later parts of 'bootstrap' use the file.
989         Bison wants to include lib/gnulib.mk from the top-level makefile,
990         so it needs the file names in this file to be relative to the top
991         level, not relative to lib; plus it needs variable names to be
992         rewritten.
993         (slurp): Use the new function.
994
995         bootstrap: reformat for readability
996         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
997
998 2010-10-08  Eric Blake  <eblake@redhat.com>
999
1000         docs: update cygwin progress
1001         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
1002         1.7.7.
1003         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
1004         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
1005         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
1006         * doc/posix-functions/carg.texi (carg): Likewise.
1007         * doc/posix-functions/cargf.texi (cargf): Likewise.
1008         * doc/posix-functions/casin.texi (casin): Likewise.
1009         * doc/posix-functions/casinf.texi (casinf): Likewise.
1010         * doc/posix-functions/casinh.texi (casinh): Likewise.
1011         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
1012         * doc/posix-functions/catan.texi (catan): Likewise.
1013         * doc/posix-functions/catanf.texi (catanf): Likewise.
1014         * doc/posix-functions/catanh.texi (catanh): Likewise.
1015         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
1016         * doc/posix-functions/ccos.texi (ccos): Likewise.
1017         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
1018         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
1019         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
1020         * doc/posix-functions/cexp.texi (cexp): Likewise.
1021         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
1022         * doc/posix-functions/cimag.texi (cimag): Likewise.
1023         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
1024         * doc/posix-functions/clog.texi (clog): Likewise.
1025         * doc/posix-functions/clogf.texi (clogf): Likewise.
1026         * doc/posix-functions/conj.texi (conj): Likewise.
1027         * doc/posix-functions/conjf.texi (conjf): Likewise.
1028         * doc/posix-functions/cpow.texi (cpow): Likewise.
1029         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
1030         * doc/posix-functions/cproj.texi (cproj): Likewise.
1031         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
1032         * doc/posix-functions/creal.texi (creal): Likewise.
1033         * doc/posix-functions/crealf.texi (crealf): Likewise.
1034         * doc/posix-functions/csin.texi (csin): Likewise.
1035         * doc/posix-functions/csinf.texi (csinf): Likewise.
1036         * doc/posix-functions/csinh.texi (csinh): Likewise.
1037         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
1038         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
1039         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
1040         * doc/posix-functions/ctan.texi (ctan): Likewise.
1041         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
1042         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
1043         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
1044         * doc/posix-headers/complex.texi (complex.h): Likewise.
1045
1046 2010-10-07  Jim Meyering  <meyering@redhat.com>
1047
1048         parse-datetime: avoid compilation failure on OpenBSD 4.7
1049         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
1050         This works around a compilation failure on OpenBSD 4.7:
1051         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
1052
1053 2010-10-07  Eric Blake  <eblake@redhat.com>
1054
1055         docs: update cygwin progress
1056         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
1057         1.7.6.
1058         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
1059         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
1060         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
1061         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
1062         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
1063         Likewise.
1064         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
1065         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
1066         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
1067         Likewise.
1068         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
1069         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
1070         Likewise.
1071         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
1072         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
1073         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
1074         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
1075         Likewise.
1076         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
1077         Likewise.
1078         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
1079
1080         docs: update parse-datetime history
1081         * doc/parse-datetime.texi (Authors of parse_datetime): Better
1082         documentation of this function's history and alternatives.
1083
1084         cygwin: use more robust version check
1085         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
1086         exclude an eventual cygwin 1.9.1.
1087         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1088         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
1089         (gl_FUNC_STRCASESTR): Likewise.
1090         Reported by Bruno Haible.
1091
1092 2010-10-06  Bruno Haible  <bruno@clisp.org>
1093
1094         string, sys_select: Avoid #including large headers unless necessary.
1095         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
1096         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
1097         OSF/1, BeOS, Haiku.
1098         Reported by Jim Meyering.
1099
1100 2010-10-05  Eric Blake  <eblake@redhat.com>
1101
1102         memmem, strstr, strcasestr: fix bug with long periodic needle
1103         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
1104         periodic needle having false positive.
1105         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
1106         and cygwin 1.7.7.
1107         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
1108         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
1109         (gl_FUNC_STRCASESTR): Likewise.
1110         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1111         * tests/test-memmem.c (main): Expose the bug.
1112         * tests/test-strcasestr.c (main): Likewise.
1113         * tests/test-strstr.c (main): Likewise.
1114         * tests/test-c-strcasestr.c (main): Likewise.
1115         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
1116         * doc/posix-functions/strstr.texi (strstr): Likewise.
1117         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
1118         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
1119
1120 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1121
1122         parse-datetime: do some more renaming
1123         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
1124         parse_datetime, not get_date.  Mention the renaming.
1125         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
1126         in comments.
1127         * m4/bison.m4: Likewise.
1128
1129 2010-10-05  Eric Blake  <eblake@redhat.com>
1130
1131         parse-datetime: better name than get_date
1132         * NEWS: Reword the deprecation notice.
1133         * modules/get_date: Rename to modules/parse-datetime.
1134         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
1135         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
1136         * lib/get_date.y: Rename to lib/parse-datetime.y.
1137         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
1138         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
1139         * doc/getdate.texi: Provide fallback wrapper.
1140         * lib/getdate.h: Move guts, and wrap...
1141         * lib/parse-datetime.h: ...new file.
1142         * lib/parse-datetime.y (get_date): Rename...
1143         (parse_datetime): ...to this.
1144         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
1145         (gl_PARSE_DATETIME): ...to this.
1146         * doc/posix-functions/getdate.texi (get_date): Provide fallback
1147         documentation.
1148         * modules/getdate (Files): Provide fallback docs and header.
1149         (Notice, Depends-on): Update references.
1150         * tests/test-parse-datetime.c: Likewise.
1151         * DEPENDENCIES: Likewise.
1152         * MODULES.html.sh (Date and time <time.h>): Likewise.
1153         * doc/parse-datetime.texi (Date input formats)
1154         (Authors of parse_datetime): Likewise.
1155         * modules/parse-datetime (Files, configure.ac, Makefile.am)
1156         (Include): Likewise.
1157         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
1158         * gnulib-tool: Likewise.
1159         * m4/bison.m4 (gl_BISON): Likewise.
1160         Suggested by Bruno Haible.
1161
1162 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1163
1164         more ports to Solaris tr, which needs [] around ranges
1165         * gnulib-tool: Solaris tr needs [] around ranges.
1166         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
1167         * tests/test-pipe-filter-gi1.c (main): Likewise.
1168         * tests/test-pipe-filter-ii1.c (main): Likewise.
1169
1170 2010-10-05  Eric Blake  <eblake@redhat.com>
1171
1172         bootstrap: fix Solaris regression
1173         * build-aux/bootstrap (check_versions): Solaris tr still needs []
1174         around ranges.
1175         Reported by Pádraig Brady.
1176
1177         bootstrap: work with pkg-config
1178         * build-aux/bootstrap (check_versions): Also transliterate - in
1179         prerequisite name.
1180         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
1181         prerequisites that were already found, to avoid confusion.
1182         Reported by Justin Clift.
1183
1184         faccessat: remove unused wrappers
1185         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
1186         presence of these wrappers dragged in -lgen on Solaris.
1187         Reported by Clemens Brogi; fix suggested by Paul Eggert.
1188
1189 2010-10-05  Jim Meyering  <meyering@redhat.com>
1190
1191         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
1192         * Makefile (sc_pragma_columns): New syntax-check rule.
1193
1194 2010-10-04  Bruno Haible  <bruno@clisp.org>
1195
1196         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
1197         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
1198         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
1199         Reported by Bruce Korb and Eric Blake.
1200
1201 2010-10-04  Bruno Haible  <bruno@clisp.org>
1202
1203         threadlib: Make option --with-libpth-prefix work.
1204         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
1205         use $LIBPTH, not just -lpth.
1206
1207 2010-10-04  Bruno Haible  <bruno@clisp.org>
1208
1209         Avoid line length limitation from HP NonStop system header files.
1210         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
1211         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
1212         * lib/ctype.in.h: Likewise.
1213         * lib/dirent.in.h: Likewise.
1214         * lib/errno.in.h: Likewise.
1215         * lib/fcntl.in.h: Likewise.
1216         * lib/float.in.h: Likewise.
1217         * lib/getopt.in.h: Likewise.
1218         * lib/iconv.in.h: Likewise.
1219         * lib/inttypes.in.h: Likewise.
1220         * lib/langinfo.in.h: Likewise.
1221         * lib/locale.in.h: Likewise.
1222         * lib/math.in.h: Likewise.
1223         * lib/netdb.in.h: Likewise.
1224         * lib/netinet_in.in.h: Likewise.
1225         * lib/poll.in.h: Likewise.
1226         * lib/pthread.in.h: Likewise.
1227         * lib/pty.in.h: Likewise.
1228         * lib/sched.in.h: Likewise.
1229         * lib/se-selinux.in.h: Likewise.
1230         * lib/search.in.h: Likewise.
1231         * lib/signal.in.h: Likewise.
1232         * lib/spawn.in.h: Likewise.
1233         * lib/stdarg.in.h: Likewise.
1234         * lib/stddef.in.h: Likewise.
1235         * lib/stdint.in.h: Likewise.
1236         * lib/stdio.in.h: Likewise.
1237         * lib/stdlib.in.h: Likewise.
1238         * lib/string.in.h: Likewise.
1239         * lib/strings.in.h: Likewise.
1240         * lib/sys_file.in.h: Likewise.
1241         * lib/sys_ioctl.in.h: Likewise.
1242         * lib/sys_select.in.h: Likewise.
1243         * lib/sys_socket.in.h: Likewise.
1244         * lib/sys_stat.in.h: Likewise.
1245         * lib/sys_time.in.h: Likewise.
1246         * lib/sys_times.in.h: Likewise.
1247         * lib/sys_utsname.in.h: Likewise.
1248         * lib/sys_wait.in.h: Likewise.
1249         * lib/sysexits.in.h: Likewise.
1250         * lib/termios.in.h: Likewise.
1251         * lib/time.in.h: Likewise.
1252         * lib/unistd.in.h: Likewise.
1253         * lib/wchar.in.h: Likewise.
1254         * lib/wctype.in.h: Likewise.
1255         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
1256         * modules/ctype (Makefile.am): Likewise.
1257         * modules/dirent (Makefile.am): Likewise.
1258         * modules/errno (Makefile.am): Likewise.
1259         * modules/fcntl-h (Makefile.am): Likewise.
1260         * modules/float (Makefile.am): Likewise.
1261         * modules/getopt-posix (Makefile.am): Likewise.
1262         * modules/iconv-h (Makefile.am): Likewise.
1263         * modules/inttypes (Makefile.am): Likewise.
1264         * modules/langinfo (Makefile.am): Likewise.
1265         * modules/locale (Makefile.am): Likewise.
1266         * modules/math (Makefile.am): Likewise.
1267         * modules/netdb (Makefile.am): Likewise.
1268         * modules/netinet_in (Makefile.am): Likewise.
1269         * modules/poll-h (Makefile.am): Likewise.
1270         * modules/pthread (Makefile.am): Likewise.
1271         * modules/pty (Makefile.am): Likewise.
1272         * modules/sched (Makefile.am): Likewise.
1273         * modules/search (Makefile.am): Likewise.
1274         * modules/selinux-h (Makefile.am): Likewise.
1275         * modules/signal (Makefile.am): Likewise.
1276         * modules/spawn (Makefile.am): Likewise.
1277         * modules/stdarg (Makefile.am): Likewise.
1278         * modules/stddef (Makefile.am): Likewise.
1279         * modules/stdint (Makefile.am): Likewise.
1280         * modules/stdio (Makefile.am): Likewise.
1281         * modules/stdlib (Makefile.am): Likewise.
1282         * modules/string (Makefile.am): Likewise.
1283         * modules/strings (Makefile.am): Likewise.
1284         * modules/sys_file (Makefile.am): Likewise.
1285         * modules/sys_ioctl (Makefile.am): Likewise.
1286         * modules/sys_select (Makefile.am): Likewise.
1287         * modules/sys_socket (Makefile.am): Likewise.
1288         * modules/sys_stat (Makefile.am): Likewise.
1289         * modules/sys_time (Makefile.am): Likewise.
1290         * modules/sys_times (Makefile.am): Likewise.
1291         * modules/sys_utsname (Makefile.am): Likewise.
1292         * modules/sys_wait (Makefile.am): Likewise.
1293         * modules/sysexits (Makefile.am): Likewise.
1294         * modules/termios (Makefile.am): Likewise.
1295         * modules/time (Makefile.am): Likewise.
1296         * modules/unistd (Makefile.am): Likewise.
1297         * modules/wchar (Makefile.am): Likewise.
1298         * modules/wctype (Makefile.am): Likewise.
1299
1300 2010-10-04  Bruno Haible  <bruno@clisp.org>
1301
1302         read-file tests: Avoid a test failure on NonStop Kernel.
1303         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
1304         a regular file.
1305         Reported by Joachim Schmitz <schmitz@hp.com>.
1306
1307 2010-10-03  Bruno Haible  <bruno@clisp.org>
1308
1309         gnulib-tool: Fixes for --create-testdir with --libtool.
1310         * gnulib-tool (func_get_automake_snippet): Don't augment
1311         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
1312         an executable.
1313         (func_create_testdir): Handle module 'alloca' like func_import.
1314         Reported by Bruce Korb <bruce.korb@gmail.com>.
1315
1316 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
1317
1318         Avoid some lines longer than 80 characters.
1319         * lib/stdint.in.h: Break long comment lines.
1320         * lib/math.in.h: Likewise.
1321         (_GL_NUM_UINT_WORDS): New macro, for readability.
1322         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
1323         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
1324         * lib/stdlib.in.h: Likewise.
1325         * lib/spawn.in.h: Likewise.
1326         * lib/sys_socket.in.h: Update an URL.
1327         * lib/sys_stat.in.h: Break long line.
1328
1329 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
1330
1331         Improve pmccabe2html.
1332         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
1333         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
1334         when the sources change. Remove the line in the HTML about "Used
1335         ranges" (which implied that there might be other unused ranges),
1336         rename "Resume" to "Summary" (easier to understand for more users).
1337         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
1338         styles, and some unnecessary blank lines.
1339
1340 2010-10-03  Bruno Haible  <bruno@clisp.org>
1341             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1342
1343         acl: Add support for ACLs on NonStop Kernel.
1344         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
1345         Check whether the function aclsort() exists.
1346         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
1347         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
1348         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1349         (acl_nontrivial [HAVE_ACLSORT]: New function.
1350         (file_has_acl): Implement for NonStop Kernel.
1351         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1352         (qset_acl): Implement for NonStop Kernel.
1353         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
1354         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1355         (main): Implement for NonStop Kernel.
1356         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
1357         Kernel. Handle this flavor.
1358         * tests/test-set-mode-acl.sh: Likewise.
1359         * tests/test-copy-acl.sh: Likewise.
1360         * tests/test-copy-file.sh: Likewise.
1361
1362 2010-10-03  Bruno Haible  <bruno@clisp.org>
1363
1364         Info about ACLs on NonStop Kernel.
1365         * doc/acl-resources.txt: Add info about NonStop Kernel.
1366         References by Joachim Schmitz <schmitz@hp.com>.
1367
1368 2010-10-02  Bruno Haible  <bruno@clisp.org>
1369
1370         Define missing EDQUOT on NonStop Kernel.
1371         * lib/errno.in.h (EDQUOT): Assign a value if missing.
1372         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
1373         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
1374         missing.
1375         * doc/posix-headers/errno.texi: Mention the NSK bug.
1376         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
1377         Reported by Joachim Schmitz <schmitz@hp.com>.
1378
1379 2010-10-02  Bruno Haible  <bruno@clisp.org>
1380
1381         Update doc for POSIX:2008.
1382         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
1383         Update URL of POSIX specification.
1384
1385 2010-10-02  Bruno Haible  <bruno@clisp.org>
1386
1387         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
1388         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
1389         from gnulib, not from Automake.
1390
1391 2010-10-02  Bruno Haible  <bruno@clisp.org>
1392
1393         New module 'system-posix'.
1394         * modules/system-posix: New file.
1395         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
1396         module is present.
1397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1398         GNULIB_SYSTEM_POSIX.
1399         * modules/stdlib (Depends-on): Remove sys_wait.
1400         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
1401         * doc/posix-functions/system.texi: Mention the new module.
1402         * doc/posix-headers/stdlib.texi: Likewise.
1403         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
1404         define test_sys_wait_macros to a no-op.
1405         Reported by Sam Steingold <sds@gnu.org>.
1406
1407 2010-09-30  Bruno Haible  <bruno@clisp.org>
1408
1409         More renaming from 'getdate' to 'get_date'.
1410         * doc/get_date.texi: Renamed from doc/getdate.texi.
1411         * modules/get_date (Files): Update.
1412         * MODULES.html.sh (Date and time <time.h>): Update.
1413         * DEPENDENCIES: Update.
1414         * gnulib-tool: Update comment.
1415         * m4/bison.m4 (gl_BISON): Likewise.
1416         * m4/get_date.m4 (gl_GET_DATE): Likewise.
1417
1418 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
1419
1420         bootstrap: support ACLOCAL_FLAGS during aclocal
1421         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
1422         can add additional -I dir for third-party .m4 files.
1423
1424 2010-09-30  Eric Blake  <eblake@redhat.com>
1425
1426         bootstrap: use glibtoolize on MacOS
1427         * build-aux/bootstrap (check_versions): Convert libtool into
1428         libtoolize.
1429         (tool search): Move libtool check earlier, and look for
1430         glibtoolize for MacOS.
1431         (gnulib_tool_options): Auto-add --libtool when appropriate.
1432         Reported by Justin Clift.
1433
1434         poll: fix typo that broke test on MacOS
1435         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
1436         Reported by Justin Clift.
1437
1438         getdate: rename to get_date
1439         Note: getdate.h is not renamed, to minimize client impact.
1440         * modules/getdate: Mark obsolete.  Move old contents...
1441         * modules/get_date: ...to new module name.
1442         * modules/getdate-tests: Move...
1443         * modules/get_date-tests: ...here.
1444         * m4/getdate.m4: Move...
1445         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
1446         * lib/getdate.y: Move...
1447         * lib/get_date.y: ...here.
1448         * tests/test-getdate.c: Move...
1449         * tests/test-get_date.c: ...here.
1450         * doc/posix-functions/getdate.texi (getdate): Update name.
1451         * NEWS: Mention the change.
1452
1453 2010-09-29  Bruno Haible  <bruno@clisp.org>
1454
1455         Separate the module 'waitpid' from the module 'sys_wait'.
1456         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
1457         present.
1458         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
1459         gl_MODULE_INDICATOR_FOR_TESTS.
1460         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
1461         * modules/sys_wait (Depends-on): Remove waitpid.
1462         (Makefile.am): Substitute GNULIB_WAITPID.
1463         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
1464         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
1465         signature only if the 'waitpid' module is present.
1466         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
1467         * NEWS: Mention the change.
1468         * modules/grantpt (Depends-on): Add waitpid.
1469         * modules/wait-process (Depends-on): Likewise.
1470
1471 2010-09-29  Bruno Haible  <bruno@clisp.org>
1472
1473         More tests for module 'sys_wait'.
1474         * modules/sys_wait-c++-tests: New file.
1475         * tests/test-sys_wait-c++.cc: New file.
1476         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
1477         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1478
1479 2010-09-29  Bruno Haible  <bruno@clisp.org>
1480
1481         New module 'waitpid'.
1482         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
1483         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
1484         Don't include <process.h>.
1485         (waitpid): Declare only, using modern idiom.
1486         * m4/waitpid.m4: New file.
1487         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
1488         * modules/waitpid: New file.
1489         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
1490         (Makefile.am): Update.
1491         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1492
1493 2010-09-28  Bruno Haible  <bruno@clisp.org>
1494
1495         poll: Assume ANSI C.
1496         * lib/poll.c (poll): Use an ANSI C declaration.
1497
1498 2010-09-28  Bruno Haible  <bruno@clisp.org>
1499
1500         poll-h: Create poll.h on all platforms.
1501         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
1502         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
1503         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
1504         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
1505         (gl_REPLACE_POLL_H): Don't set POLL_H.
1506         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
1507         * modules/poll-h (Depends-on): Add include_next.
1508         (Makefile.am): Create poll.h unconditionally. Substitute also
1509         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
1510
1511 2010-09-28  Bruno Haible  <bruno@clisp.org>
1512
1513         Tests for module 'poll-h'.
1514         * modules/poll-h-c++-tests: New file.
1515         * tests/test-poll-h-c++.cc: New file.
1516
1517         Tests for module 'poll-h'.
1518         * modules/poll-h-tests: New file.
1519         * tests/test-poll-h.c: New file.
1520
1521 2010-09-28  Bruno Haible  <bruno@clisp.org>
1522
1523         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
1524         * modules/poll-h (Depends-on): Add 'extensions'.
1525
1526 2010-09-28  Bruno Haible  <bruno@clisp.org>
1527
1528         New module 'poll-h'.
1529         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
1530         (poll): Use modern idiom.
1531         * modules/poll-h: New file.
1532         * modules/poll (Files): Remove lib/poll.in.h.
1533         (Depends-on): Add poll-h.
1534         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
1535         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
1536         * m4/poll_h.m4: New file.
1537         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
1538         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
1539         and invoke gl_REPLACE_POLL_H.
1540         * lib/poll.c: Use common idiom.
1541         * tests/test-poll.c: Likewise.
1542         * doc/posix-headers/poll.texi: Mention the poll-h module.
1543         Suggested by Eric Blake.
1544
1545 2010-09-26  Bruno Haible  <bruno@clisp.org>
1546
1547         sys_wait: Implement WSTOPSIG.
1548         * lib/sys_wait.in.h (WSTOPSIG): New macro.
1549         Reported by Simon Josefsson.
1550
1551 2010-09-26  Simon Josefsson  <simon@josefsson.org>
1552
1553         stdlib, sys_wait: Avoid compilation error on mingw.
1554         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
1555
1556 2010-09-26  Bruno Haible  <bruno@clisp.org>
1557
1558         stdlib tests: Avoid code duplication.
1559         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
1560         * modules/sys_wait-tests (Files): Likewise.
1561         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
1562         * tests/test-stdlib.c: Include test-sys_wait.h.
1563         (main): Invoke test_sys_wait_macros.
1564         * tests/test-sys_wait.c: Include test-sys_wait.h.
1565         (main): Invoke test_sys_wait_macros.
1566
1567 2010-09-25  Simon Josefsson  <simon@josefsson.org>
1568
1569         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
1570         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
1571         sure Windows sockets are working before calling getaddrinfo.
1572         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
1573         * doc/gnulib.texi (Windows sockets): Fix typo.
1574
1575 2010-09-25  Bruno Haible  <bruno@clisp.org>
1576
1577         Tests for module 'regex-quote'.
1578         * modules/regex-quote-tests: New file.
1579         * tests/test-regex-quote.c: New file.
1580
1581         New module 'regex-quote'.
1582         * lib/regex-quote.h: New file.
1583         * lib/regex-quote.c: New file.
1584         * modules/regex-quote: New file.
1585         Suggested by Reuben Thomas <rrt@sc3d.org>.
1586
1587 2010-09-24  Bruno Haible  <bruno@clisp.org>
1588
1589         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
1590         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
1591
1592 2010-09-23  Bruno Haible  <bruno@clisp.org>
1593
1594         setenv: Relax license.
1595         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
1596         Blake.
1597         Requested by Eric Blake.
1598
1599 2010-09-22  Bruno Haible  <bruno@clisp.org>
1600
1601         termios: Relax license.
1602         * modules/termios (License): Change to LGPLv2+.
1603         Requested by Eric Blake.
1604
1605 2010-09-22  Bruno Haible  <bruno@clisp.org>
1606
1607         threadlib: Allow the package to change the default to 'no'.
1608         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
1609         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
1610         Reported by Paul Eggert.
1611
1612 2010-09-22  Pádraig Brady  <P@draigbrady.com>
1613             Bruno Haible  <bruno@clisp.org>
1614
1615         Fix endless loop in mbmemcasecoll.
1616         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
1617         byte.
1618         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
1619
1620 2010-09-22  Bruno Haible  <bruno@clisp.org>
1621
1622         Tests for module 'memcoll'.
1623         * modules/memcoll-tests: New file.
1624         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
1625
1626         memcoll, xmemcoll: Clarify size vs. length.
1627         * modules/memcoll.c (memcoll0): Clarify specification.
1628         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
1629         passed to collate_error.
1630
1631 2010-09-22  Bruno Haible  <bruno@clisp.org>
1632
1633         Tests for module 'memcasecmp'.
1634         * modules/memcasecmp-tests: New file.
1635         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
1636
1637 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1638
1639         * lib/pthread.in.h: Add split double-inclusion guard, and include
1640         system <pthread.h> if there is one.  Use @@-style as in other
1641         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
1642         pthread.h doesn't.
1643         (pthread_mutexattr_destroy, pthread_mutexattr_init):
1644         (pthread_mutexattr_settype, pthread_mutex_trylock):
1645         New static inline functions, if there's no system <pthread.h>.
1646         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
1647         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
1648         Approximate with mutexes if the system lacks spinlocks, as in
1649         MacOS.
1650         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
1651         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
1652         @@-style.  Check for spinlocks separately.
1653         (gl_PTHREAD_DEFAULTS): New macro.
1654         * modules/pthread: Redo to use a more typical style for in.h files.
1655
1656 2010-09-21  Eric Blake  <eblake@redhat.com>
1657
1658         net_if: enhance tests
1659         * tests/test-net_if.c (main): Move signature checks earlier.
1660         Print failures to stderr.
1661         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
1662         Document the bug that we do not yet fix.
1663
1664 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1665
1666         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
1667         about gnulib, not GSS.
1668
1669 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1670
1671         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
1672         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
1673         for Emacs.
1674         * build-aux/pmccabe2html: Make Makefile.am example code more
1675         cut-and-paste friendly.
1676
1677 2010-09-21  Simon Josefsson  <simon@josefsson.org>
1678
1679         * tests/test-net_if.c: New file.
1680         * modules/net_if-tests: New file.
1681
1682 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1683
1684         pthread: add pthread_spin_destroy
1685         * lib/pthread.in.h (pthread_spin_destroy): New function.
1686
1687 2010-09-19  Bruno Haible  <bruno@clisp.org>
1688
1689         gnulib-tool: Fix --help output.
1690         * gnulib-tool (func_usage): Fix help message.
1691         Reported by Reuben Thomas <rrt@sc3d.org>.
1692
1693 2010-09-18  Jim Meyering  <meyering@redhat.com>
1694
1695         maint.mk: avoid unexpanded \n in two diagnostics
1696         * top/maint.mk (sc_prohibit_always_true_header_tests):
1697         Don't use a literal \n in a halt=... assignment.  It would not be
1698         expanded, and the two \n bytes would appear in the diagnostic output
1699         rather than the desired newline.  Use halt=$$(printf ... instead.
1700         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
1701
1702 2010-09-18  Bruno Haible  <bruno@clisp.org>
1703
1704         netinet_in: Doc tweak.
1705         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
1706         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1707
1708 2010-09-18  Jim Meyering  <meyering@redhat.com>
1709
1710         init.sh: correct an outdated comment
1711         * tests/init.sh (create_exe_shims_):  s/function/alias/
1712
1713         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
1714         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
1715         a file named "*.exe" is removed between the glob expansion and the
1716         processing of that oddly named file.
1717
1718 2010-09-17  Eric Blake  <eblake@redhat.com>
1719
1720         mirbsd: add some more support
1721         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
1722         in BSD family.
1723         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
1724         devices as OpenBSD.
1725         * m4/host-os.m4 (mirbsd): Add MirBSD.
1726
1727         tests: fix unportable assumption on sys/wait.h
1728         * tests/test-sys_wait.c (main): Relax test.
1729         * tests/test-stdlib.c (main): Likewise.
1730
1731         init.sh: accomodate directory with no .exes
1732         * tests/init.sh: Accomodate directory containing only scripts.
1733
1734         tests: avoid compiler warning
1735         * tests/test-stdlib.c (main): Use the variable.
1736
1737         fdutimens, fdutimensat: update signature, again
1738         * lib/utimens.h (gl_futimens): Delete, and move signature...
1739         (fdutimens): ...here.
1740         (fdutimensat): Rearrange signature.
1741         (lutimensat): Rename variable for clarity.
1742         * lib/fdutimensat.c (fdutimensat): Update signature.
1743         * lib/utimens.c (fdutimens): Likewise.
1744         (gl_futimens): Delete.
1745         (utimens, lutimens): Update callers.
1746         * lib/futimens.c (futimens): Likewise.
1747         * tests/test-fdutimensat.c: Likewise.
1748         * tests/test-utimens.c: Likewise.
1749         * tests/test-futimens.h: Update comment.
1750         * NEWS: Mention this.
1751         Suggested by Paul Eggert.
1752
1753 2010-09-17  Bruno Haible  <bruno@clisp.org>
1754
1755         Take over the maintenance of some older macros from Autoconf.
1756         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
1757         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
1758         GNU Autoconf.
1759         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
1760         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
1761
1762 2010-09-17  Eric Blake  <eblake@redhat.com>
1763
1764         fdutimensat: drop atflag validation
1765         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
1766         with valid fd, to close a race scenario where futimens is
1767         unsupported and FILE was replaced by a symlink.
1768         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
1769         accordingly.
1770         Suggested by Paul Eggert.
1771
1772 2010-09-16  Bruno Haible  <bruno@clisp.org>
1773
1774         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
1775         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
1776
1777 2010-09-16  Bruno Haible  <bruno@clisp.org>
1778
1779         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
1780         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
1781         login_tty exists.
1782         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1783
1784 2010-09-16  Bruno Haible  <bruno@clisp.org>
1785
1786         login_tty: Make the replacement code work on BSD systems.
1787         * lib/login_tty.c: Include <sys/ioctl.h>.
1788         (login_tty): Use ioctl TIOCSCTTY when available.
1789         * modules/login_tty (Depends-on): Add sys_ioctl.
1790         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1791
1792 2010-09-16  Bruno Haible  <bruno@clisp.org>
1793
1794         login_tty: Stricter unit test.
1795         * modules/login_tty-tests (Depends-on): Add tcgetsid.
1796         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
1797         and tcgetsid() after login_tty.
1798         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1799
1800 2010-09-16  Bruno Haible  <bruno@clisp.org>
1801
1802         New module 'tcgetsid'.
1803         * lib/tcgetsid.c: New file.
1804         * m4/tcgetsid.m4: New file.
1805         * modules/tcgetsid: New file.
1806         * modules/termios (Depends-on): Add c++defs, warn-on-use.
1807         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
1808         GNULIB_TCGETSID, HAVE_TCGETSID.
1809         * lib/termios.in.h: Include <sys/types.h>.
1810         (tcgetsid): New declaration.
1811         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
1812         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
1813         * doc/posix-functions/tcgetsid.texi: Mention the new module.
1814         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
1815
1816 2010-09-16  Bruno Haible  <bruno@clisp.org>
1817
1818         Tests for module 'termios'.
1819         * modules/termios-c++-tests: New file.
1820         * modules/termios-tests: New file.
1821         * tests/test-termios-c++.cc: New file.
1822         * tests/test-termios.c: New file.
1823
1824         New module 'termios'.
1825         * modules/termios: New file.
1826         * lib/termios.in.h: New file.
1827         * m4/termios_h.m4: New file.
1828         * doc/posix-headers/termios.texi: Mention the new module.
1829
1830 2010-09-16  Eric Blake  <eblake@redhat.com>
1831
1832         fdutimensat: add an atflag parameter
1833         * lib/fdutimensat.c (fdutimensat): Add new parameter.
1834         * lib/utimens.h (fdutimensat): Update prototype.
1835         * tests/test-fdutimensat.c: Adjust test to match.
1836         * NEWS: Document the change.
1837         Suggested by Paul Eggert.
1838
1839 2010-09-16  Bruno Haible  <bruno@clisp.org>
1840
1841         Fix typos in comments.
1842         * lib/striconveh.h: Fix typo in comment.
1843         * lib/login_tty.c (login_tty): Likewise.
1844
1845 2010-09-15  Bruno Haible  <bruno@clisp.org>
1846
1847         stdlib: clarify MirBSD WEXITSTATUS bug
1848         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
1849         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1850
1851 2010-09-15  Eric Blake  <eblake@redhat.com>
1852
1853         stdlib: work around MirBSD WEXITSTATUS bug
1854         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
1855         * modules/stdlib (Depends-on): Add sys_wait.
1856         * tests/test-sys_wait.c (main): Enhance test.
1857         * tests/test-stdlib.c (main): Likewise.
1858         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
1859
1860         docs: mention MacOS issue with WEXITSTATUS(constant)
1861         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
1862         issue.
1863         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1864
1865         strnlen: add tests
1866         * modules/strnlen-tests: New file.
1867         * tests/test-strnlen.c: Likewise.
1868
1869 2010-09-14  Bruno Haible  <bruno@clisp.org>
1870
1871         unistr/base: Avoid link errors when module 'libunistring' is also used.
1872         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
1873         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
1874         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
1875         Declare also when HAVE_LIBUNISTRING is set.
1876         Reported by Pádraig Brady <P@draigbrady.com>.
1877
1878 2010-09-14  Eric Blake  <eblake@redhat.com>
1879
1880         test-rawmemchr: make more robust
1881         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
1882         (Depends-on, configure.ac): Add needed prerequisites to use it.
1883         * modules/memchr-tests (Files, Depends-on, configure.ac):
1884         Likewise, to avoid implicit reliance on memchr module prereqs.
1885         * tests/test-memchr.c (main): Ensure proper masking.
1886         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
1887         reads.
1888
1889         memchr: detect glibc Alpha bug
1890         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
1891         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
1892         Alpha.
1893         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
1894         * tests/test-memchr.c (main): Enhance test.
1895         Reported by Nelson H. F. Beebe.
1896
1897 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1898
1899         fts, getcwd, glob: audit for dirfd returning -1
1900         * lib/fts.c (opendir): Remove #define; no longer used.
1901         (opendirat): New arg PDIR_FD.  All callers changed.
1902         (fts_build, _opendir2): Use new opendirat to avoid the need for
1903         dirfd, or for checking whether dirfd returns a negative value.
1904         Don't use opendir; always use openat followed by fdopendir.
1905         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
1906         it.
1907         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
1908         returns -1 here.
1909         * modules/fts (Depends-on): Remove dirfd.
1910         * modules/getcwd (Depends-on): Likewise.
1911
1912 2010-09-13  Eric Blake  <eblake@redhat.com>
1913
1914         float: fix broken MirBSD header
1915         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
1916         * doc/posix-headers/float.texi (float.h): Document it.
1917
1918 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1919
1920         fts: use O_NOFOLLOW to avoid race condition when opening a directory
1921         * lib/fts.c (opendirat): New arg extra_flags.
1922         (__opendir2): Use it to avoid following symlinks when opening
1923         a directory, if symlinks are not supposed to be followed.  See
1924         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
1925
1926         fdopendir: preserve argument fd before returning
1927         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
1928         (fdopendir_with_dup, fd_clone_opendir): New static functions.
1929         (fdopendir): Use them, arranging for FD to be open to the same
1930         directory that it was when it started.  (It might be temporarily
1931         closed while fdopendir is running, so this not thread- or
1932         signal-safe.)  Be careful to do the right thing even when file
1933         descriptors are scarce and dup fails with errno == EMFILE.  See
1934         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
1935
1936 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
1937
1938         regex: Pass the system regex if its only problem is 32-bit regoff_t.
1939         * NEWS: Document change.
1940         * m4/regex.m4: Disable test for regoff_t size.
1941
1942 2010-09-13  Jim Meyering  <meyering@redhat.com>
1943
1944         fts: don't operate on an invalid file descriptor after failed dup
1945         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
1946         negative file descriptor.
1947
1948 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
1949
1950         savedir: add streamsavedir, deprecate fdsavedir
1951         * NEWS: Mention deprecation of fdsavedir.
1952         * lib/savedir.c (streamsavedir): New extern function, whose name
1953         ends in "savedir" to be consistent with the others.  This differs
1954         from savedirstream in that it doesn't close its argument.  The
1955         next version of GNU tar will use this instead of fdsavedir, to
1956         avoid some race conditions and conserve file descriptors.
1957         (savedirstream): Reimplement as a wrapper around streamsavedir.
1958         (fdsavedir): Add a comment deprecating this function.  As far as
1959         I know, only GNU tar used it, and GNU tar doesn't need it any more.
1960         * lib/savedir.h (streamsavedir): New decl.
1961         (fdsavedir): Add a comment deprecating this.
1962
1963 2010-09-10  Bruno Haible  <bruno@clisp.org>
1964
1965         langinfo: Fix last commit.
1966         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
1967         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
1968         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1969
1970 2010-09-10  Bruno Haible  <bruno@clisp.org>
1971
1972         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
1973         * lib/progreloc.c (O_EXEC): Define fallback.
1974
1975 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1976
1977         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
1978         * NEWS: Document recent changes to fcntl-h.
1979         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
1980         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
1981         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
1982         Similarly for O_SEARCH; this last was already true, but not documented.
1983         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
1984         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
1985         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
1986         Likewise.
1987         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
1988         is zero, not whether it is defined.
1989         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
1990         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
1991         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
1992
1993 2010-09-10  Bruno Haible  <bruno@clisp.org>
1994
1995         langinfo, nl_langinfo: Fix for IRIX 5.3.
1996         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
1997         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
1998         HAVE_LANGINFO_YESEXPR.
1999         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
2000         HAVE_LANGINFO_YESEXPR.
2001         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
2002         HAVE_LANGINFO_T_FMT_AMPM is 0.
2003         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
2004         HAVE_LANGINFO_YESEXPR is 0.
2005         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
2006         NOEXPR.
2007         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
2008         * doc/posix-functions/nl_langinfo.texi: Likewise.
2009         Reported by Eric Blake.
2010
2011 2010-09-10  Bruno Haible  <bruno@clisp.org>
2012
2013         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
2014         * doc/glibc-functions/login_tty.texi: Mention the include file problem
2015         on FreeBSD 8.0 and OpenBSD 4.6.
2016         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
2017         * m4/pty_h.m4 (gl_PTY_H): Likewise.
2018         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
2019         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
2020         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
2021         ac_includes_default.
2022         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2023
2024 2010-09-09  Eric Blake  <eblake@redhat.com>
2025
2026         strsignal: work around NetBSD bug
2027         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
2028         * lib/string.in.h (includes): Likewise.
2029         * doc/posix-functions/strsignal.texi (strsignal): Document the
2030         bug.
2031         Reported by Nelson H. F. Beebe.
2032
2033         gnulib-tool: work with NetBSD /bin/sh
2034         * gnulib-tool (func_cache_var, func_cache_lookup_module)
2035         (func_get_description, func_get_comment, func_get_status)
2036         (func_get_notice, func_get_applicability, func_get_filelist)
2037         (func_get_dependencies, func_get_autoconf_early_snippet)
2038         (func_get_autoconf_snippet, func_get_automake_snippet)
2039         (func_get_include_directive, func_get_link_directive)
2040         (func_get_license, func_get_maintainer, func_import): Avoid
2041         shell syntax errors from parsing syntax extensions.
2042
2043 2010-09-09  Bruno Haible  <bruno@clisp.org>
2044
2045         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
2046         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
2047         a reliable way to determine whether the 'alias' command works.
2048
2049 2010-09-08  Jim Meyering  <meyering@redhat.com>
2050
2051         init.sh: penalize a set-x-impaired shell; don't disqualify it
2052         * tests/init.sh: Too many shells corrupt application stderr when
2053         you set -x, so we can't afford to disqualify them, since at least
2054         on Irix-6.5, that would disqualify all bourne shells.
2055         Instead, use a two-pass approach.
2056         On the first pass, try to find a shell that meets the stricter
2057         condition that set -x does not corrupt stderr.
2058         If no shell meets the stricter condition, retest each candidate
2059         shell, but without that extra condition.  Finally, when
2060         VERBOSE=yes is requested and set -x might cause trouble, simply
2061         issue a warning and refrain from enabling debug output.
2062
2063 2010-09-08  Eric Blake  <eblake@redhat.com>
2064
2065         unsetenv: fix OpenBSD bug
2066         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
2067         * doc/posix-functions/unsetenv.texi (unsetenv): Update
2068         documentation.
2069         Reported by Jim Meyering.
2070
2071         strtod: work around IRIX 6.5 bug
2072         * lib/strtod.c (strtod): Reparse number on shorter string if
2073         exponent parse was invalid.
2074         * tests/test-strtod.c (main): Add check for "0x1p 2".
2075         Reported by Tom G. Christensen.
2076
2077         getopt: optimize previous patch
2078         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
2079         empty variable.  Speed up awk script.
2080         Reported by Paolo Bonzini.
2081
2082 2010-09-08  Jim Meyering  <meyering@redhat.com>
2083
2084         test.sh: disqualify shells for which set -x corrupts stderr
2085         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
2086         and OpenBSD 4.7.  They make it so with "set -x", environment settings
2087         appear in stderr output.  For example, this command:
2088             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
2089         prints "P=1" on those two systems:
2090
2091 2010-09-08  Bruno Haible  <bruno@clisp.org>
2092
2093         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
2094         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
2095         commands, because some shells ignore redirections when there is an
2096         error in the command lookup.
2097         Reported by Eric Blake.
2098
2099 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
2100
2101         * lib/regex.h: Fix a mention of `regex_compile' (should be
2102         `re_compile_pattern').
2103         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
2104         (re_set_registers): Correct name of parameter in comment.
2105
2106         * doc/regex.texi: Add documentation for missing syntax flags.
2107         Remove commented-out documentation of defunct syntax option
2108         RE_NO_EMPTY_ALTS.
2109         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
2110         Add documentation of re_set_registers.
2111         Document trick to re-use a pattern buffer by setting fastmap manually.
2112         Update documentation of struct re_pattern_buffer per public members.
2113         Uncomment documentation of equivalence class operators and
2114         collating symbol operators, since they are now implemented,
2115         Explain leftmost-longest matching in relation to alternatives.
2116         Tidy documentation of substring matching.
2117         Remove POSIX documentation, which is done better in
2118         glibc, and refer the reader there. Keep BSD API documentation, as
2119         that is not readily available elsewhere.
2120
2121 2010-09-07  Eric Blake  <eblake@redhat.com>
2122
2123         getopt: handle POSIXLY_CORRECT set but not exported
2124         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
2125         export state of POSIXLY_CORRECT, due to bash set -o posix.
2126         Reported by Dustin J. Mitchell.
2127
2128 2010-09-05  Bruno Haible  <bruno@clisp.org>
2129
2130         gnulib-tool: Highlight the changed options.
2131         * gnulib-tool (func_usage): Display the --import, --add-import,
2132         --remove-import explanations in bold font.
2133
2134 2010-09-06  Karl Berry  <karl@gnu.org>
2135
2136         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
2137
2138 2010-09-05  Bruno Haible  <bruno@clisp.org>
2139
2140         uniwidth/width: Update comment.
2141         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
2142         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
2143
2144 2010-09-05  Bruno Haible  <bruno@clisp.org>
2145
2146         isinf, isnan: Relax license.
2147         * modules/isinf (License): Change from GPL to LGPL, with consent from
2148         Ben Pfaff.
2149         * modules/isnan (License): Likewise.
2150         Requested by Ludovic Courtès.
2151
2152 2010-09-04  Bruno Haible  <bruno@clisp.org>
2153
2154         gnulib-tool: Help migration from --import to --add-import or --update.
2155         * gnulib-tool: Emit a verbose error message when --import is used
2156         without any module name.
2157
2158 2010-09-04  Bruno Haible  <bruno@clisp.org>
2159
2160         Update doc about gnulib-tool.
2161         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
2162         'gnulib-tool --update' in more detail.
2163         Reported by Eric Blake.
2164
2165 2010-09-04  Bruno Haible  <bruno@clisp.org>
2166
2167         gnulib-tool: Change --import. New options --add/remove-import.
2168         * gnulib-tool: New options --add-import, --remove-import.
2169         (func_usage): Document them.
2170         (have_associative): Define always.
2171         (func_import): In import mode, don't merge the specified settings with
2172         the cached settings. Implement remove-import mode.
2173         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
2174         Explain when to use them versus --import.
2175         (Simple update): Use --add-import instead of --import.
2176         * NEWS: Mention the change.
2177
2178 2010-09-04  Bruno Haible  <bruno@clisp.org>
2179
2180         * doc/gnulib-tool.texi (Initial import): Update paragraph about
2181         separate gnulib.mk.
2182
2183 2010-09-04  Bruno Haible  <bruno@clisp.org>
2184
2185         gnulib-tool: Don't talk about CVS any more.
2186         * gnulib-tool (func_usage, func_import): Write "version control"
2187         instead of CVS.
2188
2189 2010-09-04  Jim Meyering  <meyering@redhat.com>
2190
2191         maint.mk: avoid obscure sc_copyright_check failure in coreutils
2192         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
2193         false positives (whose names may be ill-chosen) when searching
2194         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
2195         would cause a false-positive.
2196
2197         avoid coreutils "make distcheck" failure
2198         Coreutils tests with an absolute build directory name that contains
2199         a space.  Not quoting this directory name caused a failure.
2200         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
2201         * tests/test-vc-list-files-cvs.sh: Likewise.
2202
2203 2010-09-04  Bruno Haible  <bruno@clisp.org>
2204
2205         gnulib-tool: Avoid error when run in a package without Makefile.am.
2206         * gnulib-tool: When collecting the m4dirs in a package that does not
2207         have a Makefile.am, eliminate those directories that contain no
2208         gnulib-cache.m4. Fix expression that counts these directories.
2209
2210 2010-09-04  Bruno Haible  <bruno@clisp.org>
2211
2212         update-copyright test: Improve output when perl is missing or too old.
2213         * tests/test-update-copyright.sh: Move test of Perl version down after
2214         the test whether Perl exists. Provide an explanation relating Perl's
2215         error message to Automake's SKIP: message.
2216
2217 2010-09-04  Bruno Haible  <bruno@clisp.org>
2218
2219         Don't augment PATH in TESTS_ENVIRONMENT.
2220         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
2221         set abs_aux_dir instead of augmenting PATH.
2222         * modules/vc-list-files-tests (Makefile.am): Likewise.
2223         * tests/test-update-copyright.sh: Augment PATH here.
2224         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
2225         path_prepend_.
2226         * tests/test-vc-list-files-git.sh: Likewise.
2227
2228 2010-09-04  Jim Meyering  <meyering@redhat.com>
2229
2230         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
2231         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
2232
2233 2010-09-04  Bruno Haible  <bruno@clisp.org>
2234
2235         strdup: Fix compilation error in C++ mode.
2236         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
2237         the macro.
2238
2239 2010-09-04  Bruno Haible  <bruno@clisp.org>
2240
2241         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
2242         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
2243         macro into a function.
2244         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2245
2246 2010-09-04  Bruno Haible  <bruno@clisp.org>
2247
2248         Set PATH_SEPARATOR the same way autoconf does.
2249         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
2250         the value of PATH_SEPARATOR the same way autoconf-generated configure
2251         scripts do.
2252         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
2253         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
2254
2255 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2256
2257         Set PATH_SEPARATOR the same way autoconf does.
2258         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
2259         the same way autoconf-generated configure scripts do.
2260         * posix-modules: Likewise.
2261
2262 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2263
2264         hash: fix safe_hasher const typo
2265         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
2266         const; otherwise, there is a type error later.
2267
2268 2010-09-02  Jim Meyering  <meyering@redhat.com>
2269
2270         test-update-copyright.sh: require perl 5.8.0
2271         * tests/test-update-copyright.sh: Require 5.8.0,
2272         which Tom G. Christensen has confirmed is adequate,
2273         while 5.6.1 is not.
2274
2275 2010-09-02  Eric Blake  <eblake@redhat.com>
2276
2277         tests: init.sh improvements for re-exec'ing with zsh
2278         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
2279         -vx through shell re-exec.
2280         Reported by Tom G. Christensen.
2281
2282         wctype: fix typo in previous commit
2283         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
2284         Reported by Ludovic Courtès.
2285
2286 2010-09-02  Jim Meyering  <meyering@redhat.com>
2287
2288         test-update-copyright.sh: skip test if Perl is too old
2289         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
2290         Reported by Tom G. Christensen.
2291
2292 2010-09-02  Bruno Haible  <bruno@clisp.org>
2293
2294         wctype: Avoid compilation error on IRIX 6.5.30.
2295         * lib/wctype.in.h (iswblank): Declare with a replacement if
2296         REPLACE_ISWBLANK is set.
2297         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
2298         declared. Set REPLACE_ISWBLANK.
2299         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
2300         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
2301         * doc/posix-headers/wctype.texi: Likewise.
2302         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2303
2304 2010-09-01  Bruno Haible  <bruno@clisp.org>
2305
2306         New module 'socketlib'.
2307         * modules/socketlib: New file.
2308         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
2309         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
2310         * modules/sockets (Depends-on): Add socketlib.
2311         Suggested by Sam Steingold <sds@gnu.org>.
2312
2313 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2314
2315         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
2316
2317         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
2318         when one needs search access to a directory but not read access.
2319         On systems where it is available, it works in some cases where
2320         O_RDONLY does not, namely on directories that are searchable but
2321         not readable, and which need only to be searchable.  If O_SEARCH
2322         is not available, fall back to the traditional method of using
2323         O_RDONLY.
2324
2325         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
2326         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
2327         when opening a directory that needs only to be searchable.
2328         * lib/chdir-safer.c (chdir_no_follow): Likewise.
2329         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
2330         * lib/openat-proc.c (openat_proc_name): Likewise.
2331         * lib/openat.c (openat_needs_fchdir): Likewise.
2332         * lib/save-cwd.c (save_cwd): Likewise.
2333         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
2334
2335 2010-08-28  Bruno Haible  <bruno@clisp.org>
2336
2337         New module 'host-cpu-c-abi'.
2338         * modules/host-cpu-c-abi: New file.
2339         * m4/host-cpu-c-abi.m4: New file, based on part of
2340         clisp/src/m4/general.m4.
2341         Requested by Sam Steingold <sds@gnu.org>.
2342
2343 2010-08-31  Eric Blake  <eblake@redhat.com>
2344         and Jim Meyering  <meyering@redhat.com>
2345
2346         hash: factor, and guard against misbehaving hasher function
2347         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
2348         of table->hasher's return value.  Also protect against a hash value
2349         so large that adding it to table->bucket results in a NULL pointer.
2350         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
2351         Use it in place of open-coded check-and-abort.
2352
2353 2010-08-30  Bruno Haible  <bruno@clisp.org>
2354
2355         hash: silence spurious clang warning
2356         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
2357         Reported by Eric Blake.
2358
2359 2010-08-30  Eric Blake  <eblake@redhat.com>
2360
2361         strstr, memmem, strcasestr: avoid leaked shell message
2362         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
2363         FreeBSD.
2364         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2365         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2366
2367         tests: silence clang warning
2368         * tests/test-malloca.c (do_allocation): Avoid dead store.
2369
2370 2010-08-29  Bruno Haible  <bruno@clisp.org>
2371
2372         gettext: Fix recent mistake.
2373         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
2374
2375 2010-08-29  Bruno Haible  <bruno@clisp.org>
2376
2377         selinux-h: Offer a --without-selinux option.
2378         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
2379         --without-selinux was specified, skip all tests and define
2380         HAVE_SELINUX_SELINUX_H to 0.
2381         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
2382         set LIB_SELINUX to empty.
2383         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
2384         gl_LIBSELINUX. If --without-selinux was specified, replace
2385         selinux/context.h.
2386         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
2387
2388 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2389             Bruno Haible  <bruno@clisp.org>
2390
2391         Make the module 'realloc-gnu' work again on AIX and OSF/1.
2392         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
2393         of HAVE_REALLOC.
2394         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
2395         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
2396         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
2397         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2398
2399 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2400             Bruno Haible  <bruno@clisp.org>
2401
2402         Make the module 'calloc-gnu' work again on AIX and OSF/1.
2403         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
2404         HAVE_CALLOC.
2405         * lib/xmalloc.c: Update accordingly.
2406         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
2407         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
2408         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2409
2410 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2411             Bruno Haible  <bruno@clisp.org>
2412
2413         Make the module 'malloc-gnu' work again on AIX and OSF/1.
2414         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
2415         HAVE_MALLOC.
2416         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
2417         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
2418         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2419
2420 2010-08-29  Bruno Haible  <bruno@clisp.org>
2421
2422         Update modules list.
2423         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
2424         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
2425         (String handling <string.h>): Add astrxfrm.
2426         (File system functions): Add readlinkat.
2427
2428 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2429
2430         Tests for module 'realloc-gnu'.
2431         * modules/realloc-gnu-tests: New file.
2432         * tests/test-realloc-gnu.c: New file.
2433
2434         Tests for module 'calloc-gnu'.
2435         * modules/calloc-gnu-tests: New file.
2436         * tests/test-calloc-gnu.c: New file.
2437
2438         Tests for module 'malloc-gnu'.
2439         * modules/malloc-gnu-tests: New file.
2440         * tests/test-malloc-gnu.c: New file.
2441
2442 2010-08-28  Bruno Haible  <bruno@clisp.org>
2443
2444         Rename module 'realloc' -> 'realloc-gnu'.
2445         * modules/realloc-gnu: New file, copied from modules/realloc.
2446         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
2447         obsolete.
2448         * modules/mgetgroups (Depends-on): Update.
2449         * doc/posix-functions/realloc.texi: Update.
2450         * NEWS: Mention the change.
2451
2452         Rename module 'calloc' -> 'calloc-gnu'.
2453         * modules/calloc-gnu: New file, copied from modules/calloc.
2454         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
2455         obsolete.
2456         * doc/posix-functions/calloc.texi: Update.
2457         * NEWS: Mention the change.
2458
2459         Rename module 'malloc' -> 'malloc-gnu'.
2460         * modules/malloc-gnu: New file, copied from modules/malloc.
2461         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
2462         obsolete.
2463         * modules/argp (Depends-on): Update.
2464         * modules/regex (Depends-on): Update.
2465         * doc/posix-functions/malloc.texi: Update.
2466         * NEWS: Mention the change.
2467
2468 2010-08-28  Eric Blake  <eblake@redhat.com>
2469
2470         pread, pwrite: add missing dependency
2471         * modules/pread (Depends-on): Add extensions.
2472         * modules/pwrite (Depends-on): Likewise.
2473
2474 2010-08-28  Bruno Haible  <bruno@clisp.org>
2475
2476         unistr/u*-strchr: Fix tests dependencies.
2477         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
2478         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
2479         Reported by Ian Beckwith <ianb@erislabs.net>.
2480
2481 2010-08-28  Bruno Haible  <bruno@clisp.org>
2482
2483         read-file: Don't occupy too much unused memory.
2484         * lib/read-file.c (fread_file): Shrink the buffer at the end.
2485
2486 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
2487             Eric Blake  <eblake@redhat.com>
2488             Bruno Haible  <bruno@clisp.org>
2489
2490         read-file: Avoid memory reallocations with regular files.
2491         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
2492         (fread_file): With regular files, use the remaining length as the
2493         initial buffer size.  Check against overflow.
2494         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
2495         sys_stat.
2496
2497 2010-08-28  Bruno Haible  <bruno@clisp.org>
2498
2499         ftello: Relax license.
2500         * modules/ftello (License): Relax to LGPLv2+.
2501         Reported by Eric Blake.
2502
2503 2010-08-28  Bruno Haible  <bruno@clisp.org>
2504
2505         Avoid relocwrapper link errors due to gnulib replacement functions.
2506         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
2507         function.
2508         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2509
2510 2010-08-28  Bruno Haible  <bruno@clisp.org>
2511
2512         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
2513         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
2514         defined.
2515         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
2516         Suggested by Eric Blake.
2517
2518 2010-08-28  Bruno Haible  <bruno@clisp.org>
2519
2520         sys_socket, netdb: Ensure socklen_t gets defined.
2521         * modules/sys_socket (Depends-on): Add socklen.
2522         * modules/netdb (Depends-on): Likewise.
2523         * modules/getaddrinfo (Depends-on): Remove socklen.
2524         * modules/getsockopt (Depends-on): Likewise.
2525         * modules/setsockopt (Depends-on): Likewise.
2526         * tests/test-sys_socket.c: Check that socklen_t is defined.
2527         * tests/test-netdb.c: Likewise.
2528         * m4/socklen.m4: Update comments.
2529         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2530
2531 2010-08-27  Eric Blake  <eblake@redhat.com>
2532
2533         login_tty: add missing dependency
2534         * modules/login_tty (Depends-on): Add pty.
2535
2536 2010-08-26  Eric Blake  <eblake@redhat.com>
2537
2538         lib-symbol-versions: fix m4 quoting
2539         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
2540         format for AC_LINK_IFELSE.
2541
2542         glob: fix compile test
2543         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
2544
2545         btowc: fix missing file
2546         * modules/btowc (Files): Also ship locale-fr.m4.
2547
2548         lseek: fix link test
2549         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
2550         AC_LINK_IFELSE.
2551
2552         include_next: silence autoconf 2.68 warning
2553         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
2554         AC_COMPILE_IFELSE as special.
2555         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
2556         autoconf < 2.68.
2557
2558         acl: fix compilation test
2559         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
2560         AC_COMPILE_IFELSE.
2561
2562 2010-08-26  Bruno Haible  <bruno@clisp.org>
2563
2564         Modernize AC_TRY_RUN invocations.
2565         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
2566         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2567         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
2568         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
2569         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
2570         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2571         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2572         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2573         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2574         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2575         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2576         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2577         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2578         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2579         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2580         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2581         gl_MBRLEN_NUL_RETVAL): Likewise.
2582         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2583         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
2584         Likewise.
2585         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2586         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2587         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2588         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2589         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
2590         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
2591         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
2592         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2593         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
2594         Likewise.
2595         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
2596         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
2597         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2598         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2599         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2600         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2601         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2602         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
2603         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2604         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2605
2606 2010-08-26  Bruno Haible  <bruno@clisp.org>
2607
2608         Modernize AC_TRY_LINK invocations.
2609         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
2610         AC_TRY_LINK.
2611         * m4/argp.m4 (gl_ARGP): Likewise.
2612         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2613         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2614         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
2615         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
2616         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
2617         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
2618         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2619         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2620         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
2621         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
2622         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
2623         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
2624         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
2625         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2626         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
2627         * m4/hostent.m4 (gl_HOSTENT): Likewise.
2628         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2629         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
2630         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
2631         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
2632         Likewise.
2633         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
2634         Likewise.
2635         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
2636         Likewise.
2637         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
2638         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
2639         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
2640         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2641         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2642         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
2643         * m4/servent.m4 (gl_SERVENT): Likewise.
2644         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2645         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2646         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2647         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2648         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2649         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2650         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2651         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2652         * modules/tsearch-tests (configure.ac): Likewise.
2653
2654 2010-08-26  Bruno Haible  <bruno@clisp.org>
2655
2656         Modernize AC_TRY_COMPILE invocations.
2657         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
2658         AC_TRY_COMPILE.
2659         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
2660         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
2661         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
2662         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
2663         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
2664         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
2665         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2666         * m4/lock.m4 (gl_LOCK): Likewise.
2667         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
2668         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2669         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
2670         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2671         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
2672         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
2673         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
2674         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
2675         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
2676         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
2677         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
2678         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
2679         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
2680         extraneous semicolon.
2681
2682 2010-08-26  Jim Meyering  <meyering@redhat.com>
2683
2684         stat-time: relax license LGPL
2685         * modules/stat-time (License): Change from GPL to LGPL,
2686         with consent from all contributors, for use in libguile.
2687         Requested by Ludovic Courtès.
2688
2689 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
2690
2691         poll: return immediately on POLLHUP.
2692         * lib/poll.c (poll): Always set timeout before wait_timeout is
2693         computed.
2694
2695 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2696
2697         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
2698         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
2699         rmdir ("dir/.//"), unlinkat.
2700
2701 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2702
2703         stdbool: avoid spurious failure with modern xlc
2704         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2705
2706 2010-08-24  Bruno Haible  <bruno@clisp.org>
2707
2708         getloadavg: simplify code
2709         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
2710         gl_have_func. Update comments.
2711
2712 2010-08-24  Eric Blake  <eblake@redhat.com>
2713
2714         getloadavg: don't define SVR4 on cygwin
2715         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
2716         only define SVR4 when -lkvm is required.
2717         Reported by Yaakov Selkowitz.
2718
2719 2010-08-24  Bruno Haible  <bruno@clisp.org>
2720
2721         priv-set: fix comment
2722         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
2723
2724 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2725
2726         priv-set: fix comments
2727         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
2728         to match code, as suggested by David Bartley in:
2729         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
2730
2731 2010-08-23  Eric Blake  <eblake@redhat.com>
2732
2733         stdbool: avoid rejecting clang
2734         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2735         * tests/test-stdbool.c: Enable more tests if using the system
2736         <stdbool.h> instead of the gnulib replacement.
2737         (main): Move xlc bug test to a runtime test for all compilers.
2738         Reported by Anders Kaseorg.
2739
2740         argz: fix shell quoting issue
2741         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
2742         Reported by Charles Wilson.
2743
2744 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
2745             Erik Faye-Lund <kusmabite@gmail.com>
2746
2747         poll, select: handle ERROR_BROKEN_PIPE.
2748         * lib/poll.c (win32_compute_revents): Return POLLHUP when
2749         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2750         * lib/select.c (win32_compute_revents): Do not mark a pipe
2751         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2752
2753 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
2754
2755         fts: allow compilation with C++
2756         * lib/fts_.h: Specify extern "C" linkage with C++.
2757
2758 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2759
2760         Fix gnulib-tool sed script de-commentation for AIX sed.
2761         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
2762         sed.
2763
2764 2010-08-17  Eric Blake  <eblake@redhat.com>
2765
2766         test-stddef: test for (some) offsetof bugs
2767         * tests/test-stddef.c: Enhance test to ensure correct type of
2768         offsetof.
2769         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
2770         that we are not fixing at this time.
2771
2772 2010-08-15  Bruno Haible  <bruno@clisp.org>
2773
2774         stpncpy: Allow stpncpy to be defined as a macro.
2775         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
2776         if it's already correctly declared.
2777         * lib/string.in.h (stpncpy): Undefine before redefining.
2778         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
2779
2780 2010-08-14  Bruno Haible  <bruno@clisp.org>
2781
2782         Rename module 'memxfrm' to 'amemxfrm'.
2783         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
2784         (amemxfrm): Renamed from memxfrm.
2785         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
2786         (amemxfrm): Renamed from memxfrm.
2787         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
2788         * NEWS: Mention the change.
2789         * MODULES.html.sh (String handling <string.h>): Update.
2790         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
2791         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
2792         * lib/unicase/u16-casexfrm.c: Likewise.
2793         * lib/unicase/u32-casexfrm.c: Likewise.
2794         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
2795         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
2796         * lib/uninorm/u16-normxfrm.c: Likewise.
2797         * lib/uninorm/u32-normxfrm.c: Likewise.
2798         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
2799         memxfrm.
2800         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
2801         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
2802         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
2803         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
2804         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
2805         Suggested by Paul Eggert.
2806
2807 2010-08-14  Bruno Haible  <bruno@clisp.org>
2808
2809         Tests for module 'astrxfrm'.
2810         * modules/astrxfrm-tests: New file.
2811         * tests/test-astrxfrm.c: New file.
2812
2813         New module 'astrxfrm'.
2814         * lib/astrxfrm.h: New file.
2815         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
2816         * modules/astrxfrm: New file.
2817
2818 2010-08-14  Reuben Thomas <rrt@sc3d.org>
2819
2820         regex: Tweak doc.
2821         * doc/regex.texi (Overview): Don't mention regex.c.
2822         (GNU Regular Expression Compiling): Likewise.
2823         (Match-end-of-line Operator): Mention 'not_eol'.
2824
2825 2010-08-14  Brian Gough  <bjg@gnu.org>
2826             Bruno Haible  <bruno@clisp.org>
2827
2828         git-merge-changelog: add doc relating to use with bzr and hg.
2829         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
2830
2831 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
2832
2833         pthread: fix pthread.h creation for srcdir != builddir
2834         * modules/pthread (Makefile.am): Fix the rule to work also in a
2835         non-srcdir build.
2836
2837 2010-08-13  Karl Berry  <karl@gnu.org>
2838
2839         * doc/regex.texi (Predefined Syntaxes): @smallexample.
2840         * doc/posix-*/*: force line break before @url of POSIX
2841         specifications.
2842         Suggested by Werner Lemberg.
2843
2844 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2845
2846         strtod: fix const diagnostic
2847         * lib/strtod.c (strtod): Don't assign const char * to char *,
2848         as this elicits a warning from GCC when warnings are enabled.
2849
2850 2010-08-10  Pádraig Brady <P@draigbrady.com>
2851         and Eric Blake  <eblake@redhat.com>
2852
2853         copy-acl: ignore ENOTSUP on HP-UX
2854         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
2855         so that it is available for HP-UX.
2856         * lib/copy-acl.c (qcopy_acl): Use it.
2857         Reported by Patrick M. Callahan.
2858
2859 2010-08-10  Eric Blake  <eblake@redhat.com>
2860
2861         open, chown: relax license
2862         * modules/open (License): Change to LGPLv2+, with consent by all
2863         authors, for use in augeas.
2864         * modules/chown (License): Likewise.
2865         * modules/lchown (Likewise): Likewise.
2866         Requested by Adam Stokes.
2867
2868 2010-08-09  Karl Berry  <karl@gnu.org>
2869
2870         * build-aux/ar-lib: new file, import from Automake.
2871         * config/srclist.txt: autocheck for updates.
2872
2873 2010-08-09  Eric Blake  <eblake@redhat.com>
2874
2875         readlinkat: adjust client modules
2876         * modules/areadlinkat (Depends-on): Use readlinkat, not
2877         symlinkat.
2878         * modules/areadlinkat-with-size (Depends-on): Likewise.
2879
2880         mknod: be more vocal about danger of running tests as root
2881         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
2882         root, since that is just asking for problems.
2883         Suggested by Bruno Haible, based on a report by Rainer Tammer.
2884
2885         readlinkat: split into its own module
2886         * modules/symlinkat: Split readlinkat...
2887         * modules/readlinkat: ...into separate module.
2888         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
2889         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
2890         * lib/symlinkat.c (readlinkat): Move...
2891         * lib/readlinkat.c: ...into new file.
2892         * modules/symlinkat-tests: Split readlinkat test...
2893         * modules/readlinkat-tests: ...into separate module.
2894         * tests/test-symlinkat.c: Split...
2895         * tests/test-readlinkat.c: ...into new file.
2896         * NEWS: Document the split.
2897         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
2898         * lib/unistd.in.h (readlinkat): Likewise.
2899         Suggested by Bruno Haible.
2900
2901 2010-08-08  Bruno Haible  <bruno@clisp.org>
2902
2903         memxfrm: Speed up.
2904         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
2905         that usually only one call to strxfrm is necessary for each string
2906         part.
2907         Reported by Paul Eggert <eggert@cs.ucla.edu>.
2908
2909 2010-08-07  Karl Berry  <karl@gnu.org>
2910
2911         * doc/posix-headers/limits.texi,
2912         * doc/posix-functions/malloc.texi,
2913         * doc/posix-functions/strsignal.texi: missing @item.
2914         * doc/ld-version-script.texi: spurious leading i.
2915         * doc/regex.texi (Interval Operators): no commas inside @var.
2916
2917 2010-08-01  Bruno Haible  <bruno@clisp.org>
2918
2919         Integrate the regex documentation.
2920         * doc/gnulib.texi: Define 'cn' index.
2921         (Regular expressions): New a chapter that includes regex.texi and
2922         regexprops-generic.texi.
2923         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
2924         syntax.
2925
2926         Whitespace cleanup.
2927         * doc/regex.texi: Remove trailing spaces.
2928
2929         Add regex documentation.
2930         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
2931         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
2932         Written by Kathy A. Hargreaves and Karl Berry.
2933
2934 2010-08-01  Bruno Haible  <bruno@clisp.org>
2935
2936         link: Update documentation.
2937         * doc/posix-functions/link.texi: Update regarding Solaris.
2938
2939 2010-07-31  Bruno Haible  <bruno@clisp.org>
2940
2941         Update modules list.
2942         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
2943         (String handling <string.h>): Add memcmp2, memxfrm.
2944         (Container data structures): Add xlist, xsublist, xoset.
2945         (Core language properties): Add alignof, unused-parameter.
2946         (Process control, Numeric conversion functions <stdlib.h>): Renamed
2947         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
2948         (Unibyte characters <ctype.h>): New section.
2949         (String handling <string.h>): New section.
2950         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
2951         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
2952         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
2953         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
2954         tan, tanh, tanl, y0, y1, yn.
2955         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
2956         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
2957         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
2958         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
2959         unlockpt, vdprintf, vdprintf-posix.
2960         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
2961         (File system functions): Add concat-filename, sys_file, sys_ioctl,
2962         xconcat-filename.
2963         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
2964         getdtablesize, pipe2, pipe2-safer.
2965         (Security): New section.
2966         (Networking functions): Add accept4.
2967         (Signal handling): Add sigpipe.
2968         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
2969         mbmemcasecoll.
2970         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
2971         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
2972         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
2973         pipe-filter-ii.
2974         (Misc): Add argp-version-etc, login_tty, parse-duration.
2975
2976 2010-07-31  Bruno Haible  <bruno@clisp.org>
2977
2978         Improve doc in MODULES.html.
2979         * modules/linkat (Description): Add the word "function".
2980         * modules/mkfifo (Description): Likewise.
2981         * modules/mknod (Description): Likewise.
2982         * modules/remove (Description): Likewise.
2983         * modules/renameat (Description): Likewise.
2984         * modules/stat (Description): Likewise.
2985         * modules/symlink (Description): Likewise.
2986         * modules/unlink (Description): Likewise.
2987
2988 2010-07-31  Bruno Haible  <bruno@clisp.org>
2989
2990         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
2991         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
2992         option --enable/disable-c++ instead of --enable/disable-cxx.
2993         * NEWS: Mention the change.
2994
2995 2010-07-31  Bruno Haible  <bruno@clisp.org>
2996
2997         readlink, areadlink: Relax test a bit.
2998         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
2999         alternative to ENOTDIR.
3000         * tests/test-areadlink.h (test_areadlink): Likewise.
3001         Reported by Rainer Tammer.
3002
3003 2010-07-31  Bruno Haible  <bruno@clisp.org>
3004
3005         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
3006         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
3007         character, perform the search using U_STRCHR.
3008         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
3009         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
3010         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
3011         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
3012         Suggested by Paolo Bonzini.
3013
3014 2010-07-31  Bruno Haible  <bruno@clisp.org>
3015
3016         unistr/u*-strstr: Fix dependencies.
3017         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
3018         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
3019         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
3020
3021 2010-07-31  Bruno Haible  <bruno@clisp.org>
3022
3023         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
3024         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
3025         the beginning of the loop.
3026         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
3027         cases in 'switch' statement.
3028
3029         unistr/u8-strchr: Fix several bugs.
3030         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
3031         the string. When not found, return NULL, not a pointer near the end.
3032
3033         More tests for unistr/u8-strchr.
3034         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
3035         that the function does not read past the first occurrence of the byte
3036         being searched.
3037         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
3038         * tests/unistr/test-u16-strchr.c (main): New function.
3039         * tests/unistr/test-u32-strchr.c (main): New function.
3040
3041 2010-07-31  Bruno Haible  <bruno@clisp.org>
3042
3043         posix-modules: Ignore backup files of documentation files.
3044         * posix-modules: grep only through files named *.texi.
3045
3046 2010-07-31  Bruno Haible  <bruno@clisp.org>
3047
3048         symlinkat: Fix documentation.
3049         * doc/posix-functions/readlinkat.texi: Fix module name.
3050
3051 2010-07-31  Bruno Haible  <bruno@clisp.org>
3052
3053         fchownat: Replace also when chown has the trailing slash bug.
3054         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
3055         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
3056         introduced on 2010-04-10.
3057         Reported by Rainer Tammer.
3058
3059 2010-07-31  Bruno Haible  <bruno@clisp.org>
3060
3061         linkat: Work around AIX 7.1 bug.
3062         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
3063         whether linkat handles trailing slash correctly. If not, replace linkat
3064         and define LINKAT_TRAILING_SLASH_BUG.
3065         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
3066         check whether (fd1,file1) points to a directory if file1 or file2 ends
3067         in a slash. Code taken from lib/link.c.
3068         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
3069         Reported by Rainer Tammer.
3070
3071 2010-07-31  Bruno Haible  <bruno@clisp.org>
3072
3073         Correctly determine whether pow is available in libc on AIX 7 with xlc.
3074         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
3075         This disables an xlc optimization that was causing wrong test results.
3076         Reported by Rainer Tammer.
3077
3078 2010-07-31  Bruno Haible  <bruno@clisp.org>
3079
3080         iconv: Work around AIX 6.1..7.1 bug.
3081         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
3082         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
3083         cross-compiling, guess no on all versions of AIX.
3084         Reported by Rainer Tammer.
3085
3086 2010-07-31  Bruno Haible  <bruno@clisp.org>
3087
3088         readlink: Relax test a bit.
3089         * tests/test-readlink.h (test_readlink): Allow different errno value
3090         when readlink is called with a file name that ends in / and refers to
3091         a file.
3092         Suggested by Eric Blake.
3093         Reported by Rainer Tammer.
3094
3095 2010-07-31  Bruno Haible  <bruno@clisp.org>
3096
3097         copysign: Does not require -lm on glibc systems.
3098         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
3099         gl_COMMON_DOUBLE_MATHFUNC.
3100         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
3101
3102 2010-07-31  Bruno Haible  <bruno@clisp.org>
3103
3104         duplocale: Work around AIX 7.1 bug.
3105         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
3106         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
3107         * lib/duplocale.c (rpl_duplocale): Update comment.
3108         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
3109         Reported by Rainer Tammer.
3110
3111 2010-07-30  Bruno Haible  <bruno@clisp.org>
3112
3113         dirfd: Avoid link error on AIX 7.1.
3114         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
3115         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
3116         exist, set REPLACE_DIRFD.
3117         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
3118         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
3119         * doc/posix-functions/dirfd.texi: Update.
3120         Reported by Rainer Tammer.
3121
3122 2010-07-30  Eric Blake  <eblake@redhat.com>
3123
3124         strtod: next round of AIX fixes
3125         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
3126         exponent.
3127         * tests/test-strtod.c (main): Enhance tests.
3128         * doc/posix-functions/strtod.texi (strtod): Document next bug.
3129         Reported by Rainer Tammer.
3130
3131         futimens: fix configure check
3132         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
3133         Reported by Bruno Haible.
3134
3135 2010-07-30  Bruno Haible  <bruno@clisp.org>
3136
3137         getline: Update regarding AIX.
3138         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
3139         Reported by Rainer Tammer.
3140
3141 2010-07-30  Bruno Haible  <bruno@clisp.org>
3142
3143         wcwidth: Drop replacement on AIX 7.
3144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
3145         AIX 7.
3146         Reported by Rainer Tammer.
3147
3148 2010-07-30  Bruno Haible  <bruno@clisp.org>
3149
3150         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
3151         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
3152         a 'char *'.
3153         Reported by Rainer Tammer.
3154
3155 2010-07-30  Bruno Haible  <bruno@clisp.org>
3156
3157         unlink: Update regarding AIX.
3158         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
3159         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
3160         Reported by Rainer Tammer.
3161
3162 2010-07-30  Bruno Haible  <bruno@clisp.org>
3163
3164         symlink: Update regarding AIX.
3165         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
3166         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
3167         Reported by Rainer Tammer.
3168
3169 2010-07-30  Bruno Haible  <bruno@clisp.org>
3170
3171         strndup: Update regarding AIX.
3172         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
3173         AIX 7.
3174         Reported by Rainer Tammer.
3175
3176 2010-07-30  Bruno Haible  <bruno@clisp.org>
3177
3178         stat: Update regarding AIX.
3179         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
3180         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
3181         Reported by Rainer Tammer.
3182
3183 2010-07-30  Bruno Haible  <bruno@clisp.org>
3184
3185         truncl: Fix autoconf test.
3186         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
3187         whether truncl works.
3188         Reported by Rainer Tammer.
3189
3190 2010-07-30  Bruno Haible  <bruno@clisp.org>
3191
3192         round: Update regarding AIX.
3193         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
3194         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
3195         Reported by Rainer Tammer.
3196
3197 2010-07-30  Bruno Haible  <bruno@clisp.org>
3198
3199         rename: Update regarding AIX.
3200         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
3201         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
3202         Reported by Rainer Tammer.
3203
3204 2010-07-30  Bruno Haible  <bruno@clisp.org>
3205
3206         printf.m4: Update regarding AIX.
3207         * m4/printf.m4: Update comments regarding AIX.
3208         Reported by Rainer Tammer.
3209
3210 2010-07-30  Bruno Haible  <bruno@clisp.org>
3211
3212         iconv: Update regarding AIX.
3213         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
3214         AIX 7.
3215         Reported by Rainer Tammer.
3216
3217 2010-07-30  Bruno Haible  <bruno@clisp.org>
3218
3219         getopt: Update regarding AIX.
3220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
3221         no on AIX.
3222         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
3223         Reported by Rainer Tammer.
3224
3225 2010-07-30  Bruno Haible  <bruno@clisp.org>
3226
3227         ldexpl; Update regarding AIX.
3228         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
3229         on AIX 7.
3230         Reported by Rainer Tammer.
3231
3232 2010-07-30  Bruno Haible  <bruno@clisp.org>
3233
3234         frexpl: Update regarding AIX.
3235         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
3236         on AIX 7.
3237         Reported by Rainer Tammer.
3238
3239 2010-07-30  Bruno Haible  <bruno@clisp.org>
3240
3241         open, fopen: Update regarding AIX.
3242         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
3243         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3244         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
3245         * doc/posix-functions/fopen.texi: Likewise.
3246         Reported by Rainer Tammer.
3247
3248 2010-07-30  Bruno Haible  <bruno@clisp.org>
3249
3250         chown: Update doc regarding AIX.
3251         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
3252         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
3253         Reported by Rainer Tammer.
3254
3255 2010-07-30  Eric Blake  <eblake@redhat.com>
3256
3257         strtod: fix bug in replacement function on AIX
3258         * lib/strtod.c (strtod): Special case broken "0x" parse in
3259         underlying strtod.
3260         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
3261         * doc/posix-functions/strtod.texi (strtod): Likewise.
3262         Reported by Rainer Tammer.
3263
3264 2010-07-30  Bruno Haible  <bruno@clisp.org>
3265
3266         mbrlen: Fix cross-compilation guess for AIX.
3267         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
3268         guess. Leftover from 2008-12-22.
3269
3270 2010-07-30  Bruno Haible  <bruno@clisp.org>
3271
3272         mbrtowc: Fix cross-compilation guess for AIX.
3273         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
3274         guess. Leftover from 2008-12-21.
3275
3276 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
3277
3278         init.sh: work around trap limitation of some shells
3279         * tests/init.sh (setup_): Move exit trap outside of shell function.
3280
3281 2010-07-29  Eric Blake  <eblake@redhat.com>
3282
3283         strtod: aid debugging
3284         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
3285         understanding why strtod is rejected.
3286
3287 2010-07-28  Bruno Haible  <bruno@clisp.org>
3288
3289         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
3290         * lib/unistr/u8-chr.c: Include <string.h>.
3291         * tests/unistr/test-u8-chr.c: Likewise.
3292         * tests/unistr/test-u16-chr.c: Likewise.
3293         * tests/unistr/test-u32-chr.c: Likewise.
3294         * tests/unistr/test-u8-strchr.c: Likewise.
3295         * tests/unistr/test-u16-strchr.c: Likewise.
3296         * tests/unistr/test-u32-strchr.c: Likewise.
3297         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
3298         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3299         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
3300         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
3301
3302 2010-07-28  Bruno Haible  <bruno@clisp.org>
3303
3304         Use spaces for indentation, not tabs.
3305         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3306
3307 2010-07-27  Bruno Haible  <bruno@clisp.org>
3308
3309         mbspcasecmp: Fix function specification.
3310         * lib/string.in.h (mbspcasecmp): Fix specification comment.
3311         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
3312         Reported by Eric Blake <eblake@redhat.com>.
3313
3314 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
3315
3316         timespec: use cast and not conditional, as truncation isn't possible
3317         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
3318         instead of a conditional.  Comment about the situation in more detail.
3319         This undoes most of the 2009-10-29 patch.
3320
3321 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
3322
3323         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
3324         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
3325         * lib/unistr/u8-strchr.c: Likewise.
3326         * modules/unistr/u8-chr: Depend on memchr.
3327
3328         unistr/u*-strchr: add tests
3329         * modules/unistr/u8-strchr-tests: New file.
3330         * modules/unistr/u16-strchr-tests: New file.
3331         * modules/unistr/u32-strchr-tests: New file.
3332         * tests/unistr/test-strchr.h: New file.
3333         * tests/unistr/test-u8-strchr.c: New file.
3334         * tests/unistr/test-u16-strchr.c: New file.
3335         * tests/unistr/test-u32-strchr.c: New file.
3336
3337         unistr/u*-chr: test multibyte sequences more
3338         * tests/unistr/test-chr.h: Do complete testing of the characters in the
3339         test vector.
3340         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
3341         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
3342         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
3343
3344         unistr/u*-chr: test multibyte sequences
3345         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
3346
3347         unistr/u*-chr: prepare for multibyte tests
3348         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
3349         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
3350         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
3351         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
3352         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
3353         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
3354
3355 2010-07-18  Bruno Haible  <bruno@clisp.org>
3356
3357         unistr/u8-strchr: Optimize non-ASCII argument case.
3358         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
3359         because the first byte often matches anyway.
3360         Reported by Pádraig Brady <P@draigbrady.com>.
3361
3362 2010-07-15  Karl Berry  <karl@gnu.org>
3363
3364         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
3365
3366 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
3367
3368         getcwd: on Solaris, work better if ancestors are inaccessible
3369         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
3370         buffer and size, try again with a large buffer.  This works better
3371         on Solaris, since its getcwd succeeds even if the path to the root
3372         is inaccessible, and this is helpful in common cases such as .zfs
3373         hidden directories.  Problem reported by J Chapman Flack in
3374         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
3375         Use system getcwd if it's declared, not merely if it's partly
3376         working; use the partly-working test only to avoid needless effort
3377         if the system getcwd fails.
3378         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
3379         comment that was already obsolete and is now even more obsolete.
3380         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
3381         now might call strdup.
3382
3383 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
3384
3385         pthread: Add enough so that coreutils/src/sort.c compiles.
3386         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
3387         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
3388         gnulib. Include <sched.h> and <time.h>, as per POSIX.
3389         Include <sys/types.h>, in case it defines pthread_t.
3390         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
3391         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
3392         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
3393         (pthread_rwlockattr_t, pthread_spinlock_t):
3394         New typedefs, if HAVE_PTHREAD_T is not defined.
3395         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
3396         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
3397         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
3398         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
3399         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
3400         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
3401         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
3402         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
3403         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
3404         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
3405         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
3406         New macros.
3407         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
3408         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
3409         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
3410         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
3411         (pthread_spin_unlock): New dummy functions.
3412         (pthread_create): Return EAGAIN; don't set errno.
3413         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
3414         require AC_C_INLINE.
3415         * modules/pthread (Depends-on): Add sched, time.
3416         (pthread.h): Use AM_V_GEN.
3417
3418 2010-07-13  Bruno Haible  <bruno@clisp.org>
3419
3420         striconveh: Don't malloc memory if the result buffer is sufficient.
3421         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
3422         buffer if its size is sufficient.
3423         Reported by Ludovic Courtès <ludo@gnu.org>.
3424
3425 2010-07-13  Bruno Haible  <bruno@clisp.org>
3426
3427         strtod: Add safety check.
3428         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
3429
3430 2010-07-12  Bruno Haible  <bruno@clisp.org>
3431
3432         Unify tests that set gl_cv_func_ldexpl_no_libm.
3433         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
3434         gl_FUNC_LDEXPL.
3435         (gl_FUNC_LDEXPL): Invoke it.
3436         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3437
3438 2010-07-12  Bruno Haible  <bruno@clisp.org>
3439
3440         Unify tests that set gl_cv_func_ldexp_no_libm.
3441         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
3442         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
3443         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
3444         (configure.ac): Simply invoke gl_FUNC_LDEXP.
3445         * modules/strtod (Files): Add m4/ldexp.m4.
3446
3447 2010-07-12  Bruno Haible  <bruno@clisp.org>
3448
3449         Unify tests that set gl_cv_func_frexpl_no_libm.
3450         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
3451         gl_FUNC_FREXPL_NO_LIBM.
3452         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
3453         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3454
3455 2010-07-12  Bruno Haible  <bruno@clisp.org>
3456
3457         Unify tests that set gl_cv_func_frexp_no_libm.
3458         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
3459         gl_FUNC_FREXP_NO_LIBM.
3460         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
3461         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3462
3463 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3464
3465         memcoll: clarify sizes versus lengths, document better, and tweak perf
3466         * lib/memcoll.c (strcoll_loop, memcoll0):
3467         Improve quality of descriptive comments.  Name variables
3468         consistently as to whether they are lengths (which do not include
3469         terminating null) versus sizes (which do).
3470         * lib/xmemcoll.c (xmemcoll0): Likewise.
3471         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
3472         returned when s1size == 0; this is easier to compile and saves
3473         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
3474
3475 2010-07-12  Bruno Haible  <bruno@clisp.org>
3476
3477         Tests for module '_Exit'.
3478         * modules/_Exit-tests: New file.
3479         * tests/test-_Exit.sh: New file.
3480         * tests/test-_Exit.c: New file.
3481
3482         New module '_Exit'.
3483         * lib/stdlib.in.h (__attribute__): New macro.
3484         (_Exit): New declaration.
3485         * lib/_Exit.c: New file.
3486         * m4/_Exit.m4: New file.
3487         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
3488         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
3489         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
3490         * modules/_Exit: New file.
3491         * tests/test-stdlib-c++.cc (_Exit): Check signature.
3492         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
3493
3494 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3495
3496         strtod: make it more-accurate typically, and don't require libm
3497         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
3498         Include limits.h.  Don't include string.h.
3499         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
3500         (locale_isspace): New function, so that no casts are needed to
3501         check whether *s is a space.
3502         (ldexp): Provide an unused dummy if not available.
3503         (scale_radix_exp, parse_number, underlying_strtod): New functions.
3504         (strtod): Use them.  This implementation prefers to use the
3505         underlying strtod if available, falling back on our own code
3506         only to fix known bugs.  This is more likely to produce an
3507         accurate result.  Also, it avoids the use of libm functions.
3508         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
3509         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
3510         was absent, but it caused a test failure with coreutils.
3511         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
3512         with libm.
3513         * modules/strtod (Makefile.am, Link): libm is no longer needed.
3514         * modules/strtod-tests (Makefile.am): Likewise.
3515
3516 2010-07-11  Pádraig Brady  <P@draigBrady.com>
3517             Bruno Haible  <bruno@clisp.org>
3518
3519         unistr/u8-strchr: Optimize ASCII argument case.
3520         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
3521
3522 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3523
3524         (x)memcoll: minor tweaks
3525         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
3526         is after the type that it qualifies.
3527         (memcoll0): Likewise.
3528         * lib/memcoll.h (memcoll0): Likewise.
3529         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
3530         * lib/xmemcoll.h (xmemcoll0): Likewise.
3531         * lib/memcoll.c (memcoll0): Correct the comment.  This function
3532         differs from memcoll in that the NUL byte is part of the argument.
3533         Omit the abort-checks, as performance is a real issue here.  Plus,
3534         the checks were wrong anyway (an off-by-one error).  Omit local
3535         variable 'diff', as it's a bit clearer that way.
3536         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
3537         no longer needed.
3538
3539 2010-07-08  Chen Guo <chenguo4@yahoo.com>
3540
3541         (x)memcoll: speedup when input is known to be NUL delimited
3542         * lib/memcoll.c: Include stdlib.
3543         (memcoll0) New function.
3544         (strcoll_loop) New function, refactored for use in both memcoll
3545         and memcoll0.
3546         * lib/memcoll.h: Add prototype for memcoll0.
3547         * lib/xmemcoll.c: (xmemcoll0) New function.
3548         (collate_error) New function, refactored for use in both xmemcoll
3549         and xmemcoll0.
3550         * lib/xmemcoll.h: Add prototype for xmemcoll0.
3551         * m4/memcoll.m4: add inline invocation.
3552
3553 2010-07-06  Pádraig Brady  <P@draigBrady.com>
3554
3555         * build-aux/bootstrap: Remove any local translations
3556         from the translation project synchronization directory,
3557         so that local only translations are not distributed.
3558
3559 2010-07-04  Bruno Haible  <bruno@clisp.org>
3560
3561         fsusage: Clarify which code applies to which platforms.
3562         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
3563         platform.
3564         * lib/fsusage.c (get_fs_usage): Likewise.
3565
3566 2010-07-04  Bruno Haible  <bruno@clisp.org>
3567
3568         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
3569         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
3570         Reported by Martin Lambers <marlam@marlam.de>.
3571
3572 2010-07-04  Jim Meyering  <meyering@redhat.com>
3573
3574         hash: once again explicitly disallow insertion of NULL
3575         * lib/hash.c (hash_insert0): Reinstate just-removed test:
3576         inserting a NULL pointer cannot work with these functions.
3577         Add a comment with details.
3578         This reverts part of the 2010-07-01 commit, 5bef1a35
3579         "hash: extend module to deal with non-pointer keys".
3580
3581 2010-07-01  Bruno Haible  <bruno@clisp.org>
3582
3583         stdbool: Update doc.
3584         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
3585         Info from Christian Weisgerber <naddy@mips.inka.de>.
3586
3587 2010-07-01  Jim Meyering  <meyering@redhat.com>
3588
3589         hash: extend module to deal with non-pointer keys
3590         * lib/hash.c (hash_insert0): New interface, much like hash_insert
3591         but that allows insertion of non-pointer entries.
3592         Do not disallow an ENTRY value of NULL.
3593         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
3594         * lib/hash.h (hash_insert0): Declare.
3595
3596 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3597
3598         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
3599         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
3600         not present (i.e. with autoconf 2.59 and when using gettextize, not
3601         gnulib), require AC_GNU_SOURCE instead.
3602
3603 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
3604
3605         idpriv-drop: Fix tests.
3606         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
3607         not to the test-idpriv-droptemp program.
3608
3609 2010-06-29  Bruno Haible  <bruno@clisp.org>
3610
3611         string: Fix syntax error with g++ 2.96.
3612         * lib/string.in.h (__pure__): Remove definition.
3613         (_GL_ATTRIBUTE_PURE): New macro.
3614         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
3615         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
3616         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3617
3618 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
3619
3620         unitypes: Fix bug introduced on 2010-05-18.
3621         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
3622
3623 2010-06-22  Eric Blake  <eblake@redhat.com>
3624
3625         memmem: slight optimization
3626         * lib/str-two-way.h (critical_factorization): Update comments.
3627         Reduce work during factorization phase.
3628         Reported by Carlos Bueno <carlos@bueno.org>.
3629
3630 2010-06-21  Bruno Haible  <bruno@clisp.org>
3631
3632         Fix HAVE_CALLOC_POSIX misnomer.
3633         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
3634         !HAVE_CALLOC_POSIX.
3635         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
3636         HAVE_CALLOC_POSIX.
3637         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
3638         instead of HAVE_CALLOC_POSIX.
3639         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
3640         HAVE_CALLOC_POSIX.
3641
3642         Use modern idiom for calloc() replacement.
3643         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
3644         AC_FUNC_CALLOC.
3645         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
3646         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
3647         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3648         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
3649         (gl_REPLACE_CALLOC): New macro.
3650
3651 2010-06-21  Bruno Haible  <bruno@clisp.org>
3652
3653         Fix HAVE_REALLOC_POSIX misnomer.
3654         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
3655         !HAVE_REALLOC_POSIX.
3656         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
3657         HAVE_REALLOC_POSIX.
3658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
3659         instead of HAVE_REALLOC_POSIX.
3660         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
3661         HAVE_REALLOC_POSIX.
3662
3663         Use modern idiom for realloc() replacement.
3664         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
3665         AC_FUNC_REALLOC.
3666         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
3667         Autoconf's AC_FUNC_REALLOC.
3668         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3669         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
3670         (gl_REPLACE_REALLOC): New macro.
3671         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3672
3673 2010-06-21  Bruno Haible  <bruno@clisp.org>
3674
3675         Fix HAVE_MALLOC_POSIX misnomer.
3676         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
3677         !HAVE_MALLOC_POSIX.
3678         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
3679         HAVE_MALLOC_POSIX.
3680         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
3681         instead of HAVE_MALLOC_POSIX.
3682         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
3683         HAVE_MALLOC_POSIX.
3684
3685         Use modern idiom for malloc() replacement.
3686         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
3687         AC_FUNC_MALLOC.
3688         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
3689         Autoconf's AC_FUNC_MALLOC.
3690         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3691         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
3692         (gl_REPLACE_MALLOC): New macro.
3693         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3694
3695 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
3696
3697         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
3698         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
3699         This macro takes 3 arguments, not 4.
3700
3701 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
3702
3703         ipv6: fix detection under mingw
3704         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
3705         in6_addr.
3706
3707 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
3708
3709         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
3710         that strtod() works when cross-compiling to a glibc version known
3711         to work.
3712
3713 2010-06-15  Bruno Haible  <bruno@clisp.org>
3714
3715         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
3716
3717 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
3718
3719         select: Correct timeout.
3720         * lib/select.c (rpl_select): Compute wait_timeout correctly.
3721
3722 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3723
3724         git-version-gen: init shell var to avoid env var influence
3725         * build-aux/git-version-gen (v): Init shell var to empty.
3726
3727 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
3728
3729         priv-set: Don't assume that priv.h exists merely because getppriv does.
3730         See Jan Andersen's bug report about AIX 5L in
3731         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
3732         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
3733         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
3734         * lib/priv-set.h: Likewise.
3735         * tests/test-priv-set.c: Likewise.
3736
3737 2010-06-13  Bruno Haible  <bruno@clisp.org>
3738
3739         relocatable: Make it easier to test whether to install wrappers.
3740         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
3741         RELOCATABLE_VIA_WRAPPER.
3742
3743 2010-06-13  Bruno Haible  <bruno@clisp.org>
3744
3745         gnulib-tool: Display specified modules and dependencies differently.
3746         * gnulib-tool (func_show_module_list): New function.
3747         (func_import, func_create_testdir): Invoke it.
3748         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3749
3750 2010-06-13  Bruno Haible  <bruno@clisp.org>
3751
3752         gnulib-tool: Align code of func_import and func_create_testdir.
3753         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
3754         specified_modules.
3755
3756 2010-06-12  Jim Meyering  <meyering@redhat.com>
3757
3758         test-inttostr: avoid spurious failure on Solaris 9
3759         * tests/test-inttostr.c (main): Skip the test when snprintf fails
3760         to accept "%ju".  Reported by Bruno Haible.
3761
3762 2010-06-11  Jim Meyering  <meyering@redhat.com>
3763
3764         test-sys_socket: mark variables as used more readably
3765         * tests/test-sys_socket.c (main): Mark otherwise unused variables
3766         as "used" explicitly via (void) statement casts.  This is more
3767         readable than using them in an artificial return expression.
3768         Suggestion from Bruno Haible.
3769
3770 2010-06-11  Bruno Haible  <bruno@clisp.org>
3771
3772         Avoid some more warnings from "gcc -Wwrite-strings".
3773         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
3774         to 'const char *'.
3775         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
3776         * tests/test-c-strcasestr.c (main): Likewise.
3777         * tests/test-mbscasestr1.c (main): Likewise.
3778         * tests/test-mbscasestr2.c (main): Likewise.
3779         * tests/test-memmem.c (main): Likewise.
3780         * tests/test-strstr.c (main): Likewise.
3781         * tests/test-strcasestr.c (main): Likewise.
3782
3783 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3784
3785         init.sh: change framework_failure_ to fail with status 99, not 1
3786         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
3787         automake's parallel-tests rule that this is an unexpected failure,
3788         even if the test is listed in XFAIL_TESTS.
3789
3790 2010-06-11  Jim Meyering  <meyering@redhat.com>
3791
3792         test-inttostr: avoid warnings about 4-6KB literal strings
3793         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
3794         Include "macros.h", for its definition of ASSERT.
3795         (CK): s/assert/ASSERT/
3796         * modules/inttostr-tests (Files): Add macros.h.
3797
3798         init.sh: don't use $ME_ or skip_ before they are defined
3799         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
3800         their first uses.  Also hoist their companions: warn_, fail_,
3801         framework_failure_, $stderr_fileno.  Prompted by a patch from
3802         Stefano Lattarini.
3803
3804         test-sys_socket: avoid set-but-not-used warnings from gcc
3805         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
3806         avoid warning about set-but-not-used variables.
3807
3808         test-xvasprintf: avoid 'const' discard warnings
3809         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
3810         "const" when assigning from literal strings.
3811         (test_xasprintf): Add "void" in function argument list to placate
3812         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
3813
3814         tests: avoid compilation warnings in argmatch and exclude tests...
3815         in packages that define ARGMATCH_DIE_DECL, like coreutils.
3816         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
3817         Since it always exits, declare with the "noreturn" attribute.
3818         * tests/test-argmatch.c: Likewise.
3819
3820         tests: avoid 'const' discard warnings in mbsstr tests
3821         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
3822         * tests/test-mbsstr2.c (main): Likewise.
3823
3824         test-verify: avoid warning from gcc's -Wmissing-declarations
3825         * tests/test-verify.c (function): Declare to be static.
3826
3827         test-inttostr.c: include <string.h> for use of strcmp
3828         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
3829
3830         test-linkat: avoid failed assertion on "other" architectures
3831         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
3832         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
3833         sparc: https://bugs.launchpad.net/bugs/591968
3834
3835 2010-06-11  Jim Meyering  <meyering@redhat.com>
3836
3837         printf.m4: avoid autoconf's "Expanded Before Required" warning
3838         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
3839         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
3840         autoconf warning.
3841
3842 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
3843
3844         Replacement header templates are now named with ".in", not "_".
3845         * doc/gnulib-intro.texi: Correct.
3846
3847 2010-06-10  Jim Meyering  <meyering@redhat.com>
3848
3849         inttostr-tests: depend on snprintf, not snprintf-posix
3850         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
3851         snprintf-posix, to avoid this aclocal failure:
3852           missing file gnulib-tests/vasnprintf.c
3853           configure.ac:45: error: expected source file, required through \
3854           AC_LIBSOURCES, not found
3855
3856 2010-06-10  Jim Meyering  <meyering@redhat.com>
3857
3858         inttostr: add a new function, inttostr, and tests
3859         The namesake function was not available.  The existence of the
3860         template file, inttostr.c makes its addition nontrivial.
3861         * lib/anytostr.c: Rename from inttostr.c.
3862         (anytostr): Rename from inttostr.
3863         * lib/inttostr.c: New file.
3864         * modules/inttostr (Files): Add anytostr.c.
3865         (Makefile.am): Set lib_SOURCES instead of ...
3866         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
3867         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
3868         * lib/offtostr.c: Likewise.
3869         * lib/uinttostr.c: Likewise.
3870         * lib/umaxtostr.c: Likewise.
3871         * modules/inttostr-tests: New file.
3872         * tests/test-inttostr.c: New file.  Test these functions.
3873
3874 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
3875             Bruno Haible  <bruno@clisp.org>
3876
3877         Add "Extending Gnulib" chapter to manual.
3878         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
3879         chapter.
3880         (Extending Gnulib): New chapter.
3881         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
3882         chapter.
3883
3884 2010-06-09  Bruno Haible  <bruno@clisp.org>
3885
3886         Avoid relocwrapper link errors due to gnulib replacement functions.
3887         * lib/areadlink.c: Use the system's malloc, realloc functions.
3888         (areadlink): Set errno to ENOMEM explicitly.
3889         * modules/areadlink (Depends-on): Remove malloc-posix.
3890         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3891
3892 2010-06-09  Bruno Haible  <bruno@clisp.org>
3893
3894         Avoid relocwrapper link errors due to gnulib replacement functions.
3895         * lib/canonicalize-lgpl.c: Use the system's malloc function.
3896         * lib/malloca.c: Likewise.
3897         * lib/relocatable.c: Likewise.
3898         * lib/progreloc.c: Use the system's malloc, sprintf functions.
3899         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
3900         * lib/setenv.c: Use the system's malloc, realloc functions.
3901         * lib/strerror.c: Use the system's sprintf function.
3902         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3903
3904 2010-06-04  Bruno Haible  <bruno@clisp.org>
3905
3906         Prefer documented low-level autoconf macro names.
3907         * m4/lib-link.m4: Use m4_translit instead of translit.
3908         * m4/environ.m4: Likewise.
3909         * m4/mathfunc.m4: Likewise.
3910         * m4/onceonly.m4: Likewise.
3911         * m4/stdint.m4: Likewise.
3912         Suggested by Eric Blake.
3913
3914 2010-06-04  Martin Lambers  <marlam@marlam.de>
3915             Bruno Haible  <bruno@clisp.org>
3916
3917         havelib: Allow library names with '+' characters.
3918         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
3919         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
3920
3921 2010-06-09  Bruno Haible  <bruno@clisp.org>
3922
3923         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
3924         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
3925         realloc failed.
3926
3927 2010-06-08  Peter Simons  <simons@cryp.to>
3928
3929         maint.mk: make the news-check rule more configurable
3930         * top/maint.mk (news-check-lines-spec) New variable.
3931         (news-check): Use "sed -n 1,10p" in place of "head".
3932
3933 2010-06-07  Jim Meyering  <meyering@redhat.com>
3934
3935         do-release-commit-and-tag: fix typo in --help
3936         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
3937
3938         regex: avoid new dead-code warning with gcc-4.6.0
3939         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
3940         if-block containing a while-loop.  It's been unused for at least
3941         5 years.
3942
3943 2010-06-05  Bruno Haible  <bruno@clisp.org>
3944
3945         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
3946         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
3947
3948 2010-06-04  Bruno Haible  <bruno@clisp.org>
3949
3950         Update to GNU gettext 0.18.1.
3951         * modules/gettext (configure.ac): Require gettext infrastructure from
3952         version 0.18.1.
3953
3954 2010-06-03  Bruno Haible  <bruno@clisp.org>
3955
3956         Don't use AC_LIBOBJ with file names in subdirectories.
3957         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
3958         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
3959         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
3960         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
3961         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
3962         gl_LIBUNISTRING_LIBSOURCE.
3963         (Makefile.am): Augment lib_SOURCES here, conditionally.
3964         * NEWS: Drop requirement for Automake option 'subdir-objects'.
3965
3966 2010-06-03  Bruno Haible  <bruno@clisp.org>
3967
3968         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
3969         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
3970         expansion does not end with a newline.
3971         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
3972         unnecessary newline.
3973
3974 2010-06-03  Bruno Haible  <bruno@clisp.org>
3975
3976         Reduce dependencies.
3977         * tests/test-quotearg.h: New file, extracted from
3978         tests/test-quotearg.c.
3979         * tests/test-quotearg-simple.c: New file, extracted from
3980         tests/test-quotearg.c.
3981         * tests/test-quotearg.c: Don't include <ctype.h>.
3982         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
3983         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
3984         use_quote_double_quotes, use_quotearg_colon): Moved to
3985         tests/test-quotearg.h.
3986         (results_g, flag_results, custom_quotes, custom_results): Moved
3987         to tests/test-quotearg-simple.c.
3988         (main): Moved the part that does not depend on gettext to
3989         tests/test-quotearg-simple.c. Return 77 if the test cannot be
3990         performed.
3991         * modules/quotearg-simple: New file.
3992         * modules/quotearg-simple-tests: New file.
3993         * modules/quotearg (Depends-on): Add quotearg-simple.
3994         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
3995         (Files): Add tests/test-quotearg.h.
3996         Reported by Paolo Bonzini.
3997
3998 2010-06-03  Bruno Haible  <bruno@clisp.org>
3999
4000         Reduce dependencies.
4001         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
4002
4003 2010-06-03  Bruno Haible  <bruno@clisp.org>
4004
4005         time: Undefine more broken macros.
4006         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
4007         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
4008         Reported by Eric Blake.
4009
4010 2010-06-03  Bruno Haible  <bruno@clisp.org>
4011
4012         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
4013         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
4014         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
4015         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
4016         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
4017         Reported by Ludovic Courtès <ludo@gnu.org>.
4018
4019 2010-06-02  Eric Blake  <eblake@redhat.com>
4020
4021         time: work with mingw + pthreads-win32 library
4022         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
4023         if timespec is defined only in pthread.h.
4024         * modules/time (Makefile.am): Substitute it.
4025         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
4026         <pthread.h>, when needed.
4027         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
4028         from the library.
4029
4030 2010-05-31  Bruno Haible  <bruno@clisp.org>
4031
4032         Avoid expanding two macros in the wrong order.
4033         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
4034         gl_LIBUNISTRING if it is defined.
4035         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
4036         autoconf >= 2.64.
4037         Reported by Ludovic Courtès <ludo@gnu.org>.
4038
4039 2010-05-27  Jim Meyering  <meyering@redhat.com>
4040
4041         maint.mk: also prohibit "#undef" of always-defined symbols
4042         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
4043         Allow more than one space before the symbol name.
4044         (sc_prohibit_always-defined_macros): Use grep's -E, now that
4045         the regexp uses alternation.
4046
4047 2010-05-26  Eric Blake  <eblake@redhat.com>
4048
4049         maint.mk: avoid echo -e
4050         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
4051         Convert all uses of echo -* to printf.
4052         Reported by Matthias Bolte.
4053
4054 2010-05-25  Bruno Haible  <bruno@clisp.org>
4055
4056         Update to GNU gettext 0.18, part 2.
4057         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
4058         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
4059
4060 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4061
4062         Add missing include in test-pwrite.c.
4063         * tests/test-pwrite.c: Include string.h, for strcmp.
4064
4065 2010-05-24  Bruno Haible  <bruno@clisp.org>
4066
4067         * NEWS: Mention requirement for Automake option 'subdir-objects'.
4068
4069 2010-05-24  Bruno Haible  <bruno@clisp.org>
4070
4071         Don't use conversion with transliteration in u{8,16,32}_strcoll.
4072         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
4073         iconveh_error argument.
4074         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
4075         U_STRCONV_TO_LOCALE.
4076         * lib/unistr/u16-strcoll.c: Likewise.
4077         * lib/unistr/u32-strcoll.c: Likewise.
4078         * modules/unistr/u8-strcoll (Depends-on): Add
4079         uniconv/u8-strconv-to-enc, localcharset. Remove
4080         uniconv/u8-strconv-to-locale.
4081         (configure.ac): Bump version number.
4082         * modules/unistr/u16-strcoll (Depends-on): Add
4083         uniconv/u16-strconv-to-enc, localcharset. Remove
4084         uniconv/u16-strconv-to-locale.
4085         (configure.ac): Bump version number.
4086         * modules/unistr/u32-strcoll (Depends-on): Add
4087         uniconv/u32-strconv-to-enc, localcharset. Remove
4088         uniconv/u32-strconv-to-locale.
4089         (configure.ac): Bump version number.
4090
4091 2010-05-24  Bruno Haible  <bruno@clisp.org>
4092
4093         Avoid a test failure on NetBSD 5.0.
4094         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
4095         an iconv() bug.
4096
4097 2010-05-24  Bruno Haible  <bruno@clisp.org>
4098
4099         Adjust #include directive style.
4100         * modules/regex (Includes): Recommend to write <regex.h>.
4101
4102 2010-05-24  Bruno Haible  <bruno@clisp.org>
4103
4104         regex: Don't require alloca.
4105         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
4106         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
4107         only inside if (0).
4108
4109 2010-05-23  Jim Meyering  <meyering@redhat.com>
4110
4111         test-renameat.c: include <sys/stat.h>
4112         * tests/test-renameat.c: Include <sys/stat.h>; required for
4113         definition of S_IS* macros.
4114
4115 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
4116
4117         Update maintainer documentation for 'relocatable-prog' module.
4118         * doc/relocatable-maint.texi: Update.
4119         Comments by Bruno Haible.
4120
4121 2010-05-23  Bruno Haible  <bruno@clisp.org>
4122
4123         git-merge-changelog: Enable --split-merged-entry by default.
4124         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
4125         (usage): Don't mention this option any more.
4126         Reported by Ralf Wildenhues.
4127
4128 2010-05-23  Jim Meyering  <meyering@redhat.com>
4129
4130         test-pwrite: do not leave behind a test file named "out"
4131         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
4132         The trivial-looking use of init.sh is really necessary.
4133         It ensures that the temporary file, "out", is created in
4134         a temporary directory, and removed upon termination.
4135         * tests/test-pwrite.sh: Re-add file.
4136         * modules/pwrite-tests: Reference it.
4137
4138 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4139
4140         Fix output redirection buglet in init.sh.
4141         * tests/init.sh: Fix redirection of stderr.
4142
4143 2010-05-20  Simon Josefsson  <simon@josefsson.org>
4144
4145         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
4146
4147 2010-05-17  Simon Josefsson  <simon@josefsson.org>
4148
4149         * modules/valgrind-tests: New file.
4150         * m4/valgrind-tests.m4: New file.
4151         * doc/valgrind-tests.texi: New file.
4152         * doc/gnulib.texi (Running self-tests under valgrind): New
4153         section.
4154
4155 2010-05-19  Bruno Haible  <bruno@clisp.org>
4156
4157         Clean up dead code in recent commit.
4158         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
4159         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
4160         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
4161         Suggested by Paolo Bonzini.
4162
4163 2010-05-19  Bruno Haible  <bruno@clisp.org>
4164
4165         Avoid valgrind error reports from libunistring.
4166         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
4167         * modules/libunistring (Files): Add it.
4168         * modules/libunistring-optional (Files): Likewise.
4169
4170 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
4171             Bruno Haible  <bruno@clisp.org>
4172
4173         New module 'libunistring-optional'.
4174         * modules/libunistring-optional: New file.
4175         * m4/libunistring-base.m4: New file.
4176         * m4/libunistring-optional.m4: New file.
4177         * lib/unicase.in.h: Renamed from lib/unicase.h.
4178         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
4179         * lib/unictype.in.h: Renamed from lib/unictype.h.
4180         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
4181         * lib/uniname.in.h: Renamed from lib/uniname.h.
4182         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
4183         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
4184         * lib/unistr.in.h: Renamed from lib/unistr.h.
4185         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
4186         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
4187         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
4188         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
4189         gl_LIBUNISTRING. If the library was found, determine the installed
4190         version and set LIBUNISTRING_VERSION.
4191         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
4192         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
4193         handle a configuration option --with-included-libunistring.
4194         * modules/libunistring (Files): Add m4/absolute-header.m4.
4195         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
4196         Add m4/libunistring-base.m4.
4197         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4198         (Makefile.am): Build unicase.h from unicase.in.h.
4199         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
4200         Add m4/libunistring-base.m4.
4201         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4202         (Makefile.am): Build uniconv.h from uniconv.in.h.
4203         * modules/unictype/base (Files): Use unictype.in.h instead of
4204         unictype.h. Add m4/libunistring-base.m4.
4205         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4206         (Makefile.am): Build unictype.h from unictype.in.h.
4207         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
4208         Add m4/libunistring-base.m4.
4209         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4210         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
4211         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
4212         Add m4/libunistring-base.m4.
4213         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4214         (Makefile.am): Build uniname.h from uniname.in.h.
4215         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
4216         Add m4/libunistring-base.m4.
4217         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4218         (Makefile.am): Build uninorm.h from uninorm.in.h.
4219         * modules/unistdio/base (Files): Use unistdio.in.h instead of
4220         unistdio.h. Add m4/libunistring-base.m4.
4221         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4222         (Makefile.am): Build unistdio.h from unistdio.in.h.
4223         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
4224         Add m4/libunistring-base.m4.
4225         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4226         (Makefile.am): Build unistr.h from unistr.in.h.
4227         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
4228         Add m4/libunistring-base.m4.
4229         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4230         (Makefile.am): Build unitypes.h from unitypes.in.h.
4231         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
4232         Add m4/libunistring-base.m4.
4233         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4234         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
4235         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
4236         uniwidth.h. Add m4/libunistring-base.m4.
4237         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4238         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
4239         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
4240         instead of augmenting lib_SOURCES.
4241         * modules/unicase/empty-suffix-context: Likewise.
4242         * modules/unicase/locale-language: Likewise.
4243         * modules/unicase/tolower: Likewise.
4244         * modules/unicase/totitle: Likewise.
4245         * modules/unicase/toupper: Likewise.
4246         * modules/unicase/u8-casecmp: Likewise.
4247         * modules/unicase/u8-casecoll: Likewise.
4248         * modules/unicase/u8-casefold: Likewise.
4249         * modules/unicase/u8-casexfrm: Likewise.
4250         * modules/unicase/u8-ct-casefold: Likewise.
4251         * modules/unicase/u8-ct-tolower: Likewise.
4252         * modules/unicase/u8-ct-totitle: Likewise.
4253         * modules/unicase/u8-ct-toupper: Likewise.
4254         * modules/unicase/u8-is-cased: Likewise.
4255         * modules/unicase/u8-is-casefolded: Likewise.
4256         * modules/unicase/u8-is-lowercase: Likewise.
4257         * modules/unicase/u8-is-titlecase: Likewise.
4258         * modules/unicase/u8-is-uppercase: Likewise.
4259         * modules/unicase/u8-prefix-context: Likewise.
4260         * modules/unicase/u8-suffix-context: Likewise.
4261         * modules/unicase/u8-tolower: Likewise.
4262         * modules/unicase/u8-totitle: Likewise.
4263         * modules/unicase/u8-toupper: Likewise.
4264         * modules/unicase/u16-casecmp: Likewise.
4265         * modules/unicase/u16-casecoll: Likewise.
4266         * modules/unicase/u16-casefold: Likewise.
4267         * modules/unicase/u16-casexfrm: Likewise.
4268         * modules/unicase/u16-ct-casefold: Likewise.
4269         * modules/unicase/u16-ct-tolower: Likewise.
4270         * modules/unicase/u16-ct-totitle: Likewise.
4271         * modules/unicase/u16-ct-toupper: Likewise.
4272         * modules/unicase/u16-is-cased: Likewise.
4273         * modules/unicase/u16-is-casefolded: Likewise.
4274         * modules/unicase/u16-is-lowercase: Likewise.
4275         * modules/unicase/u16-is-titlecase: Likewise.
4276         * modules/unicase/u16-is-uppercase: Likewise.
4277         * modules/unicase/u16-prefix-context: Likewise.
4278         * modules/unicase/u16-suffix-context: Likewise.
4279         * modules/unicase/u16-tolower: Likewise.
4280         * modules/unicase/u16-totitle: Likewise.
4281         * modules/unicase/u16-toupper: Likewise.
4282         * modules/unicase/u32-casecmp: Likewise.
4283         * modules/unicase/u32-casecoll: Likewise.
4284         * modules/unicase/u32-casefold: Likewise.
4285         * modules/unicase/u32-casexfrm: Likewise.
4286         * modules/unicase/u32-ct-casefold: Likewise.
4287         * modules/unicase/u32-ct-tolower: Likewise.
4288         * modules/unicase/u32-ct-totitle: Likewise.
4289         * modules/unicase/u32-ct-toupper: Likewise.
4290         * modules/unicase/u32-is-cased: Likewise.
4291         * modules/unicase/u32-is-casefolded: Likewise.
4292         * modules/unicase/u32-is-lowercase: Likewise.
4293         * modules/unicase/u32-is-titlecase: Likewise.
4294         * modules/unicase/u32-is-uppercase: Likewise.
4295         * modules/unicase/u32-prefix-context: Likewise.
4296         * modules/unicase/u32-suffix-context: Likewise.
4297         * modules/unicase/u32-tolower: Likewise.
4298         * modules/unicase/u32-totitle: Likewise.
4299         * modules/unicase/u32-toupper: Likewise.
4300         * modules/unicase/ulc-casecmp: Likewise.
4301         * modules/unicase/ulc-casecoll: Likewise.
4302         * modules/unicase/ulc-casexfrm: Likewise.
4303         * modules/uniconv/u8-conv-from-enc: Likewise.
4304         * modules/uniconv/u8-conv-to-enc: Likewise.
4305         * modules/uniconv/u8-strconv-from-enc: Likewise.
4306         * modules/uniconv/u8-strconv-from-locale: Likewise.
4307         * modules/uniconv/u8-strconv-to-enc: Likewise.
4308         * modules/uniconv/u8-strconv-to-locale: Likewise.
4309         * modules/uniconv/u16-conv-from-enc: Likewise.
4310         * modules/uniconv/u16-conv-to-enc: Likewise.
4311         * modules/uniconv/u16-strconv-from-enc: Likewise.
4312         * modules/uniconv/u16-strconv-from-locale: Likewise.
4313         * modules/uniconv/u16-strconv-to-enc: Likewise.
4314         * modules/uniconv/u16-strconv-to-locale: Likewise.
4315         * modules/uniconv/u32-conv-from-enc: Likewise.
4316         * modules/uniconv/u32-conv-to-enc: Likewise.
4317         * modules/uniconv/u32-strconv-from-enc: Likewise.
4318         * modules/uniconv/u32-strconv-from-locale: Likewise.
4319         * modules/uniconv/u32-strconv-to-enc: Likewise.
4320         * modules/uniconv/u32-strconv-to-locale: Likewise.
4321         * modules/unictype/bidicategory-byname: Likewise.
4322         * modules/unictype/bidicategory-name: Likewise.
4323         * modules/unictype/bidicategory-of: Likewise.
4324         * modules/unictype/bidicategory-test: Likewise.
4325         * modules/unictype/block-list: Likewise.
4326         * modules/unictype/block-test: Likewise.
4327         * modules/unictype/category-C: Likewise.
4328         * modules/unictype/category-Cc: Likewise.
4329         * modules/unictype/category-Cf: Likewise.
4330         * modules/unictype/category-Cn: Likewise.
4331         * modules/unictype/category-Co: Likewise.
4332         * modules/unictype/category-Cs: Likewise.
4333         * modules/unictype/category-L: Likewise.
4334         * modules/unictype/category-Ll: Likewise.
4335         * modules/unictype/category-Lm: Likewise.
4336         * modules/unictype/category-Lo: Likewise.
4337         * modules/unictype/category-Lt: Likewise.
4338         * modules/unictype/category-Lu: Likewise.
4339         * modules/unictype/category-M: Likewise.
4340         * modules/unictype/category-Mc: Likewise.
4341         * modules/unictype/category-Me: Likewise.
4342         * modules/unictype/category-Mn: Likewise.
4343         * modules/unictype/category-N: Likewise.
4344         * modules/unictype/category-Nd: Likewise.
4345         * modules/unictype/category-Nl: Likewise.
4346         * modules/unictype/category-No: Likewise.
4347         * modules/unictype/category-P: Likewise.
4348         * modules/unictype/category-Pc: Likewise.
4349         * modules/unictype/category-Pd: Likewise.
4350         * modules/unictype/category-Pe: Likewise.
4351         * modules/unictype/category-Pf: Likewise.
4352         * modules/unictype/category-Pi: Likewise.
4353         * modules/unictype/category-Po: Likewise.
4354         * modules/unictype/category-Ps: Likewise.
4355         * modules/unictype/category-S: Likewise.
4356         * modules/unictype/category-Sc: Likewise.
4357         * modules/unictype/category-Sk: Likewise.
4358         * modules/unictype/category-Sm: Likewise.
4359         * modules/unictype/category-So: Likewise.
4360         * modules/unictype/category-Z: Likewise.
4361         * modules/unictype/category-Zl: Likewise.
4362         * modules/unictype/category-Zp: Likewise.
4363         * modules/unictype/category-Zs: Likewise.
4364         * modules/unictype/category-and: Likewise.
4365         * modules/unictype/category-and-not: Likewise.
4366         * modules/unictype/category-byname: Likewise.
4367         * modules/unictype/category-name: Likewise.
4368         * modules/unictype/category-none: Likewise.
4369         * modules/unictype/category-of: Likewise.
4370         * modules/unictype/category-or: Likewise.
4371         * modules/unictype/category-test: Likewise.
4372         * modules/unictype/combining-class: Likewise.
4373         * modules/unictype/ctype-alnum: Likewise.
4374         * modules/unictype/ctype-alpha: Likewise.
4375         * modules/unictype/ctype-blank: Likewise.
4376         * modules/unictype/ctype-cntrl: Likewise.
4377         * modules/unictype/ctype-digit: Likewise.
4378         * modules/unictype/ctype-graph: Likewise.
4379         * modules/unictype/ctype-lower: Likewise.
4380         * modules/unictype/ctype-print: Likewise.
4381         * modules/unictype/ctype-punct: Likewise.
4382         * modules/unictype/ctype-space: Likewise.
4383         * modules/unictype/ctype-upper: Likewise.
4384         * modules/unictype/ctype-xdigit: Likewise.
4385         * modules/unictype/decimal-digit: Likewise.
4386         * modules/unictype/digit: Likewise.
4387         * modules/unictype/mirror: Likewise.
4388         * modules/unictype/numeric: Likewise.
4389         * modules/unictype/property-alphabetic: Likewise.
4390         * modules/unictype/property-ascii-hex-digit: Likewise.
4391         * modules/unictype/property-bidi-arabic-digit: Likewise.
4392         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
4393         * modules/unictype/property-bidi-block-separator: Likewise.
4394         * modules/unictype/property-bidi-boundary-neutral: Likewise.
4395         * modules/unictype/property-bidi-common-separator: Likewise.
4396         * modules/unictype/property-bidi-control: Likewise.
4397         * modules/unictype/property-bidi-embedding-or-override: Likewise.
4398         * modules/unictype/property-bidi-eur-num-separator: Likewise.
4399         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
4400         * modules/unictype/property-bidi-european-digit: Likewise.
4401         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
4402         * modules/unictype/property-bidi-left-to-right: Likewise.
4403         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
4404         * modules/unictype/property-bidi-other-neutral: Likewise.
4405         * modules/unictype/property-bidi-pdf: Likewise.
4406         * modules/unictype/property-bidi-segment-separator: Likewise.
4407         * modules/unictype/property-bidi-whitespace: Likewise.
4408         * modules/unictype/property-byname: Likewise.
4409         * modules/unictype/property-combining: Likewise.
4410         * modules/unictype/property-composite: Likewise.
4411         * modules/unictype/property-currency-symbol: Likewise.
4412         * modules/unictype/property-dash: Likewise.
4413         * modules/unictype/property-decimal-digit: Likewise.
4414         * modules/unictype/property-default-ignorable-code-point: Likewise.
4415         * modules/unictype/property-deprecated: Likewise.
4416         * modules/unictype/property-diacritic: Likewise.
4417         * modules/unictype/property-extender: Likewise.
4418         * modules/unictype/property-format-control: Likewise.
4419         * modules/unictype/property-grapheme-base: Likewise.
4420         * modules/unictype/property-grapheme-extend: Likewise.
4421         * modules/unictype/property-grapheme-link: Likewise.
4422         * modules/unictype/property-hex-digit: Likewise.
4423         * modules/unictype/property-hyphen: Likewise.
4424         * modules/unictype/property-id-continue: Likewise.
4425         * modules/unictype/property-id-start: Likewise.
4426         * modules/unictype/property-ideographic: Likewise.
4427         * modules/unictype/property-ids-binary-operator: Likewise.
4428         * modules/unictype/property-ids-trinary-operator: Likewise.
4429         * modules/unictype/property-ignorable-control: Likewise.
4430         * modules/unictype/property-iso-control: Likewise.
4431         * modules/unictype/property-join-control: Likewise.
4432         * modules/unictype/property-left-of-pair: Likewise.
4433         * modules/unictype/property-line-separator: Likewise.
4434         * modules/unictype/property-logical-order-exception: Likewise.
4435         * modules/unictype/property-lowercase: Likewise.
4436         * modules/unictype/property-math: Likewise.
4437         * modules/unictype/property-non-break: Likewise.
4438         * modules/unictype/property-not-a-character: Likewise.
4439         * modules/unictype/property-numeric: Likewise.
4440         * modules/unictype/property-other-alphabetic: Likewise.
4441         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
4442         * modules/unictype/property-other-grapheme-extend: Likewise.
4443         * modules/unictype/property-other-id-continue: Likewise.
4444         * modules/unictype/property-other-id-start: Likewise.
4445         * modules/unictype/property-other-lowercase: Likewise.
4446         * modules/unictype/property-other-math: Likewise.
4447         * modules/unictype/property-other-uppercase: Likewise.
4448         * modules/unictype/property-paired-punctuation: Likewise.
4449         * modules/unictype/property-paragraph-separator: Likewise.
4450         * modules/unictype/property-pattern-syntax: Likewise.
4451         * modules/unictype/property-pattern-white-space: Likewise.
4452         * modules/unictype/property-private-use: Likewise.
4453         * modules/unictype/property-punctuation: Likewise.
4454         * modules/unictype/property-quotation-mark: Likewise.
4455         * modules/unictype/property-radical: Likewise.
4456         * modules/unictype/property-sentence-terminal: Likewise.
4457         * modules/unictype/property-soft-dotted: Likewise.
4458         * modules/unictype/property-space: Likewise.
4459         * modules/unictype/property-terminal-punctuation: Likewise.
4460         * modules/unictype/property-test: Likewise.
4461         * modules/unictype/property-titlecase: Likewise.
4462         * modules/unictype/property-unassigned-code-value: Likewise.
4463         * modules/unictype/property-unified-ideograph: Likewise.
4464         * modules/unictype/property-uppercase: Likewise.
4465         * modules/unictype/property-variation-selector: Likewise.
4466         * modules/unictype/property-white-space: Likewise.
4467         * modules/unictype/property-xid-continue: Likewise.
4468         * modules/unictype/property-xid-start: Likewise.
4469         * modules/unictype/property-zero-width: Likewise.
4470         * modules/unictype/scripts: Likewise.
4471         * modules/unictype/syntax-c-ident: Likewise.
4472         * modules/unictype/syntax-c-whitespace: Likewise.
4473         * modules/unictype/syntax-java-ident: Likewise.
4474         * modules/unictype/syntax-java-whitespace: Likewise.
4475         * modules/unilbrk/u8-possible-linebreaks: Likewise.
4476         * modules/unilbrk/u8-width-linebreaks: Likewise.
4477         * modules/unilbrk/u16-possible-linebreaks: Likewise.
4478         * modules/unilbrk/u16-width-linebreaks: Likewise.
4479         * modules/unilbrk/u32-possible-linebreaks: Likewise.
4480         * modules/unilbrk/u32-width-linebreaks: Likewise.
4481         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
4482         * modules/unilbrk/ulc-width-linebreaks: Likewise.
4483         * modules/uniname/uniname: Likewise.
4484         * modules/uninorm/canonical-decomposition: Likewise.
4485         * modules/uninorm/composition: Likewise.
4486         * modules/uninorm/decomposing-form: Likewise.
4487         * modules/uninorm/decomposition: Likewise.
4488         * modules/uninorm/filter: Likewise.
4489         * modules/uninorm/nfc: Likewise.
4490         * modules/uninorm/nfd: Likewise.
4491         * modules/uninorm/nfkc: Likewise.
4492         * modules/uninorm/nfkd: Likewise.
4493         * modules/uninorm/u8-normalize: Likewise.
4494         * modules/uninorm/u8-normcmp: Likewise.
4495         * modules/uninorm/u8-normcoll: Likewise.
4496         * modules/uninorm/u8-normxfrm: Likewise.
4497         * modules/uninorm/u16-normalize: Likewise.
4498         * modules/uninorm/u16-normcmp: Likewise.
4499         * modules/uninorm/u16-normcoll: Likewise.
4500         * modules/uninorm/u16-normxfrm: Likewise.
4501         * modules/uninorm/u32-normalize: Likewise.
4502         * modules/uninorm/u32-normcmp: Likewise.
4503         * modules/uninorm/u32-normcoll: Likewise.
4504         * modules/uninorm/u32-normxfrm: Likewise.
4505         * modules/unistdio/u8-asnprintf: Likewise.
4506         * modules/unistdio/u8-asprintf: Likewise.
4507         * modules/unistdio/u8-snprintf: Likewise.
4508         * modules/unistdio/u8-sprintf: Likewise.
4509         * modules/unistdio/u8-u8-asnprintf: Likewise.
4510         * modules/unistdio/u8-u8-asprintf: Likewise.
4511         * modules/unistdio/u8-u8-snprintf: Likewise.
4512         * modules/unistdio/u8-u8-sprintf: Likewise.
4513         * modules/unistdio/u8-u8-vasnprintf: Likewise.
4514         * modules/unistdio/u8-u8-vasprintf: Likewise.
4515         * modules/unistdio/u8-u8-vsnprintf: Likewise.
4516         * modules/unistdio/u8-u8-vsprintf: Likewise.
4517         * modules/unistdio/u8-vasnprintf: Likewise.
4518         * modules/unistdio/u8-vasprintf: Likewise.
4519         * modules/unistdio/u8-vsnprintf: Likewise.
4520         * modules/unistdio/u8-vsprintf: Likewise.
4521         * modules/unistdio/u16-asnprintf: Likewise.
4522         * modules/unistdio/u16-asprintf: Likewise.
4523         * modules/unistdio/u16-snprintf: Likewise.
4524         * modules/unistdio/u16-sprintf: Likewise.
4525         * modules/unistdio/u16-u16-asnprintf: Likewise.
4526         * modules/unistdio/u16-u16-asprintf: Likewise.
4527         * modules/unistdio/u16-u16-snprintf: Likewise.
4528         * modules/unistdio/u16-u16-sprintf: Likewise.
4529         * modules/unistdio/u16-u16-vasnprintf: Likewise.
4530         * modules/unistdio/u16-u16-vasprintf: Likewise.
4531         * modules/unistdio/u16-u16-vsnprintf: Likewise.
4532         * modules/unistdio/u16-u16-vsprintf: Likewise.
4533         * modules/unistdio/u16-vasnprintf: Likewise.
4534         * modules/unistdio/u16-vasprintf: Likewise.
4535         * modules/unistdio/u16-vsnprintf: Likewise.
4536         * modules/unistdio/u16-vsprintf: Likewise.
4537         * modules/unistdio/u32-asnprintf: Likewise.
4538         * modules/unistdio/u32-asprintf: Likewise.
4539         * modules/unistdio/u32-snprintf: Likewise.
4540         * modules/unistdio/u32-sprintf: Likewise.
4541         * modules/unistdio/u32-u32-asnprintf: Likewise.
4542         * modules/unistdio/u32-u32-asprintf: Likewise.
4543         * modules/unistdio/u32-u32-snprintf: Likewise.
4544         * modules/unistdio/u32-u32-sprintf: Likewise.
4545         * modules/unistdio/u32-u32-vasnprintf: Likewise.
4546         * modules/unistdio/u32-u32-vasprintf: Likewise.
4547         * modules/unistdio/u32-u32-vsnprintf: Likewise.
4548         * modules/unistdio/u32-u32-vsprintf: Likewise.
4549         * modules/unistdio/u32-vasnprintf: Likewise.
4550         * modules/unistdio/u32-vasprintf: Likewise.
4551         * modules/unistdio/u32-vsnprintf: Likewise.
4552         * modules/unistdio/u32-vsprintf: Likewise.
4553         * modules/unistdio/ulc-asnprintf: Likewise.
4554         * modules/unistdio/ulc-asprintf: Likewise.
4555         * modules/unistdio/ulc-fprintf: Likewise.
4556         * modules/unistdio/ulc-snprintf: Likewise.
4557         * modules/unistdio/ulc-sprintf: Likewise.
4558         * modules/unistdio/ulc-vasnprintf: Likewise.
4559         * modules/unistdio/ulc-vasprintf: Likewise.
4560         * modules/unistdio/ulc-vfprintf: Likewise.
4561         * modules/unistdio/ulc-vsnprintf: Likewise.
4562         * modules/unistdio/ulc-vsprintf: Likewise.
4563         * modules/unistr/u8-check: Likewise.
4564         * modules/unistr/u8-chr: Likewise.
4565         * modules/unistr/u8-cmp: Likewise.
4566         * modules/unistr/u8-cmp2: Likewise.
4567         * modules/unistr/u8-cpy: Likewise.
4568         * modules/unistr/u8-cpy-alloc: Likewise.
4569         * modules/unistr/u8-endswith: Likewise.
4570         * modules/unistr/u8-mblen: Likewise.
4571         * modules/unistr/u8-mbsnlen: Likewise.
4572         * modules/unistr/u8-mbtouc: Likewise.
4573         * modules/unistr/u8-mbtouc-unsafe: Likewise.
4574         * modules/unistr/u8-mbtoucr: Likewise.
4575         * modules/unistr/u8-move: Likewise.
4576         * modules/unistr/u8-next: Likewise.
4577         * modules/unistr/u8-prev: Likewise.
4578         * modules/unistr/u8-set: Likewise.
4579         * modules/unistr/u8-startswith: Likewise.
4580         * modules/unistr/u8-stpcpy: Likewise.
4581         * modules/unistr/u8-stpncpy: Likewise.
4582         * modules/unistr/u8-strcat: Likewise.
4583         * modules/unistr/u8-strchr: Likewise.
4584         * modules/unistr/u8-strcmp: Likewise.
4585         * modules/unistr/u8-strcoll: Likewise.
4586         * modules/unistr/u8-strcpy: Likewise.
4587         * modules/unistr/u8-strcspn: Likewise.
4588         * modules/unistr/u8-strdup: Likewise.
4589         * modules/unistr/u8-strlen: Likewise.
4590         * modules/unistr/u8-strmblen: Likewise.
4591         * modules/unistr/u8-strmbtouc: Likewise.
4592         * modules/unistr/u8-strncat: Likewise.
4593         * modules/unistr/u8-strncmp: Likewise.
4594         * modules/unistr/u8-strncpy: Likewise.
4595         * modules/unistr/u8-strnlen: Likewise.
4596         * modules/unistr/u8-strpbrk: Likewise.
4597         * modules/unistr/u8-strrchr: Likewise.
4598         * modules/unistr/u8-strspn: Likewise.
4599         * modules/unistr/u8-strstr: Likewise.
4600         * modules/unistr/u8-strtok: Likewise.
4601         * modules/unistr/u8-to-u16: Likewise.
4602         * modules/unistr/u8-to-u32: Likewise.
4603         * modules/unistr/u8-uctomb: Likewise.
4604         * modules/unistr/u16-check: Likewise.
4605         * modules/unistr/u16-chr: Likewise.
4606         * modules/unistr/u16-cmp: Likewise.
4607         * modules/unistr/u16-cmp2: Likewise.
4608         * modules/unistr/u16-cpy: Likewise.
4609         * modules/unistr/u16-cpy-alloc: Likewise.
4610         * modules/unistr/u16-endswith: Likewise.
4611         * modules/unistr/u16-mblen: Likewise.
4612         * modules/unistr/u16-mbsnlen: Likewise.
4613         * modules/unistr/u16-mbtouc: Likewise.
4614         * modules/unistr/u16-mbtouc-unsafe: Likewise.
4615         * modules/unistr/u16-mbtoucr: Likewise.
4616         * modules/unistr/u16-move: Likewise.
4617         * modules/unistr/u16-next: Likewise.
4618         * modules/unistr/u16-prev: Likewise.
4619         * modules/unistr/u16-set: Likewise.
4620         * modules/unistr/u16-startswith: Likewise.
4621         * modules/unistr/u16-stpcpy: Likewise.
4622         * modules/unistr/u16-stpncpy: Likewise.
4623         * modules/unistr/u16-strcat: Likewise.
4624         * modules/unistr/u16-strchr: Likewise.
4625         * modules/unistr/u16-strcmp: Likewise.
4626         * modules/unistr/u16-strcoll: Likewise.
4627         * modules/unistr/u16-strcpy: Likewise.
4628         * modules/unistr/u16-strcspn: Likewise.
4629         * modules/unistr/u16-strdup: Likewise.
4630         * modules/unistr/u16-strlen: Likewise.
4631         * modules/unistr/u16-strmblen: Likewise.
4632         * modules/unistr/u16-strmbtouc: Likewise.
4633         * modules/unistr/u16-strncat: Likewise.
4634         * modules/unistr/u16-strncmp: Likewise.
4635         * modules/unistr/u16-strncpy: Likewise.
4636         * modules/unistr/u16-strnlen: Likewise.
4637         * modules/unistr/u16-strpbrk: Likewise.
4638         * modules/unistr/u16-strrchr: Likewise.
4639         * modules/unistr/u16-strspn: Likewise.
4640         * modules/unistr/u16-strstr: Likewise.
4641         * modules/unistr/u16-strtok: Likewise.
4642         * modules/unistr/u16-to-u32: Likewise.
4643         * modules/unistr/u16-to-u8: Likewise.
4644         * modules/unistr/u16-uctomb: Likewise.
4645         * modules/unistr/u32-check: Likewise.
4646         * modules/unistr/u32-chr: Likewise.
4647         * modules/unistr/u32-cmp: Likewise.
4648         * modules/unistr/u32-cmp2: Likewise.
4649         * modules/unistr/u32-cpy: Likewise.
4650         * modules/unistr/u32-cpy-alloc: Likewise.
4651         * modules/unistr/u32-endswith: Likewise.
4652         * modules/unistr/u32-mblen: Likewise.
4653         * modules/unistr/u32-mbsnlen: Likewise.
4654         * modules/unistr/u32-mbtouc: Likewise.
4655         * modules/unistr/u32-mbtouc-unsafe: Likewise.
4656         * modules/unistr/u32-mbtoucr: Likewise.
4657         * modules/unistr/u32-move: Likewise.
4658         * modules/unistr/u32-next: Likewise.
4659         * modules/unistr/u32-prev: Likewise.
4660         * modules/unistr/u32-set: Likewise.
4661         * modules/unistr/u32-startswith: Likewise.
4662         * modules/unistr/u32-stpcpy: Likewise.
4663         * modules/unistr/u32-stpncpy: Likewise.
4664         * modules/unistr/u32-strcat: Likewise.
4665         * modules/unistr/u32-strchr: Likewise.
4666         * modules/unistr/u32-strcmp: Likewise.
4667         * modules/unistr/u32-strcoll: Likewise.
4668         * modules/unistr/u32-strcpy: Likewise.
4669         * modules/unistr/u32-strcspn: Likewise.
4670         * modules/unistr/u32-strdup: Likewise.
4671         * modules/unistr/u32-strlen: Likewise.
4672         * modules/unistr/u32-strmblen: Likewise.
4673         * modules/unistr/u32-strmbtouc: Likewise.
4674         * modules/unistr/u32-strncat: Likewise.
4675         * modules/unistr/u32-strncmp: Likewise.
4676         * modules/unistr/u32-strncpy: Likewise.
4677         * modules/unistr/u32-strnlen: Likewise.
4678         * modules/unistr/u32-strpbrk: Likewise.
4679         * modules/unistr/u32-strrchr: Likewise.
4680         * modules/unistr/u32-strspn: Likewise.
4681         * modules/unistr/u32-strstr: Likewise.
4682         * modules/unistr/u32-strtok: Likewise.
4683         * modules/unistr/u32-to-u16: Likewise.
4684         * modules/unistr/u32-to-u8: Likewise.
4685         * modules/unistr/u32-uctomb: Likewise.
4686         * modules/uniwbrk/u8-wordbreaks: Likewise.
4687         * modules/uniwbrk/u16-wordbreaks: Likewise.
4688         * modules/uniwbrk/u32-wordbreaks: Likewise.
4689         * modules/uniwbrk/ulc-wordbreaks: Likewise.
4690         * modules/uniwbrk/wordbreak-property: Likewise.
4691         * modules/uniwidth/u8-strwidth: Likewise.
4692         * modules/uniwidth/u8-width: Likewise.
4693         * modules/uniwidth/u16-strwidth: Likewise.
4694         * modules/uniwidth/u16-width: Likewise.
4695         * modules/uniwidth/u32-strwidth: Likewise.
4696         * modules/uniwidth/u32-width: Likewise.
4697         * modules/uniwidth/width: Likewise.
4698         * modules/unicase/cased-tests (Makefile.am): Link all test programs
4699         with $(LIBUNISTRING).
4700         * modules/unicase/ignorable-tests: Likewise.
4701         * modules/unicase/locale-language-tests: Likewise.
4702         * modules/unicase/tolower-tests: Likewise.
4703         * modules/unicase/totitle-tests: Likewise.
4704         * modules/unicase/toupper-tests: Likewise.
4705         * modules/unicase/u8-casecmp-tests: Likewise.
4706         * modules/unicase/u8-casecoll-tests: Likewise.
4707         * modules/unicase/u8-casefold-tests: Likewise.
4708         * modules/unicase/u8-is-cased-tests: Likewise.
4709         * modules/unicase/u8-is-casefolded-tests: Likewise.
4710         * modules/unicase/u8-is-lowercase-tests: Likewise.
4711         * modules/unicase/u8-is-titlecase-tests: Likewise.
4712         * modules/unicase/u8-is-uppercase-tests: Likewise.
4713         * modules/unicase/u8-tolower-tests: Likewise.
4714         * modules/unicase/u8-totitle-tests: Likewise.
4715         * modules/unicase/u8-toupper-tests: Likewise.
4716         * modules/unicase/u16-casecmp-tests: Likewise.
4717         * modules/unicase/u16-casecoll-tests: Likewise.
4718         * modules/unicase/u16-casefold-tests: Likewise.
4719         * modules/unicase/u16-is-cased-tests: Likewise.
4720         * modules/unicase/u16-is-casefolded-tests: Likewise.
4721         * modules/unicase/u16-is-lowercase-tests: Likewise.
4722         * modules/unicase/u16-is-titlecase-tests: Likewise.
4723         * modules/unicase/u16-is-uppercase-tests: Likewise.
4724         * modules/unicase/u16-tolower-tests: Likewise.
4725         * modules/unicase/u16-totitle-tests: Likewise.
4726         * modules/unicase/u16-toupper-tests: Likewise.
4727         * modules/unicase/u32-casecmp-tests: Likewise.
4728         * modules/unicase/u32-casecoll-tests: Likewise.
4729         * modules/unicase/u32-casefold-tests: Likewise.
4730         * modules/unicase/u32-is-cased-tests: Likewise.
4731         * modules/unicase/u32-is-casefolded-tests: Likewise.
4732         * modules/unicase/u32-is-lowercase-tests: Likewise.
4733         * modules/unicase/u32-is-titlecase-tests: Likewise.
4734         * modules/unicase/u32-is-uppercase-tests: Likewise.
4735         * modules/unicase/u32-tolower-tests: Likewise.
4736         * modules/unicase/u32-totitle-tests: Likewise.
4737         * modules/unicase/u32-toupper-tests: Likewise.
4738         * modules/unicase/ulc-casecmp-tests: Likewise.
4739         * modules/unicase/ulc-casecoll-tests: Likewise.
4740         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
4741         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
4742         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
4743         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
4744         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
4745         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
4746         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
4747         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
4748         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
4749         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
4750         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
4751         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
4752         * modules/unictype/bidicategory-byname-tests: Likewise.
4753         * modules/unictype/bidicategory-name-tests: Likewise.
4754         * modules/unictype/bidicategory-of-tests: Likewise.
4755         * modules/unictype/bidicategory-test-tests: Likewise.
4756         * modules/unictype/block-list-tests: Likewise.
4757         * modules/unictype/block-of-tests: Likewise.
4758         * modules/unictype/block-test-tests: Likewise.
4759         * modules/unictype/category-C-tests: Likewise.
4760         * modules/unictype/category-Cc-tests: Likewise.
4761         * modules/unictype/category-Cf-tests: Likewise.
4762         * modules/unictype/category-Cn-tests: Likewise.
4763         * modules/unictype/category-Co-tests: Likewise.
4764         * modules/unictype/category-Cs-tests: Likewise.
4765         * modules/unictype/category-L-tests: Likewise.
4766         * modules/unictype/category-Ll-tests: Likewise.
4767         * modules/unictype/category-Lm-tests: Likewise.
4768         * modules/unictype/category-Lo-tests: Likewise.
4769         * modules/unictype/category-Lt-tests: Likewise.
4770         * modules/unictype/category-Lu-tests: Likewise.
4771         * modules/unictype/category-M-tests: Likewise.
4772         * modules/unictype/category-Mc-tests: Likewise.
4773         * modules/unictype/category-Me-tests: Likewise.
4774         * modules/unictype/category-Mn-tests: Likewise.
4775         * modules/unictype/category-N-tests: Likewise.
4776         * modules/unictype/category-Nd-tests: Likewise.
4777         * modules/unictype/category-Nl-tests: Likewise.
4778         * modules/unictype/category-No-tests: Likewise.
4779         * modules/unictype/category-P-tests: Likewise.
4780         * modules/unictype/category-Pc-tests: Likewise.
4781         * modules/unictype/category-Pd-tests: Likewise.
4782         * modules/unictype/category-Pe-tests: Likewise.
4783         * modules/unictype/category-Pf-tests: Likewise.
4784         * modules/unictype/category-Pi-tests: Likewise.
4785         * modules/unictype/category-Po-tests: Likewise.
4786         * modules/unictype/category-Ps-tests: Likewise.
4787         * modules/unictype/category-S-tests: Likewise.
4788         * modules/unictype/category-Sc-tests: Likewise.
4789         * modules/unictype/category-Sk-tests: Likewise.
4790         * modules/unictype/category-Sm-tests: Likewise.
4791         * modules/unictype/category-So-tests: Likewise.
4792         * modules/unictype/category-Z-tests: Likewise.
4793         * modules/unictype/category-Zl-tests: Likewise.
4794         * modules/unictype/category-Zp-tests: Likewise.
4795         * modules/unictype/category-Zs-tests: Likewise.
4796         * modules/unictype/category-and-not-tests: Likewise.
4797         * modules/unictype/category-and-tests: Likewise.
4798         * modules/unictype/category-byname-tests: Likewise.
4799         * modules/unictype/category-name-tests: Likewise.
4800         * modules/unictype/category-none-tests: Likewise.
4801         * modules/unictype/category-of-tests: Likewise.
4802         * modules/unictype/category-or-tests: Likewise.
4803         * modules/unictype/category-test-withtable-tests: Likewise.
4804         * modules/unictype/combining-class-tests: Likewise.
4805         * modules/unictype/ctype-alnum-tests: Likewise.
4806         * modules/unictype/ctype-alpha-tests: Likewise.
4807         * modules/unictype/ctype-blank-tests: Likewise.
4808         * modules/unictype/ctype-cntrl-tests: Likewise.
4809         * modules/unictype/ctype-digit-tests: Likewise.
4810         * modules/unictype/ctype-graph-tests: Likewise.
4811         * modules/unictype/ctype-lower-tests: Likewise.
4812         * modules/unictype/ctype-print-tests: Likewise.
4813         * modules/unictype/ctype-punct-tests: Likewise.
4814         * modules/unictype/ctype-space-tests: Likewise.
4815         * modules/unictype/ctype-upper-tests: Likewise.
4816         * modules/unictype/ctype-xdigit-tests: Likewise.
4817         * modules/unictype/decimal-digit-tests: Likewise.
4818         * modules/unictype/digit-tests: Likewise.
4819         * modules/unictype/mirror-tests: Likewise.
4820         * modules/unictype/numeric-tests: Likewise.
4821         * modules/unictype/property-alphabetic-tests: Likewise.
4822         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
4823         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
4824         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
4825         * modules/unictype/property-bidi-block-separator-tests: Likewise.
4826         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
4827         * modules/unictype/property-bidi-common-separator-tests: Likewise.
4828         * modules/unictype/property-bidi-control-tests: Likewise.
4829         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
4830         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
4831         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
4832         * modules/unictype/property-bidi-european-digit-tests: Likewise.
4833         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
4834         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
4835         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
4836         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
4837         * modules/unictype/property-bidi-pdf-tests: Likewise.
4838         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
4839         * modules/unictype/property-bidi-whitespace-tests: Likewise.
4840         * modules/unictype/property-byname-tests: Likewise.
4841         * modules/unictype/property-combining-tests: Likewise.
4842         * modules/unictype/property-composite-tests: Likewise.
4843         * modules/unictype/property-currency-symbol-tests: Likewise.
4844         * modules/unictype/property-dash-tests: Likewise.
4845         * modules/unictype/property-decimal-digit-tests: Likewise.
4846         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
4847         * modules/unictype/property-deprecated-tests: Likewise.
4848         * modules/unictype/property-diacritic-tests: Likewise.
4849         * modules/unictype/property-extender-tests: Likewise.
4850         * modules/unictype/property-format-control-tests: Likewise.
4851         * modules/unictype/property-grapheme-base-tests: Likewise.
4852         * modules/unictype/property-grapheme-extend-tests: Likewise.
4853         * modules/unictype/property-grapheme-link-tests: Likewise.
4854         * modules/unictype/property-hex-digit-tests: Likewise.
4855         * modules/unictype/property-hyphen-tests: Likewise.
4856         * modules/unictype/property-id-continue-tests: Likewise.
4857         * modules/unictype/property-id-start-tests: Likewise.
4858         * modules/unictype/property-ideographic-tests: Likewise.
4859         * modules/unictype/property-ids-binary-operator-tests: Likewise.
4860         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
4861         * modules/unictype/property-ignorable-control-tests: Likewise.
4862         * modules/unictype/property-iso-control-tests: Likewise.
4863         * modules/unictype/property-join-control-tests: Likewise.
4864         * modules/unictype/property-left-of-pair-tests: Likewise.
4865         * modules/unictype/property-line-separator-tests: Likewise.
4866         * modules/unictype/property-logical-order-exception-tests: Likewise.
4867         * modules/unictype/property-lowercase-tests: Likewise.
4868         * modules/unictype/property-math-tests: Likewise.
4869         * modules/unictype/property-non-break-tests: Likewise.
4870         * modules/unictype/property-not-a-character-tests: Likewise.
4871         * modules/unictype/property-numeric-tests: Likewise.
4872         * modules/unictype/property-other-alphabetic-tests: Likewise.
4873         * modules/unictype/property-other-default-ignorable-code-point-tests:
4874         Likewise.
4875         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
4876         * modules/unictype/property-other-id-continue-tests: Likewise.
4877         * modules/unictype/property-other-id-start-tests: Likewise.
4878         * modules/unictype/property-other-lowercase-tests: Likewise.
4879         * modules/unictype/property-other-math-tests: Likewise.
4880         * modules/unictype/property-other-uppercase-tests: Likewise.
4881         * modules/unictype/property-paired-punctuation-tests: Likewise.
4882         * modules/unictype/property-paragraph-separator-tests: Likewise.
4883         * modules/unictype/property-pattern-syntax-tests: Likewise.
4884         * modules/unictype/property-pattern-white-space-tests: Likewise.
4885         * modules/unictype/property-private-use-tests: Likewise.
4886         * modules/unictype/property-punctuation-tests: Likewise.
4887         * modules/unictype/property-quotation-mark-tests: Likewise.
4888         * modules/unictype/property-radical-tests: Likewise.
4889         * modules/unictype/property-sentence-terminal-tests: Likewise.
4890         * modules/unictype/property-soft-dotted-tests: Likewise.
4891         * modules/unictype/property-space-tests: Likewise.
4892         * modules/unictype/property-terminal-punctuation-tests: Likewise.
4893         * modules/unictype/property-test-tests: Likewise.
4894         * modules/unictype/property-titlecase-tests: Likewise.
4895         * modules/unictype/property-unassigned-code-value-tests: Likewise.
4896         * modules/unictype/property-unified-ideograph-tests: Likewise.
4897         * modules/unictype/property-uppercase-tests: Likewise.
4898         * modules/unictype/property-variation-selector-tests: Likewise.
4899         * modules/unictype/property-white-space-tests: Likewise.
4900         * modules/unictype/property-xid-continue-tests: Likewise.
4901         * modules/unictype/property-xid-start-tests: Likewise.
4902         * modules/unictype/property-zero-width-tests: Likewise.
4903         * modules/unictype/scripts-tests: Likewise.
4904         * modules/unictype/syntax-c-ident-tests: Likewise.
4905         * modules/unictype/syntax-c-whitespace-tests: Likewise.
4906         * modules/unictype/syntax-java-ident-tests: Likewise.
4907         * modules/unictype/syntax-java-whitespace-tests: Likewise.
4908         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
4909         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
4910         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
4911         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
4912         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
4913         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
4914         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
4915         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
4916         * modules/uniname/uniname-tests: Likewise.
4917         * modules/uninorm/canonical-decomposition-tests: Likewise.
4918         * modules/uninorm/compat-decomposition-tests: Likewise.
4919         * modules/uninorm/composition-tests: Likewise.
4920         * modules/uninorm/decomposing-form-tests: Likewise.
4921         * modules/uninorm/decomposition-tests: Likewise.
4922         * modules/uninorm/filter-tests: Likewise.
4923         * modules/uninorm/nfc-tests: Likewise.
4924         * modules/uninorm/nfd-tests: Likewise.
4925         * modules/uninorm/nfkc-tests: Likewise.
4926         * modules/uninorm/nfkd-tests: Likewise.
4927         * modules/uninorm/u8-normcmp-tests: Likewise.
4928         * modules/uninorm/u8-normcoll-tests: Likewise.
4929         * modules/uninorm/u16-normcmp-tests: Likewise.
4930         * modules/uninorm/u16-normcoll-tests: Likewise.
4931         * modules/uninorm/u32-normcmp-tests: Likewise.
4932         * modules/uninorm/u32-normcoll-tests: Likewise.
4933         * modules/unistdio/u8-asnprintf-tests: Likewise.
4934         * modules/unistdio/u8-vasnprintf-tests: Likewise.
4935         * modules/unistdio/u8-vasprintf-tests: Likewise.
4936         * modules/unistdio/u8-vsnprintf-tests: Likewise.
4937         * modules/unistdio/u8-vsprintf-tests: Likewise.
4938         * modules/unistdio/u16-asnprintf-tests: Likewise.
4939         * modules/unistdio/u16-vasnprintf-tests: Likewise.
4940         * modules/unistdio/u16-vasprintf-tests: Likewise.
4941         * modules/unistdio/u16-vsnprintf-tests: Likewise.
4942         * modules/unistdio/u16-vsprintf-tests: Likewise.
4943         * modules/unistdio/u32-asnprintf-tests: Likewise.
4944         * modules/unistdio/u32-vasnprintf-tests: Likewise.
4945         * modules/unistdio/u32-vasprintf-tests: Likewise.
4946         * modules/unistdio/u32-vsnprintf-tests: Likewise.
4947         * modules/unistdio/u32-vsprintf-tests: Likewise.
4948         * modules/unistdio/ulc-asnprintf-tests: Likewise.
4949         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
4950         * modules/unistdio/ulc-vasprintf-tests: Likewise.
4951         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
4952         * modules/unistdio/ulc-vsprintf-tests: Likewise.
4953         * modules/unistr/u8-check-tests: Likewise.
4954         * modules/unistr/u8-chr-tests: Likewise.
4955         * modules/unistr/u8-cmp-tests: Likewise.
4956         * modules/unistr/u8-cmp2-tests: Likewise.
4957         * modules/unistr/u8-cpy-alloc-tests: Likewise.
4958         * modules/unistr/u8-cpy-tests: Likewise.
4959         * modules/unistr/u8-mblen-tests: Likewise.
4960         * modules/unistr/u8-mbsnlen-tests: Likewise.
4961         * modules/unistr/u8-mbtouc-tests: Likewise.
4962         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
4963         * modules/unistr/u8-mbtoucr-tests: Likewise.
4964         * modules/unistr/u8-move-tests: Likewise.
4965         * modules/unistr/u8-next-tests: Likewise.
4966         * modules/unistr/u8-prev-tests: Likewise.
4967         * modules/unistr/u8-set-tests: Likewise.
4968         * modules/unistr/u8-stpcpy-tests: Likewise.
4969         * modules/unistr/u8-stpncpy-tests: Likewise.
4970         * modules/unistr/u8-strcat-tests: Likewise.
4971         * modules/unistr/u8-strcmp-tests: Likewise.
4972         * modules/unistr/u8-strcoll-tests: Likewise.
4973         * modules/unistr/u8-strcpy-tests: Likewise.
4974         * modules/unistr/u8-strdup-tests: Likewise.
4975         * modules/unistr/u8-strlen-tests: Likewise.
4976         * modules/unistr/u8-strmblen-tests: Likewise.
4977         * modules/unistr/u8-strmbtouc-tests: Likewise.
4978         * modules/unistr/u8-strncat-tests: Likewise.
4979         * modules/unistr/u8-strncmp-tests: Likewise.
4980         * modules/unistr/u8-strncpy-tests: Likewise.
4981         * modules/unistr/u8-strnlen-tests: Likewise.
4982         * modules/unistr/u8-to-u16-tests: Likewise.
4983         * modules/unistr/u8-to-u32-tests: Likewise.
4984         * modules/unistr/u8-uctomb-tests: Likewise.
4985         * modules/unistr/u16-check-tests: Likewise.
4986         * modules/unistr/u16-chr-tests: Likewise.
4987         * modules/unistr/u16-cmp-tests: Likewise.
4988         * modules/unistr/u16-cmp2-tests: Likewise.
4989         * modules/unistr/u16-cpy-alloc-tests: Likewise.
4990         * modules/unistr/u16-cpy-tests: Likewise.
4991         * modules/unistr/u16-mblen-tests: Likewise.
4992         * modules/unistr/u16-mbsnlen-tests: Likewise.
4993         * modules/unistr/u16-mbtouc-tests: Likewise.
4994         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
4995         * modules/unistr/u16-mbtoucr-tests: Likewise.
4996         * modules/unistr/u16-move-tests: Likewise.
4997         * modules/unistr/u16-next-tests: Likewise.
4998         * modules/unistr/u16-prev-tests: Likewise.
4999         * modules/unistr/u16-set-tests: Likewise.
5000         * modules/unistr/u16-stpcpy-tests: Likewise.
5001         * modules/unistr/u16-stpncpy-tests: Likewise.
5002         * modules/unistr/u16-strcat-tests: Likewise.
5003         * modules/unistr/u16-strcmp-tests: Likewise.
5004         * modules/unistr/u16-strcoll-tests: Likewise.
5005         * modules/unistr/u16-strcpy-tests: Likewise.
5006         * modules/unistr/u16-strdup-tests: Likewise.
5007         * modules/unistr/u16-strlen-tests: Likewise.
5008         * modules/unistr/u16-strmblen-tests: Likewise.
5009         * modules/unistr/u16-strmbtouc-tests: Likewise.
5010         * modules/unistr/u16-strncat-tests: Likewise.
5011         * modules/unistr/u16-strncmp-tests: Likewise.
5012         * modules/unistr/u16-strncpy-tests: Likewise.
5013         * modules/unistr/u16-strnlen-tests: Likewise.
5014         * modules/unistr/u16-to-u32-tests: Likewise.
5015         * modules/unistr/u16-to-u8-tests: Likewise.
5016         * modules/unistr/u16-uctomb-tests: Likewise.
5017         * modules/unistr/u32-check-tests: Likewise.
5018         * modules/unistr/u32-chr-tests: Likewise.
5019         * modules/unistr/u32-cmp-tests: Likewise.
5020         * modules/unistr/u32-cmp2-tests: Likewise.
5021         * modules/unistr/u32-cpy-alloc-tests: Likewise.
5022         * modules/unistr/u32-cpy-tests: Likewise.
5023         * modules/unistr/u32-mblen-tests: Likewise.
5024         * modules/unistr/u32-mbsnlen-tests: Likewise.
5025         * modules/unistr/u32-mbtouc-tests: Likewise.
5026         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
5027         * modules/unistr/u32-mbtoucr-tests: Likewise.
5028         * modules/unistr/u32-move-tests: Likewise.
5029         * modules/unistr/u32-next-tests: Likewise.
5030         * modules/unistr/u32-prev-tests: Likewise.
5031         * modules/unistr/u32-set-tests: Likewise.
5032         * modules/unistr/u32-stpcpy-tests: Likewise.
5033         * modules/unistr/u32-stpncpy-tests: Likewise.
5034         * modules/unistr/u32-strcat-tests: Likewise.
5035         * modules/unistr/u32-strcmp-tests: Likewise.
5036         * modules/unistr/u32-strcoll-tests: Likewise.
5037         * modules/unistr/u32-strcpy-tests: Likewise.
5038         * modules/unistr/u32-strdup-tests: Likewise.
5039         * modules/unistr/u32-strlen-tests: Likewise.
5040         * modules/unistr/u32-strmblen-tests: Likewise.
5041         * modules/unistr/u32-strmbtouc-tests: Likewise.
5042         * modules/unistr/u32-strncat-tests: Likewise.
5043         * modules/unistr/u32-strncmp-tests: Likewise.
5044         * modules/unistr/u32-strncpy-tests: Likewise.
5045         * modules/unistr/u32-strnlen-tests: Likewise.
5046         * modules/unistr/u32-to-u16-tests: Likewise.
5047         * modules/unistr/u32-to-u8-tests: Likewise.
5048         * modules/unistr/u32-uctomb-tests: Likewise.
5049         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
5050         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
5051         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
5052         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
5053         * modules/uniwidth/u8-strwidth-tests: Likewise.
5054         * modules/uniwidth/u8-width-tests: Likewise.
5055         * modules/uniwidth/u16-strwidth-tests: Likewise.
5056         * modules/uniwidth/u16-width-tests: Likewise.
5057         * modules/uniwidth/u32-strwidth-tests: Likewise.
5058         * modules/uniwidth/u32-width-tests: Likewise.
5059         * modules/uniwidth/width-tests: Likewise.
5060
5061 2010-05-18  Richard Jones  <rjones@redhat.com>
5062
5063         doc: users.txt: list hivex
5064         * users.txt: Add hivex.
5065
5066 2010-05-18  Richard Jones  <rjones@redhat.com>
5067
5068         doc: users.txt: list febootstrap
5069         * users.txt: Add febootstrap.
5070
5071 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
5072
5073         bootstrap: fix an error when gnulib is not used as a git submodule
5074         * build-aux/bootstrap (gnulib_path): If its length is zero then
5075         assign "gnulib" to it.
5076         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
5077
5078 2010-05-16  Bruno Haible  <bruno@clisp.org>
5079
5080         Avoid autoconf warnings about AM_ICONV.
5081         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
5082         2.64.
5083
5084 2010-05-16  Bruno Haible  <bruno@clisp.org>
5085
5086         absolute-header: Make the macro usable in more situations.
5087         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
5088         from gl_ABSOLUTE_HEADER.
5089         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
5090
5091 2010-05-16  James Youngman  <jay@gnu.org>
5092
5093         doc: update users.txt
5094         * users.txt: Add CSSC.
5095
5096 2010-05-16  Jim Meyering  <meyering@redhat.com>
5097
5098         init.sh: fix an error in the previous change; add more comments
5099         * tests/init.sh: Compare exit code in loop against 9, not 2.
5100         Patch by Bruno Haible.
5101         Make the two tests more similar by adding an empty "then" clause.
5102         Add comments.
5103
5104         init.sh: avoid unnecessary shell re-exec
5105         * tests/init.sh: Improve the re-exec-required check to first test the
5106         current shell.  If it passes the test, do not search for a shell that
5107         does pass, and do not re-exec.  This test is particularly contorted to
5108         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
5109         of $(...) evokes a syntax error and causes immediate shell exit with
5110         status 2.  Bruno Haible reported that the re-exec made it impossible
5111         to single-step through any init.sh-using script.
5112
5113 2010-05-16  Bruno Haible  <bruno@clisp.org>
5114
5115         Fix collision between gnulib's and libintl's printf replacements.
5116         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
5117         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
5118         (printf): When using GNU C, map the __printf__ function to rpl_printf
5119         via __asm__. When not using GNU C, define rpl_printf instead of
5120         __printf__.
5121         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
5122         commit.
5123         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
5124         commit.
5125         * m4/asm-underscore.m4: New file.
5126         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
5127         * modules/stdio (Files): Add m4/asm-underscore.m4.
5128         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
5129         Reported by Ben Pfaff.
5130
5131 2010-05-16  Bruno Haible  <bruno@clisp.org>
5132
5133         verify: Avoid skipping the test on openSUSE 11.0.
5134         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
5135
5136 2010-05-13  Bruno Haible  <bruno@clisp.org>
5137
5138         Avoid useless warnings from G++.
5139         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
5140         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
5141         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5142
5143 2010-05-11  Jim Meyering  <meyering@redhat.com>
5144
5145         maint.mk: tweak preceding change
5146         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
5147         regexps tighter by anchoring at EOL, and make the new group "shy"
5148         for slightly decreased overhead.
5149
5150 2010-05-11  Eric Blake  <eblake@redhat.com>
5151
5152         maint.mk: gnulib doesn't guarantee NSIG
5153         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
5154
5155 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
5156
5157         test-pwrite.c: Remove unused variable declaration.
5158         * tests/test-pwrite.c (main): Remove read_buf declaration.
5159
5160         Remove useless test-pwrite.sh file.
5161         * tests/test-pwrite.sh: Delete file.
5162         * modules/pwrite-tests: Remove references.
5163         Reported by Bruno Haible.
5164
5165 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
5166
5167         init.sh: fix a typo
5168         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
5169
5170 2010-05-10  Jim Meyering  <meyering@redhat.com>
5171
5172         maint.mk: avoid using a temporary file in the always-defined-macros check
5173         * top/maint.mk (.re-defmac): Remove rule.
5174         (gl_trap_): Remove definition.
5175         (sc_prohibit_always-defined_macros): Rewrite not to create and
5176         depend on a temporary file.  Instead, depend on GNU grep's ability
5177         to read a list of regular expressions from stdin when given "-f -".
5178
5179 2010-05-09  Bruno Haible  <bruno@clisp.org>
5180
5181         Update to GNU gettext 0.18, part 1.
5182         * m4/gettext.m4: Update to GNU gettext 0.18.
5183         * m4/intl.m4: Likewise.
5184         * m4/po.m4: Likewise.
5185         * modules/gettext (Files): Add m4/fcntl-o.m4.
5186         (configure.ac): Require gettext infrastructure from version 0.18.
5187
5188 2010-05-09  Jim Meyering  <meyering@redhat.com>
5189
5190         init.sh: enable MALLOC_PERTURB_
5191         * tests/init.sh: Enable glibc's malloc-perturbing option.
5192
5193         maint.mk: improve sc_cross_check_PATH_usage_in_tests
5194         With my recent change in init.sh from the two-line form:
5195             -#   : ${srcdir=.}
5196             -#   . "$srcdir/init.sh"; path_prepend_ .
5197             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
5198         I noticed that using the one-line form would cause this test
5199         to fail with a false-positive, or to stop working altogether,
5200         depending on whether help-version changed or all the tests did.
5201         * top/maint.mk (_hv_regex): Remove this definition.
5202         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
5203         (_hv_regex_strong): Use a stronger regex to check for conformance.
5204         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
5205         Give a separate diagnostic for lack of conforming use.
5206
5207         maint.mk: prohibit definition of symbols defined by gnulib
5208         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
5209         definition of symbols defined by gnulib.
5210
5211 2010-05-09  Bruno Haible  <bruno@clisp.org>
5212
5213         acl: Avoid test failure on Cygwin-hosted mingw.
5214         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
5215
5216 2010-05-09  Bruno Haible  <bruno@clisp.org>
5217
5218         error: Use system's fcntl function.
5219         * lib/error.c (fcntl): Undefine.
5220
5221 2010-05-09  Jim Meyering  <meyering@redhat.com>
5222
5223         verify: adjust formatting to be more consistent
5224         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
5225         argument-list '('s, and after one comma.
5226
5227 2010-05-09  Bruno Haible  <bruno@clisp.org>
5228
5229         error: More reliable output on mingw.
5230         * lib/error.c: Include <windows.h>.
5231         (is_open): New function.
5232         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
5233         defined.
5234
5235 2010-05-09  Bruno Haible  <bruno@clisp.org>
5236
5237         vasnprintf: Fix syntax errors in libintl build on mingw.
5238         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
5239         pad_ourselves and prec_ourselves after use.
5240
5241 2010-05-08  Bruno Haible  <bruno@clisp.org>
5242
5243         * lib/config.charset: Update comments for Cygwin 1.7.
5244         * lib/localcharset.c: Likewise.
5245
5246 2010-05-07  Jim Meyering  <meyering@redhat.com>
5247
5248         init.sh: improve comments
5249         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
5250         . "${srcdir=.}/init.sh"; path_prepend_ .
5251         Add a note about path_prepend_ and the alternative of using
5252         TESTS_ENVIRONMENT.
5253
5254 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
5255
5256         exclude: Unescape hashed patterns in wildcard mode.
5257         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
5258         to the hash list.
5259         * tests/test-exclude8.sh: New test case.
5260         * modules/exclude-tests: Add new test.
5261
5262 2010-05-05  Eric Blake  <eblake@redhat.com>
5263
5264         verify: automate tests
5265         * modules/verify-tests: New module.
5266         * tests/test-verify.sh: New file.
5267         * tests/test-verify.c: Guard each negative test with a unique id.
5268         Also avoid warning about unused left hand of comma expressions.
5269
5270 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5271
5272         Further improvements to verify.h, suggested by Eric Blake.
5273         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
5274         the GL_* versions, to avoid collision with OpenGL.
5275         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
5276         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
5277         than testing merely whether it's defined.
5278
5279         Modify verify.h to pacify gcc -Wredundant_decls.
5280         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
5281         These use the prefix "GL_" since they're likely to be useful elsewhere.
5282         We may need to break them out into a different .h file.
5283         (__COUNTER__): Define to 0 if the compiler doesn't support it.
5284         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
5285         of verify_function__.
5286
5287 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5288
5289         Tests for module pwrite.
5290         * modules/pwrite-tests: New file.
5291         * tests/test-pwrite.sh: New file.
5292         * tests/test-pwrite.c: New file.
5293
5294         New module pwrite.
5295         * lib/unistd.in.h (pwrite): New declaration.
5296         * lib/pwrite.c: New file, from glibc with modifications.
5297         * m4/pwrite.m4: New file.
5298         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
5299         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
5300         REPLACE_PWRITE.
5301         * modules/pwrite: New file.
5302         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
5303         REPLACE_PWRITE.
5304         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
5305         * doc/posix-functions/pwrite.texi: Mention the new module.
5306
5307 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5308
5309         pread: Update documentation.
5310         * doc/posix-functions/pread.texi: Mention the 'pread' module.
5311
5312 2010-05-04  Eric Blake  <eblake@redhat.com>
5313
5314         docs: update cygwin progress
5315         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
5316         this bug.
5317         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
5318         Added in cygwin 1.7.2.
5319         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
5320         Likewise.
5321         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
5322         Likewise.
5323         * doc/glibc-functions/dup3.texi (dup3): Likewise.
5324         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5325         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5326         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
5327         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
5328         Mention nproc module.
5329         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
5330         bug in cygwin 1.7.5 addition.
5331         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
5332         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
5333         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
5334         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
5335         1.7.5.
5336         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
5337         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
5338         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
5339         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
5340         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
5341         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
5342         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
5343         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
5344         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
5345         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
5346         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
5347         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
5348         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
5349         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
5350         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
5351         Likewise.
5352         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
5353         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
5354         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
5355         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
5356         Likewise.
5357         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
5358         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
5359         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
5360         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
5361         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
5362         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
5363         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
5364         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
5365         Likewise.
5366         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
5367         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
5368         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
5369         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
5370         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
5371         Likewise.
5372         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
5373         Likewise.
5374         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
5375         Likewise.
5376         * doc/glibc-functions/xdrrec_endofrecord.texi
5377         (xdrrec_endofrecord): Likewise.
5378         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
5379         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
5380         Likewise.
5381         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
5382         Likewise.
5383
5384 2010-05-04  Jim Meyering  <meyering@redhat.com>
5385
5386         gendocs.sh: make its "-s FILE" option more useful
5387         * build-aux/gendocs.sh: When honoring the -s FILE option, update
5388         $PACKAGE to reflect the probably-different basename of "FILE".
5389
5390 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
5391
5392         bootstrap: don't ignore download_po_files failure
5393         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
5394         failure.
5395
5396 2010-05-03  Jim Meyering  <meyering@redhat.com>
5397
5398         maint.mk: allow to pass options to gendocs.sh
5399         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
5400         (gendocs_options_): New overridable variable.
5401
5402         gnu-web-doc-update: don't ignore configure or build failure
5403         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
5404
5405         announce-gen: backslash-escape '@'s in --help output
5406         * build-aux/announce-gen: Fix syntax errors.
5407
5408         maint.mk, announce-gen: allow project-specific announcement mail headers
5409         * top/maint.mk (translation_project_): Define default.
5410         (announcement_Cc_, announcement_mail_headers_): Likewise.
5411         (announcement): Invoke announce-gen with new --mail-headers option.
5412         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
5413
5414         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
5415         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
5416         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
5417         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
5418         line in the "err2" output file when running "make check" in verbose
5419         mode (i.e., with set -x enabled).
5420
5421 2010-05-03  Bruno Haible  <bruno@clisp.org>
5422
5423         wctob: Fix for weird platforms.
5424         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
5425         argument value.
5426
5427 2010-05-03  Jim Meyering  <meyering@redhat.com>
5428
5429         maint.mk: prohibit unwarranted use of <strings.h>
5430         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
5431         strings.h in a file that does not also use strcasecmp, strncasecmp,
5432         ffs or ffsll.
5433
5434         maint.mk: remove obsolete comments
5435         * top/maint.mk: Remove stale, commented-out rules.
5436
5437 2010-05-02  Bruno Haible  <bruno@clisp.org>
5438
5439         wcwidth: Declare also when it's aliased.
5440         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
5441         macro.
5442
5443 2010-05-02  Bruno Haible  <bruno@clisp.org>
5444
5445         Fix regression from 2010-04-25.
5446         * gnulib-tool (func_modules_transitive_closure): Check the status of
5447         all modules, not only of the tests that are of the form foo-tests where
5448         foo is a module.
5449
5450 2010-05-02  Bruno Haible  <bruno@clisp.org>
5451
5452         wctob: Work around nasty Cygwin 1.7.2 bug.
5453         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
5454         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
5455
5456 2010-05-01  Bruno Haible  <bruno@clisp.org>
5457
5458         fpurge: Sharper test.
5459         * tests/test-fpurge.c (main): Add one more ftell check.
5460         * modules/fpurge-tests (Depends-on): Add ftell.
5461         Suggested by Eric Blake.
5462
5463 2010-05-01  Bruno Haible  <bruno@clisp.org>
5464
5465         ftello: Another test.
5466         * tests/test-ftello3.c: New file.
5467         * modules/ftello-tests (Files): Add it.
5468         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5469         MOSTLYCLEANFILES.
5470
5471         ftell: Another test.
5472         * tests/test-ftell3.c: New file.
5473         * modules/ftell-tests (Files): Add it.
5474         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5475         MOSTLYCLEANFILES.
5476
5477 2010-05-01  Bruno Haible  <bruno@clisp.org>
5478
5479         ftell, ftello: Work around Solaris bug.
5480         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
5481         * lib/ftello.c: Include stdio-impl.h.
5482         (ftello): On Solaris, when _IOWRT is set, compute the result without
5483         looking at _IOREAD.
5484         * modules/ftello (Files): Add lib/stdio-impl.h.
5485         * doc/posix-functions/ftell.texi: Mention Solaris bug.
5486         * doc/posix-functions/ftello.texi: Likewise.
5487         Reported by Eric Blake.
5488
5489 2010-05-01  Bruno Haible  <bruno@clisp.org>
5490
5491         freading: Adapt to special meaning of _IOREAD flag on Solaris.
5492         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
5493         the _IOWRT flag is also set.
5494
5495 2010-05-01  Bruno Haible  <bruno@clisp.org>
5496
5497         Fix doc about a HP-UX stdio bug.
5498         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
5499         * doc/posix-functions/ftello.texi: Likewise.
5500
5501 2010-05-01  Bruno Haible  <bruno@clisp.org>
5502
5503         lseek test: Fix failure on Solaris.
5504         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
5505         output.
5506
5507 2010-04-30  Jim Meyering  <meyering@redhat.com>
5508
5509         bootstrap: don't ignore failure to generate po*/Makevars
5510         * build-aux/bootstrap (with_gettext): Don't ignore failure
5511         to create po/Makevars or runtime-po/Makevars.
5512
5513 2010-04-29  Eric Blake  <eblake@redhat.com>
5514
5515         headers: relax license to LGPLv2+
5516         * modules/fcntl-h (License): Relax license.
5517         * modules/getopt-posix (License): Likewise.
5518         * modules/locale (License): Likewise.
5519         * modules/math (License): Likewise.
5520         * modules/pty (License): Likewise.
5521         * modules/sched (License): Likewise.
5522         * modules/search (License): Likewise.
5523         * modules/spawn (License): Likewise.
5524         * modules/stdarg (License): Likewise.
5525         * modules/sysexits (License): Likewise.
5526
5527 2010-04-29  Jim Meyering  <meyering@redhat.com>
5528
5529         inttypes: relax license to LGPLv2+
5530         * modules/inttypes (License): Relax license.
5531
5532 2010-04-29  Simon Josefsson  <simon@josefsson.org>
5533
5534         * top/maint.mk (indent): Run twice to produce idempotent results.
5535
5536 2010-04-28  Bruno Haible  <bruno@clisp.org>
5537
5538         getdate: Generate getdate.c in the source directory.
5539         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
5540         MOSTLYCLEANFILES.
5541         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
5542
5543 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
5544
5545         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
5546         is not declared as a const *; avoid warnings in that case.
5547
5548 2010-04-28  Eric Blake  <eblake@redhat.com>
5549
5550         canonicalize-lgpl: avoid compiler warning
5551         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
5552         declaration' / 'extraneous semicolon' warning with some compilers.
5553         Reported by Andreas Gruenbacher.
5554
5555 2010-04-28  Jim Meyering  <meyering@redhat.com>
5556
5557         init.sh: ensure a more reliable exit status when exiting via trap
5558         * tests/init.sh (setup_): Don't rely on $? in signal handler.
5559         Inspired by patches from Dmitry V. Levin.
5560         Also trap on signal 3 (SIGQUIT).
5561
5562 2010-04-27  Bruno Haible  <bruno@clisp.org>
5563
5564         Update doc about utimes().
5565         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
5566         'utimens' module.
5567         Reported by Andreas Gruenbacher <agruen@suse.de>.
5568
5569 2010-04-27  Eric Blake  <eblake@redhat.com>
5570
5571         full-read, full-write: relax license
5572         * modules/full-read (License): Drop to LGPLv2+.
5573         * modules/full-write (License): Likewise.
5574         * modules/safe-read (License): Likewise.
5575         * modules/safe-write (License): Likewise.
5576
5577         pthread: mention library for linking
5578         * modules/pthread (Link): Mention $(LIB_PTHREAD).
5579
5580 2010-04-27  Jim Meyering  <meyering@redhat.com>
5581
5582         maint.mk: fix a bug introduced in last change
5583         * top/maint.mk (gl_assured_headers_): Now that all names are on
5584         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
5585         is not anchored to end of word, it should be adequate.
5586
5587         maint.mk: avoid side-effect in latest syntax-check
5588         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
5589         to run commands via $(shell...), and hence to incur cost only when
5590         the new rule is actually run.
5591
5592         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
5593         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
5594         and use that to create a regexp used to detect all #if HAVE_..._H uses.
5595         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
5596         (gl_assured_headers_, az_, AZ_): Define.
5597         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
5598
5599 2010-04-26  Jim Meyering  <jim@meyering.net>
5600             Bruno Haible  <bruno@clisp.org>
5601
5602         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
5603         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
5604         Prompted by an exchange with Gilles Espinasse.
5605
5606 2010-04-26  Jim Meyering  <meyering@redhat.com>
5607
5608         git-version-gen: aesthetic tweak
5609         * build-aux/git-version-gen: Use "$nl" rather than a literal,
5610         so that the command remains on a single line.
5611
5612 2010-04-26  Eric Blake  <eblake@redhat.com>
5613
5614         git-version-gen: allow use on EBCDIC hosts
5615         * build-aux/git-version-gen (dirty): Use literal rather than tying
5616         ourselves to ascii.
5617         Reported by Steve Goetze.
5618
5619 2010-04-25  Bruno Haible  <bruno@clisp.org>
5620
5621         netdb: Add support for GNULIB_POSIXCHECK.
5622         * lib/netdb.in.h: Include warn-on-use.h.
5623         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
5624         functions are used when GNULIB_POSIXCHECK is defined and the
5625         getaddrinfo module is not in use.
5626         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
5627         freeaddrinfo, gai_strerror, getnameinfo are declared.
5628         * modules/netdb (Depends-on): Add warn-on-use.
5629         (Makefile.am): Include warn-on-use.h in netdb.h.
5630
5631 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
5632
5633         build: avoid "make check" failure without .git/ directory
5634         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
5635         there is no .git/ directory.
5636
5637 2010-04-25  Bruno Haible  <bruno@clisp.org>
5638
5639         ptsname: Fix misuse of ttyname_r.
5640         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
5641         of errno.
5642
5643 2010-04-25  Bruno Haible  <bruno@clisp.org>
5644
5645         ttyname_r: Make it work on Solaris 10.
5646         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
5647         if the system function has the POSIX declaration. Test whether the
5648         function fails if the buffer is less than 128 bytes large.
5649         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
5650         system's ttyname_r function. Provide a reasonably large buffer.
5651         * modules/ttyname_r (Depends-on): Add extensions.
5652         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
5653
5654 2010-04-25  Bruno Haible  <bruno@clisp.org>
5655
5656         Use the 'extensions' module for some more functions on Solaris.
5657         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
5658         module.
5659         * doc/posix-functions/ctime_r.texi: Likewise.
5660         * doc/posix-functions/getgrgid_r.texi: Likewise.
5661         * doc/posix-functions/getgrnam_r.texi: Likewise.
5662         * doc/posix-functions/getpwnam_r.texi: Likewise.
5663         * doc/posix-functions/getpwuid_r.texi: Likewise.
5664         * doc/posix-functions/readdir_r.texi: Likewise.
5665         * doc/posix-functions/sigwait.texi: Likewise.
5666         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
5667         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
5668
5669 2010-04-25  Bruno Haible  <bruno@clisp.org>
5670
5671         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
5672         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
5673         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
5674         * lib/ttyname_r.c: Include <limits.h>.
5675         (ttyname_r): Define using the system's ttyname_r function, if it exists
5676         and not on Solaris.
5677         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
5678         set.
5679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
5680         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
5681         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
5682         Reported by Simon Josefsson.
5683
5684 2010-04-25  Bruno Haible  <bruno@clisp.org>
5685
5686         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
5687         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
5688         * doc/posix-functions/ctime_r.texi: Likewise.
5689         * doc/posix-functions/getgrgid_r.texi: Likewise.
5690         * doc/posix-functions/getgrnam_r.texi: Likewise.
5691         * doc/posix-functions/getlogin_r.texi: Likewise.
5692         * doc/posix-functions/getpwnam_r.texi: Likewise.
5693         * doc/posix-functions/getpwuid_r.texi: Likewise.
5694         * doc/posix-functions/readdir_r.texi: Likewise.
5695         * doc/posix-functions/sigwait.texi: Likewise.
5696         * doc/posix-functions/ttyname_r.texi: Likewise.
5697         Reported by Simon Josefsson.
5698
5699 2010-04-25  Bruno Haible  <bruno@clisp.org>
5700
5701         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
5702         * gnulib-tool (func_usage): Document that --with-*-tests options apply
5703         also to --create-testdir.
5704         (func_acceptable): Don't consider the status of *-tests modules here.
5705         (func_modules_transitive_closure): Consider it here, before including a
5706         test module.
5707         (func_import, func_create_testdir): Set inc_all_direct_tests,
5708         inc_all_indirect_tests.
5709         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
5710         --create-testdir and --create-megatestdir.
5711
5712 2010-04-25  Bruno Haible  <bruno@clisp.org>
5713
5714         gnulib-tool: Add --without-*-tests options.
5715         * gnulib-tool (func_usage): Document the --without-*-tests options.
5716         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
5717         excl_unportable_tests): New variables.
5718         Fail if they are specified with --import or --update.
5719         (func_acceptable): Respect the excl_*_tests variables.
5720         (func_import): Set the excl_*_tests variables to empty.
5721
5722 2010-04-25  Simon Josefsson  <simon@josefsson.org>
5723             Bruno Haible  <bruno@clisp.org>
5724
5725         Work around a MacOS X 10.4 bug with openpty.
5726         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
5727         * tests/test-openpty.c (main): Close the master side explicitly.
5728
5729 2010-04-25  Bruno Haible  <bruno@clisp.org>
5730
5731         strnlen: Fix a C++ test error on MacOS X and Solaris.
5732         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
5733         the function is not declared.
5734         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
5735         Simon Josefsson.
5736
5737 2010-04-24  Bruno Haible  <bruno@clisp.org>
5738
5739         Avoid a gcc warning.
5740         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
5741         of correct type for %08lx directive.
5742         Reported by Eric Blake.
5743
5744 2010-04-24  Bruno Haible  <bruno@clisp.org>
5745
5746         vasnprintf: Correct errno value in case of out-of-memory.
5747         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
5748         or sprintf. Use the errno value from SNPRINTF or sprintf.
5749         Reported by Ian Beckwith <ianb@erislabs.net>.
5750
5751 2010-04-24  Bruno Haible  <bruno@clisp.org>
5752
5753         ansi-c++-opt: Find correct compiler when cross-compiling.
5754         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
5755         AC_CHECK_PROGS.
5756         Reported by Simon Josefsson.
5757
5758 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
5759
5760         vc-list-files: Add support for subversion
5761         * build-aux/vc-list-files: Use "svn list" to generate the list of
5762         files controlled by subversion.
5763
5764 2010-04-23  Jim Meyering  <meyering@redhat.com>
5765
5766         vc-list-files tests: convert to use init.sh
5767         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
5768         path_prepend_.
5769         Use Exit, not exit.
5770         Use skip_ rather than open coding it.
5771         Remove trap set-up and compare definitions.
5772         * tests/test-vc-list-files-git.sh: Likewise.
5773         * modules/vc-list-files-tests (Files): Add tests/init.sh.
5774
5775 2010-04-22  Simon Josefsson  <simon@josefsson.org>
5776
5777         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
5778         backup files.
5779
5780 2010-04-21  Simon Josefsson  <simon@josefsson.org>
5781
5782         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
5783
5784 2010-04-20  Eric Blake  <eblake@redhat.com>
5785
5786         tests: be robust to ignored SIGPIPE
5787         * tests/test-select-in.sh: Consume all output.
5788         * tests/test-lseek.sh: Check correct exit status, while avoiding
5789         EPIPE.
5790
5791 2010-04-20  Simon Josefsson  <simon@josefsson.org>
5792             Bruno Haible  <bruno@clisp.org>
5793
5794         visibility: Don't use -fvisibility if it leads to a warning.
5795         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
5796         yes, don't pretend that visibility works if it leads to a warning.
5797         Reported by Mike Gran <spk121@yahoo.com>.
5798
5799 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
5800
5801         * build-aux/bootstrap: Use "git -h" for testing for supported options
5802         instead of "git --help".  The short-form option only shows a summary,
5803         and doesn't layout the full man page.  Grep for the full option name
5804         in the summary, too.
5805
5806 2010-04-19  Bruno Haible  <bruno@clisp.org>
5807
5808         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
5809         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
5810         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
5811         mention of RELOCATABLE_STRIP.
5812         Reported by Sylvain Beucler <beuc@beuc.net>.
5813
5814 2010-04-19  Bruno Haible  <bruno@clisp.org>
5815
5816         * lib/diffseq.h: Fix typo in comment.
5817         Reported by Eric Blake.
5818
5819 2010-04-19  Bruno Haible  <bruno@clisp.org>
5820
5821         ioctl: Move autoconf macro to a .m4 file.
5822         * m4/ioctl.m4: New file, extracted from modules/ioctl.
5823         * modules/ioctl (Files): Add it.
5824         (configure.ac): Simply invoke gl_FUNC_IOCTL.
5825         Reported by Ian Beckwith <ianb@erislabs.net>.
5826
5827 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
5828             Bruno Haible  <bruno@clisp.org>
5829
5830         diffseq: Accommodate use-case with abstract arrays.
5831         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
5832         is not defined.
5833         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
5834         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
5835
5836 2010-04-18  Bruno Haible  <bruno@clisp.org>
5837
5838         * doc/posix-headers/stdbool.texi: More precise wording.
5839
5840 2010-04-17  Jim Meyering  <meyering@redhat.com>
5841
5842         maint.mk: use gnu-style indentation in an embedded perl script
5843         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
5844         Rename variable: s/two/last_two_bytes/
5845
5846 2010-04-16  Eric Blake  <eblake@redhat.com>
5847
5848         test-stdbool: skip test that fails with Solaris CC
5849         * tests/test-stdbool.c (f): Skip test that causes compilation
5850         error under buggy C++ compiler.
5851         * lib/stdbool.in.h: Document the limitation.
5852         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
5853
5854         setenv: allow compilation with C++
5855         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
5856         register keyword.
5857
5858         stdint: allow test to pass with C++
5859         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
5860
5861         getopt: allow compilation with C++
5862         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
5863         struct.
5864         * lib/getopt.c (_getopt_internal_r): Use correct type.
5865         Reported by Dagobert Michelson, via Joel E. Denny.
5866
5867 2010-04-16  Bruno Haible  <bruno@clisp.org>
5868
5869         Override netdb.h always.
5870         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
5871         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
5872         Reported by Ludovic Courtès <ludo@gnu.org>.
5873
5874 2010-04-15  Bruno Haible  <bruno@clisp.org>
5875
5876         openpty: Fix mistake from 2010-03-21.
5877         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
5878         Reported by Simon Josefsson.
5879
5880 2010-04-15  Eric Blake  <eblake@redhat.com>
5881
5882         test-forkpty: fix expected signature
5883         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
5884         Reported by Simon Josefsson.
5885
5886 2010-04-15  Jim Meyering  <meyering@redhat.com>
5887
5888         maint.mk: texinfo_suffix_re_: correct the default regexp
5889         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
5890
5891         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
5892         make it configurable via texinfo_suffix_re_.
5893
5894 2010-04-14  Eric Blake  <eblake@redhat.com>
5895
5896         strtok_r: relax license to LGPLv2+
5897         * modules/strtok_r (License): Relax license.
5898         Reported by Matthias Bolte.
5899
5900 2010-04-14  Simon Josefsson  <simon@josefsson.org>
5901
5902         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
5903         version 1.4.4 by default instead of requiring the libgcrypt
5904         version used during build.  This makes it possible to use the
5905         application with older but still binary compatible libgcrypt
5906         versions.
5907
5908 2010-04-13  Eric Blake  <eblake@redhat.com>
5909
5910         getopt-gnu: match recent glibc fixes and posix ruling
5911         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
5912         '+' handling, when requesting extensions.
5913         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
5914         'W;' handling.
5915         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
5916         * doc/posix-functions/getopt.texi (getopt): Document this.
5917         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5918         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5919         Likewise.
5920
5921         getopt: merge bug fixes from glibc
5922         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
5923         diagnostics.  Honor '+:' correctly.  Reject ';'.
5924
5925         getopt-posix: detect MacOS bug
5926         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
5927         optind when missing a required argument.
5928         * doc/posix-functions/getopt.texi (getopt): Document the bug.
5929         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5930         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5931         Likewise.
5932
5933         getopt-posix: avoid spurious failure on Solaris
5934         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
5935         an indicator that setting optind=1 is sufficient for reset.
5936
5937         getopt-posix: avoid spurious failure on FreeBSD
5938         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
5939         in POSIX mode, since the m4 test uses it.
5940
5941         gnulib-tool: silence warning on BSD sh
5942         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
5943
5944 2010-04-13  Jim Meyering  <meyering@redhat.com>
5945
5946         doc: users.txt: GNU patch now uses gnulib
5947         * users.txt: Add patch.
5948
5949 2010-04-12  Jim Meyering  <meyering@redhat.com>
5950
5951         maint.mk: generate more concise timing data for syntax-check rules
5952         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
5953         " done" from each line that reports a syntax-check test duration.
5954
5955 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
5956
5957         git-version-gen: use "git update-index..." rather than "git status"
5958         * build-aux/git-version-gen: Use git update-index --refresh, not
5959         "git status".  With some versions of git, "git status" would fail
5960         to update the index and result in an unwarranted "-dirty" suffix.
5961
5962 2010-04-11  Jim Meyering  <meyering@redhat.com>
5963
5964         openat: correct formatting (no semantic change)
5965         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
5966         Suggested by Bruno Haible.
5967
5968 2010-04-11  Bruno Haible  <bruno@clisp.org>
5969
5970         Stricter declaration checking in testdirs.
5971         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5972         If for_tests is true, augment AM_CPPFLAGS to define
5973         GNULIB_STRICT_CHECKING.
5974         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
5975         GNULIB_STRICT_CHECKING is defined, verify that the function is
5976         declared.
5977
5978 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
5979             Bruno Haible  <bruno@clisp.org>
5980
5981         libunistring: Improve configure output.
5982         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
5983         Don't say "consider installing GNU libunistring" when checking again
5984         with libiconv.
5985
5986 2010-04-11  Bruno Haible  <bruno@clisp.org>
5987
5988         libunistring: Correct value of $LTLIBUNISTRING.
5989         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
5990         correct the value of $LTLIBUNISTRING.
5991
5992 2010-04-11  Bruno Haible  <bruno@clisp.org>
5993
5994         havelib: Add static libraries to LIBS in the right order.
5995         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
5996         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
5997
5998 2010-04-11  Bruno Haible  <bruno@clisp.org>
5999
6000         libunistring: Detect libunistring also when it depends on libiconv.
6001         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
6002         the second AC_LIB_HAVE_LINKFLAGS invocation.
6003
6004 2010-04-11  James Youngman  <jay@gnu.org>
6005
6006         close-stream: declare local scalars to be "const"
6007         * lib/close-stream.c (close_stream): Make boolean variables const
6008         to document the fact that we set but do not change them.
6009
6010 2010-04-11  Bruno Haible  <bruno@clisp.org>
6011
6012         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
6013
6014 2010-04-11  Jim Meyering  <meyering@redhat.com>
6015
6016         maint.mk: don't include dist-check.mk
6017         * top/maint.mk: Remove bogus include directive.
6018
6019         maint.mk: improve empty-line-at-EOF check
6020         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
6021         solution, rather than tail+Perl-based one.  The latter would read
6022         a few kilobytes from the end of each file, and did not handle empty
6023         files properly.
6024
6025         maint.mk: print the elapsed time for each syntax-check rule
6026         * top/maint.mk (sc_m_rules_): Save start time in a file.
6027         (sc_z_rules_): New rules: remove temp file and print elapsed time.
6028         (local-check): Interpose the .z rules
6029
6030 2010-04-11  Jim Meyering  <meyering@redhat.com>
6031
6032         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
6033         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
6034         empty file with one that ends in an empty line.
6035
6036 2010-04-10  Bruno Haible  <bruno@clisp.org>
6037
6038         mkdir: Make it work on mingw64.
6039         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
6040         * lib/mkdir.c: Update comment.
6041         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
6042
6043 2010-04-10  Bruno Haible  <bruno@clisp.org>
6044
6045         Don't override improved macro from newer autoconf.
6046         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
6047         autoconf >= 2.62.
6048         Reported by Joel E. Denny <jdenny@clemson.edu>.
6049
6050 2010-04-10  Jim Meyering  <meyering@redhat.com>
6051
6052         maint.mk: new syntax-check rule: prohibit empty lines at end of file
6053         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
6054
6055         maint.mk: correct a diagnostic
6056         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
6057         in diagnostic; now use $prohibit.
6058
6059 2010-04-10  Bruno Haible  <address@hidden>
6060
6061         fchownat: Fix a C++ test error on Solaris 8.
6062         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
6063         the function does not exist.
6064
6065 2010-04-10  Bruno Haible  <bruno@clisp.org>
6066
6067         vasnprintf: Add more tests.
6068         * tests/test-vasnprintf-posix.c: Include <errno.h>.
6069         (test_function): Test converting an invalid wide string.
6070
6071         vasnprintf: Correct handling of unconvertible wide string arguments.
6072         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
6073         VASNPRINTF.
6074         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
6075         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
6076         smaller than the expected maximum need for the directive. Set errno to
6077         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
6078         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
6079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
6080         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
6081         * modules/vasnprintf (Files): Add m4/printf.m4.
6082         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6083
6084 2010-04-10  Bruno Haible  <bruno@clisp.org>
6085
6086         vasnprintf: Fix crash in %ls directive.
6087         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
6088         string is passed as argument to %ls, with no precision and no width.
6089         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6090
6091 2010-04-10  Bruno Haible  <bruno@clisp.org>
6092
6093         vasnprintf: Fix multiple test failures on mingw.
6094         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
6095         _snprintf, or snwprintf, not _snwprintf.
6096
6097 2010-04-10  Bruno Haible  <bruno@clisp.org>
6098
6099         write: Fix a C++ test error on mingw.
6100         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
6101
6102 2010-04-10  Bruno Haible  <bruno@clisp.org>
6103
6104         vasnprintf test: Reduce code duplication.
6105         * tests/test-vasnprintf.c (test_function): New function, extracted from
6106         test_vasnprintf.
6107         (test_vasnprintf, test_asnprintf): Invoke it.
6108
6109 2010-04-10  Bruno Haible  <bruno@clisp.org>
6110
6111         strnlen: Fix warning in C++ mode on MacOS X.
6112         * lib/string.in.h (strnlen): Use the modern idiom.
6113         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
6114         defining strnlen as a macro already in <config.h>.
6115         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6116         REPLACE_STRNLEN.
6117         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
6118         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6119
6120 2010-04-08  James Youngman  <jay@gnu.org>
6121
6122         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
6123         the example.
6124
6125 2010-04-09  Jim Meyering  <meyering@redhat.com>
6126
6127         maint.mk: print better diagnostic when there is no $(_hv_file)
6128         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
6129         announce that when $(_hv_file) (aka help-version) does not exist.
6130
6131         init.sh: run tr in the "C" locale to avoid multibyte interpretation
6132         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
6133         not try to interpret its random input bytes.  Jarno Rajahalme reported
6134         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
6135         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
6136         (mktempd_): Likewise, just in case.
6137
6138         ftruncate: add two years to projected module removal date: 2012
6139         * m4/ftruncate.m4: Adjust comments.
6140
6141         ftruncate: mark module as obsolete; even MinGW provides it, now
6142         * modules/ftruncate (Status): Obsolete.
6143         (Notice): Say that.
6144         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
6145         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
6146
6147 2010-04-08  Bruno Haible  <bruno@clisp.org>
6148
6149         Fix side effects from tests-related modules.
6150         * modules/dprintf-posix (Comment): New section.
6151         * modules/fprintf-posix (Comment): Likewise.
6152         * modules/obstack-printf-posix (Comment): Likewise.
6153         * modules/printf-posix (Comment): Likewise.
6154         * modules/snprintf-posix (Comment): Likewise.
6155         * modules/sprintf-posix (Comment): Likewise.
6156         * modules/vasnprintf-posix (Comment): Likewise.
6157         * modules/vasprintf-posix (Comment): Likewise.
6158         * modules/vdprintf-posix (Comment): Likewise.
6159         * modules/vfprintf-posix (Comment): Likewise.
6160         * modules/vprintf-posix (Comment): Likewise.
6161         * modules/vsnprintf-posix (Comment): Likewise.
6162         * modules/vsprintf-posix (Comment): Likewise.
6163         * modules/xprintf-posix (Comment): Likewise.
6164         * modules/xvasprintf-posix (Comment): Likewise.
6165         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
6166         * modules/floorf-tests (Depends-on): Likewise.
6167         * modules/round-tests (Depends-on): Likewise.
6168         * modules/roundf-tests (Depends-on): Likewise.
6169         * modules/trunc-tests (Depends-on): Likewise.
6170         * modules/truncf-tests (Depends-on): Likewise.
6171         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
6172         'fprintf-posix' module is not present.
6173         * tests/test-floorf2.c (check): Likewise.
6174         * tests/test-trunc2.c (check): Likewise.
6175         * tests/test-truncf2.c (check): Likewise.
6176         * tests/test-round2.c (equal): Likewise.
6177         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6178
6179 2010-04-07  Karl Berry  <karl@gnu.org>
6180
6181         * config/srclist.txt,
6182         * config/srclistvars.sh,
6183         * config/srclist-update: doc fixes.
6184
6185 2010-04-07  Jim Meyering  <meyering@redhat.com>
6186
6187         maint.mk: add a PATH crosschecking syntax-check rule
6188         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
6189         Useful if you use a test like the one in help-version (coreutils,
6190         diffutils, grep, gzip) that ensures $(VERSION) matches what is
6191         printed by prog --version.
6192
6193 2010-04-06  Bruno Haible  <bruno@clisp.org>
6194
6195         Fix link error on mingw.
6196         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
6197         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
6198
6199 2010-04-06  Bruno Haible  <bruno@clisp.org>
6200
6201         Assume rmdir exists.
6202         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
6203
6204 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
6205
6206         doc: update users.txt
6207         * users.txt: Add gcal.
6208
6209 2010-04-06  Jim Meyering  <meyering@redhat.com>
6210
6211         init.sh: simply unset TMPDIR rather than risking env -i
6212         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
6213         although it probably works fine on all Unix-based systems, some
6214         systems (Cygwin?) cannot tolerate a totally cleared environment.
6215         Suggestion from Eric Blake.
6216
6217 2010-04-06  Jim Meyering  <meyering@redhat.com>
6218
6219         init.sh: portability fix: use env's POSIX-specified -i option not -u
6220         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
6221         than unportable env -u.  Solaris 5.11's env lacks support for -u.
6222
6223 2010-04-05  Bruno Haible  <bruno@clisp.org>
6224
6225         btowc: Work around Cygwin 1.7.2 bug.
6226         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
6227         does not map NUL to 0.
6228         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
6229
6230 2010-04-05  Bruno Haible  <bruno@clisp.org>
6231
6232         Make the multithread modules work on Cygwin 1.7.2.
6233         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
6234         imported symbols can be declared weak, so that it returns "no" on
6235         Cygwin 1.7.2.
6236
6237 2010-04-05  Bruno Haible  <bruno@clisp.org>
6238
6239         Use the module 'strncat'.
6240         * modules/unistr/u8-strncat (Depends-on): Add strncat.
6241
6242         Tests for module 'strncat'.
6243         * modules/strncat-tests: New file.
6244         * tests/test-strncat.c: New file.
6245
6246         New module 'strncat'.
6247         * lib/string.in.h (strncat): New declaration.
6248         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
6249         * m4/strncat.m4: New file, based on m4/memchr.m4.
6250         * modules/strncat: New file.
6251         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
6252         is declared.
6253         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
6254         REPLACE_STRNCAT.
6255         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
6256         REPLACE_STRNCAT.
6257         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
6258         module.
6259         * tests/test-string-c++.cc: Check signature of strncat.
6260
6261 2010-04-05  Jim Meyering  <meyering@redhat.com>
6262
6263         xstrtoumax-tests: convert to use init.sh
6264         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
6265         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6266         Use Exit, not exit.
6267         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6268
6269         xstrtoimax-tests: convert to use init.sh
6270         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
6271         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6272         Use Exit, not exit.
6273         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6274
6275 2010-04-05  Bruno Haible  <bruno@clisp.org>
6276
6277         sys_socket: Avoid #define replacements in C++ mode.
6278         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
6279         warning to the function if possible, rather than #defining the symbol
6280         to a dysfunctional alias.
6281
6282 2010-04-05  Bruno Haible  <bruno@clisp.org>
6283
6284         fseeko: Fix C++ test error on mingw.
6285         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
6286         gl_FUNC_FSEEKO.
6287         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
6288         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
6289         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
6290         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
6291
6292 2010-04-05  Bruno Haible  <bruno@clisp.org>
6293
6294         duplocale: Improve test output.
6295         * tests/test-duplocale.c (main): Print reason for skipped test.
6296
6297 2010-04-05  Bruno Haible  <bruno@clisp.org>
6298
6299         Assume rmdir exists.
6300         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
6301         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
6302
6303 2010-04-05  Bruno Haible  <bruno@clisp.org>
6304
6305         Fix link error on Solaris 8 with cc.
6306         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
6307
6308 2010-04-05  Bruno Haible  <bruno@clisp.org>
6309
6310         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6311         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
6312
6313 2010-04-05  Bruno Haible  <bruno@clisp.org>
6314
6315         vasprintf: Update documentation.
6316         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
6317
6318 2010-04-05  Bruno Haible  <bruno@clisp.org>
6319
6320         ptsname: Improve test.
6321         * tests/test-ptsname.c (main): Also try the various master names of BSD
6322         systems.
6323
6324 2010-04-05  Bruno Haible  <bruno@clisp.org>
6325
6326         memchr: Avoid a possible C++ test error.
6327         * lib/string.in.h (memchr): Provide declaration if function is missing.
6328         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
6329         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
6330         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
6331         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
6332
6333 2010-04-05  Bruno Haible  <bruno@clisp.org>
6334
6335         strtok_r: Improve idiom.
6336         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
6337         AC_LIBOBJ is used.
6338
6339 2010-04-05  Bruno Haible  <bruno@clisp.org>
6340
6341         strdup: Improve idiom.
6342         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
6343         AC_LIBOBJ is used.
6344         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
6345         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
6346         when AC_LIBOBJ is used.
6347
6348 2010-04-05  Bruno Haible  <bruno@clisp.org>
6349
6350         mbsinit, mbrtowc, wcrtomb: Improve idioms.
6351         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
6352         don't set REPLACE_MBSINIT to 1.
6353         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
6354         don't set REPLACE_MBRTOWC to 1.
6355         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
6356         exist, don't set REPLACE_MBSRTOWCS to 1.
6357         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
6358         exist, don't set REPLACE_MBSNRTOWCS to 1.
6359         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
6360         don't set REPLACE_WCRTOMB to 1.
6361         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
6362         exist, don't set REPLACE_WCSRTOMBS to 1.
6363         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
6364         exist, don't set REPLACE_WCSNRTOMBS to 1.
6365
6366 2010-04-05  Bruno Haible  <bruno@clisp.org>
6367
6368         ldexpl: Improve idiom.
6369         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
6370         make sure to set HAVE_DECL_LDEXPL to 0.
6371
6372 2010-04-05  Jim Meyering  <meyering@redhat.com>
6373
6374         xstrtol-tests: convert to use init.sh
6375         * modules/xstrtol-tests (Files): Add tests/init.sh.
6376         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6377         Use Exit, not exit.
6378         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6379
6380         atexit-tests: convert to use init.sh
6381         * modules/atexit-tests (Files): Add tests/init.sh.
6382         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6383         Use Exit, not exit.
6384         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6385
6386         init.sh: fix typo
6387         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
6388
6389         init.sh: make it easier for a test script to write to the tty, ...
6390         when using automake's parallel-tests mode.
6391         * tests/init.sh (stderr_fileno_): Define overridable variable.
6392         (warn_): New function, to use it.
6393         (fail_, skip_, framework_failure_): Use warn_.
6394
6395 2010-04-04  Bruno Haible  <bruno@clisp.org>
6396
6397         btowc: Avoid warning.
6398         * lib/btowc.c: Include <stdlib.h>.
6399         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
6400
6401 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6402             Bruno Haible  <bruno@clisp.org>
6403
6404         wchar: Port to NetBSD 1.5.
6405         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
6406         * lib/wctype.in.h (WEOF): Likewise.
6407
6408 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6409             Bruno Haible  <bruno@clisp.org>
6410
6411         Port extended stdio to NetBSD 1.5.
6412         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
6413         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
6414         older.
6415
6416 2010-04-04  Bruno Haible  <bruno@clisp.org>
6417
6418         string: Remove unused substitution.
6419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6420         HAVE_DECL_STRERROR.
6421         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
6422
6423 2010-04-04  Bruno Haible  <bruno@clisp.org>
6424
6425         strtod: Avoid a possible C++ test error.
6426         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
6427         set REPLACE_STRTOD.
6428
6429 2010-04-04  Bruno Haible  <bruno@clisp.org>
6430
6431         strerror: Update documentation.
6432         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
6433
6434 2010-04-04  Bruno Haible  <bruno@clisp.org>
6435
6436         stdio: Fix some C++ test errors on Solaris 8 with GCC.
6437         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
6438         _GL_CXXALIAS_SYS_CAST.
6439
6440 2010-04-04  Bruno Haible  <bruno@clisp.org>
6441
6442         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6443         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
6444         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
6445         REPLACE_FREXPL to 1.
6446         * doc/posix-functions/frexpl.texi: Update documentation.
6447
6448 2010-04-04  Bruno Haible  <bruno@clisp.org>
6449
6450         math: Fix some C++ test errors on Solaris 8 and Cygwin.
6451         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
6452
6453 2010-04-04  Bruno Haible  <bruno@clisp.org>
6454
6455         Implement nanosleep for native Windows.
6456         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
6457
6458 2010-04-04  Bruno Haible  <bruno@clisp.org>
6459
6460         math: Fix some C++ test errors on Solaris 8.
6461         * lib/math.in.h (truncf, trunc): Use simpler idiom.
6462
6463 2010-04-04  Bruno Haible  <bruno@clisp.org>
6464
6465         math: Fix some C++ test errors on Cygwin.
6466         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
6467         truncl): Provide declaration if the system does not have it.
6468         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
6469         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
6470         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
6471         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
6472         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
6473         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
6474         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
6475         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
6476         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
6477         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
6478         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
6479         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
6480         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
6481         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
6482         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
6483         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
6484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
6485         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6486         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6487         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
6488         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6489         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6490
6491 2010-04-04  Bruno Haible  <bruno@clisp.org>
6492
6493         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
6494         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6495         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6496         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6497         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6498         * m4/isinf.m4 (gl_ISINF): Likewise.
6499         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6500
6501 2010-04-04  Bruno Haible  <bruno@clisp.org>
6502
6503         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
6504         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6505
6506 2010-04-04  Bruno Haible  <bruno@clisp.org>
6507
6508         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
6509         * modules/tmpfile (configure.ac): Update.
6510
6511         tmpfile: Fix C++ test error on mingw.
6512         * lib/stdio.in.h (tmpfile): New declaration.
6513         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
6514         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
6515         * modules/tmpfile (Depends-on): Add stdio.
6516         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6517         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
6518         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
6519         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
6520         REPLACE_TMPFILE.
6521         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
6522
6523 2010-04-04  Bruno Haible  <bruno@clisp.org>
6524
6525         ioctl: Fix C++ test error on mingw.
6526         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
6527         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
6528         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
6529
6530 2010-04-03  Bruno Haible  <bruno@clisp.org>
6531
6532         wcwidth: Fix C++ test error on mingw.
6533         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
6534         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
6535         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
6536
6537 2010-04-03  Bruno Haible  <bruno@clisp.org>
6538
6539         nanosleep: Fix C++ test error on mingw.
6540         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
6541         * lib/time.in.h (nanosleep): Use modern idiom.
6542         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
6543         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
6544         REPLACE_NANOSLEEP to 1.
6545         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
6546         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
6547
6548 2010-04-03  Bruno Haible  <bruno@clisp.org>
6549
6550         strptime: Fix C++ test error on mingw.
6551         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
6552         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
6553         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
6554         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
6555         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
6556         not REPLACE_STRPTIME.
6557         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
6558         REPLACE_STRPTIME.
6559
6560 2010-04-03  Bruno Haible  <bruno@clisp.org>
6561
6562         timegm: Fix C++ test error on mingw.
6563         * lib/time.in.h (timegm): Use modern idiom.
6564         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
6565         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
6566         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
6567         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
6568
6569 2010-04-03  Bruno Haible  <bruno@clisp.org>
6570
6571         timegm: Assume declaration if function exists.
6572         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
6573         if it exists. Don't clobber ac_cv_func_timegm.
6574
6575 2010-04-03  Bruno Haible  <bruno@clisp.org>
6576
6577         time_r: Fix C++ test error on mingw.
6578         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
6579         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
6580         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
6581         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
6582         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
6583
6584 2010-04-03  Bruno Haible  <bruno@clisp.org>
6585
6586         time_r: Minor updates.
6587         * modules/time_r (Description): Mention the provided functions.
6588         * lib/time_r.c: Don't include <string.h>.
6589         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
6590         * doc/posix-functions/localtime_r.texi: Likewise.
6591
6592 2010-04-03  Bruno Haible  <bruno@clisp.org>
6593
6594         time: Fix regression introduced on 2010-03-08.
6595         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
6596         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
6597
6598 2010-04-03  Jim Meyering  <meyering@redhat.com>
6599
6600         maint.mk: don't silently disable project-specific syntax-check rules
6601         * top/maint.mk (_prohibit_regexp): Define, to help people realize
6602         that they need to convert their project-specific syntax-check rules
6603         to use the new _sc_search_regexp.
6604
6605 2010-04-03  Bruno Haible  <bruno@clisp.org>
6606
6607         fchdir: Fix regression introduced on 2010-03-08.
6608         * lib/unistd.in.h (fchdir): Fix declaration.
6609         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
6610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
6611         REPLACE_FCHDIR.
6612         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
6613         REPLACE_FCHDIR.
6614
6615 2010-04-03  Bruno Haible  <bruno@clisp.org>
6616
6617         getpagesize: Fix C++ test error on mingw.
6618         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
6619         system does not declare the function.
6620         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
6621         declared.
6622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6623         HAVE_DECL_GETPAGESIZE.
6624         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
6625
6626 2010-04-03  Bruno Haible  <bruno@clisp.org>
6627
6628         stdio: Make C++ tests work on mingw.
6629         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
6630         does not declare the function.
6631
6632 2010-04-03  Bruno Haible  <bruno@clisp.org>
6633
6634         ftello: Fix C++ test error on mingw.
6635         * lib/stdio.in.h (ftello): Use modern idiom.
6636         * lib/ftello.c (ftello): Renamed from rpl_ftello.
6637         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
6638         is missing and that it needs to be replaced.
6639         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
6640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
6641         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
6642
6643 2010-04-03  Bruno Haible  <bruno@clisp.org>
6644
6645         fseeko: Fix C++ test error on mingw.
6646         * lib/stdio.in.h (fseeko): Use modern idiom.
6647         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
6648         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
6649         is missing and that it needs to be replaced.
6650         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
6651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
6652         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
6653
6654 2010-04-03  Bruno Haible  <bruno@clisp.org>
6655
6656         mkstemp: Fix C++ test error on mingw.
6657         * lib/stdlib.in.h (mkstemp): Use modern idiom.
6658         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
6659         function is missing and that it needs to be replaced.
6660         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
6661         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
6662
6663 2010-04-03  Bruno Haible  <bruno@clisp.org>
6664
6665         stpncpy: Fix C++ test error on mingw.
6666         * lib/string.in.h (stpncpy): Use modern idiom.
6667         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
6668         function is missing and that it needs to be replaced.
6669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6670         REPLACE_STPNCPY.
6671         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
6672
6673 2010-04-03  Bruno Haible  <bruno@clisp.org>
6674
6675         sys_stat: Fix C++ test error on mingw.
6676         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
6677         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
6678
6679 2010-04-03  Bruno Haible  <bruno@clisp.org>
6680
6681         pty: Update doc.
6682         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
6683
6684 2010-04-03  Bruno Haible  <bruno@clisp.org>
6685
6686         unistd: Fix C++ test error on mingw.
6687         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
6688
6689 2010-04-03  Bruno Haible  <bruno@clisp.org>
6690
6691         Update doc regarding mingw.
6692         * doc/glibc-functions/openpty.texi: Update regarding mingw.
6693         * doc/glibc-functions/login_tty.texi: Likewise.
6694         * doc/glibc-functions/forkpty.texi: Likewise.
6695
6696 2010-04-03  Bruno Haible  <bruno@clisp.org>
6697
6698         stdlib: Avoid compilation failure of c-strtold on mingw.
6699         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
6700
6701 2010-04-03  Bruno Haible  <bruno@clisp.org>
6702
6703         locale: Make C++ tests work on Cygwin and mingw.
6704         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
6705         cannot provide the function.
6706         Reported by Simon Josefsson.
6707
6708 2010-04-03  Bruno Haible  <bruno@clisp.org>
6709
6710         localename: Port to MacOS X 10.6.
6711         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
6712         memory layout of the locales in MacOS X 10.6 as well.
6713         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
6714
6715 2010-04-02  Bruno Haible  <bruno@clisp.org>
6716
6717         gnulib-tool: Ensure that long-running tests are executed last.
6718         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
6719         running tests after the one for the other tests.
6720
6721 2010-04-02  Bruno Haible  <bruno@clisp.org>
6722
6723         gnulib-tool: Ensure the tests in the main directory are executed first.
6724         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
6725         start with the current directory.
6726
6727 2010-04-02  Bruno Haible  <bruno@clisp.org>
6728
6729         Tests for module 'havelib', moved here from GNU gettext.
6730         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
6731         modifications.
6732         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
6733         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
6734         with modifications.
6735         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
6736         modifications.
6737         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
6738         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
6739         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
6740         with modifications.
6741         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
6742         with modifications.
6743         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
6744         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
6745         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
6746         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
6747         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
6748         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
6749         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
6750         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
6751         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
6752         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
6753         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
6754         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
6755         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
6756         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
6757         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
6758         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
6759         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
6760         with modifications.
6761         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
6762         with modifications.
6763         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
6764         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
6765         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
6766         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
6767         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
6768         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
6769         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
6770         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
6771         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
6772         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
6773         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
6774         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
6775         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
6776         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
6777         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
6778         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
6779         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
6780         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
6781         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
6782         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
6783         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
6784         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
6785         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
6786         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
6787         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
6788         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
6789         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
6790         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
6791         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
6792         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
6793         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
6794         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
6795         * tests/havelib/rpathx/rpathx.c: New file, from
6796         gettext/autoconf-lib-link.
6797         * tests/havelib/rpathx/Makefile.am: New file, from
6798         gettext/autoconf-lib-link.
6799         * tests/havelib/rpathx/configure.ac: New file, from
6800         gettext/autoconf-lib-link with modifications.
6801         * tests/havelib/rpathy/rpathy.c: New file, from
6802         gettext/autoconf-lib-link.
6803         * tests/havelib/rpathy/Makefile.am: New file, from
6804         gettext/autoconf-lib-link.
6805         * tests/havelib/rpathy/configure.ac: New file, from
6806         gettext/autoconf-lib-link with modifications.
6807         * tests/havelib/rpathz/rpathz.c: New file, from
6808         gettext/autoconf-lib-link.
6809         * tests/havelib/rpathz/Makefile.am: New file, from
6810         gettext/autoconf-lib-link.
6811         * tests/havelib/rpathz/configure.ac: New file, from
6812         gettext/autoconf-lib-link with modifications.
6813         * tests/havelib/rpathlx/usex.c: New file, from
6814         gettext/autoconf-lib-link.
6815         * tests/havelib/rpathlx/Makefile.am: New file, from
6816         gettext/autoconf-lib-link.
6817         * tests/havelib/rpathlx/configure.ac: New file, from
6818         gettext/autoconf-lib-link with modifications.
6819         * tests/havelib/rpathly/usey.c: New file, from
6820         gettext/autoconf-lib-link.
6821         * tests/havelib/rpathly/Makefile.am: New file, from
6822         gettext/autoconf-lib-link.
6823         * tests/havelib/rpathly/configure.ac: New file, from
6824         gettext/autoconf-lib-link with modifications.
6825         * tests/havelib/rpathlz/usez.c: New file, from
6826         gettext/autoconf-lib-link.
6827         * tests/havelib/rpathlz/Makefile.am: New file, from
6828         gettext/autoconf-lib-link.
6829         * tests/havelib/rpathlz/configure.ac: New file, from
6830         gettext/autoconf-lib-link with modifications.
6831         * tests/havelib/rpathlyx/usey.c: New file, from
6832         gettext/autoconf-lib-link.
6833         * tests/havelib/rpathlyx/Makefile.am: New file, from
6834         gettext/autoconf-lib-link.
6835         * tests/havelib/rpathlyx/configure.ac: New file, from
6836         gettext/autoconf-lib-link with modifications.
6837         * tests/havelib/rpathlzyx/usez.c: New file, from
6838         gettext/autoconf-lib-link.
6839         * tests/havelib/rpathlzyx/Makefile.am: New file, from
6840         gettext/autoconf-lib-link.
6841         * tests/havelib/rpathlzyx/configure.ac: New file, from
6842         gettext/autoconf-lib-link with modifications.
6843         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
6844         with modifications.
6845
6846 2010-04-02  Bruno Haible  <bruno@clisp.org>
6847
6848         gnulib-tool: Create distributed built sources also for the tests.
6849         * gnulib-tool (func_create_testdir): Also generate distributed built
6850         sources in the tests directory.
6851
6852 2010-04-02  Bruno Haible  <bruno@clisp.org>
6853
6854         gnulib-tool: Obey user's environment variables.
6855         * gnulib-tool (func_create_testdir): When creating built sources,
6856         respect the environment variables for autoconf, automake, etc. given by
6857         the user.
6858
6859 2010-04-02  Bruno Haible  <bruno@clisp.org>
6860
6861         gnulib-tool: Provide the value of --m4-base to modules.
6862         * gnulib-tool (func_import, func_create_testdir): Emit a definition
6863         of gl_m4_base.
6864
6865 2010-04-02  Eric Blake  <eblake@redhat.com>
6866
6867         maint.mk: fix some fallout
6868         * NEWS: Document the incompatible change, and its effect on cfg.mk.
6869         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
6870
6871 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6872
6873         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
6874         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
6875         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
6876         (sc_cast_of_x_alloc_return_value): Likewise.
6877         (sc_cast_of_alloca_return_value): Likewise.
6878         (sc_space_tab): Likewise.
6879         (sc_prohibit_atoi_atof): Likewise.
6880         (sc_prohibit_magic_number_exit): Likewise.
6881         (sc_error_exit_success): Likewise.
6882         (sc_file_system): Likewise.
6883         (sc_prohibit_have_config_h): Likewise.
6884         (sc_require_config_h): Likewise.
6885         (sc_prohibit_HAVE_MBRTOWC): Likewise.
6886         (sc_obsolete_symbols): Likewise.
6887         (sc_changelog): Likewise.
6888         (sc_program_name): Likewise.
6889         (sc_the_the): Likewise.
6890         (sc_trailing_blank): Likewise.
6891         (sc_two_space_separator_in_usage): Likewise.
6892         (sc_useless_cpp_parens): Likewise.
6893         (sc_GPL_version): Likewise.
6894         (sc_GFDL_version): Likewise.
6895         (sc_texinfo_acronym): Likewise.
6896         (sc_prohibit_cvs_keyword): Likewise.
6897         (sc_prohibit_stat_st_blocks): Likewise.
6898         (sc_prohibit_S_IS_definition): Likewise.
6899         (sc_redundant_const): Likewise.
6900         (sc_makefile_TAB_only_indentation): Likewise.
6901         (sc_m4_quote_check): Likewise.
6902         (sc_makefile_path_separator_check): Likewise.
6903         (sc_copyright_check): Likewise.
6904         (sc_Wundef_boolean): Likewise.
6905         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
6906
6907         maint.mk: match 0 or more whitespace-before-function-call '('
6908         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
6909         that have zero or two-and-more spaces between the function name
6910         and the open parenthesis.
6911         (sc_error_message_warn_fatal): Likewise.
6912         (sc_error_message_uppercase): Likewise.
6913         (sc_error_message_period): Likewise.
6914
6915 2010-03-31  Eric Blake  <eblake@redhat.com>
6916
6917         maint.mk: check for [ as well as test
6918         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
6919         Based on a libvirt report by Matthias Bolte.
6920
6921         gnumakefile: don't squelch _version output
6922         * top/GNUmakefile (_version): Create one-shot dependency rather
6923         than using $(shell) when version must be regenerated.
6924         (_autoreconf): Run verbosely, by default.
6925
6926         sys_time: avoid compiler warnings
6927         * lib/sys_time.in.h (includes): Ensure gcc pragma is
6928         unconditional, fixing regression from 2010-03-29.
6929         Reported by Simon Josefsson.
6930
6931 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6932
6933         maint.mk: s/_header_without_use/_sc_header_without_use/
6934         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
6935         (sc_prohibit_assert_without_use): Use the new name.
6936         (sc_prohibit_close_stream_without_use): Likewise.
6937         (sc_prohibit_getopt_without_use): Likewise.
6938         (sc_prohibit_quotearg_without_use): Likewise.
6939         (sc_prohibit_quote_without_use): Likewise.
6940         (sc_prohibit_long_options_without_use): Likewise.
6941         (sc_prohibit_inttostr_without_use): Likewise.
6942         (sc_prohibit_ignore_value_without_use): Likewise.
6943         (sc_prohibit_error_without_use): Likewise.
6944         (sc_prohibit_xalloc_without_use): Likewise.
6945         (sc_prohibit_hash_without_use): Likewise.
6946         (sc_prohibit_hash_pjw_without_use): Likewise.
6947         (sc_prohibit_safe_read_without_use): Likewise.
6948         (sc_prohibit_argmatch_without_use): Likewise.
6949         (sc_prohibit_canonicalize_without_use): Likewise.
6950         (sc_prohibit_root_dev_ino_without_use): Likewise.
6951         (sc_prohibit_openat_without_use): Likewise.
6952         (sc_prohibit_c_ctype_without_use): Likewise.
6953         (sc_prohibit_signal_without_use): Likewise.
6954         (sc_prohibit_intprops_without_use): Likewise.
6955
6956 2010-03-30  Eric Blake  <eblake@redhat.com>
6957
6958         maint: improve module indicators
6959         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
6960         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
6961         columns, and avoid extra macro expansion.
6962
6963         fdopendir: work around FreeBSD bug
6964         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
6965         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
6966         * modules/dirent (Makefile.am): Substitute it.
6967         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
6968         declaration.
6969         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
6970         fix.
6971         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6972
6973 2010-03-29  Bruno Haible  <bruno@clisp.org>
6974
6975         Emit #pragma system_header after the inclusion guard, not before.
6976         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
6977         guard that spans the entire file, not before. This enables an
6978         optimization in GCC's preprocessor.
6979         * lib/ctype.in.h: Likewise.
6980         * lib/dirent.in.h: Likewise.
6981         * lib/errno.in.h: Likewise.
6982         * lib/float.in.h: Likewise.
6983         * lib/getopt.in.h: Likewise.
6984         * lib/iconv.in.h: Likewise.
6985         * lib/langinfo.in.h: Likewise.
6986         * lib/locale.in.h: Likewise.
6987         * lib/math.in.h: Likewise.
6988         * lib/netdb.in.h: Likewise.
6989         * lib/netinet_in.in.h: Likewise.
6990         * lib/pty.in.h: Likewise.
6991         * lib/sched.in.h: Likewise.
6992         * lib/se-selinux.in.h: Likewise.
6993         * lib/search.in.h: Likewise.
6994         * lib/spawn.in.h: Likewise.
6995         * lib/stdarg.in.h: Likewise.
6996         * lib/stdint.in.h: Likewise.
6997         * lib/string.in.h: Likewise.
6998         * lib/strings.in.h: Likewise.
6999         * lib/sys_file.in.h: Likewise.
7000         * lib/sys_ioctl.in.h: Likewise.
7001         * lib/sys_time.in.h: Likewise.
7002         * lib/sys_times.in.h: Likewise.
7003         * lib/sys_utsname.in.h: Likewise.
7004         * lib/sys_wait.in.h: Likewise.
7005         * lib/sysexits.in.h: Likewise.
7006         * lib/wctype.in.h: Likewise.
7007
7008 2010-03-28  James Youngman  <jay@gnu.org>
7009
7010         save-cwd: don't leak a file descriptor when the caller execs.
7011         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
7012         saved file descriptor.
7013         * modules/save-cwd (Depends-on): Depend on cloexec.
7014
7015 2010-03-29  Bruno Haible  <bruno@clisp.org>
7016
7017         Remove vestiges of fts-lgpl module.
7018         * lib/fts_.h: Assume GNULIB_FTS is 1.
7019         * lib/fts.c: Likewise.
7020         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
7021
7022 2010-03-28  Bruno Haible  <bruno@clisp.org>
7023
7024         Fix definition of tests witness macro.
7025         * gnulib-tool (func_import): Fix definition of witness macro.
7026
7027 2010-03-28  Bruno Haible  <bruno@clisp.org>
7028
7029         Fix ioctl's protoype on glibc systems.
7030         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
7031         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
7032         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
7033         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
7034         signature. If not, arrange to replace the ioctl function.
7035         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
7036         REPLACE_IOCTL.
7037         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
7038         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
7039         Reported by Ludovic Courtès <ludo@gnu.org>.
7040
7041 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
7042
7043         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
7044         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
7045         made it so grep -r --include=GLOB* ... did not work.
7046
7047 2010-03-26  Jim Meyering  <meyering@redhat.com>
7048             Eric Blake  <eblake@redhat.com>
7049
7050         maint.mk: prohibit use of test's -o and -a operators
7051         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
7052
7053 2010-03-28  Bruno Haible  <bruno@clisp.org>
7054
7055         Remove unused GNULIB_XYZ macro definitions.
7056         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
7057         invocation.
7058
7059 2010-03-28  Bruno Haible  <bruno@clisp.org>
7060
7061         Mark privileged tests modules.
7062         * modules/idpriv-drop-tests (Status): New section.
7063         * modules/idpriv-droptemp-tests (Status): New section.
7064
7065 2010-03-28  Bruno Haible  <bruno@clisp.org>
7066
7067         Split C++ tests into separate tests modules.
7068         * modules/dirent-c++-tests: New file, extracted from
7069         modules/dirent-tests.
7070         * modules/dirent-tests: Depend on it.
7071         * modules/fcntl-h-c++-tests: New file, extracted from
7072         modules/fcntl-h-tests.
7073         * modules/fcntl-h-tests: Depend on it.
7074         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
7075         * modules/glob-tests: Depend on it.
7076         * modules/iconv-h-c++-tests: New file, extracted from
7077         modules/iconv-h-tests.
7078         * modules/iconv-h-tests: Depend on it.
7079         * modules/langinfo-c++-tests: New file, extracted from
7080         modules/langinfo-tests.
7081         * modules/langinfo-tests: Depend on it.
7082         * modules/locale-c++-tests: New file, extracted from
7083         modules/locale-tests.
7084         * modules/locale-tests: Depend on it.
7085         * modules/math-c++-tests: New file, extracted from modules/math-tests.
7086         * modules/math-tests: Depend on it.
7087         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
7088         * modules/pty-tests: Depend on it.
7089         * modules/search-c++-tests: New file, extracted from
7090         modules/search-tests.
7091         * modules/search-tests: Depend on it.
7092         * modules/signal-c++-tests: New file, extracted from
7093         modules/signal-tests.
7094         * modules/signal-tests: Depend on it.
7095         * modules/spawn-c++-tests: New file, extracted from
7096         modules/spawn-tests.
7097         * modules/spawn-tests: Depend on it.
7098         * modules/stdio-c++-tests: New file, extracted from
7099         modules/stdio-tests.
7100         * modules/stdio-tests: Depend on it.
7101         * modules/stdlib-c++-tests: New file, extracted from
7102         modules/stdlib-tests.
7103         * modules/stdlib-tests: Depend on it.
7104         * modules/string-c++-tests: New file, extracted from
7105         modules/string-tests.
7106         * modules/string-tests: Depend on it.
7107         * modules/sys_ioctl-c++-tests: New file, extracted from
7108         modules/sys_ioctl-tests.
7109         * modules/sys_ioctl-tests: Depend on it.
7110         * modules/sys_select-c++-tests: New file, extracted from
7111         modules/sys_select-tests.
7112         * modules/sys_select-tests: Depend on it.
7113         * modules/sys_socket-c++-tests: New file, extracted from
7114         modules/sys_socket-tests.
7115         * modules/sys_socket-tests: Depend on it.
7116         * modules/sys_stat-c++-tests: New file, extracted from
7117         modules/sys_stat-tests.
7118         * modules/sys_stat-tests: Depend on it.
7119         * modules/sys_time-c++-tests: New file, extracted from
7120         modules/sys_time-tests.
7121         * modules/sys_time-tests: Depend on it.
7122         * modules/time-c++-tests: New file, extracted from modules/time-tests.
7123         * modules/time-tests: Depend on it.
7124         * modules/unistd-c++-tests: New file, extracted from
7125         modules/unistd-tests.
7126         * modules/unistd-tests: Depend on it.
7127         * modules/wchar-c++-tests: New file, extracted from
7128         modules/wchar-tests.
7129         * modules/wchar-tests: Depend on it.
7130         * modules/wctype-c++-tests: New file, extracted from
7131         modules/wctype-tests.
7132         * modules/wctype-tests: Depend on it.
7133         Reported by Simon Josefsson.
7134
7135 2010-03-28  Bruno Haible  <bruno@clisp.org>
7136
7137         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
7138         * gnulib-tool (func_exists_module): New function, extracted from
7139         func_verify_module.
7140         (func_verify_module): Use it.
7141         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
7142         'foo' only if 'foo' exists.
7143         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
7144         module.
7145
7146 2010-03-28  Bruno Haible  <bruno@clisp.org>
7147
7148         gnulib-tool: Add support for special categories of tests.
7149         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
7150         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
7151         (func_usage): Document them.
7152         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
7153         inc_unportable_tests, inc_all_tests): New variables.
7154         (func_acceptable): Consider these variables.
7155         (func_modules_transitive_closure): Make it work when the 'Status' field
7156         consists of multiple words.
7157         (func_import): Store and restore the values of inc_cxx_tests,
7158         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
7159         inc_all_tests in gnulib-comp.m4.
7160         (func_create_testdir): Set inc_all_tests to true.
7161         * doc/gnulib.texi (Extra tests modules): New section.
7162         Suggested by Jim Meyering.
7163
7164 2010-03-28  Bruno Haible  <bruno@clisp.org>
7165
7166         ansi-c++-opt: Allow turning off the C++ build by default.
7167         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
7168         gl_CXX_CHOICE_DEFAULT_NO is defined.
7169         Requested by Eric Blake.
7170
7171 2010-03-28  Bruno Haible  <bruno@clisp.org>
7172
7173         unistd: Avoid #define replacements in C++ mode.
7174         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7175         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7176         setsockopt, shutdown, select): In C++, attach a warning to the function
7177         if possible, rather than #defining the symbol to a dysfunctional alias.
7178         Reported by John W. Eaton <jwe@gnu.org>.
7179
7180 2010-03-28  Bruno Haible  <bruno@clisp.org>
7181
7182         Fix link errors on mingw.
7183         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
7184         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
7185         $(LIBSOCKET).
7186         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
7187         $(LIBSOCKET).
7188
7189 2010-03-28  Bruno Haible  <bruno@clisp.org>
7190             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7191
7192         lib-ignore: Determine different options for different compilers.
7193         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
7194         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
7195         Add comments.
7196         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
7197         * NEWS: Mention the change.
7198
7199 2010-03-27  Bruno Haible  <bruno@clisp.org>
7200
7201         Remove unused GNULIB_XYZ macro definitions.
7202         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
7203         * modules/fseek (configure.ac): Likewise.
7204         * modules/ioctl (configure.ac): Likewise.
7205         * modules/open (configure.ac): Likewise.
7206         * modules/stdlib-safer (configure.ac): Likewise.
7207
7208 2010-03-27  Bruno Haible  <bruno@clisp.org>
7209
7210         Add a remark about certain modules.
7211         * modules/malloc (Comment): New section.
7212         * modules/realloc (Comment): Likewise.
7213         * modules/sigpipe (Comment): Likewise.
7214
7215 2010-03-27  Bruno Haible  <bruno@clisp.org>
7216
7217         Resolve conflict between the two kinds of module indicators.
7218         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
7219         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
7220         * modules/canonicalize (configure.ac): Invoke
7221         gl_MODULE_INDICATOR_FOR_TESTS.
7222         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
7223         GNULIB_XYZ.
7224         * tests/test-dirent-c++.cc: Likewise.
7225         * tests/test-dirent-safer.c: Likewise.
7226         * tests/test-dup2.c: Likewise.
7227         * tests/test-fchdir.c: Likewise.
7228         * tests/test-fcntl-h-c++.cc: Likewise.
7229         * tests/test-getopt.c: Likewise.
7230         * tests/test-getopt.h: Likewise.
7231         * tests/test-langinfo-c++.cc: Likewise.
7232         * tests/test-locale-c++.cc: Likewise.
7233         * tests/test-math-c++.cc: Likewise.
7234         * tests/test-pty-c++.cc: Likewise.
7235         * tests/test-search-c++.cc: Likewise.
7236         * tests/test-signal-c++.cc: Likewise.
7237         * tests/test-spawn-c++.cc: Likewise.
7238         * tests/test-stdio-c++.cc: Likewise.
7239         * tests/test-stdlib-c++.cc: Likewise.
7240         * tests/test-string-c++.cc: Likewise.
7241         * tests/test-sys_ioctl-c++.cc: Likewise.
7242         * tests/test-sys_select-c++.cc: Likewise.
7243         * tests/test-sys_socket-c++.cc: Likewise.
7244         * tests/test-sys_stat-c++.cc: Likewise.
7245         * tests/test-sys_time-c++.cc: Likewise.
7246         * tests/test-time-c++.cc: Likewise.
7247         * tests/test-unistd-c++.cc: Likewise.
7248         * tests/test-wchar-c++.cc: Likewise.
7249         * tests/uninorm/test-u8-nfc.c: Likewise.
7250         * tests/uninorm/test-u8-nfd.c: Likewise.
7251         * tests/uninorm/test-u8-nfkc.c: Likewise.
7252         * tests/uninorm/test-u8-nfkd.c: Likewise.
7253         * tests/uninorm/test-u16-nfc.c: Likewise.
7254         * tests/uninorm/test-u16-nfd.c: Likewise.
7255         * tests/uninorm/test-u16-nfkc.c: Likewise.
7256         * tests/uninorm/test-u16-nfkd.c: Likewise.
7257         * tests/uninorm/test-u32-nfc.c: Likewise.
7258         * tests/uninorm/test-u32-nfc-big.c: Likewise.
7259         * tests/uninorm/test-u32-nfd.c: Likewise.
7260         * tests/uninorm/test-u32-nfd-big.c: Likewise.
7261         * tests/uninorm/test-u32-nfkc.c: Likewise.
7262         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
7263         * tests/uninorm/test-u32-nfkd.c: Likewise.
7264         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
7265         * tests/uninorm/test-u32-normalize-big.c: Likewise.
7266
7267 2010-03-27  Bruno Haible  <bruno@clisp.org>
7268
7269         Distinguish two kinds of module indicators.
7270         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
7271         gl_MODULE_INDICATOR.
7272         (gl_MODULE_INDICATOR): New macro.
7273         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
7274         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
7275         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7276         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7277         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7278         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7279         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7280         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7281         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7282         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7283         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7284         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7285         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7286         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7287         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7288         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7289         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7290         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7291         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7292         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7293         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7294         * modules/cloexec (configure.ac): Likewise.
7295         * modules/getopt-gnu (configure.ac): Likewise.
7296         * modules/uninorm/u8-normalize (configure.ac): Likewise.
7297         * modules/uninorm/u16-normalize (configure.ac): Likewise.
7298         * modules/uninorm/u32-normalize (configure.ac): Likewise.
7299         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
7300
7301 2010-03-27  Bruno Haible  <bruno@clisp.org>
7302
7303         New module description field 'Comment'.
7304         * gnulib-tool: New option --extract-comment.
7305         (func_usage): Document it.
7306         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
7307         (func_get_comment): New function.
7308         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
7309
7310 2010-03-27  Bruno Haible  <bruno@clisp.org>
7311
7312         Addendum to 2010-02-07 commit.
7313         * gnulib-tool (func_usage): Document --extract-applicability option.
7314
7315 2010-03-27  Bruno Haible  <bruno@clisp.org>
7316
7317         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
7318         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
7319         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
7320         rather than link errors.
7321
7322 2010-03-27  Bruno Haible  <bruno@clisp.org>
7323
7324         Avoid side effects from tests-related modules on the compilation of lib.
7325         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
7326         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
7327         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
7328         parameter. Emit into AM_CPPFLAGS a definition of the designated C
7329         macro.
7330         (func_import): Define a witness macro. Assign it a value that depends
7331         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
7332         tests-related modules.
7333         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
7334         Reported by Jim Meyering.
7335
7336 2010-03-27  Bruno Haible  <bruno@clisp.org>
7337
7338         Factorize common .m4 code.
7339         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
7340         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
7341         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
7342         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
7343         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7344         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
7345         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
7346         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7347         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7348         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7349         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
7350         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7351         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7352         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7353         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7354         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
7355         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7356         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7357         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7358         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
7359         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
7360         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7361         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7362         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7363         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7364         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7365         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
7366         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
7367         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
7368         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7369         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7370         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7371
7372 2010-03-27  Bruno Haible  <bruno@clisp.org>
7373
7374         Fix a compilation error on Cygwin with g++ >= 4.3.
7375         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
7376         if it is undefined or if we alias it to chmod.
7377         (lstat): Don't warn about the use of this function if it is undefined
7378         or if we alias it to stat.
7379         Reported by Simon Josefsson.
7380
7381 2010-03-27  Bruno Haible  <bruno@clisp.org>
7382
7383         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
7384         * modules/getlogin (configure.ac): Update.
7385
7386         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
7387         * modules/getlogin_r (configure.ac): Update.
7388
7389         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
7390         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
7391         * modules/inet_ntop (configure.ac): Update.
7392
7393         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
7394         * modules/inet_pton (configure.ac): Update.
7395
7396         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
7397         * modules/mbslen (configure.ac): Update.
7398
7399         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
7400         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
7401         * modules/forkpty (configure.ac): Update.
7402         * modules/openpty (configure.ac): Update.
7403
7404 2010-03-26  Simon Josefsson  <simon@josefsson.org>
7405
7406         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
7407         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
7408
7409 2010-03-25  Eric Blake  <eblake@redhat.com>
7410
7411         maint: use pragma consistently across replacement headers
7412         * lib/ctype.in.h (system_header): Hoist for consistent placement.
7413         * lib/dirent.in.h (system_header): Likewise.
7414         * lib/errno.in.h (system_header): Likewise.
7415         * lib/float.in.h (system_header): Likewise.
7416         * lib/getopt.in.h (system_header): Likewise.
7417         * lib/iconv.in.h (system_header): Likewise.
7418         * lib/inttypes.in.h (system_header): Likewise.
7419         * lib/langinfo.in.h (system_header): Likewise.
7420         * lib/locale.in.h (system_header): Likewise.
7421         * lib/math.in.h (system_header): Likewise.
7422         * lib/netdb.in.h (system_header): Likewise.
7423         * lib/netinet_in.in.h (system_header): Likewise.
7424         * lib/pty.in.h (system_header): Likewise.
7425         * lib/sched.in.h (system_header): Likewise.
7426         * lib/se-selinux.in.h (system_header): Likewise.
7427         * lib/search.in.h (system_header): Likewise.
7428         * lib/spawn.in.h (system_header): Likewise.
7429         * lib/stdarg.in.h (system_header): Likewise.
7430         * lib/stdint.in.h (system_header): Likewise.
7431         * lib/string.in.h (system_header): Likewise.
7432         * lib/strings.in.h (system_header): Likewise.
7433         * lib/sys_file.in.h (system_header): Likewise.
7434         * lib/sys_ioctl.in.h (system_header): Likewise.
7435         * lib/sys_socket.in.h (system_header): Likewise.
7436         * lib/sys_times.in.h (system_header): Likewise.
7437         * lib/sys_utsname.in.h (system_header): Likewise.
7438         * lib/sys_wait.in.h (system_header): Likewise.
7439         * lib/sysexits.in.h (system_header): Likewise.
7440         * lib/unistd.in.h (system_header): Likewise.
7441         * lib/wctype.in.h (system_header): Likewise.
7442
7443         arpa/inet: fix mingw compilation warning
7444         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
7445         Reported by Matthew Bolte.
7446
7447 2010-03-25  Bruno Haible  <bruno@clisp.org>
7448
7449         Avoid collision between gnulib wrapper and libintl wrapper.
7450         * lib/printf.c (printf): Don't define if a printf wrapper is already
7451         defined in intl/printf.c.
7452         Reported by Michel Boaventura <michel@michelboaventura.com>.
7453
7454 2010-03-25  Bruno Haible  <bruno@clisp.org>
7455
7456         Use ANSI C.
7457         * lib/readutmp.h (getutent): Provide ANSI C prototype.
7458
7459 2010-03-25  Bruno Haible  <bruno@clisp.org>
7460
7461         Minor formatting changes.
7462         * lib/acosl.c: Insert space before function argument list.
7463         * lib/argz.c: Likewise.
7464         * lib/asinl.c: Likewise.
7465         * lib/expl.c: Likewise.
7466         * lib/gen-uni-tables.c: Likewise.
7467         * lib/gettext.h: Likewise.
7468         * lib/glthread/lock.h: Likewise.
7469         * lib/tanl.c: Likewise.
7470         * lib/uniname/uniname.c: Likewise.
7471         * tests/test-idpriv-drop.c: Likewise.
7472         * tests/test-idpriv-droptemp.c: Likewise.
7473         * tests/test-lock.c: Likewise.
7474         * tests/test-tls.c: Likewise.
7475         * lib/argp-help.c: Insert space before function-like macro argument
7476         list.
7477         * lib/memcmp.c: Likewise.
7478         * tests/test-base64.c: Likewise.
7479         * lib/localename.c: Insert space before sizeof's argument list.
7480         * lib/safe-alloc.h: Likewise.
7481         * lib/file-set.h: Insert space before macro argument list.
7482         * tests/test-argp.c: Likewise.
7483         * lib/argp-namefrob.h: Insert space before function parameter list.
7484         * lib/getaddrinfo.c: Likewise.
7485         * lib/netdb.in.h: Likewise.
7486         * lib/parse-duration.h: Likewise.
7487         * lib/parse-duration.c: Likewise.
7488         * lib/poll.c: Likewise.
7489         * lib/select.c: Likewise.
7490         * lib/trim.h: Likewise.
7491         * tests/test-usleep.c: Likewise.
7492         * lib/ldexpl.c: Insert space before function parameter list and before
7493         function argument list.
7494         * lib/logl.c: Likewise.
7495         * lib/sqrtl.c: Likewise.
7496         * lib/trim.c: Likewise.
7497         * lib/cosl.c: Use GNU style indentation. Insert space before function
7498         argument list.
7499         * lib/sinl.c: Likewise.
7500         * lib/tsearch.c: Insert space after 'for'.
7501         Reported by Jim Meyering.
7502
7503 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
7504
7505         * maint.mk (sc_Wundef_boolean): Check for the presence of the
7506         config header before grepping, as it's not present before
7507         autoreconf/configure are run.  Reported by Simon Josefsson.
7508
7509 2010-03-23  Bruno Haible  <bruno@clisp.org>
7510
7511         pt_chown: Make it work with automake < 1.11.
7512         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
7513         Reported by Simon Josefsson.
7514
7515 2010-03-23  Bruno Haible  <bruno@clisp.org>
7516
7517         pt_chown: Don't depend on GPLed modules.
7518         * lib/pt_chown.c: Don't include idpriv.h.
7519         (main): Don't drop privileges.
7520         * modules/pt_chown (Depends-on): Remove idpriv-drop.
7521         Reported by Simon Josefsson.
7522
7523 2010-03-24  Simon Josefsson  <simon@josefsson.org>
7524
7525         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
7526         suggestions from karl@freefriends.org (Karl Berry).
7527
7528 2010-03-22  Eric Blake  <eblake@redhat.com>
7529
7530         gethostname: further tweaks
7531         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
7532         are overriding gethostname.
7533         Suggested by Bruno Haible.
7534
7535 2010-03-21  Bruno Haible  <bruno@clisp.org>
7536
7537         Fix comments.
7538         * lib/forkpty.c (rpl_forkpty): Fix comment.
7539         * lib/openpty.c (rpl_openpty): Likewise.
7540         Reported by Eric Blake.
7541
7542 2010-03-22  Eric Blake  <eblake@redhat.com>
7543
7544         gethostname: fix build on mingw
7545         * lib/unistd.in.h (includes): Work around fact that mingw
7546         <winsock2.h> re-includes <unistd.h>, by avoiding any
7547         redeclarations if we are being included by <winsock2.h>.
7548         Reported by Matthias Bolte.
7549
7550 2010-03-21  Bruno Haible  <bruno@clisp.org>
7551
7552         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7553         * lib/forkpty.c (forkpty): New replacement function, from glibc with
7554         modifications.
7555         * lib/pty.in.h (forkpty): Update declaration. Add comments.
7556         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
7557         provide the replacement.
7558         * modules/forkpty (Depends-on): Add openpty, login_tty.
7559         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
7560         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
7561         * doc/glibc-functions/forkpty.texi: More supported platforms.
7562         * config/srclist.txt: Add forkpty.c (commented).
7563
7564 2010-03-21  Bruno Haible  <bruno@clisp.org>
7565
7566         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
7567         (Makefile.am): Verify that PTY_LIB is defined.
7568
7569         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
7570
7571 2010-03-21  Bruno Haible  <bruno@clisp.org>
7572
7573         Tests for module 'login_tty'.
7574         * modules/login_tty-tests: New file.
7575         * tests/test-login_tty.c: New file.
7576
7577         New module 'login_tty'.
7578         * lib/login_tty.c: New file.
7579         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
7580         * modules/login_tty: New file.
7581         * doc/glibc-functions/login_tty.texi: Mention the new module.
7582
7583 2010-03-21  Bruno Haible  <bruno@clisp.org>
7584
7585         login_tty: Documentation.
7586         * doc/glibc-functions/login_tty.texi: New file.
7587         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
7588
7589 2010-03-21  Bruno Haible  <bruno@clisp.org>
7590
7591         pty: Consistent macro naming.
7592         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
7593         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
7594         * modules/pty (configure.ac): Update.
7595
7596 2010-03-21  Bruno Haible  <bruno@clisp.org>
7597
7598         Tests for openpty: Make stricter.
7599         * tests/test-openpty.c (main): Add test of canonical processing and
7600         erase.
7601         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
7602
7603         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7604         * lib/openpty.c (openpty): New replacement function.
7605         * lib/pty.in.h: Include <termios.h>.
7606         (openpty): Update declaration. Add comments.
7607         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
7608         is not declared, arrange to provide the replacement. Check for _getpty
7609         and posix_openpt.
7610         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
7611         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
7612         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
7613         * modules/pty-tests (test_pty_c___LDADD): New variable.
7614         * doc/glibc-functions/openpty.texi: More supported platforms.
7615
7616 2010-03-21  Bruno Haible  <bruno@clisp.org>
7617
7618         setenv: Tweaks.
7619         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
7620         the test program.
7621         * doc/posix-functions/setenv.texi: Update platforms list.
7622
7623 2010-03-21  Bruno Haible  <bruno@clisp.org>
7624
7625         New module 'unlockpt'.
7626         * lib/unlockpt.c: New file, from glibc with modifications.
7627         * m4/unlockpt.m4: New file.
7628         * modules/unlockpt: New file.
7629         * lib/stdlib.in.h (unlockpt): New declaration.
7630         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
7631         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
7632         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
7633         HAVE_UNLOCKPT.
7634         * doc/posix-functions/unlockpt.texi: Mention the new module.
7635         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
7636         * config/srclist.txt: Add unlockpt.c (commented).
7637
7638 2010-03-21  Jim Meyering  <meyering@redhat.com>
7639
7640         maint.mk: prohibit inclusion of "intprops.h" without use
7641         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
7642
7643 2010-03-21  Bruno Haible  <bruno@clisp.org>
7644
7645         New module 'grantpt'.
7646         * lib/grantpt.c: New file, from glibc with modifications.
7647         * m4/grantpt.m4: New file.
7648         * modules/grantpt: New file.
7649         * lib/stdlib.in.h (grantpt): New declaration.
7650         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
7651         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
7652         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
7653         HAVE_GRANTPT.
7654         * doc/posix-functions/grantpt.texi: Mention the new module.
7655         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
7656         * config/srclist.txt: Add grantpt.c (commented).
7657
7658 2010-03-21  Bruno Haible  <bruno@clisp.org>
7659
7660         New module 'pt_chown'.
7661         * lib/pt_chown.c: New file, from glibc with modifications.
7662         * lib/pty-private.h: New file, from glibc with modifications.
7663         * modules/pt_chown: New file.
7664         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
7665
7666 2010-03-21  Bruno Haible  <bruno@clisp.org>
7667
7668         Tests for module 'ptsname'.
7669         * modules/ptsname-tests: New file.
7670         * tests/test-ptsname.c: New file.
7671
7672         New module 'ptsname'.
7673         * lib/ptsname.c: New file, from glibc with modifications.
7674         * m4/ptsname.m4: New file.
7675         * modules/ptsname: New file.
7676         * lib/stdlib.in.h (ptsname): New declaration.
7677         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
7678         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
7679         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
7680         HAVE_PTSNAME.
7681         * doc/posix-functions/ptsname.texi: Mention the new module.
7682         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
7683         * config/srclist.txt: Add ptsname.c (commented).
7684
7685 2010-03-21  Bruno Haible  <bruno@clisp.org>
7686
7687         Tests for module 'ttyname_r'.
7688         * modules/ttyname_r-tests: New file.
7689         * tests/test-ttyname_r.c: New file.
7690
7691         New module 'ttyname_r'.
7692         * lib/ttyname_r.c: New file.
7693         * m4/ttyname_r.m4: New file.
7694         * modules/ttyname_r: New file.
7695         * lib/unistd.in.h (ttyname_r): New declaration.
7696         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
7697         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
7698         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
7699         HAVE_TTYNAME_R.
7700         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
7701         * doc/posix-functions/ttyname_r.texi: Mention the new module.
7702
7703 2010-03-20  Bruno Haible  <bruno@clisp.org>
7704
7705         signal: Undefine macro definitions in C++ mode.
7706         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
7707         sigfillset): Undefine macro definitions from the system header in C++
7708         mode.
7709         Reported by John W. Eaton <jwe@gnu.org>.
7710
7711 2010-03-20  Bruno Haible  <bruno@clisp.org>
7712
7713         Ensure no #include statements inside extern "C" { ... }.
7714         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
7715         contain #include statements.
7716         * lib/time.in.h: Likewise.
7717
7718 2010-03-20  Bruno Haible  <bruno@clisp.org>
7719
7720         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
7721         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
7722         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
7723         Reported by John W. Eaton <jwe@gnu.org>.
7724
7725 2010-03-20  Bruno Haible  <bruno@clisp.org>
7726
7727         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
7728         Reported by Jim Meyering.
7729
7730 2010-03-20  Bruno Haible  <bruno@clisp.org>
7731
7732         pipe: Set errno upon failure.
7733         * lib/pipe.h: Specify that when -1 is returned, errno is set.
7734         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
7735         errno value in error message.
7736
7737 2010-03-20  Bruno Haible  <bruno@clisp.org>
7738             Jim Meyering  <meyering@redhat.com>
7739
7740         lchown: Avoid "unused variable" warning.
7741         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
7742
7743 2010-03-20  Bruno Haible  <bruno@clisp.org>
7744
7745         Work around unlink() bug on MacOS X 10.5.6.
7746         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
7747         attempting to unlink a parent directory.
7748         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
7749         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
7750         activate for the replacement function.
7751         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
7752
7753 2010-03-20  Bruno Haible  <bruno@clisp.org>
7754
7755         Fix link errors on Solaris 8.
7756         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
7757         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
7758
7759 2010-03-19  Jim Meyering  <meyering@redhat.com>
7760
7761         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
7762         The _LIBC implementation of build_range_exp correctly honors the
7763         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
7764         However, the non-_LIBC implementation would ignore that syntax-bit
7765         flag and return REG_ERANGE unconditionally.
7766         This change makes it honor that flag.
7767         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
7768         Make two pointer parameters "const".
7769         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
7770         (parse_bracket_exp): Update caller.
7771
7772         regex.m4: correct the reversed range endpoint ([b-a]) test
7773         * m4/regex.m4: When requiring that [b-a] evoke failure,
7774         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
7775         test pass once again for x86-based systems.
7776
7777 2010-03-19  Bruno Haible  <bruno@clisp.org>
7778
7779         scandir: Fix link error on Solaris 8.
7780         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
7781         macros.
7782
7783 2010-03-19  Bruno Haible  <bruno@clisp.org>
7784
7785         getusershell: Fix documentation.
7786         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
7787         module.
7788         * doc/glibc-functions/setusershell.texi: Likewise.
7789
7790         getusershell: Provide declaration, missing on Solaris 9.
7791         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
7792         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
7793         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
7794         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
7795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7796         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
7797         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
7798         HAVE_GETUSERSHELL.
7799         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
7800
7801 2010-03-19  Bruno Haible  <bruno@clisp.org>
7802
7803         wctype: Provide iswblank function.
7804         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
7805         exists and is fine.
7806         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
7807         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
7808         * tests/test-wctype.c (main): Re-enable the iswblank tests.
7809         * doc/posix-functions/iswblank.texi: Update.
7810
7811 2010-03-19  Bruno Haible  <bruno@clisp.org>
7812
7813         Tests of module 'pty' in C++ mode.
7814         * modules/pty-tests: New file.
7815         * tests/test-pty-c++.cc: New file.
7816         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7817
7818 2010-03-19  Eric Blake  <eblake@redhat.com>
7819
7820         logb: fix documentation
7821         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
7822         1.5 declaration bug.
7823
7824         forkpty, openpty: prefer glibc's const-safe prototype
7825         * lib/forkpty.c (rpl_forkpty): New file.
7826         * lib/openpty.c (rpl_openpty): Likewise.
7827         * modules/forkpty (Files): Distribute it.
7828         * modules/openpty (Files): Likewise.
7829         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
7830         check...
7831         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
7832         replacement for for non-const BSD signature.
7833         * modules/pty (Makefile.am): Substitute witnesses.
7834         * lib/pty.in.h (forkpty, openpty): Declare replacements.
7835         * tests/test-forkpty.c: Update signature check.
7836         * tests/test-openpty.c: Likewise.
7837         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
7838         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7839
7840         forkpty, openpty: split functions into new modules
7841         * modules/pty (Makefile.am): Substitute new witnesses.
7842         (Libraries): Move library detection...
7843         * modules/forkpty: ...into new module.
7844         * modules/openpty: Another new module.
7845         * modules/pty-tests: Rename and split...
7846         * modules/forkpty-tests: ...to this...
7847         * modules/openpty-tests: ...and this.
7848         * tests/test-pty.c: Rename and split...
7849         * tests/test-forkpty.c: ...to this...
7850         * tests/test-openpty.c: ...and this.
7851         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
7852         (gl_PTY): Split library searching...
7853         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
7854         (gl_FORKPTY, gl_OPENPTY): New macros.
7855         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
7856         * NEWS: Mention the split.
7857         * MODULES.html.sh (Misc): Document the modules.
7858         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
7859         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7860
7861         pty: improve replacement header
7862         * lib/pty.in.h: New file.
7863         * modules/pty (Files): Ship it.
7864         (Makefile.am): Always build replacement.
7865         * m4/pty.m4: Rename...
7866         * m4/pty_h.m4: ...to this.
7867         (gl_PTY): Modernize setting of witness macros; update check of
7868         forkpty to take proper advantage of cache.
7869         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
7870
7871         getopt: avoid compiler warning
7872         * lib/getopt.c (attribute_hidden): Remove unused macro.
7873
7874 2010-03-18  Bruno Haible  <bruno@clisp.org>
7875
7876         Fix link errors on Solaris 8.
7877         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
7878         * modules/search-tests (test_search_c___LDADD): Likewise.
7879         * modules/signal-tests (test_signal_c___LDADD): Likewise.
7880         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
7881         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
7882         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
7883         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
7884         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
7885         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
7886
7887 2010-03-18  Bruno Haible  <bruno@clisp.org>
7888
7889         Fix bug introduced on 2010-03-14.
7890         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
7891         (gl_SPAWN_H): Require it.
7892         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
7893         Reported by Simon Josefsson.
7894
7895 2010-03-18  Bruno Haible  <bruno@clisp.org>
7896
7897         Fix typo introduced on 2009-12-31.
7898         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
7899         posix_spawn_file_actions_adddup2.
7900
7901 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
7902         and Eric Blake  <eblake@redhat.com>
7903
7904         test-vc-list-files-git: make more robust
7905         * tests/test-vc-list-files-git.sh: Unset problematic environment
7906         variables.  Chain commands together.
7907
7908 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
7909
7910         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
7911         `AC_CHECK_DECL' invocation.
7912
7913 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
7914
7915         * lib/inttostr.c (inttostr): Make sure the invocation of verify
7916         appears before executable statements. Suggested by Petr Sumbera
7917         <Petr.Sumbera@Sun.COM>.
7918
7919 2010-03-14  Bruno Haible  <bruno@clisp.org>
7920
7921         * tests/test-flock.c (test_exclusive): Comment out a test that causes
7922         portability problems. Instead use a simpler test.
7923         (main): Check that invalid arguments are rejected only on Linux.
7924
7925 2010-03-14  Bruno Haible  <bruno@clisp.org>
7926
7927         Fix bug introduced on 2009-12-31.
7928         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7929         gl_PREREQ_SYS_H_WINSOCK2 always.
7930         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
7931         SYS_SOCKET_H variable.
7932         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
7933         Update comments.
7934         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
7935         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7936         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7937         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7938         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7939
7940 2010-03-14  Bruno Haible  <bruno@clisp.org>
7941
7942         Fix values returned by sinl, cosl.
7943         * lib/trigl.h: Add specification comments.
7944         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
7945         that combines the values from the precomputed table with the values of
7946         the Chebyshev polynomials.
7947
7948 2010-03-14  Bruno Haible  <bruno@clisp.org>
7949
7950         Fix compilation error when modules 'posix_spawn[p]' are not used.
7951         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
7952         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
7953
7954 2010-03-14  Bruno Haible  <bruno@clisp.org>
7955
7956         Fix compilation error on mingw when module 'time_r' is not used.
7957         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
7958         is 1.
7959         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
7960         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
7961         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
7962         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
7963
7964 2010-03-14  Bruno Haible  <bruno@clisp.org>
7965
7966         Fix compilation error with Sun C.
7967         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
7968         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
7969         instead of GCC specific ULONG_LONG_MAX.
7970         * lib/xstrtoll.c: Likewise.
7971         * lib/xstrtoull.c: Likewise.
7972
7973 2010-03-13  Bruno Haible  <bruno@clisp.org>
7974
7975         Allow the user to disable C++ code and tests.
7976         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
7977         (gl_PROG_ANSI_CXX): Require it.
7978
7979 2010-03-13  Bruno Haible  <bruno@clisp.org>
7980
7981         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
7982         cases.
7983
7984 2010-03-13  Bruno Haible  <bruno@clisp.org>
7985
7986         Test that gnulib does not break the standard C++ headers.
7987         * tests/test-locale-c++2.cc: New file.
7988         * modules/locale-tests (Files): Add it.
7989         (Makefile.am): Compile it for test-locale-c++.
7990         * tests/test-math-c++2.cc: New file.
7991         * modules/math-tests (Files): Add it.
7992         (Makefile.am): Compile it for test-math-c++.
7993         * tests/test-signal-c++2.cc: New file.
7994         * modules/signal-tests (Files): Add it.
7995         (Makefile.am): Compile it for test-signal-c++.
7996         * tests/test-stdio-c++2.cc: New file.
7997         * modules/stdio-tests (Files): Add it.
7998         (Makefile.am): Compile it for test-stdio-c++.
7999         * tests/test-stdlib-c++2.cc: New file.
8000         * modules/stdlib-tests (Files): Add it.
8001         (Makefile.am): Compile it for test-stdlib-c++.
8002         * tests/test-string-c++2.cc: New file.
8003         * modules/string-tests (Files): Add it.
8004         (Makefile.am): Compile it for test-string-c++.
8005         * tests/test-time-c++2.cc: New file.
8006         * modules/time-tests (Files): Add it.
8007         (Makefile.am): Compile it for test-time-c++.
8008         Reported by John W. Eaton <jwe@gnu.org>.
8009
8010 2010-03-13  Bruno Haible  <bruno@clisp.org>
8011
8012         * gnulib-tool (func_usage): Clarify which options are available for
8013         --create-testdir and --create-megatestdir.
8014
8015 2010-03-13  Bruno Haible  <bruno@clisp.org>
8016
8017         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
8018         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
8019         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
8020         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8021         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
8022         when appropriate.
8023         Reported by Jim Meyering.
8024
8025 2010-03-12  Simon Josefsson  <simon@josefsson.org>
8026
8027         * gnulib-tool (func_import): Explain origin of code.
8028
8029 2010-03-12  Bruno Haible  <bruno@clisp.org>
8030
8031         Fix problem with automake's definition of CXXLINK.
8032         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
8033         Reported by Simon Josefsson and Ludovic Courtès.
8034
8035 2010-03-12  Bruno Haible  <bruno@clisp.org>
8036
8037         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
8038         stable releases.
8039
8040 2010-03-11  Bruno Haible  <bruno@clisp.org>
8041
8042         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
8043         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
8044         whether the system provides one variant or multiple variants of the
8045         function.
8046         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
8047         C++ compilers.
8048         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
8049         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
8050         Reported by Jim Meyering.
8051
8052 2010-03-09  Simon Josefsson  <simon@josefsson.org>
8053
8054         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
8055
8056 2010-03-08  Bruno Haible  <bruno@clisp.org>
8057
8058         gnulib-tool: Add support for --libtool in --create-testdir.
8059         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
8060         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
8061
8062 2010-03-08  Eric Blake  <eblake@redhat.com>
8063
8064         gnulib-tool.texi: mention possibility of git submodule
8065         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
8066         submodules.
8067         * doc/.gitignore: Ignore another generated file.
8068
8069 2010-03-08  Karl Berry  <karl@gnu.org>
8070
8071         * doc/gnulib-tool.texi (VCS Issues): Mention third option
8072         of committing gnulib files while skipping others.
8073
8074 2010-03-07  Bruno Haible  <bruno@clisp.org>
8075
8076         Tests of module 'wctype' in C++ mode.
8077         * tests/test-wctype-c++.cc: New file.
8078         * modules/wctype-tests (Files): Add it and tests/signature.h.
8079         (Depends-on): Add ansi-c++-opt.
8080         (Makefile.am): Arrange to compile and run test-wctype-c++.
8081
8082         Tests of module 'wchar' in C++ mode.
8083         * tests/test-wchar-c++.cc: New file.
8084         * modules/wchar-tests (Files): Add it and tests/signature.h.
8085         (Depends-on): Add ansi-c++-opt.
8086         (Makefile.am): Arrange to compile and run test-wchar-c++.
8087         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
8088         gl_MODULE_INDICATOR.
8089
8090         Tests of module 'unistd' in C++ mode.
8091         * tests/test-unistd-c++.cc: New file.
8092         * modules/unistd-tests (Files): Add it and tests/signature.h.
8093         (Depends-on): Add ansi-c++-opt.
8094         (Makefile.am): Arrange to compile and run test-unistd-c++.
8095         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
8096         gl_MODULE_INDICATOR.
8097
8098         Tests of module 'time' in C++ mode.
8099         * tests/test-time-c++.cc: New file.
8100         * modules/time-tests (Files): Add it and tests/signature.h.
8101         (Depends-on): Add ansi-c++-opt.
8102         (Makefile.am): Arrange to compile and run test-time-c++.
8103         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8104
8105         Tests of module 'sys_time' in C++ mode.
8106         * tests/test-sys_time-c++.cc: New file.
8107         * modules/sys_time-tests (Files): Add it and tests/signature.h.
8108         (Depends-on): Add ansi-c++-opt.
8109         (Makefile.am): Arrange to compile and run test-sys_time-c++.
8110         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
8111         gl_MODULE_INDICATOR.
8112
8113         Tests of module 'sys_stat' in C++ mode.
8114         * tests/test-sys_stat-c++.cc: New file.
8115         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
8116         (Depends-on): Add ansi-c++-opt.
8117         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
8118         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
8119         gl_MODULE_INDICATOR.
8120
8121         Tests of module 'sys_socket' in C++ mode.
8122         * tests/test-sys_socket-c++.cc: New file.
8123         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
8124         (Depends-on): Add ansi-c++-opt.
8125         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
8126         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
8127         gl_MODULE_INDICATOR.
8128
8129         Tests of module 'sys_select' in C++ mode.
8130         * tests/test-sys_select-c++.cc: New file.
8131         * modules/sys_select-tests (Files): Add it and tests/signature.h.
8132         (Depends-on): Add ansi-c++-opt.
8133         (Makefile.am): Arrange to compile and run test-sys_select-c++.
8134         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
8135         gl_MODULE_INDICATOR.
8136
8137         Tests of module 'sys_ioctl' in C++ mode.
8138         * tests/test-sys_ioctl-c++.cc: New file.
8139         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
8140         (Depends-on): Add ansi-c++-opt.
8141         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
8142         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
8143         gl_MODULE_INDICATOR.
8144
8145         Tests of module 'string' in C++ mode.
8146         * tests/test-string-c++.cc: New file.
8147         * modules/string-tests (Files): Add it and tests/signature.h.
8148         (Depends-on): Add ansi-c++-opt.
8149         (Makefile.am): Arrange to compile and run test-string-c++.
8150         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
8151         gl_MODULE_INDICATOR.
8152
8153         Tests of module 'stdlib' in C++ mode.
8154         * tests/test-stdlib-c++.cc: New file.
8155         * modules/stdlib-tests (Files): Add it and tests/signature.h.
8156         (Depends-on): Add ansi-c++-opt.
8157         (Makefile.am): Arrange to compile and run test-stdlib-c++.
8158         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
8159         gl_MODULE_INDICATOR.
8160
8161         Tests of module 'stdio' in C++ mode.
8162         * tests/test-stdio-c++.cc: New file.
8163         * modules/stdio-tests (Files): Add it and tests/signature.h.
8164         (Depends-on): Add ansi-c++-opt.
8165         (Makefile.am): Arrange to compile and run test-stdio-c++.
8166         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
8167         gl_MODULE_INDICATOR.
8168
8169         Tests of module 'spawn' in C++ mode.
8170         * tests/test-spawn-c++.cc: New file.
8171         * modules/spawn-tests (Files): Add it and tests/signature.h.
8172         (Depends-on): Add ansi-c++-opt.
8173         (Makefile.am): Arrange to compile and run test-spawn-c++.
8174         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
8175         gl_MODULE_INDICATOR.
8176
8177         Tests of module 'signal' in C++ mode.
8178         * tests/test-signal-c++.cc: New file.
8179         * modules/signal-tests (Files): Add it and tests/signature.h.
8180         (Depends-on): Add ansi-c++-opt.
8181         (Makefile.am): Arrange to compile and run test-signal-c++.
8182         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
8183         gl_MODULE_INDICATOR.
8184
8185         Tests of module 'search' in C++ mode.
8186         * tests/test-search-c++.cc: New file.
8187         * modules/search-tests (Files): Add it and tests/signature.h.
8188         (Depends-on): Add ansi-c++-opt.
8189         (Makefile.am): Arrange to compile and run test-search-c++.
8190         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
8191         gl_MODULE_INDICATOR.
8192
8193         Tests of module 'math' in C++ mode.
8194         * tests/test-math-c++.cc: New file.
8195         * modules/math-tests (Files): Add it and tests/signature.h.
8196         (Depends-on): Add ansi-c++-opt.
8197         (Makefile.am): Arrange to compile and run test-math-c++.
8198         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8199
8200         Tests of module 'locale' in C++ mode.
8201         * tests/test-locale-c++.cc: New file.
8202         * modules/locale-tests (Files): Add it and tests/signature.h.
8203         (Depends-on): Add ansi-c++-opt.
8204         (Makefile.am): Arrange to compile and run test-locale-c++.
8205         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
8206         gl_MODULE_INDICATOR.
8207
8208         Tests of module 'langinfo' in C++ mode.
8209         * tests/test-langinfo-c++.cc: New file.
8210         * modules/langinfo-tests (Files): Add it and tests/signature.h.
8211         (Depends-on): Add ansi-c++-opt.
8212         (Makefile.am): Arrange to compile and run test-langinfo-c++.
8213         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
8214         gl_MODULE_INDICATOR.
8215
8216         Tests of module 'iconv-h' in C++ mode.
8217         * tests/test-iconv-h-c++.cc: New file.
8218         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
8219         (Depends-on): Add ansi-c++-opt.
8220         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
8221
8222         Tests of module 'glob' in C++ mode.
8223         * tests/test-glob-c++.cc: New file.
8224         * modules/glob-tests (Files): Add it.
8225         (Depends-on): Add ansi-c++-opt.
8226         (Makefile.am): Arrange to compile and run test-glob-c++.
8227
8228         Tests of module 'fcntl-h' in C++ mode.
8229         * tests/test-fcntl-h-c++.cc: New file.
8230         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
8231         (Depends-on): Add ansi-c++-opt.
8232         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
8233         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
8234         gl_MODULE_INDICATOR.
8235
8236         Tests of module 'dirent' in C++ mode.
8237         * tests/test-dirent-c++.cc: New file.
8238         * modules/dirent-tests (Files): Add it and tests/signature.h.
8239         (Depends-on): Add ansi-c++-opt.
8240         (Makefile.am): Arrange to compile and run test-dirent-c++.
8241         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8242         gl_MODULE_INDICATOR.
8243
8244         New module 'ansi-c++-opt'.
8245         * modules/ansi-c++-opt: New file.
8246         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
8247
8248         Document C++ namespace mode.
8249         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
8250
8251         wctype: Avoid #define replacements in C++ mode.
8252         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
8253         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
8254         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
8255         In C++, define a namespaced alias symbol.
8256         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
8257         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
8258         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
8259         rule.
8260
8261         wchar: Avoid #define replacements in C++ mode.
8262         * lib/wchar.in.h: Include c++defs.h.
8263         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
8264         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
8265         symbol.
8266         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
8267         * modules/wchar (Depends-on): Add c++defs.
8268         (Makefile.am): Update wchar.h rule.
8269
8270         unistd: Avoid #define replacements in C++ mode.
8271         * lib/unistd.in.h: Include c++defs.h.
8272         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
8273         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
8274         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
8275         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
8276         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
8277         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
8278         symbol.
8279         (environ): Update.
8280         * modules/unistd (Depends-on): Add c++defs.
8281         (Makefile.am): Update unistd.h rule.
8282
8283         time: Avoid #define replacements in C++ mode.
8284         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
8285         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
8286         define a namespaced alias symbol.
8287         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
8288         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
8289         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
8290         * modules/time (Depends-on): Add c++defs, warn-on-use.
8291         (Makefile.am): Update time.h rule.
8292         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
8293         * modules/nanosleep (configure.ac): Likewise.
8294         * modules/strptime (configure.ac): Likewise.
8295         * modules/timegm (configure.ac): Likewise.
8296
8297         sys_time: Avoid #define replacements in C++ mode.
8298         * lib/sys_time.in.h: Include c++defs.h.
8299         (gettimeofday): In C++, define a namespaced alias symbol.
8300         * modules/sys_time (Depends-on): Add c++defs.
8301         (Makefile.am): Update sys/time.h rule.
8302
8303         sys_stat: Avoid #define replacements in C++ mode.
8304         * lib/sys_stat.in.h: Include c++defs.h.
8305         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
8306         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
8307         namespaced alias symbol.
8308         In C++, define a namespaced alias symbol.
8309         * modules/sys_stat (Depends-on): Add c++defs.
8310         (Makefile.am): Update sys/stat.h rule.
8311
8312         sys_socket: Avoid #define replacements in C++ mode.
8313         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
8314         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
8315         definitions also when the system has a <sys/socket.h>.
8316         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8317         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
8318         In C++, define a namespaced alias symbol.
8319         * modules/sys_socket (Depends-on): Add c++defs.
8320         (Makefile.am): Update sys/socket.h rule.
8321
8322         sys_select: Avoid #define replacements in C++ mode.
8323         * lib/sys_select.in.h: Include c++defs.h. Enable the function
8324         definitions also when the system has a <sys/select.h>.
8325         (select): In C++, define a namespaced alias symbol.
8326         * modules/sys_select (Depends-on): Add c++defs.
8327         (Makefile.am): Update sys/select.h rule.
8328
8329         sys_ioctl: Avoid #define replacements in C++ mode.
8330         * lib/sys_ioctl.in.h: Include c++defs.h.
8331         (ioctl): In C++, define a namespaced alias symbol.
8332         * modules/sys_ioctl (Depends-on): Add c++defs.
8333         (Makefile.am): Update sys/ioctl.h rule.
8334
8335         string: Avoid #define replacements in C++ mode.
8336         * lib/string.in.h: Include c++defs.h.
8337         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
8338         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
8339         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
8340         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
8341         strsignal, strverscmp): In C++, define a namespaced alias symbol.
8342         * modules/string (Depends-on): Add c++defs.
8343         (Makefile.am): Update string.h rule.
8344
8345         stdlib: Avoid #define replacements in C++ mode.
8346         * lib/stdlib.in.h: Include c++defs.h.
8347         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
8348         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
8349         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
8350         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
8351         symbol.
8352         * modules/stdlib (Depends-on): Add c++defs.
8353         (Makefile.am): Update stdlib.h rule.
8354
8355         stdio: Avoid #define replacements in C++ mode.
8356         * lib/stdio.in.h: Include c++defs.h.
8357         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
8358         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
8359         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
8360         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
8361         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
8362         namespaced alias symbol.
8363         * modules/stdio (Depends-on): Add c++defs.
8364         (Makefile.am): Update stdio.h rule.
8365
8366         spawn: Avoid #define replacements in C++ mode.
8367         * lib/spawn.in.h: Include c++defs.h.
8368         (posix_spawn, posix_spawnp, posix_spawnattr_init,
8369         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
8370         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
8371         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
8372         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
8373         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
8374         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
8375         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
8376         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
8377         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8378         In C++, define a namespaced alias symbol.
8379         * modules/spawn (Depends-on): Add c++defs.
8380         (Makefile.am): Update spawn.h rule.
8381
8382         signal: Avoid #define replacements in C++ mode.
8383         * lib/signal.in.h: Include c++defs.h.
8384         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
8385         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
8386         namespaced alias symbol.
8387         * modules/signal (Depends-on): Add c++defs.
8388         (Makefile.am): Update signal.h rule.
8389
8390         search: Avoid #define replacements in C++ mode.
8391         * lib/search.in.h: Include c++defs.h.
8392         (_gl_search_compar_fn, _gl_search_action_fn): New types.
8393         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
8394         symbol.
8395         * modules/search (Depends-on): Add c++defs.
8396         (Makefile.am): Update search.h rule.
8397
8398         math: Avoid #define replacements in C++ mode.
8399         * lib/math.in.h: Include c++defs.h.
8400         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
8401         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
8402         trunc, truncl): In C++, define a namespaced alias symbol.
8403         * modules/math (Depends-on): Add c++defs.
8404         (Makefile.am): Update math.h rule.
8405
8406         locale: Avoid #define replacements in C++ mode.
8407         * lib/locale.in.h: Include c++defs.h.
8408         (duplocale): In C++, define a namespaced alias symbol.
8409         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
8410         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
8411         * modules/locale (Depends-on): Add c++defs.
8412         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
8413
8414         langinfo: Avoid #define replacements in C++ mode.
8415         * lib/langinfo.in.h: Include c++defs.h.
8416         (nl_langinfo): In C++, define a namespaced alias symbol.
8417         * modules/langinfo (Depends-on): Add c++defs.
8418         (Makefile.am): Update langinfo.h rule.
8419
8420         iconv-h: Avoid #define replacements in C++ mode.
8421         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
8422         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
8423         symbol.
8424         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
8425         whenever iconv is present.
8426         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
8427         (Makefile.am): Update iconv.h rule.
8428
8429         glob: Avoid #define replacements in C++ mode.
8430         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
8431         (_gl_glob_errfunc_fn): New type.
8432         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
8433         symbol.
8434         * modules/glob (Depends-on): Add c++defs, warn-on-use.
8435         (Makefile.am): Update glob.h rule.
8436
8437         fcntl-h: Avoid #define replacements in C++ mode.
8438         * lib/fcntl.in.h: Include c++defs.h.
8439         (fcntl, open, openat): In C++, define a namespaced alias symbol.
8440         * modules/fcntl-h (Depends-on): Add c++defs.
8441         (Makefile.am): Update fcntl.h rule.
8442
8443         dirent: Avoid #define replacements in C++ mode.
8444         * lib/dirent.in.h: Include c++defs.h.
8445         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
8446         namespaced alias symbol.
8447         (dirfd): Update declaration.
8448         * modules/dirent (Depends-on): Add c++defs.
8449         (Makefile.am): Update dirent.h rule.
8450
8451         ctype: Make it usable in C++ code.
8452         * lib/ctype.in.h: Include c++defs.h.
8453         (isblank): Declare as extern "C".
8454         * modules/ctype (Depends-on): Add c++defs.
8455         (Makefile.am): Update ctype.h rule.
8456
8457         New module 'c++defs'.
8458         * modules/c++defs: New file.
8459         * build-aux/c++defs.h: New file.
8460         Reported by John W. Eaton <jwe@gnu.org>.
8461
8462 2010-03-07  Bruno Haible  <bruno@clisp.org>
8463
8464         logb: Provide missing declaration for Cygwin.
8465         * lib/math.in.h (logb): New declaration.
8466         * m4/logb.m4: New file.
8467         * modules/logb (Files): Add m4/logb.m4.
8468         (Depends-on): Add math.
8469         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
8470         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
8471         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
8472         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
8473         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
8474
8475 2010-03-07  Bruno Haible  <bruno@clisp.org>
8476
8477         Fix test-cond link error.
8478         * tests/test-cond.c: Include <stdio.h>.
8479
8480 2010-03-07  Bruno Haible  <bruno@clisp.org>
8481
8482         Fix test-dirent-safer link error.
8483         * modules/dirent-safer-tests (Makefile.am): Define
8484         test_dirent_safer_LDADD.
8485
8486 2010-03-07  Bruno Haible  <bruno@clisp.org>
8487
8488         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
8489         among default module list.
8490
8491 2010-03-07  Bruno Haible  <bruno@clisp.org>
8492
8493         Fix link error on platforms with GNU libiconv.
8494         * modules/unistr/u8-strcoll-tests (Makefile): Define
8495         test_u8_strcoll_LDADD.
8496         * modules/unistr/u16-strcoll-tests (Makefile): Define
8497         test_u16_strcoll_LDADD.
8498         * modules/unistr/u32-strcoll-tests (Makefile): Define
8499         test_u32_strcoll_LDADD.
8500
8501 2010-03-07  Bruno Haible  <bruno@clisp.org>
8502
8503         Use POSIX declarations for socket functions.
8504         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
8505         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
8506         rpl_sendto): Change declaration to match POSIX.
8507         * lib/connect.c (rpl_connect): Likewise.
8508         * lib/accept.c (rpl_accept): Likewise.
8509         * lib/bind.c (rpl_bind): Likewise.
8510         * lib/getpeername.c (rpl_getpeername): Likewise.
8511         * lib/getsockname.c (rpl_getsockname): Likewise.
8512         * lib/recv.c (rpl_recv): Likewise.
8513         * lib/send.c (rpl_send): Likewise.
8514         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8515         * lib/sendto.c (rpl_sendto): Likewise.
8516
8517 2010-03-06  Bruno Haible  <bruno@clisp.org>
8518
8519         Clarify access, euidaccess, faccessat.
8520         * doc/posix-functions/faccessat.texi: Mention security problem under
8521         "Other problems", not "Portability problems".
8522         * doc/posix-functions/access.texi: Likewise. Mention a related security
8523         problem.
8524         * doc/glibc-functions/euidaccess.texi: Mention security problems.
8525         * lib/euidaccess.c: Add comments about platforms.
8526         * lib/unistd.in.h (access, euidaccess): Add warnings.
8527
8528 2010-03-07  Bruno Haible  <bruno@clisp.org>
8529
8530         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
8531         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
8532         (POSIX_SPAWN_SETSCHEDULER): Likewise.
8533         (POSIX_SPAWN_USEVFORK): Define in a way that works when
8534         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8535         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
8536         declare when POSIX_SPAWN_SETSCHEDULER is zero.
8537         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
8538         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
8539         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
8540         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
8541         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
8542         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
8543         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
8544         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
8545         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
8546         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
8547         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
8548         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
8549         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
8550         Likewise.
8551         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
8552         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
8553         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
8554         Likewise.
8555         * tests/test-spawn.c (main): Make it work when
8556         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8557
8558 2010-03-07  Bruno Haible  <bruno@clisp.org>
8559
8560         Fix incorrect Makefile.am generation in German locale.
8561         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8562         Execute sed command with character range in C locale.
8563
8564 2010-03-06  Bruno Haible  <bruno@clisp.org>
8565
8566         Tests for module 'iconv-h'.
8567         * modules/iconv-h-tests: New file.
8568         * tests/test-iconv-h.c: New file.
8569
8570         New module 'iconv-h'.
8571         * modules/iconv-h: New file.
8572         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
8573         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
8574         (configure.ac): Remove gl_ICONV_H.
8575         (Makefile.am): Remove rule for iconv.h.
8576
8577 2010-03-06  Bruno Haible  <bruno@clisp.org>
8578
8579         More consistent naming of *.m4 files.
8580         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
8581         * modules/wctype (Files): Update.
8582
8583         More consistent naming of *.m4 files.
8584         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
8585         * modules/wchar (Files): Update.
8586
8587 2010-03-06  Jim Meyering  <meyering@redhat.com>
8588
8589         euidaccess: relax license to LGPLv2+
8590         * modules/euidaccess (License): Relax to LGPLv2+.
8591
8592 2010-03-06  Bruno Haible  <bruno@clisp.org>
8593
8594         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
8595         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
8596         (Makefile.am): Augment lib_SOURCES instead.
8597
8598 2010-03-04  Jim Meyering  <meyering@redhat.com>
8599
8600         utime: remove obsolete module
8601         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
8602         unnecessary for years, and has been marked as obsolete for 10 months.
8603         * modules/utime: Remove file.
8604         * lib/utime.c: Remove file.
8605         * m4/utime.m4: Remove file.
8606         * m4/utimes-null.m4: Remove file.
8607         * doc/posix-functions/utime.texi (utime): Remove reference to
8608         the module.  Move the sole "fixed by gnulib" item into the
8609         "problems not fixed by Gnulib" list.
8610         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
8611
8612 2010-03-05  Simon Josefsson  <simon@josefsson.org>
8613
8614         * modules/exit (License): Relax license to LGPLv2+.
8615         (Status): Mark as obsolete.
8616         * NEWS: Mention deprecated 'exit' module.
8617         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
8618         of now obsolete 'exit'.
8619
8620 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8621
8622         fts-lgpl: remove unused module
8623         * modules/fts-lgpl: Remove.
8624         * MODULES.html.sh (func_all_modules): Adjust.
8625         * check-module (find_included_lib_files): Adjust.
8626         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
8627
8628 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
8629
8630         copy-acl: enhance Solaris ACL error handling
8631         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
8632         * lib/set-mode-acl.c (qset_acl): Likewise.
8633
8634 2010-03-02  Bruno Haible  <bruno@clisp.org>
8635
8636         spawn: Don't override the system defined values on FreeBSD 8.
8637         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
8638         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
8639         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
8640         if HAVE_POSIX_SPAWN is 1.
8641         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
8642
8643 2010-03-01  Bruno Haible  <bruno@clisp.org>
8644
8645         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
8646         regarding Automake.
8647
8648 2010-02-25  Bruno Haible  <bruno@clisp.org>
8649
8650         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
8651         * gnulib-tool: Define 'echo' as a function only before the ksh alias
8652         setting, not afterwards.
8653         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8654
8655 2010-02-24  Eric Blake  <eblake@redhat.com>
8656
8657         bootstrap, git-version-gen: use timestamp
8658         * build-aux/git-version-gen (scriptversion): Force UTC.
8659         * build-aux/bootstrap (scriptversion): New variable.
8660
8661         bootstrap: allow older git
8662         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
8663         older than 1.6.4.  Requested by the libvirt project.
8664
8665 2010-02-23  Eric Blake  <eblake@redhat.com>
8666
8667         warn-on-use: work with old autoconf
8668         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
8669         AS_VAR semantics of autoconf 2.60.
8670         Reported by Bruno Haible.
8671
8672         bootstrap: improve some comments
8673         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
8674         clarification comments.
8675
8676         gettimeofday: provide correct function
8677         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
8678         when replacement is declared, otherwise provide gettimeofday.
8679         Reported by Michael Goffioul.
8680
8681 2010-02-23  Jim Meyering  <meyering@redhat.com>
8682
8683         lib-ignore: relax license to "unlimited", not LGPLv2+
8684         * modules/lib-ignore (License): Relax to "unlimited".
8685
8686 2010-02-23  Jim Meyering  <meyering@redhat.com>
8687
8688         lib-ignore: relax license to LGPLv2+
8689         * modules/lib-ignore (License): Relax to LGPLv2+.
8690
8691 2010-02-22  Eric Blake  <eblake@redhat.com>
8692
8693         lseek: avoid bash 3.2 broken pipe bug
8694         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
8695         warning from bash 3.2.
8696         Reported by Ben Pfaff, with analysis from Bruno Haible.
8697
8698         bootstrap: support non-FSF copyright holder
8699         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
8700         bootstrap.conf override of COPYRIGHT_HOLDER.
8701         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
8702
8703         bootstrap: interoperate with gettext 0.14.1
8704         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
8705
8706         bootstrap: allow for alternate submodule location
8707         * build-aux/bootstrap (gnulib_path): New variable; use instead of
8708         hardcoding submodule location.
8709         (gnulib_mk): Allow direct use of Makefile.am.
8710
8711         bootstrap: use GNULIB_SRCDIR to reduce disk usage
8712         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
8713         rather than reconfiguring where the submodule points.
8714
8715         gettimeofday: restore support for platforms that lack function
8716         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
8717         replacement if function is missing.
8718         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
8719         * modules/sys_time (Makefile.am): Substitute it.
8720         * lib/sys_time.in.h (gettimeofday): Check it.
8721         Reported by Michael Goffioul.
8722
8723 2010-02-21  Bruno Haible  <bruno@clisp.org>
8724
8725         * lib/stdio.in.h (obstack_printf): Fix typo.
8726
8727 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
8728
8729         vc-list-files: use bzr ls's -R option
8730         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
8731         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
8732
8733 2010-02-21  Jim Meyering  <meyering@redhat.com>
8734
8735         init.sh: fix EXEEXT shims to work also for names like test-prog
8736         * tests/init.sh: Re-exec a better shell, when needed.
8737         If the current shell lacks support for posix $(...), an init.sh-using
8738         test will now try to find a shell that supports that.  If EXEEXT is
8739         nonempty, we also require support for hyphen-in-alias-name and shell
8740         substitutions like ${var#glob}.  Failure to find such a shell results
8741         in a skipped test.
8742
8743 2010-02-21  Bruno Haible  <bruno@clisp.org>
8744
8745         Really work around around "broken pipe" error message from bash 3.2.
8746         * gnulib-tool (func_reset_sigpipe): Remove function.
8747         (echo): In bash 3.2, define to a function that uses printf.
8748         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
8749
8750 2010-02-20  Bruno Haible  <bruno@clisp.org>
8751
8752         Restore support for automake 1.9.6 with autoconf 2.61.
8753         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
8754         Reported by James Youngman <jay@gnu.org>.
8755
8756 2010-02-20  Bruno Haible  <bruno@clisp.org>
8757
8758         Improve *printf warning condition.
8759         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
8760         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
8761         and the function is overridden due to SIGPIPE emulation.
8762
8763 2010-02-20  Bruno Haible  <bruno@clisp.org>
8764
8765         * lib/stdio.in.h: Tweak comments.
8766
8767 2010-02-19  Bruno Haible  <bruno@clisp.org>
8768
8769         Make it easier to find modules. New gnulib-tool option '--find'.
8770         * gnulib-tool: New option --find.
8771         (func_usage): Document it.
8772         (func_sanitize_modulelist): New function, extracted from
8773         func_all_modules.
8774         (func_all_modules): Invoke it.
8775         * doc/gnulib-tool.texi (Which modules?): New node.
8776
8777 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
8778
8779         * lib/sys_select.in.h: Provide select replacement even if
8780         sys/select.h exists on a system, for Interix.
8781
8782 2010-02-18  Jim Meyering  <meyering@redhat.com>
8783
8784         init.sh: don't use $(...) just yet
8785         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
8786         to accommodate e.g., Solaris' /bin/sh.
8787
8788 2010-02-17  Bruno Haible  <bruno@clisp.org>
8789
8790         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
8791         Reported by Ludovic Courtès <ludo@gnu.org>.
8792
8793 2010-02-16  Simon Josefsson  <simon@josefsson.org>
8794
8795         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
8796         linking with -lintl.
8797
8798 2010-02-17  Simon Josefsson  <simon@josefsson.org>
8799
8800         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
8801         if not provided by the system's netdb.h.  Reported by
8802         ludo@gnu.org (Ludovic Courtès).
8803
8804 2010-02-15  Jim Meyering  <meyering@redhat.com>
8805
8806         init.sh: improve portability and efficiency
8807         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
8808         "dummy" in a for loop.
8809         Use '!', not '^' to select the complement of a character set used
8810         in a "case" statement.
8811         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
8812         Suggestions from Eric Blake.
8813
8814         init.sh: automatically accommodate programs with the .exe suffix
8815         Automatically arrange for an invocation of "prog" to execute the
8816         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
8817         may use the simpler "prog", yet still work when built on a system
8818         that requires specifying the added suffix.
8819         Do this by constructing a function named "prog" that invokes
8820         "prog.exe" for each .exe file in selected directories.
8821         * tests/init.sh (find_exe_basenames_): New function.
8822         (create_exe_shim_functions_): New function.
8823         (path_prepend_): Use it.
8824
8825         maint.mk: mark syntax-check sc_*.m rules as .PHONY
8826         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
8827         "make -t syntax-check" doesn't create a ton of sc_*.m files.
8828
8829 2010-02-14  Jim Meyering  <meyering@redhat.com>
8830
8831         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
8832         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
8833         (sc_prohibit_hash_pjw_without_use): New rule.
8834
8835         maint.mk: allow the default upload destination dir to be overridden
8836         * top/maint.mk (upload_dest_dir_): Define with a default that
8837         preserves the status quo.
8838         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
8839         Reported by Peter Simons.
8840
8841         maint.mk: prohibit inclusion of "hash.h" without_use
8842         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
8843
8844 2010-02-10  Jim Meyering  <meyering@redhat.com>
8845
8846         maint.mk: prohibit inclusion of "ignore-value.h" without_use
8847         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
8848
8849 2010-02-09  Eric Blake  <ebb9@byu.net>
8850         and Bruno Haible  <bruno@clisp.org>
8851
8852         obstack-printf-posix: ensure declaration
8853         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
8854         extracted from gl_FUNC_OBSTACK_PRINTF.
8855         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
8856         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8857         Likewise.
8858         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
8859         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
8860         0.
8861
8862 2010-02-08  Bruno Haible  <bruno@clisp.org>
8863
8864         gnulib-tool: Fix typo in 2010-02-07 commit.
8865         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
8866         Reported by Eric Blake.
8867
8868 2010-02-07  Bruno Haible  <bruno@clisp.org>
8869
8870         gnulib-tool: Fix up caching patches.
8871         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
8872         option --no-cache. Use associative arrays when supported by the shell.
8873         (sed_comments): New variable.
8874         (modcache): Renamed from do_cache.
8875         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
8876         abbreviate unnecessarily.
8877         (have_associative): New variable.
8878         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
8879         way also for ksh and zsh.
8880         (func_init_sed_convert_to_cache_statements): New function, extracted
8881         from func_cache_lookup_module. Add support for associative arrays.
8882         Don't set the c_MODULE_cached variable here. Ignore all lines before
8883         the first field header. Remove only the final newline, not all trailing
8884         newlines. Support empty fields correctly. Limit the use of 'eval' to
8885         assignments.
8886         (func_get_description, func_get_status, func_get_notice,
8887         func_get_applicability, func_get_filelist, func_get_dependencies,
8888         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
8889         func_get_automake_snippet, func_get_include_directive,
8890         func_get_link_directive, func_get_license, func_get_maintainer):
8891         Update documentation. List the unoptimized code first. Add support for
8892         associative arrays. Limit the use of 'eval' to assignments.
8893         (func_get_applicability): Undo stylistic pessimisations.
8894         (func_get_automake_snippet, func_get_include_directive): Reduce code
8895         duplication.
8896         (func_modules_transitive_closure, func_modules_add_dummy,
8897         func_modules_notice, func_modules_to_filelist, func_add_file,
8898         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
8899         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
8900         func_create_testdir, func_create_megatestdir): Update documentation.
8901
8902 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8903
8904         * gnulib-tool (func_cache_lookup_module): Store the module name
8905         belonging to the cache variable; error out if two different
8906         module names map to the same cache variable name.
8907
8908 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8909
8910         gnulib-tool: Make caching optional.
8911         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
8912         Update matching short versions of --no-changelog.
8913         (func_usage): Update.
8914         (sed_extract_cache_prog): Renamed from ...
8915         (sed_extract_prog): ... this; revert to old extraction script.
8916         (func_get_description, func_get_status)
8917         (func_get_notice, func_get_applicability, func_get_filelist)
8918         (func_get_dependencies, func_get_autoconf_early_snippet)
8919         (func_get_autoconf_snippet, func_get_automake_snippet)
8920         (func_get_include_directive, func_get_link_directive)
8921         (func_get_license, func_get_maintainer): If $do_cache is false,
8922         use old, non-caching extraction scripts.
8923         Suggestion by Bruno Haible.
8924
8925 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8926
8927         gnulib-tool: cache module metainformation.
8928         * gnulib-tool (sed_extract_prog): Match newline before each
8929         header, and rewrite header to a shell variable suffix.
8930         (func_cache_var, func_cache_lookup_module): New functions,
8931         to turn a module name into a cache variable prefix, and to
8932         look up and cache module metainformation.
8933         (func_get_description, func_get_status)
8934         (func_get_notice, func_get_applicability, func_get_filelist)
8935         (func_get_dependencies, func_get_autoconf_early_snippet)
8936         (func_get_autoconf_snippet, func_get_automake_snippet)
8937         (func_get_include_directive, func_get_link_directive)
8938         (func_get_license, func_get_maintainer): Use
8939         func_cache_lookup_module.
8940
8941 2010-02-07  Bruno Haible  <bruno@clisp.org>
8942
8943         fnctl: Fix missing dependency.
8944         * modules/fcntl (Depends-on): Add getdtablesize.
8945         Reported by John W. Eaton <jwe@gnu.org>.
8946
8947 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8948
8949         Argp: fix recognition of short alias options.
8950
8951         * lib/argp-parse.c (convert_options): Fix improper use of
8952         `|' between character values.
8953         * tests/test-argp.c (group1_option): New alias option
8954         --read (-r).
8955         (group1_parser): Special handling for 'r'.
8956         (test15): New test case.
8957         (test_fun): Add test15.
8958         * tests/test-argp-2.sh: Update expected --help and --usage
8959         outputs.
8960
8961 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8962
8963         * tests/test-argp.c: Fix indentation.
8964
8965 2010-02-04  Eric Blake  <ebb9@byu.net>
8966
8967         gettimeofday: expose type of second argument
8968         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
8969         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
8970         * tests/test-gettimeofday.c: Use it to silence warning.
8971         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
8972         the issue.
8973
8974 2010-02-03  Jim Meyering  <meyering@redhat.com>
8975
8976         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
8977         * lib/regcomp.c (TYPE_SIGNED): Define.
8978         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
8979
8980         regcomp.c: avoid a new -Wshadow warning
8981         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
8982
8983 2010-02-01  Jim Meyering  <meyering@redhat.com>
8984
8985         removing useless parentheses in cpp #define directives
8986         For motivation, see commit c0221df4, "define STREQ(a,b)
8987         consistently, removing useless parentheses"
8988         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
8989         * lib/mountlist.c (MNT_IGNORE): Likewise.
8990         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
8991
8992 2010-02-01  Eric Blake  <ebb9@byu.net>
8993
8994         sys_time: use link-warning
8995         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
8996         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
8997         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
8998         * modules/sys_time (Depends-on): Add warn-on-use.
8999         (Makefile.am): Always build replacement.
9000         (configure.ac): Update substitutions.
9001         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
9002         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
9003         bother with SYS_TIME_H.
9004         * modules/gettimeofday (configure.ac): Declare indicator.
9005         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
9006         in use.
9007
9008         closein-tests: silence compiler warning
9009         * tests/test-closein.c (main): Ignore fread result.
9010         * modules/closein-tests (Depends-on): Add ignore-value.
9011
9012         tests: silence warning about system return
9013         * tests/test-areadlink-with-size.c (main): Ignore system result.
9014         * tests/test-areadlink.c (main): Likewise.
9015         * tests/test-areadlinkat-with-size.c (main): Likewise.
9016         * tests/test-areadlinkat.c (main): Likewise.
9017         * tests/test-canonicalize-lgpl.c (main): Likewise.
9018         * tests/test-canonicalize.c (main): Likewise.
9019         * tests/test-chown.c (main): Likewise.
9020         * tests/test-fchownat.c (main): Likewise.
9021         * tests/test-fdutimensat.c (main): Likewise.
9022         * tests/test-fstatat.c (main): Likewise.
9023         * tests/test-futimens.c (main): Likewise.
9024         * tests/test-lchown.c (main): Likewise.
9025         * tests/test-link.c (main): Likewise.
9026         * tests/test-linkat.c (main): Likewise.
9027         * tests/test-lstat.c (main): Likewise.
9028         * tests/test-mkdir.c (main): Likewise.
9029         * tests/test-mkdirat.c (main): Likewise.
9030         * tests/test-mkfifo.c (main): Likewise.
9031         * tests/test-mkfifoat.c (main): Likewise.
9032         * tests/test-mknod.c (main): Likewise.
9033         * tests/test-readlink.c (main): Likewise.
9034         * tests/test-remove.c (main): Likewise.
9035         * tests/test-rename.c (main): Likewise.
9036         * tests/test-renameat.c (main): Likewise.
9037         * tests/test-rmdir.c (main): Likewise.
9038         * tests/test-symlink.c (main): Likewise.
9039         * tests/test-symlinkat.c (main): Likewise.
9040         * tests/test-unlink.c (main): Likewise.
9041         * tests/test-unlinkat.c (main): Likewise.
9042         * tests/test-utimens.c (main): Likewise.
9043         * tests/test-utimensat.c (main): Likewise.
9044         * modules/areadlink-tests (Depends-on): Add ignore-value.
9045         * modules/areadlink-with-size-tests (Depends-on): Likewise.
9046         * modules/areadlinkat-tests (Depends-on): Likewise.
9047         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
9048         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9049         * modules/canonicalize-tests (Depends-on): Likewise.
9050         * modules/chown-tests (Depends-on): Likewise.
9051         * modules/fdutimensat-tests (Depends-on): Likewise.
9052         * modules/futimens-tests (Depends-on): Likewise.
9053         * modules/lchown-tests (Depends-on): Likewise.
9054         * modules/link-tests (Depends-on): Likewise.
9055         * modules/linkat-tests (Depends-on): Likewise.
9056         * modules/lstat-tests (Depends-on): Likewise.
9057         * modules/mkdir-tests (Depends-on): Likewise.
9058         * modules/mkfifo-tests (Depends-on): Likewise.
9059         * modules/mkfifoat-tests (Depends-on): Likewise.
9060         * modules/mknod-tests (Depends-on): Likewise.
9061         * modules/openat-tests (Depends-on): Likewise.
9062         * modules/readlink-tests (Depends-on): Likewise.
9063         * modules/remove-tests (Depends-on): Likewise.
9064         * modules/rename-tests (Depends-on): Likewise.
9065         * modules/renameat-tests (Depends-on): Likewise.
9066         * modules/rmdir-tests (Depends-on): Likewise.
9067         * modules/symlink-tests (Depends-on): Likewise.
9068         * modules/symlinkat-tests (Depends-on): Likewise.
9069         * modules/unlink-tests (Depends-on): Likewise.
9070         * modules/utimens-tests (Depends-on): Likewise.
9071         * modules/utimensat-tests (Depends-on): Likewise.
9072
9073 2010-01-31  Bruno Haible  <bruno@clisp.org>
9074
9075         Perform the same test for many <math.h> functions.
9076         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
9077         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
9078         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
9079         of gl_MATHFUNC.
9080         * modules/acos (configure.ac): Likewise.
9081         * modules/asin (configure.ac): Likewise.
9082         * modules/atan (configure.ac): Likewise.
9083         * modules/atan2 (configure.ac): Likewise.
9084         * modules/cbrt (configure.ac): Likewise.
9085         * modules/copysign (configure.ac): Likewise.
9086         * modules/cos (configure.ac): Likewise.
9087         * modules/cosh (configure.ac): Likewise.
9088         * modules/erf (configure.ac): Likewise.
9089         * modules/erfc (configure.ac): Likewise.
9090         * modules/exp (configure.ac): Likewise.
9091         * modules/fmod (configure.ac): Likewise.
9092         * modules/hypot (configure.ac): Likewise.
9093         * modules/j0 (configure.ac): Likewise.
9094         * modules/j1 (configure.ac): Likewise.
9095         * modules/jn (configure.ac): Likewise.
9096         * modules/lgamma (configure.ac): Likewise.
9097         * modules/log (configure.ac): Likewise.
9098         * modules/log10 (configure.ac): Likewise.
9099         * modules/log1p (configure.ac): Likewise.
9100         * modules/pow (configure.ac): Likewise.
9101         * modules/remainder (configure.ac): Likewise.
9102         * modules/sin (configure.ac): Likewise.
9103         * modules/sinh (configure.ac): Likewise.
9104         * modules/tan (configure.ac): Likewise.
9105         * modules/tanh (configure.ac): Likewise.
9106         * modules/y0 (configure.ac): Likewise.
9107         * modules/y1 (configure.ac): Likewise.
9108         * modules/yn (configure.ac): Likewise.
9109         Suggested by Paolo Bonzini.
9110
9111 2010-01-31  Bruno Haible  <bruno@clisp.org>
9112
9113         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
9114
9115 2010-01-31  Bruno Haible  <bruno@clisp.org>
9116
9117         Work around getdelim() bug on FreeBSD 8.0.
9118         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
9119         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
9120         not work.
9121         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
9122         is 1.
9123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
9124         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
9125         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
9126         a non-zero size.
9127         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
9128
9129 2010-01-31  Bruno Haible  <bruno@clisp.org>
9130
9131         Work around getline() bug on FreeBSD 8.0.
9132         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
9133         and a non-zero size.
9134         * tests/test-getline.c (main): Likewise.
9135         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
9136         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
9137
9138 2010-01-28  Eric Blake  <ebb9@byu.net>
9139
9140         regex: fix build failure
9141         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
9142         platforms.
9143
9144 2010-01-28  Jim Meyering  <meyering@redhat.com>
9145
9146         regex: do not ignore memory allocation failure
9147         * lib/regex_internal.c (create_cd_newstate): Detect
9148         re_node_set_init_copy failure.   Extracted from glibc commit
9149         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9150
9151         regex: sync more white-space changes from libc
9152         * lib/regex_internal.c: White-space only changes.
9153         * lib/regexec.c: Likewise.
9154
9155         regex: add many uses of __attribute_warn_unused_result__
9156         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
9157         * lib/regexec.c: Likewise.
9158         Extracted from a messy glibc commit.
9159
9160         regcomp.c: spelling and merge-artifact from glibc
9161         * lib/regcomp.c: Merge remainder of glibc's
9162         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9163
9164         regcomp.c: sync white-space changes from glibc
9165         * lib/regcomp.c: Merge to accommodate white space
9166         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9167
9168         regcomp.c: do not ignore internal return values
9169         * lib/regcomp.c: Do not ignore internal return values.
9170         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
9171         but without its white-space changes and spelling fixes.
9172
9173         regex_internal.h: define __attribute_warn_unused_result__
9174         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
9175
9176         maint: add a syntax-check rule to check for vulnerable Makefile.in
9177         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
9178
9179 2010-01-27  Jim Meyering  <meyering@redhat.com>
9180
9181         ncftpput-ftp: clean up spaces
9182         * build-aux/ncftpput-ftp: Make Copyright line consistent.
9183         Remove trailing blanks.
9184
9185 2010-01-27  Simon Josefsson  <simon@josefsson.org>
9186
9187         * build-aux/git-version-gen: Fix copyright statement.
9188         * build-aux/gnupload: Likewise.
9189         * tests/test-arcfour.c: Likewise.
9190         * tests/test-arctwo.c: Likewise.
9191         * tests/test-count-one-bits.c: Likewise.
9192         * tests/test-crc.c: Likewise.
9193         * tests/test-des.c: Likewise.
9194         * tests/test-gc-arcfour.c: Likewise.
9195         * tests/test-gc-arctwo.c: Likewise.
9196         * tests/test-gc-des.c: Likewise.
9197         * tests/test-gc-hmac-md5.c: Likewise.
9198         * tests/test-gc-hmac-sha1.c: Likewise.
9199         * tests/test-gc-md2.c: Likewise.
9200         * tests/test-gc-md4.c: Likewise.
9201         * tests/test-gc-md5.c: Likewise.
9202         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9203         * tests/test-gc-rijndael.c: Likewise.
9204         * tests/test-gc-sha1.c: Likewise.
9205         * tests/test-gc.c: Likewise.
9206         * tests/test-gethostname.c: Likewise.
9207         * tests/test-gettimeofday.c: Likewise.
9208         * tests/test-hash.c: Likewise.
9209         * tests/test-hmac-md5.c: Likewise.
9210         * tests/test-hmac-sha1.c: Likewise.
9211         * tests/test-md2.c: Likewise.
9212         * tests/test-md4.c: Likewise.
9213         * tests/test-md5.c: Likewise.
9214         * tests/test-memchr.c: Likewise.
9215         * tests/test-memchr2.c: Likewise.
9216         * tests/test-memcmp.c: Likewise.
9217         * tests/test-memmem.c: Likewise.
9218         * tests/test-memrchr.c: Likewise.
9219         * tests/test-rawmemchr.c: Likewise.
9220         * tests/test-read-file.c: Likewise.
9221         * tests/test-rijndael.c: Likewise.
9222         * tests/test-sockets.c: Likewise.
9223         * tests/test-strchrnul.c: Likewise.
9224         * tests/test-strstr.c: Likewise.
9225         * tests/test-strtod.c: Likewise.
9226         * build-aux/ncftpput-ftp: Likewise.
9227
9228 2010-01-26  Eric Blake  <ebb9@byu.net>
9229
9230         ignore-value: update recommended header name
9231         * modules/ignore-value (Include): Only use <> for headers that
9232         exist in glibc.
9233
9234 2010-01-26  Jim Meyering  <meyering@redhat.com>
9235
9236         test-userspec.c: avoid compiler warnings
9237         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
9238         and "initialization discards qualifiers..." warnings.
9239         Put the first "uid" in its own scope, and make char* members "const".
9240
9241 2010-01-25  Bruno Haible  <bruno@clisp.org>
9242
9243         gnulib-tool: Make warning diagnostics consistent.
9244         * gnulib-tool (func_warning): New function.
9245         Use it everywhere where gnulib-tool produces output to stderr and it is
9246         not a fatal error.
9247
9248 2010-01-25  Bruno Haible  <bruno@clisp.org>
9249
9250         Fix test dependencies.
9251         * modules/xstrtol-tests (Depends-on): Add inttypes.
9252         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
9253
9254 2010-01-25 Pádraig Brady <P@draigBrady.com>
9255
9256         syntax-check: detect incorrect boolean macro values in config.h
9257         * modules/maintainer-makefile (configure.ac): Parameterize the location
9258         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
9259         The logic is from Eric Blake and the location indicated by Jim Meyering.
9260         Note the more natural CONFIG_HEADER name is prohibited by automake
9261         for backwards compatibility reasons.
9262         * top/maint.mk (sc_Wundef_boolean): New rule.
9263
9264 2010-01-25  Jim Meyering  <meyering@redhat.com>
9265
9266         bootstrap: detect MacOS 10.6's shasum, too
9267         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
9268         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
9269
9270 2010-01-23  Jim Meyering  <meyering@redhat.com>
9271
9272         xstrtoll: new module
9273         * modules/xstrtoll: New file.
9274         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
9275         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
9276         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
9277         ./configure fails if you use this module and lack "long long".
9278         * modules/xstrtoll-tests: New module.
9279         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
9280         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
9281         new init.sh-based test framework.
9282
9283 2010-01-24  Bruno Haible  <bruno@clisp.org>
9284
9285         Tests for module 'yn'.
9286         * modules/yn-tests: New file.
9287         * tests/test-yn.c: New file.
9288
9289         Tests for module 'y1'.
9290         * modules/y1-tests: New file.
9291         * tests/test-y1.c: New file.
9292
9293         Tests for module 'y0'.
9294         * modules/y0-tests: New file.
9295         * tests/test-y0.c: New file.
9296
9297         Tests for module 'tanh'.
9298         * modules/tanh-tests: New file.
9299         * tests/test-tanh.c: New file.
9300
9301         Tests for module 'tan'.
9302         * modules/tan-tests: New file.
9303         * tests/test-tan.c: New file.
9304
9305         Tests for module 'sqrt'.
9306         * modules/sqrt-tests: New file.
9307         * tests/test-sqrt.c: New file.
9308
9309         Tests for module 'sinh'.
9310         * modules/sinh-tests: New file.
9311         * tests/test-sinh.c: New file.
9312
9313         Tests for module 'sin'.
9314         * modules/sin-tests: New file.
9315         * tests/test-sin.c: New file.
9316
9317         Tests for module 'rint'.
9318         * modules/rint-tests: New file.
9319         * tests/test-rint.c: New file.
9320
9321         Tests for module 'remainder'.
9322         * modules/remainder-tests: New file.
9323         * tests/test-remainder.c: New file.
9324
9325         Tests for module 'pow'.
9326         * modules/pow-tests: New file.
9327         * tests/test-pow.c: New file.
9328
9329         Tests for module 'nextafter'.
9330         * modules/nextafter-tests: New file.
9331         * tests/test-nextafter.c: New file.
9332
9333         Tests for module 'modf'.
9334         * modules/modf-tests: New file.
9335         * tests/test-modf.c: New file.
9336
9337         Tests for module 'logb'.
9338         * modules/logb-tests: New file.
9339         * tests/test-logb.c: New file.
9340
9341         Tests for module 'log1p'.
9342         * modules/log1p-tests: New file.
9343         * tests/test-log1p.c: New file.
9344
9345         Tests for module 'log10'.
9346         * modules/log10-tests: New file.
9347         * tests/test-log10.c: New file.
9348
9349         Tests for module 'log'.
9350         * modules/log-tests: New file.
9351         * tests/test-log.c: New file.
9352
9353         Tests for module 'lgamma'.
9354         * modules/lgamma-tests: New file.
9355         * tests/test-lgamma.c: New file.
9356
9357         Tests for module 'ldexp'.
9358         * modules/ldexp-tests: New file.
9359         * tests/test-ldexp.c: New file.
9360
9361         Tests for module 'jn'.
9362         * modules/jn-tests: New file.
9363         * tests/test-jn.c: New file.
9364
9365         Tests for module 'j1'.
9366         * modules/j1-tests: New file.
9367         * tests/test-j1.c: New file.
9368
9369         Tests for module 'j0'.
9370         * modules/j0-tests: New file.
9371         * tests/test-j0.c: New file.
9372
9373         Tests for module 'hypot'.
9374         * modules/hypot-tests: New file.
9375         * tests/test-hypot.c: New file.
9376
9377         Tests for module 'fmod'.
9378         * modules/fmod-tests: New file.
9379         * tests/test-fmod.c: New file.
9380
9381         Tests for module 'fabs'.
9382         * modules/fabs-tests: New file.
9383         * tests/test-fabs.c: New file.
9384
9385         Tests for module 'exp'.
9386         * modules/exp-tests: New file.
9387         * tests/test-exp.c: New file.
9388
9389         Tests for module 'erfc'.
9390         * modules/erfc-tests: New file.
9391         * tests/test-erfc.c: New file.
9392
9393         Tests for module 'erf'.
9394         * modules/erf-tests: New file.
9395         * tests/test-erf.c: New file.
9396
9397         Tests for module 'cosh'.
9398         * modules/cosh-tests: New file.
9399         * tests/test-cosh.c: New file.
9400
9401         Tests for module 'cos'.
9402         * modules/cos-tests: New file.
9403         * tests/test-cos.c: New file.
9404
9405         Tests for module 'copysign'.
9406         * modules/copysign-tests: New file.
9407         * tests/test-copysign.c: New file.
9408
9409         Tests for module 'cbrt'.
9410         * modules/cbrt-tests: New file.
9411         * tests/test-cbrt.c: New file.
9412
9413         Tests for module 'atan2'.
9414         * modules/atan2-tests: New file.
9415         * tests/test-atan2.c: New file.
9416
9417         Tests for module 'atan'.
9418         * modules/atan-tests: New file.
9419         * tests/test-atan.c: New file.
9420
9421         Tests for module 'asin'.
9422         * modules/asin-tests: New file.
9423         * tests/test-asin.c: New file.
9424
9425         Tests for module 'acos'.
9426         * modules/acos-tests: New file.
9427         * tests/test-acos.c: New file.
9428
9429 2010-01-24  Bruno Haible  <bruno@clisp.org>
9430
9431         Fix tests for common <math.h> functions.
9432         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
9433         code snippet that references the function pointer, rather than merely
9434         calling the function. Substitute the FUNC_LIBM variable.
9435         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
9436         * modules/acos (configure.ac): Likewise.
9437         * modules/asin (configure.ac): Likewise.
9438         * modules/atan (configure.ac): Likewise.
9439         * modules/atan2 (configure.ac): Likewise.
9440         * modules/cbrt (configure.ac): Likewise.
9441         * modules/copysign (configure.ac): Likewise.
9442         * modules/cos (configure.ac): Likewise.
9443         * modules/cosh (configure.ac): Likewise.
9444         * modules/erf (configure.ac): Likewise.
9445         * modules/erfc (configure.ac): Likewise.
9446         * modules/exp (configure.ac): Likewise.
9447         * modules/fabs (configure.ac): Likewise.
9448         * modules/fmod (configure.ac): Likewise.
9449         * modules/hypot (configure.ac): Likewise.
9450         * modules/j0 (configure.ac): Likewise.
9451         * modules/j1 (configure.ac): Likewise.
9452         * modules/jn (configure.ac): Likewise.
9453         * modules/ldexp (configure.ac): Likewise.
9454         * modules/lgamma (configure.ac): Likewise.
9455         * modules/log (configure.ac): Likewise.
9456         * modules/log10 (configure.ac): Likewise.
9457         * modules/log1p (configure.ac): Likewise.
9458         * modules/logb (configure.ac): Likewise.
9459         * modules/modf (configure.ac): Likewise.
9460         * modules/nextafter (configure.ac): Likewise.
9461         * modules/pow (configure.ac): Likewise.
9462         * modules/remainder (configure.ac): Likewise.
9463         * modules/rint (configure.ac): Likewise.
9464         * modules/sin (configure.ac): Likewise.
9465         * modules/sinh (configure.ac): Likewise.
9466         * modules/tan (configure.ac): Likewise.
9467         * modules/tanh (configure.ac): Likewise.
9468         * modules/y0 (configure.ac): Likewise.
9469         * modules/y1 (configure.ac): Likewise.
9470         * modules/yn (configure.ac): Likewise.
9471
9472 2010-01-24  Bruno Haible  <bruno@clisp.org>
9473
9474         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
9475         * tests/test-acosl.c (x): New variable.
9476         (main): Store argument in x and fetch it from x.
9477         * tests/test-asinl.c (x): New variable.
9478         (main): Store argument in x and fetch it from x.
9479         * tests/test-atanl.c (x): New variable.
9480         (main): Store argument in x and fetch it from x.
9481         * tests/test-cosl.c (x): New variable.
9482         (main): Store argument in x and fetch it from x.
9483         * tests/test-expl.c (x): New variable.
9484         (main): Store argument in x and fetch it from x.
9485         * tests/test-logl.c (x): New variable.
9486         (main): Store argument in x and fetch it from x.
9487         * tests/test-sinl.c (x): New variable.
9488         (main): Store argument in x and fetch it from x.
9489         * tests/test-sqrtl.c (x): New variable.
9490         (main): Store argument in x and fetch it from x.
9491         * tests/test-tanl.c (x): New variable.
9492         (main): Store argument in x and fetch it from x.
9493
9494 2010-01-24  Bruno Haible  <bruno@clisp.org>
9495
9496         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
9497         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
9498         assignments to the initial TESTS_ENVIRONMENT.
9499         * doc/gnulib.texi (Unit test modules): Document it.
9500         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
9501         TESTS_ENVIRONMENT.
9502         * modules/btowc-tests (Makefile.am): Likewise.
9503         * modules/c-stack-tests (Makefile.am): Likewise.
9504         * modules/c-strcase-tests (Makefile.am): Likewise.
9505         * modules/copy-file-tests (Makefile.am): Likewise.
9506         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9507         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9508         * modules/mbrtowc-tests (Makefile.am): Likewise.
9509         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9510         * modules/mbscasestr-tests (Makefile.am): Likewise.
9511         * modules/mbschr-tests (Makefile.am): Likewise.
9512         * modules/mbscspn-tests (Makefile.am): Likewise.
9513         * modules/mbsinit-tests (Makefile.am): Likewise.
9514         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9515         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9516         * modules/mbspbrk-tests (Makefile.am): Likewise.
9517         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9518         * modules/mbsrchr-tests (Makefile.am): Likewise.
9519         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9520         * modules/mbsspn-tests (Makefile.am): Likewise.
9521         * modules/mbsstr-tests (Makefile.am): Likewise.
9522         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9523         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9524         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9525         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9526         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9527         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9528         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9529         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9530         * modules/wcrtomb-tests (Makefile.am): Likewise.
9531         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9532         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9533         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
9534         assignments from TESTS_ENVIRONMENT.
9535         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
9536         augmentation.
9537         * modules/argp-version-etc-tests (Makefile.am): Likewise.
9538         * modules/atexit-tests (Makefile.am): Likewise.
9539         * modules/binary-io-tests (Makefile.am): Likewise.
9540         * modules/closein-tests (Makefile.am): Likewise.
9541         * modules/dprintf-posix-tests (Makefile.am): Likewise.
9542         * modules/exclude-tests (Makefile.am): Likewise.
9543         * modules/fflush-tests (Makefile.am): Likewise.
9544         * modules/fpending-tests (Makefile.am): Likewise.
9545         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9546         * modules/freadahead-tests (Makefile.am): Likewise.
9547         * modules/freadptr-tests (Makefile.am): Likewise.
9548         * modules/freadseek-tests (Makefile.am): Likewise.
9549         * modules/fseek-tests (Makefile.am): Likewise.
9550         * modules/fseeko-tests (Makefile.am): Likewise.
9551         * modules/ftell-tests (Makefile.am): Likewise.
9552         * modules/ftello-tests (Makefile.am): Likewise.
9553         * modules/idpriv-drop-tests (Makefile.am): Likewise.
9554         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
9555         * modules/lseek-tests (Makefile.am): Likewise.
9556         * modules/parse-duration-tests (Makefile.am): Likewise.
9557         * modules/perror-tests (Makefile.am): Likewise.
9558         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
9559         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
9560         * modules/pipe-tests (Makefile.am): Likewise.
9561         * modules/pread-tests (Makefile.am): Likewise.
9562         * modules/printf-posix-tests (Makefile.am): Likewise.
9563         * modules/select-tests (Makefile.am): Likewise.
9564         * modules/sigpipe-tests (Makefile.am): Likewise.
9565         * modules/tsearch-tests (Makefile.am): Likewise.
9566         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9567         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9568         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9569         * modules/uniwidth/width-tests (Makefile.am): Likewise.
9570         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
9571         * modules/version-etc-tests (Makefile.am): Likewise.
9572         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9573         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9574         * modules/xalloc-die-tests (Makefile.am): Likewise.
9575         * modules/xprintf-posix-tests (Makefile.am): Likewise.
9576         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9577         * modules/xstrtol-tests (Makefile.am): Likewise.
9578         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9579         * modules/yesno-tests (Makefile.am): Likewise.
9580         Suggested by Jim Meyering.
9581
9582 2010-01-24  Bruno Haible  <bruno@clisp.org>
9583
9584         More documentation.
9585         * doc/gnulib.texi (Writing modules): New chapter.
9586         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
9587         the new chapter.
9588
9589 2010-01-24  Jim Meyering  <meyering@redhat.com>
9590
9591         maint.mk: do not prepend "./" after filtering
9592         * top/maint.mk (_prepend_srcdir_prefix): New variable
9593         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
9594         "./" when $(srcdir) is ".".
9595
9596         define STREQ(a,b) consistently, removing useless parentheses
9597         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
9598         since the only risk is that "a" or "b" contains an unparenthesized
9599         comma, but if either did that, STREQ would have 3 or more arguments.
9600         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
9601         * lib/fts.c (STREQ): Remove unnecessary parentheses.
9602         * lib/hash-triple.c (STREQ): Likewise.
9603         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
9604         * lib/getugroups.c (STREQ): Likewise.
9605
9606 2010-01-23  Jim Meyering  <meyering@redhat.com>
9607
9608         maint.mk: fix syntax-check in a non-srcdir build directory
9609         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
9610         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
9611
9612 2010-01-22  Jim Meyering  <meyering@redhat.com>
9613
9614         userspec: add unit tests
9615         * tests/test-userspec.c: New file.
9616         * modules/userspec-tests: Likewise.
9617
9618 2010-01-21  Jim Meyering  <meyering@redhat.com>
9619
9620         maint.mk: handle source file names containing "." robustly
9621         * top/maint.mk (_dot_escaped_srcdir): Define.
9622         (VC_LIST): Use it in LHS of sed substitution.
9623
9624 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
9625
9626         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
9627         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
9628         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
9629         from a non-srcdir build.
9630
9631 2010-01-20  Eric Blake  <ebb9@byu.net>
9632
9633         warn-on-use: use instead of link-warning
9634         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
9635         * modules/unistd (Depends-on, Makefile.am): Likewise.
9636         * modules/arpa_inet (Depends-on): Replace link-warning with
9637         warn-on-use.
9638         (Makefile.am): Update rules accordingly.
9639         * modules/ctype (Depends-on, Makefile.am): Likewise.
9640         * modules/dirent (Depends-on, Makefile.am): Likewise.
9641         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
9642         * modules/inttypes (Depends-on, Makefile.am): Likewise.
9643         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9644         * modules/locale (Depends-on, Makefile.am): Likewise.
9645         * modules/math (Depends-on, Makefile.am): Likewise.
9646         * modules/search (Depends-on, Makefile.am): Likewise.
9647         * modules/signal (Depends-on, Makefile.am): Likewise.
9648         * modules/spawn (Depends-on, Makefile.am): Likewise.
9649         * modules/stdlib (Depends-on, Makefile.am): Likewise.
9650         * modules/string (Depends-on, Makefile.am): Likewise.
9651         * modules/strings (Depends-on, Makefile.am): Likewise.
9652         * modules/sys_file (Depends-on, Makefile.am): Likewise.
9653         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
9654         * modules/sys_select (Depends-on, Makefile.am): Likewise.
9655         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
9656         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
9657         * modules/sys_times (Depends-on, Makefile.am): Likewise.
9658         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9659         * modules/wchar (Depends-on, Makefile.am): Likewise.
9660         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
9661         should be poisoned.
9662         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
9663         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
9664         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
9665         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9666         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9667         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9668         * m4/math_h.m4 (gl_MATH_H): Likewise.
9669         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9670         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9671         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9672         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9673         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9674         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9675         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9676         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
9677         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9678         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9679         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9680         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9681         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9682         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9683         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9684         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9685         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
9686         GL_LINK_WARNING.
9687         * lib/ctype.in.h: Likewise.
9688         * lib/dirent.in.h: Likewise.
9689         * lib/fcntl.in.h: Likewise.
9690         * lib/inttypes.in.h: Likewise.
9691         * lib/langinfo.in.h: Likewise.
9692         * lib/locale.in.h: Likewise.
9693         * lib/math.in.h: Likewise.
9694         * lib/search.in.h: Likewise.
9695         * lib/signal.in.h: Likewise.
9696         * lib/spawn.in.h: Likewise.
9697         * lib/stdio.in.h: Likewise.
9698         * lib/stdlib.in.h: Likewise.
9699         * lib/string.in.h: Likewise.
9700         * lib/strings.in.h: Likewise.
9701         * lib/sys_file.in.h: Likewise.
9702         * lib/sys_ioctl.in.h: Likewise.
9703         * lib/sys_select.in.h: Likewise.
9704         * lib/sys_socket.in.h: Likewise.
9705         * lib/sys_stat.in.h: Likewise.
9706         * lib/sys_times.in.h: Likewise.
9707         * lib/sys_utsname.in.h: Likewise.
9708         * lib/unistd.in.h: Likewise.
9709         * lib/wchar.in.h: Likewise.
9710
9711 2010-01-20  Bruno Haible  <bruno@clisp.org>
9712
9713         Avoid duplicate -lm.
9714         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
9715         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
9716         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
9717         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
9718         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
9719         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
9720         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
9721         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
9722         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
9723         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
9724         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
9725         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9726         Reported by Paolo Bonzini.
9727
9728 2010-01-19  Bruno Haible  <bruno@clisp.org>
9729
9730         langinfo, nl_langinfo: Relicense under LGPLv2+.
9731         * modules/langinfo (License): Change to LGPLv2+.
9732         * modules/nl_langinfo (License): Likewise.
9733         Patch by David Lutterkort <lutter@redhat.com>.
9734
9735 2010-01-19  Bruno Haible  <bruno@clisp.org>
9736
9737         Avoid compilation error with cc on OSF/1 5.1.
9738         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
9739         statement, not before.
9740         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9741
9742 2010-01-18  Bruno Haible  <bruno@clisp.org>
9743
9744         Avoid a link error due to the __printf__ symbol.
9745         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
9746         and 2.6.x.
9747         (__format__, __printf__): Remove definitions.
9748         * lib/argp-fmtstream.h: Likewise.
9749         * lib/argp.h: Likewise.
9750         * lib/error.h: Likewise.
9751         * lib/vasnprintf.h: Likewise.
9752         * lib/xprintf.h: Likewise.
9753         * lib/xvasprintf.h: Likewise.
9754         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9755
9756 2010-01-18  Bruno Haible  <bruno@clisp.org>
9757
9758         Tests for module 'tanl'.
9759         * modules/tanl-tests: New file.
9760         * tests/test-tanl.c: New file.
9761
9762         Tests for module 'sqrtl'.
9763         * modules/sqrtl-tests: New file.
9764         * tests/test-sqrtl.c: New file.
9765
9766         Tests for module 'sinl'.
9767         * modules/sinl-tests: New file.
9768         * tests/test-sinl.c: New file.
9769
9770         Tests for module 'logl'.
9771         * modules/logl-tests: New file.
9772         * tests/test-logl.c: New file.
9773
9774         Tests for module 'expl'.
9775         * modules/expl-tests: New file.
9776         * tests/test-expl.c: New file.
9777
9778         Tests for module 'cosl'.
9779         * modules/cosl-tests: New file.
9780         * tests/test-cosl.c: New file.
9781
9782         Tests for module 'atanl'.
9783         * modules/atanl-tests: New file.
9784         * tests/test-atanl.c: New file.
9785
9786         Tests for module 'asinl'.
9787         * modules/asinl-tests: New file.
9788         * tests/test-asinl.c: New file.
9789
9790         Tests for module 'acosl'.
9791         * modules/acosl-tests: New file.
9792         * tests/test-acosl.c: New file.
9793
9794         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9795         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
9796         tanl): Use the standard gnulib idiom.
9797         * lib/cosl.c: Don't include trigl.c and sincosl.c.
9798         * lib/sinl.c: Likewise.
9799         * lib/tanl.c: Don't include trigl.c.
9800         (kernel_tanl): Make static.
9801         * lib/sincosl.c: Include trigl.h first.
9802         * lib/trigl.c: Likewise.
9803         * m4/acosl.m4: New file.
9804         * m4/asinl.m4: New file.
9805         * m4/atanl.m4: New file.
9806         * m4/cosl.m4: New file.
9807         * m4/expl.m4: New file.
9808         * m4/logl.m4: New file.
9809         * m4/sinl.m4: New file.
9810         * m4/sqrtl.m4: New file.
9811         * m4/tanl.m4: New file.
9812         * m4/mathl.m4: Remove file.
9813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
9814         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9815         Don't initialize GNULIB_MATHL.
9816         * modules/acosl: New file.
9817         * modules/asinl: New file.
9818         * modules/atanl: New file.
9819         * modules/cosl: New file.
9820         * modules/expl: New file.
9821         * modules/logl: New file.
9822         * modules/sinl: New file.
9823         * modules/sqrtl: New file.
9824         * modules/tanl: New file.
9825         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
9826         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
9827         substitute GNULIB_MATHL.
9828         * modules/mathl: Rewritten.
9829         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
9830         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
9831         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
9832         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
9833         * doc/posix-functions/expl.texi: Mention the 'expl' module.
9834         * doc/posix-functions/logl.texi: Mention the 'logl' module.
9835         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
9836         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
9837         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
9838
9839 2010-01-18  Bruno Haible  <bruno@clisp.org>
9840
9841         sqrt: Make gl_FUNC_SQRT requirable.
9842         * m4/sqrt.m4: New file.
9843         * modules/sqrt (Files): Add it.
9844         (configure.ac): Invoke gl_FUNC_SQRT.
9845
9846 2010-01-18  Bruno Haible  <bruno@clisp.org>
9847
9848         New modules for common <math.h> functions.
9849         * m4/mathfunc.m4: New file.
9850         * modules/acos: New file.
9851         * modules/asin: New file.
9852         * modules/atan: New file.
9853         * modules/atan2: New file.
9854         * modules/cbrt: New file.
9855         * modules/copysign: New file.
9856         * modules/cos: New file.
9857         * modules/cosh: New file.
9858         * modules/erf: New file.
9859         * modules/erfc: New file.
9860         * modules/exp: New file.
9861         * modules/fabs: New file.
9862         * modules/fmod: New file.
9863         * modules/hypot: New file.
9864         * modules/j0: New file.
9865         * modules/j1: New file.
9866         * modules/jn: New file.
9867         * modules/ldexp: New file.
9868         * modules/lgamma: New file.
9869         * modules/log: New file.
9870         * modules/log10: New file.
9871         * modules/log1p: New file.
9872         * modules/logb: New file.
9873         * modules/modf: New file.
9874         * modules/nextafter: New file.
9875         * modules/pow: New file.
9876         * modules/remainder: New file.
9877         * modules/rint: New file.
9878         * modules/sin: New file.
9879         * modules/sinh: New file.
9880         * modules/sqrt: New file.
9881         * modules/tan: New file.
9882         * modules/tanh: New file.
9883         * modules/y0: New file.
9884         * modules/y1: New file.
9885         * modules/yn: New file.
9886         * doc/posix-functions/acos.texi: Mention the 'acos' module.
9887         * doc/posix-functions/asin.texi: Mention the 'asin' module.
9888         * doc/posix-functions/atan.texi: Mention the 'atan' module.
9889         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
9890         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
9891         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
9892         * doc/posix-functions/cos.texi: Mention the 'cos' module.
9893         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
9894         * doc/posix-functions/erf.texi: Mention the 'erf' module.
9895         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
9896         * doc/posix-functions/exp.texi: Mention the 'exp' module.
9897         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
9898         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
9899         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
9900         * doc/posix-functions/j0.texi: Mention the 'j0' module.
9901         * doc/posix-functions/j1.texi: Mention the 'j1' module.
9902         * doc/posix-functions/jn.texi: Mention the 'jn' module.
9903         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
9904         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
9905         * doc/posix-functions/log.texi: Mention the 'log' module.
9906         * doc/posix-functions/log10.texi: Mention the 'log10' module.
9907         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
9908         * doc/posix-functions/logb.texi: Mention the 'logb' module.
9909         * doc/posix-functions/modf.texi: Mention the 'modf' module.
9910         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
9911         * doc/posix-functions/pow.texi: Mention the 'pow' module.
9912         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
9913         * doc/posix-functions/rint.texi: Mention the 'rint' module.
9914         * doc/posix-functions/sin.texi: Mention the 'sin' module.
9915         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
9916         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
9917         * doc/posix-functions/tan.texi: Mention the 'tan' module.
9918         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
9919         * doc/posix-functions/y0.texi: Mention the 'y0' module.
9920         * doc/posix-functions/y1.texi: Mention the 'y1' module.
9921         * doc/posix-functions/yn.texi: Mention the 'yn' module.
9922
9923 2010-01-18  Jim Meyering  <meyering@redhat.com>
9924
9925         ignore-value: relax license to LGPLv2+
9926         * modules/ignore-value (License): Relax to LGPLv2+.
9927
9928         getdate: don't leak when TZ contains two or more '"'s
9929         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
9930         double quote in TZ after the first one.
9931
9932         readtokens: do not leak internal token_lengths buffer
9933         * lib/readtokens.c (readtokens): Free the local, lengths,
9934         when the supplied "token_lengths" parameter is NULL.
9935
9936 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9937
9938         Fix a couple of missing LIBTHREAD link failures on AIX.
9939         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
9940         $(LIBTHREAD).
9941         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
9942
9943         Link test-poll against INET_PTON_LIB.
9944         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
9945         for inet_pton on Solaris 10.
9946
9947 2010-01-17  Bruno Haible  <bruno@clisp.org>
9948
9949         unistdio/*-sprintf: Fix typo in module description.
9950         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
9951         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
9952         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
9953         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
9954         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
9955         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
9956         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
9957         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9958
9959 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9960
9961         gnulib-tool: fix filelist for AIX, HP-UX ksh.
9962         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
9963         variables in shell case patterns, for AIX and HP-UX ksh.
9964
9965         Split large sed scripts, for HP-UX sed.
9966         * modules/stdio: Split sed scripts around 50 sed commands,
9967         to avoid HP-UX limit of 99 commands, in the near future.
9968         * modules/string: Likewise.
9969         * modules/unistd: Likewise.
9970
9971         gnulib-tool: avoid writing in the current directory.
9972         * gnulib-tool (func_emit_lib_Makefile_am)
9973         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
9974         not in the current directory, so concurrent gnulib-tool
9975         instances do not interfere.
9976
9977 2010-01-16  Jim Meyering  <meyering@redhat.com>
9978
9979         doc: update users.txt
9980         * users.txt: Add grep.
9981         (diffutils, gzip): Update URLs.
9982
9983 2010-01-12  Bruno Haible  <bruno@clisp.org>
9984
9985         posix_spawn: Avoid test failure on Cygwin.
9986         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
9987         characters.
9988         Reported by Simon Josefsson.
9989
9990 2010-01-12  Bruno Haible  <bruno@clisp.org>
9991
9992         * tests/test-cond.c (main): When skipping the test, show the reason.
9993
9994 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9995
9996         * lib/striconv.c (str_cd_iconv): Avoid if before free.
9997
9998 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9999
10000         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
10001         VC_LIST_ALWAYS_EXCLUDE_REGEX.
10002
10003 2010-01-12  Eric Blake  <ebb9@byu.net>
10004
10005         build: guarantee AS_VAR_IF
10006         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
10007         (gl_AS_VAR_IF): Move...
10008         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
10009         Reported by Simon Josefsson.
10010
10011 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10012
10013         * lib/stdio.in.h: Fix typo.
10014
10015 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10016
10017         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
10018         libgpg-error.
10019
10020 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10021
10022         * tests/test-xalloc-die.sh: Use $EXEEXT.
10023
10024 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10025             Bruno Haible  <bruno@clisp.org>
10026
10027         getlogin, getlogin_r: Avoid test failure.
10028         * tests/test-getlogin.c: Include <stdio.h>.
10029         (main): Skip the test when the function fails because stdin is not a
10030         tty.
10031         * tests/test-getlogin_r.c: Include <stdio.h>.
10032         (main): Skip the test when the function fails because stdin is not a
10033         tty.
10034
10035 2010-01-11  Eric Blake  <ebb9@byu.net>
10036
10037         tests: avoid more large file warnings
10038         * tests/test-fflush.c: Avoid warning about ftell use.
10039         * tests/test-fseek.c: Avoid warning about fseek use.
10040
10041 2010-01-10  Bruno Haible  <bruno@clisp.org>
10042
10043         nproc: Work better on Linux when /proc and /sys are not mounted.
10044         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
10045         as lower bound when, on glibc/Linux systems,
10046         sysconf (_SC_NPROCESSORS_CONF) returns 1.
10047         Suggested by Pádraig Brady <P@draigbrady.com>.
10048         Reported by Dmitry V. Levin <ldv@altlinux.org>.
10049
10050         nproc: Refactor.
10051         * lib/nproc.c (num_processors_via_affinity_mask): New function,
10052         extracted from num_processors.
10053         (num_processors): Call it.
10054
10055 2010-01-11  Jim Meyering  <meyering@redhat.com>
10056
10057         utimecmp: avoid new warning from upcoming gcc-4.5.0
10058         * lib/utimecmp.c (BILLION): Define using #define rather than an
10059         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
10060
10061 2010-01-11  Eric Blake  <ebb9@byu.net>
10062
10063         math: add portability warnings for classification macros
10064         * modules/math (Depends-on): Add warn-on-use.
10065         (Makefile.am): Provide new substitutions.
10066         * m4/math_h.m4 (gl_MATH_H): Require inline.
10067         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
10068         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
10069         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
10070         implement warnings.
10071
10072         unistd: warn on use of environ without module
10073         * modules/unistd (Depends-on): Add warn-on-use.
10074         (Makefile.am): Provide new substitutions.
10075         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
10076         * lib/unistd.in.h (environ): Wrap with a warning helper function.
10077
10078         stdio: warn on suspicious uses
10079         * modules/stdio (Depends-on): Add warn-on-use.
10080         (Makefile.am): Provide new substitutions.
10081         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
10082         fseeko.
10083         * lib/stdio.in.h (gets): Always warn on use.
10084         (fseek, ftell): Adjust when warnings are issued, and honor
10085         _GL_NO_LARGE_FILES as a way to silence the warning.
10086         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
10087         any warning about large file offsets.
10088         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
10089         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
10090         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
10091         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
10092         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
10093         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
10094         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
10095         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
10096
10097         warn-on-use: new module
10098         * modules/warn-on-use: New file.
10099         * build-aux/warn-on-use.h: Likewise.
10100         * m4/warn-on-use.m4: Likewise.
10101         * MODULES.html.sh (Support for building): Mention it.
10102
10103 2010-01-10  Bruno Haible  <bruno@clisp.org>
10104
10105         Tests for module 'unistr/u32-strdup'.
10106         * modules/unistr/u32-strdup-tests: New file.
10107         * tests/unistr/test-u32-strdup.c: New file.
10108
10109         Tests for module 'unistr/u16-strdup'.
10110         * modules/unistr/u16-strdup-tests: New file.
10111         * tests/unistr/test-u16-strdup.c: New file.
10112
10113         Tests for module 'unistr/u8-strdup'.
10114         * modules/unistr/u8-strdup-tests: New file.
10115         * tests/unistr/test-u8-strdup.c: New file.
10116         * tests/unistr/test-strdup.h: New file.
10117
10118         Tests for module 'unistr/u32-strncmp'.
10119         * modules/unistr/u32-strncmp-tests: New file.
10120         * tests/unistr/test-u32-strncmp.c: New file.
10121
10122         Tests for module 'unistr/u16-strncmp'.
10123         * modules/unistr/u16-strncmp-tests: New file.
10124         * tests/unistr/test-u16-strncmp.c: New file.
10125
10126         Tests for module 'unistr/u8-strncmp'.
10127         * modules/unistr/u8-strncmp-tests: New file.
10128         * tests/unistr/test-u8-strncmp.c: New file.
10129         * tests/unistr/test-strncmp.h: New file.
10130
10131         Tests for module 'unistr/u32-strcoll'.
10132         * modules/unistr/u32-strcoll-tests: New file.
10133         * tests/unistr/test-u32-strcoll.c: New file.
10134
10135         Tests for module 'unistr/u16-strcoll'.
10136         * modules/unistr/u16-strcoll-tests: New file.
10137         * tests/unistr/test-u16-strcoll.c: New file.
10138
10139         Tests for module 'unistr/u8-strcoll'.
10140         * modules/unistr/u8-strcoll-tests: New file.
10141         * tests/unistr/test-u8-strcoll.c: New file.
10142
10143         Tests for module 'unistr/u32-strcmp'.
10144         * modules/unistr/u32-strcmp-tests: New file.
10145         * tests/unistr/test-u32-strcmp.c: New file.
10146         * tests/unistr/test-u32-strcmp.h: New file.
10147
10148         Tests for module 'unistr/u16-strcmp'.
10149         * modules/unistr/u16-strcmp-tests: New file.
10150         * tests/unistr/test-u16-strcmp.c: New file.
10151         * tests/unistr/test-u16-strcmp.h: New file.
10152
10153         Tests for module 'unistr/u8-strcmp'.
10154         * modules/unistr/u8-strcmp-tests: New file.
10155         * tests/unistr/test-u8-strcmp.c: New file.
10156         * tests/unistr/test-u8-strcmp.h: New file.
10157         * tests/unistr/test-strcmp.h: New file.
10158
10159         Tests for module 'unistr/u32-strncat'.
10160         * modules/unistr/u32-strncat-tests: New file.
10161         * tests/unistr/test-u32-strncat.c: New file.
10162
10163         Tests for module 'unistr/u16-strncat'.
10164         * modules/unistr/u16-strncat-tests: New file.
10165         * tests/unistr/test-u16-strncat.c: New file.
10166
10167         Tests for module 'unistr/u8-strncat'.
10168         * modules/unistr/u8-strncat-tests: New file.
10169         * tests/unistr/test-u8-strncat.c: New file.
10170         * tests/unistr/test-strncat.h: New file.
10171
10172         Tests for module 'unistr/u32-strcat'.
10173         * modules/unistr/u32-strcat-tests: New file.
10174         * tests/unistr/test-u32-strcat.c: New file.
10175
10176         Tests for module 'unistr/u16-strcat'.
10177         * modules/unistr/u16-strcat-tests: New file.
10178         * tests/unistr/test-u16-strcat.c: New file.
10179
10180         Tests for module 'unistr/u8-strcat'.
10181         * modules/unistr/u8-strcat-tests: New file.
10182         * tests/unistr/test-u8-strcat.c: New file.
10183         * tests/unistr/test-strcat.h: New file.
10184
10185         Tests for module 'unistr/u32-stpncpy'.
10186         * modules/unistr/u32-stpncpy-tests: New file.
10187         * tests/unistr/test-u32-stpncpy.c: New file.
10188
10189         Tests for module 'unistr/u16-stpncpy'.
10190         * modules/unistr/u16-stpncpy-tests: New file.
10191         * tests/unistr/test-u16-stpncpy.c: New file.
10192
10193         Tests for module 'unistr/u8-stpncpy'.
10194         * modules/unistr/u8-stpncpy-tests: New file.
10195         * tests/unistr/test-u8-stpncpy.c: New file.
10196         * tests/unistr/test-stpncpy.h: New file.
10197
10198         Tests for module 'unistr/u32-strncpy'.
10199         * modules/unistr/u32-strncpy-tests: New file.
10200         * tests/unistr/test-u32-strncpy.c: New file.
10201
10202         Tests for module 'unistr/u16-strncpy'.
10203         * modules/unistr/u16-strncpy-tests: New file.
10204         * tests/unistr/test-u16-strncpy.c: New file.
10205
10206         Tests for module 'unistr/u8-strncpy'.
10207         * modules/unistr/u8-strncpy-tests: New file.
10208         * tests/unistr/test-u8-strncpy.c: New file.
10209         * tests/unistr/test-strncpy.h: New file.
10210
10211         Tests for module 'unistr/u32-stpcpy'.
10212         * modules/unistr/u32-stpcpy-tests: New file.
10213         * tests/unistr/test-u32-stpcpy.c: New file.
10214
10215         Tests for module 'unistr/u16-stpcpy'.
10216         * modules/unistr/u16-stpcpy-tests: New file.
10217         * tests/unistr/test-u16-stpcpy.c: New file.
10218
10219         Tests for module 'unistr/u8-stpcpy'.
10220         * modules/unistr/u8-stpcpy-tests: New file.
10221         * tests/unistr/test-u8-stpcpy.c: New file.
10222         * tests/unistr/test-stpcpy.h: New file.
10223
10224         Tests for module 'unistr/u32-strcpy'.
10225         * modules/unistr/u32-strcpy-tests: New file.
10226         * tests/unistr/test-u32-strcpy.c: New file.
10227
10228         Tests for module 'unistr/u16-strcpy'.
10229         * modules/unistr/u16-strcpy-tests: New file.
10230         * tests/unistr/test-u16-strcpy.c: New file.
10231
10232         Tests for module 'unistr/u8-strcpy'.
10233         * modules/unistr/u8-strcpy-tests: New file.
10234         * tests/unistr/test-u8-strcpy.c: New file.
10235         * tests/unistr/test-strcpy.h: New file.
10236
10237         Tests for module 'unistr/u32-strnlen'.
10238         * modules/unistr/u32-strnlen-tests: New file.
10239         * tests/unistr/test-u32-strnlen.c: New file.
10240
10241         Tests for module 'unistr/u16-strnlen'.
10242         * modules/unistr/u16-strnlen-tests: New file.
10243         * tests/unistr/test-u16-strnlen.c: New file.
10244
10245         Tests for module 'unistr/u8-strnlen'.
10246         * modules/unistr/u8-strnlen-tests: New file.
10247         * tests/unistr/test-u8-strnlen.c: New file.
10248         * tests/unistr/test-strnlen.h: New file.
10249
10250         Tests for module 'unistr/u32-strlen'.
10251         * modules/unistr/u32-strlen-tests: New file.
10252         * tests/unistr/test-u32-strlen.c: New file.
10253
10254         Tests for module 'unistr/u16-strlen'.
10255         * modules/unistr/u16-strlen-tests: New file.
10256         * tests/unistr/test-u16-strlen.c: New file.
10257
10258         Tests for module 'unistr/u8-strlen'.
10259         * modules/unistr/u8-strlen-tests: New file.
10260         * tests/unistr/test-u8-strlen.c: New file.
10261
10262         Tests for module 'unistr/u32-prev'.
10263         * modules/unistr/u32-prev-tests: New file.
10264         * tests/unistr/test-u32-prev.c: New file.
10265
10266         Tests for module 'unistr/u16-prev'.
10267         * modules/unistr/u16-prev-tests: New file.
10268         * tests/unistr/test-u16-prev.c: New file.
10269
10270         Tests for module 'unistr/u8-prev'.
10271         * modules/unistr/u8-prev-tests: New file.
10272         * tests/unistr/test-u8-prev.c: New file.
10273
10274         Tests for module 'unistr/u32-next'.
10275         * modules/unistr/u32-next-tests: New file.
10276         * tests/unistr/test-u32-next.c: New file.
10277
10278         Tests for module 'unistr/u16-next'.
10279         * modules/unistr/u16-next-tests: New file.
10280         * tests/unistr/test-u16-next.c: New file.
10281
10282         Tests for module 'unistr/u8-next'.
10283         * modules/unistr/u8-next-tests: New file.
10284         * tests/unistr/test-u8-next.c: New file.
10285
10286         Tests for module 'unistr/u32-strmbtouc'.
10287         * modules/unistr/u32-strmbtouc-tests: New file.
10288         * tests/unistr/test-u32-strmbtouc.c: New file.
10289
10290         Tests for module 'unistr/u16-strmbtouc'.
10291         * modules/unistr/u16-strmbtouc-tests: New file.
10292         * tests/unistr/test-u16-strmbtouc.c: New file.
10293
10294         Tests for module 'unistr/u8-strmbtouc'.
10295         * modules/unistr/u8-strmbtouc-tests: New file.
10296         * tests/unistr/test-u8-strmbtouc.c: New file.
10297
10298         Tests for module 'unistr/u32-strmblen'.
10299         * modules/unistr/u32-strmblen-tests: New file.
10300         * tests/unistr/test-u32-strmblen.c: New file.
10301
10302         Tests for module 'unistr/u16-strmblen'.
10303         * modules/unistr/u16-strmblen-tests: New file.
10304         * tests/unistr/test-u16-strmblen.c: New file.
10305
10306         Tests for module 'unistr/u8-strmblen'.
10307         * modules/unistr/u8-strmblen-tests: New file.
10308         * tests/unistr/test-u8-strmblen.c: New file.
10309
10310         Tests for module 'unistr/u32-cpy-alloc'.
10311         * modules/unistr/u32-cpy-alloc-tests: New file.
10312         * tests/unistr/test-u32-cpy-alloc.c: New file.
10313
10314         Tests for module 'unistr/u16-cpy-alloc'.
10315         * modules/unistr/u16-cpy-alloc-tests: New file.
10316         * tests/unistr/test-u16-cpy-alloc.c: New file.
10317
10318         Tests for module 'unistr/u8-cpy-alloc'.
10319         * modules/unistr/u8-cpy-alloc-tests: New file.
10320         * tests/unistr/test-u8-cpy-alloc.c: New file.
10321         * tests/unistr/test-cpy-alloc.h: New file.
10322
10323         Tests for module 'unistr/u32-mbsnlen'.
10324         * modules/unistr/u32-mbsnlen-tests: New file.
10325         * tests/unistr/test-u32-mbsnlen.c: New file.
10326
10327         Tests for module 'unistr/u16-mbsnlen'.
10328         * modules/unistr/u16-mbsnlen-tests: New file.
10329         * tests/unistr/test-u16-mbsnlen.c: New file.
10330
10331         Tests for module 'unistr/u8-mbsnlen'.
10332         * modules/unistr/u8-mbsnlen-tests: New file.
10333         * tests/unistr/test-u8-mbsnlen.c: New file.
10334
10335         Tests for module 'unistr/u32-chr'.
10336         * modules/unistr/u32-chr-tests: New file.
10337         * tests/unistr/test-u32-chr.c: New file.
10338
10339         Tests for module 'unistr/u16-chr'.
10340         * modules/unistr/u16-chr-tests: New file.
10341         * tests/unistr/test-u16-chr.c: New file.
10342
10343         Tests for module 'unistr/u8-chr'.
10344         * modules/unistr/u8-chr-tests: New file.
10345         * tests/unistr/test-u8-chr.c: New file.
10346         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
10347
10348         Tests for module 'unistr/u32-cmp2'.
10349         * modules/unistr/u32-cmp2-tests: New file.
10350         * tests/unistr/test-u32-cmp2.c: New file.
10351
10352         Tests for module 'unistr/u16-cmp2'.
10353         * modules/unistr/u16-cmp2-tests: New file.
10354         * tests/unistr/test-u16-cmp2.c: New file.
10355
10356         Tests for module 'unistr/u8-cmp2'.
10357         * modules/unistr/u8-cmp2-tests: New file.
10358         * tests/unistr/test-u8-cmp2.c: New file.
10359         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
10360
10361         Tests for module 'unistr/u32-cmp'.
10362         * modules/unistr/u32-cmp-tests: New file.
10363         * tests/unistr/test-u32-cmp.c: New file.
10364
10365         Tests for module 'unistr/u16-cmp'.
10366         * modules/unistr/u16-cmp-tests: New file.
10367         * tests/unistr/test-u16-cmp.c: New file.
10368
10369         Tests for module 'unistr/u8-cmp'.
10370         * modules/unistr/u8-cmp-tests: New file.
10371         * tests/unistr/test-u8-cmp.c: New file.
10372         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
10373
10374         Tests for module 'unistr/u32-set'.
10375         * modules/unistr/u32-set-tests: New file.
10376         * tests/unistr/test-u32-set.c: New file.
10377
10378         Tests for module 'unistr/u16-set'.
10379         * modules/unistr/u16-set-tests: New file.
10380         * tests/unistr/test-u16-set.c: New file.
10381
10382         Tests for module 'unistr/u8-set'.
10383         * modules/unistr/u8-set-tests: New file.
10384         * tests/unistr/test-u8-set.c: New file.
10385         * tests/unistr/test-set.h: New file.
10386
10387         Tests for module 'unistr/u32-move'.
10388         * modules/unistr/u32-move-tests: New file.
10389         * tests/unistr/test-u32-move.c: New file.
10390
10391         Tests for module 'unistr/u16-move'.
10392         * modules/unistr/u16-move-tests: New file.
10393         * tests/unistr/test-u16-move.c: New file.
10394
10395         Tests for module 'unistr/u8-move'.
10396         * modules/unistr/u8-move-tests: New file.
10397         * tests/unistr/test-u8-move.c: New file.
10398         * tests/unistr/test-move.h: New file.
10399
10400         Tests for module 'unistr/u32-cpy'.
10401         * modules/unistr/u32-cpy-tests: New file.
10402         * tests/unistr/test-u32-cpy.c: New file.
10403
10404         Tests for module 'unistr/u16-cpy'.
10405         * modules/unistr/u16-cpy-tests: New file.
10406         * tests/unistr/test-u16-cpy.c: New file.
10407
10408         Tests for module 'unistr/u8-cpy'.
10409         * modules/unistr/u8-cpy-tests: New file.
10410         * tests/unistr/test-u8-cpy.c: New file.
10411         * tests/unistr/test-cpy.h: New file.
10412
10413 2010-01-09  Bruno Haible  <bruno@clisp.org>
10414
10415         Tests for module 'unistr/u32-uctomb'.
10416         * modules/unistr/u32-uctomb-tests: New file.
10417         * tests/unistr/test-u32-uctomb.c: New file.
10418
10419         Tests for module 'unistr/u16-uctomb'.
10420         * modules/unistr/u16-uctomb-tests: New file.
10421         * tests/unistr/test-u16-uctomb.c: New file.
10422
10423         Tests for module 'unistr/u8-uctomb'.
10424         * modules/unistr/u8-uctomb-tests: New file.
10425         * tests/unistr/test-u8-uctomb.c: New file.
10426
10427         Tests for module 'unistr/u32-mbtoucr'.
10428         * modules/unistr/u32-mbtoucr-tests: New file.
10429         * tests/unistr/test-u32-mbtoucr.c: New file.
10430
10431         Tests for module 'unistr/u16-mbtoucr'.
10432         * modules/unistr/u16-mbtoucr-tests: New file.
10433         * tests/unistr/test-u16-mbtoucr.c: New file.
10434
10435         Tests for module 'unistr/u8-mbtoucr'.
10436         * modules/unistr/u8-mbtoucr-tests: New file.
10437         * tests/unistr/test-u8-mbtoucr.c: New file.
10438
10439         Tests for module 'unistr/u32-mbtouc'.
10440         * modules/unistr/u32-mbtouc-tests: New file.
10441         * tests/unistr/test-u32-mbtouc.c: New file.
10442
10443         Tests for module 'unistr/u16-mbtouc'.
10444         * modules/unistr/u16-mbtouc-tests: New file.
10445         * tests/unistr/test-u16-mbtouc.c: New file.
10446
10447         Tests for module 'unistr/u8-mbtouc'.
10448         * modules/unistr/u8-mbtouc-tests: New file.
10449         * tests/unistr/test-u8-mbtouc.c: New file.
10450
10451         Tests for module 'unistr/u32-mbtouc-unsafe'.
10452         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
10453         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
10454         * tests/unistr/test-u32-mbtouc.h: New file.
10455
10456         Tests for module 'unistr/u16-mbtouc-unsafe'.
10457         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
10458         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
10459         * tests/unistr/test-u16-mbtouc.h: New file.
10460
10461         Tests for module 'unistr/u8-mbtouc-unsafe'.
10462         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
10463         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
10464         * tests/unistr/test-u8-mbtouc.h: New file.
10465
10466         Tests for module 'unistr/u32-mblen'.
10467         * modules/unistr/u32-mblen-tests: New file.
10468         * tests/unistr/test-u32-mblen.c: New file.
10469
10470         Tests for module 'unistr/u16-mblen'.
10471         * modules/unistr/u16-mblen-tests: New file.
10472         * tests/unistr/test-u16-mblen.c: New file.
10473
10474         Tests for module 'unistr/u8-mblen'.
10475         * modules/unistr/u8-mblen-tests: New file.
10476         * tests/unistr/test-u8-mblen.c: New file.
10477
10478         Tests for module 'unistr/u32-to-u16'.
10479         * modules/unistr/u32-to-u16-tests: New file.
10480         * tests/unistr/test-u32-to-u16.c: New file.
10481
10482         Tests for module 'unistr/u32-to-u8'.
10483         * modules/unistr/u32-to-u8-tests: New file.
10484         * tests/unistr/test-u32-to-u8.c: New file.
10485
10486         Tests for module 'unistr/u16-to-u32'.
10487         * modules/unistr/u16-to-u32-tests: New file.
10488         * tests/unistr/test-u16-to-u32.c: New file.
10489
10490         Tests for module 'unistr/u16-to-u8'.
10491         * modules/unistr/u16-to-u8-tests: New file.
10492         * tests/unistr/test-u16-to-u8.c: New file.
10493
10494         Tests for module 'unistr/u8-to-u32'.
10495         * modules/unistr/u8-to-u32-tests: New file.
10496         * tests/unistr/test-u8-to-u32.c: New file.
10497
10498         Tests for module 'unistr/u8-to-u16'.
10499         * modules/unistr/u8-to-u16-tests: New file.
10500         * tests/unistr/test-u8-to-u16.c: New file.
10501
10502         Tests for module 'unistr/u32-check'.
10503         * modules/unistr/u32-check-tests: New file.
10504         * tests/unistr/test-u32-check.c: New file.
10505
10506         Tests for module 'unistr/u16-check'.
10507         * modules/unistr/u16-check-tests: New file.
10508         * tests/unistr/test-u16-check.c: New file.
10509
10510         Tests for module 'unistr/u8-check'.
10511         * modules/unistr/u8-check-tests: New file.
10512         * tests/unistr/test-u8-check.c: New file.
10513
10514         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
10515         (category_equals): New function.
10516         (main): Add more tests.
10517         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
10518
10519         * tests/unictype/test-bidi_byname.c (main): Add more tests.
10520
10521 2010-01-10  Bruno Haible  <bruno@clisp.org>
10522
10523         unistr/u*-strcoll: Try harder to distinguish different strings.
10524         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
10525         compare s1 and s2 to see if they are different.
10526
10527 2010-01-10  Bruno Haible  <bruno@clisp.org>
10528
10529         unistr/u*-stpncpy: Fix the return value.
10530         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
10531         description of the return value consistent with stpncpy in glibc.
10532         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
10533         written non-NUL unit.
10534
10535 2010-01-10  Bruno Haible  <bruno@clisp.org>
10536
10537         unistr/u*-next: Add missing dependencies.
10538         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
10539         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
10540         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
10541
10542 2010-01-10  Bruno Haible  <bruno@clisp.org>
10543
10544         unistr/u8-mbsnlen: Fix return value for incomplete character.
10545         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
10546         u8_mblen.
10547         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
10548         Remove unistr/u8-mblen.
10549         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
10550         u16_mblen.
10551         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
10552         Remove unistr/u16-mblen.
10553
10554 2010-01-10  Bruno Haible  <bruno@clisp.org>
10555
10556         wchar: Fix compilation error when <wchar.h> is used from coreutils.
10557         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
10558         Reported by Brian Gough <bjg@gnu.org> and
10559         Chris Clayton <chris2553@googlemail.com> via
10560         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
10561
10562 2010-01-09  Bruno Haible  <bruno@clisp.org>
10563
10564         unistr/u16-to-u32: Reject invalid input.
10565         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
10566         u16_mbtouc.
10567         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
10568         Remove unistr/u16-mbtouc.
10569
10570         unistr/u16-to-u8: Reject invalid input.
10571         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
10572         u16_mbtouc.
10573         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
10574         Remove unistr/u16-mbtouc.
10575
10576         unistr/u8-to-u32: Reject invalid input.
10577         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
10578         u8_mbtouc.
10579         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
10580         Remove unistr/u8-mbtouc.
10581
10582         unistr/u8-to-u16: Reject invalid input.
10583         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
10584         u8_mbtouc.
10585         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
10586         Remove unistr/u8-mbtouc.
10587
10588 2010-01-09  Bruno Haible  <bruno@clisp.org>
10589
10590         Tests for module 'getlogin'.
10591         * modules/getlogin-tests: New file.
10592         * tests/test-getlogin.c: New file.
10593
10594         New module 'getlogin'.
10595         * lib/unistd.in.h (getlogin): New declaration.
10596         * lib/getlogin.c: New file.
10597         * m4/getlogin.m4: New file.
10598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
10599         HAVE_GETLOGIN.
10600         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
10601         HAVE_GETLOGIN.
10602         * modules/getlogin: New file.
10603         * doc/posix-functions/getlogin.texi: Mention the new module.
10604         Reported by John W. Eaton <jwe@gnu.org>.
10605
10606 2010-01-09  Bruno Haible  <bruno@clisp.org>
10607
10608         getlogin_r: Support for native Windows.
10609         * lib/getlogin_r.c: Include <windows.h>
10610         (getlogin_r): Implement for native Windows.
10611         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
10612         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
10613         via John W. Eaton <jwe@gnu.org>.
10614
10615 2010-01-09  Bruno Haible  <bruno@clisp.org>
10616
10617         getlogin_r: Small fixes.
10618         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
10619         succeeds.
10620         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
10621         before testing whether getlogin_r is declared. No need to set
10622         HAVE_DECL_GETLOGIN_R to 1.
10623         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
10624
10625 2010-01-09  Bruno Haible  <bruno@clisp.org>
10626
10627         * lib/unistd.in.h (getlogin_r): Add comment.
10628
10629 2010-01-09  Bruno Haible  <bruno@clisp.org>
10630
10631         Tests for module 'getlogin_r'.
10632         * modules/getlogin_r-tests: New file.
10633         * tests/test-getlogin_r.c: New file.
10634
10635 2010-01-09  Jim Meyering  <meyering@redhat.com>
10636
10637         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
10638         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
10639         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
10640
10641 2010-01-08  Simon Josefsson  <simon@josefsson.org>
10642
10643         * lib/dup2.c (rpl_dup2): Improve comment.
10644
10645 2010-01-08  Eric Blake  <ebb9@byu.net>
10646
10647         maint.mk: allow packages to add makefile @@ exceptions
10648         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
10649         (sc_makefile_check): Rename...
10650         (sc_makefile_at_at_check): ...to this, and use hook.
10651
10652         dup2: work around mingw bug
10653         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
10654         Reported by Simon Josefsson.
10655
10656 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
10657
10658         glob: Fix C++ compilation.
10659         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
10660         C++.
10661
10662 2010-01-07  Bruno Haible  <bruno@clisp.org>
10663
10664         Fix indentation of wctype.in.h, broken since 2007-01-06.
10665         * lib/wctype.in.h: Fix indentation of preprocessor directives.
10666
10667 2010-01-07  Bruno Haible  <bruno@clisp.org>
10668
10669         mbslen: Avoid collision with system function.
10670         * lib/string.in.h [MirBSD]: Include <wchar.h>.
10671         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
10672         * m4/mbslen.m4: New file.
10673         * modules/mbslen (Files): Add it.
10674         (configure.ac): Invoke gl_MBSLEN.
10675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
10676         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
10677         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
10678         via Ian Beckwith <ianb@erislabs.net>.
10679
10680 2010-01-07  Bruno Haible  <bruno@clisp.org>
10681
10682         dirent: Document the last fix.
10683         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
10684
10685 2010-01-07  Bruno Haible  <bruno@clisp.org>
10686
10687         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
10688         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
10689         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
10690         va_list are defined.
10691         * doc/posix-headers/stdio.texi: Document the bug of missing types.
10692         Reported by Eric Blake.
10693
10694 2010-01-07  Bruno Haible  <bruno@clisp.org>
10695
10696         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
10697         * modules/xlist (Depends-on): Add 'list',
10698         * modules/xoset (Depends-on): Add 'oset'.
10699         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10700
10701 2010-01-07  Bruno Haible  <bruno@clisp.org>
10702
10703         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
10704         * doc/posix-functions/strncasecmp.texi: Likewise.
10705
10706 2010-01-07  Bruno Haible  <bruno@clisp.org>
10707
10708         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
10709
10710 2010-01-07  John W. Eaton  <jwe@octave.org>
10711
10712         wctype: allow C++ use
10713         * lib/wctype.in.h: Add extern "C" block for C++.
10714
10715 2010-01-06  Eric Blake  <ebb9@byu.net>
10716
10717         maint.mk: detect incorrect GFDL usage
10718         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
10719
10720 2010-01-06  Jim Meyering  <meyering@redhat.com>
10721         and Eric Blake  <ebb9@byu.net>
10722
10723         maint.mk: ignore multi-line copyright in NEWS
10724         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
10725
10726 2010-01-06  Eric Blake  <ebb9@byu.net>
10727
10728         select: add missing dependency
10729         * modules/select-tests (Depends-on): Move sockets dependency...
10730         * modules/select (Depends-on): ...here.
10731         Reported by Ian Beckwith.
10732
10733         doc: regenerate INSTALL
10734         * doc/INSTALL: Reflect recent autoconf update.
10735         * doc/INSTALL.ISO: Likewise.
10736         * doc/INSTALL.UTF-8: Likewise.
10737
10738         pread: fix compilation on glibc
10739         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
10740         Reported by Ralf Wildenhues.
10741
10742         dirent: fix test failure
10743         * lib/dirent.in.h (includes): Guarantee ino_t.
10744         Reported by Ralf Wildenhues.
10745
10746 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
10747
10748         linkat, renameat: avoid bad free
10749         * lib/at-func2.c (at_func2): Fix typo.
10750         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
10751
10752 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10753
10754         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
10755         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
10756         to avoid failure of symlink test later.
10757
10758 2010-01-06  Eric Blake  <ebb9@byu.net>
10759
10760         stdio, unistd: guarantee ssize_t
10761         * lib/unistd.in.h (includes): Ensure that types required by POSIX
10762         2008 are exposed when needed.
10763         * lib/stdio.in.h (includes): Likewise.
10764         Reported by Ralf Wildenhues.
10765
10766 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
10767
10768         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
10769         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
10770         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
10771
10772 2010-01-06  Jim Meyering  <meyering@redhat.com>
10773
10774         readtokens: this module *does* require xalloc.h
10775         It uses only functions that were omitted by the old syntax-check rule.
10776         * lib/readtokens.c: Include "xalloc.h" once again.
10777         * modules/readtokens (Depends-on): Add xalloc.
10778         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
10779
10780 2010-01-05  Eric Blake  <ebb9@byu.net>
10781
10782         maint: support 'make announcement' from a VPATH build
10783         * top/maint.mk (announcement): Look for correct NEWS file.
10784
10785 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
10786
10787         utimens (fdutimens): ignore a negative FD, per contract
10788         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
10789         when we have a valid file descriptor.  Otherwise, using a brand
10790         new glibc (with just-patched futimens that now fails with EBADF)
10791         would cause this function to fail with ENOSYS.
10792         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
10793         See also http://bugzilla.redhat.com/552320.
10794
10795 2010-01-05  Eric Blake  <ebb9@byu.net>
10796
10797         strcase: document what it provides
10798         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
10799         gnulib module.
10800         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
10801         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
10802
10803 2010-01-05  Jim Meyering  <meyering@redhat.com>
10804
10805         maint: remove useless inclusions of "xalloc.h"
10806         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
10807         * lib/readtokens.c: Likewise.
10808         * lib/same.c: Likewise.
10809         * modules/getloadavg (Depends-on): Remove xalloc.
10810         * modules/readtokens: Likewise.
10811         * modules/same: Likewise.
10812
10813         maint.mk: include 4 more function names in alloca.h-checking regexp
10814         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
10815         regexp.  Before, we would give a false-positive (saying alloca.h
10816         is included unnecessarily) when the only uses involved omitted symbols.
10817
10818         xalloc.h: use consistent formatting
10819         * lib/xalloc.h: Move declarations to start in the first column.
10820
10821 2010-01-05  Eric Blake  <ebb9@byu.net>
10822
10823         mkdir: avoid xalloc
10824         * lib/mkdir.c (includes): Drop unused header.
10825         Reported by John W. Eaton.
10826
10827 2010-01-04  Jim Meyering  <meyering@redhat.com>
10828
10829         nl_langinfo: avoid configure-time syntax error
10830         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
10831         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
10832         the empty string.  Don't let that provoke a shell syntax error.
10833
10834         regcomp, regexec, fnmatch: avoid array bounds read error
10835         * lib/regcomp.c (build_equiv_class): From glibc:
10836         Use only the low 24 bits of a findidx return value as an index
10837         into the weights array.  Patch by Ulrich Drepper:
10838         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
10839         * lib/regexec.c (check_node_accept_bytes): Likewise.
10840         * lib/fnmatch_loop.c (FCT): Likewise.
10841
10842         regcomp: skip collseq lookup when there are no rules
10843         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
10844         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
10845
10846         regcomp: recognize ill-formed { } expressions
10847         * lib/regcomp.c (parse_dup_op): From glibc:
10848         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
10849
10850         regcomp: fix typo in comment
10851         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
10852         s/satisfy/satisfies/.
10853
10854         regcomp: sync from glibc: remove dead store
10855         * lib/regcomp.c (duplicate_node_closure): Remove useless
10856         search_duplicated_node call and dead store.
10857
10858         regcomp: sync from glibc; always use nl_langinfo
10859         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
10860         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
10861         * modules/regex (Depends-on): Add nl_langinfo.
10862
10863 2010-01-04  Eric Blake  <ebb9@byu.net>
10864
10865         fdopendir: fix configure test
10866         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
10867
10868 2010-01-01  Bruno Haible  <bruno@clisp.org>
10869
10870         wchar: Remove unused configure check.
10871         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
10872
10873 2010-01-01  Eric Blake  <ebb9@byu.net>
10874
10875         headers: make check of system header explicit
10876         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
10877         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
10878         ourselves.
10879         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10880         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10881         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
10882         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
10883         internals.
10884         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
10885         missing.
10886         Suggested by Bruno Haible.
10887
10888 2010-01-01  Jim Meyering  <meyering@redhat.com>
10889
10890         ChangeLog: tweak to eliminate unnecessary copyright line
10891         * ChangeLog: Remove a copyright line that was mistakenly updated
10892         by today's update-copyright run.  Reported by Eric Blake.
10893
10894         test-update-copyright: don't let envvar setting cause test failure
10895         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
10896
10897 2010-01-01  Bruno Haible  <bruno@clisp.org>
10898
10899         localename: Avoid gcc warning.
10900         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
10901         function if it is not used.
10902
10903 2010-01-01  Jim Meyering  <meyering@redhat.com>
10904
10905         update nearly all FSF copyright year lists to include 2010
10906         Use the same procedure as for 2009, outlined in
10907         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
10908
10909         version-etc: set COPYRIGHT_YEAR to 2010
10910         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
10911
10912 2009-12-31  Eric Blake  <ebb9@byu.net>
10913
10914         doc: correct availability of cygwin 1.5.x getopt
10915         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
10916         variables.
10917         * doc/posix-functions/opterr.texi (opterr): Likewise.
10918         * doc/posix-functions/optind.texi (optind): Likewise.
10919         * doc/posix-functions/optopt.texi (optopt): Likewise.
10920         * doc/posix-functions/tzname.texi (tzname): Likewise.
10921
10922         openat: update maintainer
10923         * modules/openat (Maintainer): Add myself.
10924
10925         utimens: avoid shadowing warning
10926         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
10927         buffers into one, to avoid shadowing, as well as avoiding a
10928         redundant stat.
10929         Reported by Jim Meyering.
10930
10931         test-dup2: avoid compiler warning
10932         * tests/test-dup2.c (is_inheritable): Only define if used.
10933
10934 2010-01-01  Bruno Haible  <bruno@clisp.org>
10935
10936         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
10937         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
10938         defined, use wctomb instead of wcrtomb.
10939
10940 2010-01-01  Bruno Haible  <bruno@clisp.org>
10941
10942         iconv: Reject native Solaris iconv.
10943         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
10944         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
10945
10946 2009-12-31  Bruno Haible  <bruno@clisp.org>
10947
10948         * tests/test-signal.c (main): Remove test of 'SIG'.
10949
10950 2009-12-31  Bruno Haible  <bruno@clisp.org>
10951
10952         spawn: Fix incomplete fix.
10953         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10954         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10955         warnings for GNULIB_POSIXCHECK again.
10956         Reported by Eric Blake.
10957
10958 2009-12-31  Bruno Haible  <bruno@clisp.org>
10959
10960         Avoid namespace pollution on glibc systems.
10961         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
10962         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
10963         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
10964         glibc systems.
10965
10966 2009-12-31  Bruno Haible  <bruno@clisp.org>
10967
10968         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
10969         (gl_REPLACE_WCHAR_H): Turn into a no-op.
10970         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
10971         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10972         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10973         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10974         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10975
10976 2009-12-31  Bruno Haible  <bruno@clisp.org>
10977
10978         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10979         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
10980         afterwards.
10981
10982 2009-12-31  Bruno Haible  <bruno@clisp.org>
10983
10984         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
10985         SYS_UTSNAME_H.
10986
10987 2009-12-31  Bruno Haible  <bruno@clisp.org>
10988
10989         spawn: Fix misapplied patch.
10990         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10991         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10992         warnings for GNULIB_POSIXCHECK.
10993
10994 2009-12-31  Bruno Haible  <bruno@clisp.org>
10995
10996         times: Update after sys_times changed.
10997         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
10998         * modules/times (Files): Add it.
10999         (configure.ac): Invoke gl_FUNC_TIMES.
11000
11001 2009-12-31  Bruno Haible  <bruno@clisp.org>
11002
11003         Use AC_C_INLINE where necessary.
11004         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
11005         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
11006         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
11007         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11008         * m4/mbfile.m4 (gl_MBFILE): Likewise.
11009         * m4/mbiter.m4 (gl_MBITER): Likewise.
11010         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11011         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11012         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
11013         * modules/u64 (configure.ac): Likewise.
11014
11015 2009-12-31  Bruno Haible  <bruno@clisp.org>
11016
11017         Use AC_C_INLINE instead of module 'inline' where possible.
11018         * modules/inline (Description): Clarify purpose.
11019         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
11020         * modules/count-one-bits (Depends-on): Remove inline.
11021         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
11022         * modules/openat (Depends-on): Remove inline.
11023         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
11024         instead of depending on module 'inline'.
11025         * modules/filevercmp (Depends-on, configure.ac): Likewise.
11026         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
11027         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
11028         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
11029         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
11030         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
11031         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
11032         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
11033         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
11034         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
11035         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
11036         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
11037         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
11038         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
11039         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
11040         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
11041         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
11042         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
11043         Likewise.
11044         * modules/unictype/property-ascii-hex-digit (Depends-on,
11045         configure.ac): Likewise.
11046         * modules/unictype/property-bidi-arabic-digit (Depends-on,
11047         configure.ac): Likewise.
11048         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
11049         configure.ac): Likewise.
11050         * modules/unictype/property-bidi-block-separator (Depends-on,
11051         configure.ac): Likewise.
11052         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
11053         configure.ac): Likewise.
11054         * modules/unictype/property-bidi-common-separator (Depends-on,
11055         configure.ac): Likewise.
11056         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
11057         Likewise.
11058         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
11059         configure.ac): Likewise.
11060         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
11061         configure.ac): Likewise.
11062         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
11063         configure.ac): Likewise.
11064         * modules/unictype/property-bidi-european-digit (Depends-on,
11065         configure.ac): Likewise.
11066         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
11067         configure.ac): Likewise.
11068         * modules/unictype/property-bidi-left-to-right (Depends-on,
11069         configure.ac): Likewise.
11070         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
11071         configure.ac): Likewise.
11072         * modules/unictype/property-bidi-other-neutral (Depends-on,
11073         configure.ac): Likewise.
11074         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
11075         Likewise.
11076         * modules/unictype/property-bidi-segment-separator (Depends-on,
11077         configure.ac): Likewise.
11078         * modules/unictype/property-bidi-whitespace (Depends-on,
11079         configure.ac): Likewise.
11080         * modules/unictype/property-combining (Depends-on, configure.ac):
11081         Likewise.
11082         * modules/unictype/property-composite (Depends-on, configure.ac):
11083         Likewise.
11084         * modules/unictype/property-currency-symbol (Depends-on,
11085         configure.ac): Likewise.
11086         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
11087         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
11088         Likewise.
11089         * modules/unictype/property-default-ignorable-code-point (Depends-on,
11090         configure.ac): Likewise.
11091         * modules/unictype/property-deprecated (Depends-on, configure.ac):
11092         Likewise.
11093         * modules/unictype/property-diacritic (Depends-on, configure.ac):
11094         Likewise.
11095         * modules/unictype/property-extender (Depends-on, configure.ac):
11096         Likewise.
11097         * modules/unictype/property-format-control (Depends-on, configure.ac):
11098         Likewise.
11099         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
11100         Likewise.
11101         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
11102         Likewise.
11103         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
11104         Likewise.
11105         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
11106         Likewise.
11107         * modules/unictype/property-hyphen (Depends-on, configure.ac):
11108         Likewise.
11109         * modules/unictype/property-id-continue (Depends-on, configure.ac):
11110         Likewise.
11111         * modules/unictype/property-id-start (Depends-on, configure.ac):
11112         Likewise.
11113         * modules/unictype/property-ideographic (Depends-on, configure.ac):
11114         Likewise.
11115         * modules/unictype/property-ids-binary-operator (Depends-on,
11116         configure.ac): Likewise.
11117         * modules/unictype/property-ids-trinary-operator (Depends-on,
11118         configure.ac): Likewise.
11119         * modules/unictype/property-ignorable-control (Depends-on,
11120         configure.ac): Likewise.
11121         * modules/unictype/property-iso-control (Depends-on, configure.ac):
11122         Likewise.
11123         * modules/unictype/property-join-control (Depends-on, configure.ac):
11124         Likewise.
11125         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
11126         Likewise.
11127         * modules/unictype/property-line-separator (Depends-on, configure.ac):
11128         Likewise.
11129         * modules/unictype/property-logical-order-exception (Depends-on,
11130         configure.ac): Likewise.
11131         * modules/unictype/property-lowercase (Depends-on, configure.ac):
11132         Likewise.
11133         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
11134         * modules/unictype/property-non-break (Depends-on, configure.ac):
11135         Likewise.
11136         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
11137         Likewise.
11138         * modules/unictype/property-numeric (Depends-on, configure.ac):
11139         Likewise.
11140         * modules/unictype/property-other-alphabetic (Depends-on,
11141         configure.ac): Likewise.
11142         * modules/unictype/property-other-default-ignorable-code-point
11143         (Depends-on, configure.ac): Likewise.
11144         * modules/unictype/property-other-grapheme-extend (Depends-on,
11145         configure.ac): Likewise.
11146         * modules/unictype/property-other-id-continue (Depends-on,
11147         configure.ac): Likewise.
11148         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
11149         Likewise.
11150         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
11151         Likewise.
11152         * modules/unictype/property-other-math (Depends-on, configure.ac):
11153         Likewise.
11154         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
11155         Likewise.
11156         * modules/unictype/property-paired-punctuation (Depends-on,
11157         configure.ac): Likewise.
11158         * modules/unictype/property-paragraph-separator (Depends-on,
11159         configure.ac): Likewise.
11160         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
11161         Likewise.
11162         * modules/unictype/property-pattern-white-space (Depends-on,
11163         configure.ac): Likewise.
11164         * modules/unictype/property-private-use (Depends-on, configure.ac):
11165         Likewise.
11166         * modules/unictype/property-punctuation (Depends-on, configure.ac):
11167         Likewise.
11168         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
11169         Likewise.
11170         * modules/unictype/property-radical (Depends-on, configure.ac):
11171         Likewise.
11172         * modules/unictype/property-sentence-terminal (Depends-on,
11173         configure.ac): Likewise.
11174         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
11175         Likewise.
11176         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
11177         * modules/unictype/property-terminal-punctuation (Depends-on,
11178         configure.ac): Likewise.
11179         * modules/unictype/property-titlecase (Depends-on, configure.ac):
11180         Likewise.
11181         * modules/unictype/property-unassigned-code-value (Depends-on,
11182         configure.ac): Likewise.
11183         * modules/unictype/property-unified-ideograph (Depends-on,
11184         configure.ac): Likewise.
11185         * modules/unictype/property-uppercase (Depends-on, configure.ac):
11186         Likewise.
11187         * modules/unictype/property-variation-selector (Depends-on,
11188         configure.ac): Likewise.
11189         * modules/unictype/property-white-space (Depends-on, configure.ac):
11190         Likewise.
11191         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
11192         Likewise.
11193         * modules/unictype/property-xid-start (Depends-on, configure.ac):
11194         Likewise.
11195         * modules/unictype/property-zero-width (Depends-on, configure.ac):
11196         Likewise.
11197         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
11198         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
11199         Likewise.
11200
11201 2009-12-31  Bruno Haible  <bruno@clisp.org>
11202
11203         Remove unnecessary AC_C_INLINE invocation.
11204         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
11205         since 2009-08-21.
11206
11207 2009-12-31  Jim Meyering  <meyering@redhat.com>
11208
11209         maint.mk: don't require explicit gpg_key_ID in cfg.mk
11210         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
11211         With this change, we can all remove the gpg_key_ID = ... definition
11212         from our respective cfg.mk files.
11213
11214         maint.mk: create announcement template in ~/, not in /tmp
11215         * top/maint.mk (emit_upload_commands): Adjust.
11216         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
11217         Remove temporary file, .ci-msg.
11218
11219 2009-12-31  Eric Blake  <ebb9@byu.net>
11220
11221         link-warning: always build headers with link warnings
11222         * modules/arpa_inet (Makefile.am): Always build replacement
11223         header.
11224         * modules/ctype (Makefile.am): Likewise.
11225         * modules/dirent (Makefile.am): Likewise.
11226         * modules/inttypes (Makefile.am): Likewise.
11227         * modules/langinfo (Makefile.am): Likewise.
11228         * modules/locale (Makefile.am): Likewise.
11229         * modules/spawn (Makefile.am): Likewise.
11230         * modules/sys_file (Makefile.am): Likewise.
11231         * modules/sys_ioctl (Makefile.am): Likewise.
11232         * modules/sys_select (Makefile.am): Likewise.
11233         * modules/sys_socket (Makefile.am): Likewise.
11234         * modules/sys_times (Makefile.am): Likewise.
11235         * modules/sys_utsname (Makefile.am): Likewise.
11236         * modules/sys_wait (Makefile.am): Likewise.
11237         * modules/wchar (Makefile.am): Likewise.
11238         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
11239         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
11240         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
11241         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
11242         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
11243         Likewise.
11244         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11245         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11246         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
11247         Likewise.
11248         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
11249         Likewise.
11250         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11251         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
11252         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
11253         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11254         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11255         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11256         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11257         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
11258         (gl_WCHAR_H_DEFAULTS): Likewise.
11259
11260 2009-12-31  Eric Blake  <ebb9@byu.net>
11261
11262         signal, spawn: use link warnings
11263         * lib/signal.in.h (sigset_t): Make unconditional.
11264         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
11265         (sigpending, sigprocmask, sigaction): Add link warnings.
11266         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
11267         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
11268         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
11269         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
11270         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
11271         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
11272         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
11273         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
11274         (posix_spawn_file_actions_destroy)
11275         (posix_spawn_file_actions_addopen)
11276         (posix_spawn_file_actions_addclose)
11277         (posix_spawn_file_actions_adddup2): Likewise.
11278         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
11279         * tests/test-signal.c (main): Enhance test.
11280
11281         spawn: improve wrapper support
11282         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
11283         (gl_SPAWN_H_DEFAULTS): New defaults.
11284         * modules/spawn (Makefile.am): Substitute them.
11285         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
11286         Only declare if missing or broken.
11287
11288         sys_times, sys_utsname: use include_next
11289         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
11290         header.
11291         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
11292         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11293         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11294         * modules/sys_times (Depends-on): Add include_next.
11295         (Makefile.am): Substitute additional values.
11296         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
11297         * lib/sys_times.in.h (includes): Include native header, if
11298         available.
11299         * lib/sys_utsname.in.h (includes): Likewise.
11300         * tests/test-sys_times.c (main): Enhance test.
11301
11302         fdutimensat: revert prior patch
11303         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
11304         utimens.h.
11305         Reported by Bruno Haible.
11306
11307 2009-12-30  Eric Blake  <ebb9@byu.net>
11308
11309         sys_wait: drop link-warning dependency
11310         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
11311         link-warning efforts.
11312         * lib/sys_wait.in.h: Likewise.
11313
11314         fdutimensat: remove bogus dependency
11315         * modules/fdutimensat (Depends-on): Drop inline.
11316
11317         unistd: fix typo
11318         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
11319
11320 2009-12-30  Bruno Haible  <bruno@clisp.org>
11321
11322         Fix compilation error with Solaris cc.
11323         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
11324         * lib/unicase/u16-is-invariant.c: Likewise.
11325         * lib/unicase/u32-is-invariant.c: Likewise.
11326         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11327
11328 2009-12-30  Bruno Haible  <bruno@clisp.org>
11329
11330         Fix test crash.
11331         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
11332         locales.
11333         Reported by Simon Josefsson <simon@josefsson.org>.
11334
11335 2009-12-30  Bruno Haible  <bruno@clisp.org>
11336
11337         Fix compilation error on most platforms.
11338         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
11339         Reported by Simon Josefsson <simon@josefsson.org>
11340         and Nelson H. F. Beebe <beebe@math.utah.edu>.
11341
11342 2009-12-30  Eric Blake  <ebb9@byu.net>
11343
11344         futimens, utimensat: work around ntfs-3g bug
11345         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
11346         a ctime bug is present, and expand workaround to cover ntfs-3g.
11347         * lib/utimens.c (fdutimens, lutimens): Likewise.
11348         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
11349         (validate_timespec): Adjust return value.
11350         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
11351         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11352         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
11353
11354 2009-12-29  Eric Blake  <ebb9@byu.net>
11355
11356         link-warning: make usage consistent
11357         * modules/ctype (Depends-on): Add link-warning.
11358         (Makefile.am): Update rules accordingly.
11359         * modules/langinfo (Depends-on, Makefile.am): Likewise.
11360         * modules/locale (Depends-on, Makefile.am): Likewise.
11361         * modules/sys_file (Makefile.am): Likewise.
11362         * modules/getopt-posix (Makefile.am): Delete unused link warning
11363         efforts.
11364         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
11365         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
11366         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
11367         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
11368
11369         stdio: remove unused variables
11370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
11371         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
11372         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11373
11374         tests: test more substitute headers
11375         * modules/ctype-tests: New file.
11376         * modules/dirent-tests: Likewise.
11377         * modules/spawn-tests: Likewise.
11378         * modules/sys_file-tests: Likewise.
11379         * modules/sys_ioctl-tests: Likewise.
11380         * modules/sys_wait-tests: Likewise.
11381         * tests/test-ctype.c: Likewise.
11382         * tests/test-dirent.c: Likewise.
11383         * tests/test-spawn.c: Likewise.
11384         * tests/test-sys_file.c: Likewise.
11385         * tests/test-sys_ioctl.c: Likewise.
11386         * tests/test-sys_wait.c: Likewise.
11387         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
11388         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
11389         whether or not flock is in use.
11390
11391         tests: remove License section from module
11392         * modules/arpa_inet-tests: Remove unneeded section.
11393         * modules/byteswap-tests: Likewise.
11394         * modules/ceilf-tests: Likewise.
11395         * modules/ceill-tests: Likewise.
11396         * modules/crypto/des-tests: Likewise.
11397         * modules/crypto/gc-arcfour-tests: Likewise.
11398         * modules/crypto/gc-arctwo-tests: Likewise.
11399         * modules/crypto/gc-des-tests: Likewise.
11400         * modules/crypto/gc-hmac-md5-tests: Likewise.
11401         * modules/crypto/gc-hmac-sha1-tests: Likewise.
11402         * modules/crypto/gc-md2-tests: Likewise.
11403         * modules/crypto/gc-md4-tests: Likewise.
11404         * modules/crypto/gc-md5-tests: Likewise.
11405         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
11406         * modules/crypto/gc-rijndael-tests: Likewise.
11407         * modules/crypto/gc-sha1-tests: Likewise.
11408         * modules/crypto/gc-tests: Likewise.
11409         * modules/crypto/md2-tests: Likewise.
11410         * modules/crypto/md4-tests: Likewise.
11411         * modules/fcntl-h-tests: Likewise.
11412         * modules/floorf-tests: Likewise.
11413         * modules/floorl-tests: Likewise.
11414         * modules/frexp-nolibm-tests: Likewise.
11415         * modules/frexp-tests: Likewise.
11416         * modules/frexpl-nolibm-tests: Likewise.
11417         * modules/frexpl-tests: Likewise.
11418         * modules/getaddrinfo-tests: Likewise.
11419         * modules/inttypes-tests: Likewise.
11420         * modules/isfinite-tests: Likewise.
11421         * modules/isinf-tests: Likewise.
11422         * modules/ldexpl-tests: Likewise.
11423         * modules/locale-tests: Likewise.
11424         * modules/math-tests: Likewise.
11425         * modules/netdb-tests: Likewise.
11426         * modules/netinet_in-tests: Likewise.
11427         * modules/printf-frexp-tests: Likewise.
11428         * modules/printf-frexpl-tests: Likewise.
11429         * modules/priv-set-tests: Likewise.
11430         * modules/random_r-tests: Likewise.
11431         * modules/round-tests: Likewise.
11432         * modules/roundf-tests: Likewise.
11433         * modules/roundl-tests: Likewise.
11434         * modules/search-tests: Likewise.
11435         * modules/select-tests: Likewise.
11436         * modules/signal-tests: Likewise.
11437         * modules/stdbool-tests: Likewise.
11438         * modules/stddef-tests: Likewise.
11439         * modules/stdint-tests: Likewise.
11440         * modules/stdio-tests: Likewise.
11441         * modules/stdlib-tests: Likewise.
11442         * modules/string-tests: Likewise.
11443         * modules/strings-tests: Likewise.
11444         * modules/sys_select-tests: Likewise.
11445         * modules/sys_socket-tests: Likewise.
11446         * modules/sys_stat-tests: Likewise.
11447         * modules/sys_time-tests: Likewise.
11448         * modules/sys_utsname-tests: Likewise.
11449         * modules/sysexits-tests: Likewise.
11450         * modules/time-tests: Likewise.
11451         * modules/trunc-tests: Likewise.
11452         * modules/truncf-tests: Likewise.
11453         * modules/truncl-tests: Likewise.
11454         * modules/tsearch-tests: Likewise.
11455         * modules/unistd-tests: Likewise.
11456         * modules/wchar-tests: Likewise.
11457         * modules/wctype-tests: Likewise.
11458
11459         tests: fix license on several tests
11460         * tests/test-des.c: Update to GPLv3+.
11461         * tests/test-flock.c: Likewise.
11462         * tests/test-fsync.c: Likewise.
11463         * tests/test-futimens.h: Likewise.
11464         * tests/test-gc-arcfour.c: Likewise.
11465         * tests/test-gc-arctwo.c: Likewise.
11466         * tests/test-gc-des.c: Likewise.
11467         * tests/test-gc-hmac-md5.c: Likewise.
11468         * tests/test-gc-hmac-sha1.c: Likewise.
11469         * tests/test-gc-md2.c: Likewise.
11470         * tests/test-gc-md4.c: Likewise.
11471         * tests/test-gc-md5.c: Likewise.
11472         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11473         * tests/test-gc-rijndael.c: Likewise.
11474         * tests/test-gc-sha1.c: Likewise.
11475         * tests/test-gc.c: Likewise.
11476         * tests/test-getcwd.c: Likewise.
11477         * tests/test-link.c: Likewise.
11478         * tests/test-link.h: Likewise.
11479         * tests/test-lutimens.h: Likewise.
11480         * tests/test-md2.c: Likewise.
11481         * tests/test-md4.c: Likewise.
11482         * tests/test-mkdir.h: Likewise.
11483         * tests/test-rename.c: Likewise.
11484         * tests/test-rename.h: Likewise.
11485         * tests/test-safe-alloc.c: Likewise.
11486         * tests/test-utimens-common.h: Likewise.
11487         * tests/test-utimens.h: Likewise.
11488
11489         maint: sync license texts
11490         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
11491         * doc/gpl-3.0.texi: Revert copyright year update.
11492         * doc/lgpl-3.0.texi: Likewise.
11493
11494 2009-12-29  Jim Meyering  <meyering@redhat.com>
11495
11496         update nearly all FSF copyright year lists to include 2009
11497         The files named by the following are exempted:
11498             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
11499               test -f "$dst" && { echo "$dst"; continue; }
11500               test -d "$dst" || continue
11501               echo "$dst"/$(basename "$src")
11502             done > exempt
11503             git ls-files tests/unictype >> exempt
11504         In the remaining files, convert to all-interval notation if
11505         - there is already at least one year interval like 2000-2003
11506         - the file is maintained by me
11507         - the file is in lib/uni*/, where that style already prevails
11508         Otherwise, use update-copyright's default.
11509
11510 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11511         and Eric Blake  <ebb9@byu.net>
11512
11513         tests: don't require debug system() to pass
11514         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
11515         * tests/test-rmdir.h (test_rmdir_func): Likewise.
11516         * tests/test-unlink.h (test_unlink_func): Likewise.
11517         * tests/test-fstatat.c (main): ...into callers.
11518         * tests/test-lstat.c (main): Likewise.
11519         * tests/test-rmdir.c (main): Likewise.
11520         * tests/test-unlink.c (main): Likewise.
11521         * tests/test-unlinkat.c (main): Likewise.
11522         * tests/test-areadlink-with-size.c (main): Don't require a
11523         debug-only system call to pass, aiding cross-testing to mingw.
11524         * tests/test-areadlink.c (main): Likewise.
11525         * tests/test-areadlinkat-with-size.c (main): Likewise.
11526         * tests/test-areadlinkat.c (main): Likewise.
11527         * tests/test-canonicalize-lgpl.c (main): Likewise.
11528         * tests/test-canonicalize.c (main): Likewise.
11529         * tests/test-chown.c (main): Likewise.
11530         * tests/test-fchownat.c (main): Likewise.
11531         * tests/test-lchown.c (main): Likewise.
11532         * tests/test-fdutimensat.c (main): Likewise.
11533         * tests/test-futimens.c (main): Likewise.
11534         * tests/test-link.c (main): Likewise.
11535         * tests/test-linkat.c (main): Likewise.
11536         * tests/test-mkdir.c (main): Likewise.
11537         * tests/test-mkdirat.c (main): Likewise.
11538         * tests/test-mkfifo.c (main): Likewise.
11539         * tests/test-mkfifoat.c (main): Likewise.
11540         * tests/test-mknod.c (main): Likewise.
11541         * tests/test-readlink.c (main): Likewise.
11542         * tests/test-remove.c (main): Likewise.
11543         * tests/test-rename.c (main): Likewise.
11544         * tests/test-renameat.c (main): Likewise.
11545         * tests/test-symlink.c (main): Likewise.
11546         * tests/test-symlinkat.c (main): Likewise.
11547         * tests/test-utimens.c (main): Likewise.
11548         * tests/test-utimensat.c (main): Likewise.
11549
11550 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11551
11552         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
11553         on $(UNUSED_PARAMETER_H) to avoid build failure.
11554
11555 2009-12-28  Jim Meyering  <meyering@redhat.com>
11556
11557         update-copyright: you may specify a max. line length other than 72
11558         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11559
11560         maint: use consistent FSF copyright line syntax
11561         * lib/posixtm.c: Add missing comma in FSF copyright line.
11562         * lib/posixtm.h: Likewise.
11563         * lib/getugroups.c: Add missing ", Inc.".
11564
11565         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
11566         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
11567         FSF copyright line.  Remove trailing blanks.
11568
11569 2009-12-28  Eric Blake  <ebb9@byu.net>
11570
11571         test-dup2: reduce dependencies
11572         * modules/cloexec (Configure.ac): Set witness.
11573         * modules/dup2-tests (Depends-on): Drop cloexec.
11574         * tests/test-dup2.c (main): Skip portion of test if cloexec module
11575         not present.
11576         Suggested by Bruno Haible.
11577
11578 2009-12-26  Bruno Haible  <bruno@clisp.org>
11579
11580         Remove an unneeded dependency.
11581         * modules/fseterr (Depends-on): Remove dup2.
11582
11583 2009-12-26  Eric Blake  <ebb9@byu.net>
11584
11585         tests: use macros.h in more places
11586         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
11587         (ASSERT_STREAM): Provide default of stderr.
11588         * tests/test-dirent-safer.c: Include macros.h, using alternate
11589         stream for assertions.
11590         * tests/test-dup-safer.c: Likewise.
11591         * tests/test-freopen-safer.c: Likewise.
11592         * tests/test-getopt.c: Likewise.
11593         * tests/test-openat-safer.c: Likewise.
11594         * tests/test-pipe.c: Likewise.
11595         * tests/test-popen-safer.c: Likewise.
11596         * modules/dirent-safer-tests (Files): Include macros.h.
11597         * modules/unistd-safer-tests (Files): Likewise.
11598         * modules/freopen-safer-tests (Files): Likewise.
11599         * modules/getopt-posix-tests (Files): Likewise.
11600         * modules/openat-safer-tests (Files): Likewise.
11601         * modules/pipe-tests (Files): Likewise.
11602
11603 2009-12-26  Bruno Haible  <bruno@clisp.org>
11604
11605         javacomp: Portability fix.
11606         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
11607         that it also works on Solaris.
11608
11609 2009-12-26  Bruno Haible  <bruno@clisp.org>
11610
11611         localename: Fix storage allocation of gl_locale_name_thread's result.
11612         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
11613         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
11614         all platforms that have 'uselocale'.
11615         (gl_locale_name_thread_unsafe): New function, extracted from
11616         gl_locale_name_thread.
11617         (gl_locale_name_thread): Call struniq on all platforms that have
11618         'uselocale'.
11619         * tests/test-localename.c (test_locale_name_thread): Check that the
11620         resulting strings are permanently allocated.
11621         * modules/localename-tests (Depends-on): Add strdup.
11622
11623 2009-12-26  Bruno Haible  <bruno@clisp.org>
11624
11625         * tests/test-localename.c (categories): Fill in the strings.
11626
11627 2009-12-26  Jim Meyering  <meyering@redhat.com>
11628
11629         isdir: complete the removal of m4/isdir.m4
11630         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
11631
11632         isdir: clean up, since at least grep still uses it
11633         * lib/isdir.c: Include "isdir.h".
11634         (S_ISDIR): Remove now-unneeded definition.
11635         * modules/isdir (Files): Add lib/isdir.h.
11636         * lib/isdir.h: New file, with declaration.
11637         * m4/isdir.m4: Remove file -- unneeded.
11638
11639 2009-12-25  Bruno Haible  <bruno@clisp.org>
11640
11641         selinux-h: Make generated .h files standalone.
11642         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
11643         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
11644         * lib/se-selinux.in.h: Likewise.
11645         * modules/selinux-h (Depends-on): Add unused-parameter.
11646         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
11647         selinux/selinux.h and selinux/context.h.
11648         Suggested by Eric Blake.
11649
11650 2009-12-25  Bruno Haible  <bruno@clisp.org>
11651
11652         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
11653         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
11654         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
11655         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
11656         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
11657
11658 2009-12-24  Bruno Haible  <bruno@clisp.org>
11659
11660         openat: Fix warning.
11661         * lib/openat-proc.c: Include <unistd.h>.
11662
11663 2009-12-24  Bruno Haible  <bruno@clisp.org>
11664
11665         New module 'unused-parameter'.
11666         * build-aux/unused-parameter.h: New file, extracted from earlier
11667         gnulib-common.m4.
11668         * modules/unused-parameter: New file.
11669         * lib/unistr.h: Include unused-parameter.h.
11670         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
11671         _GL_UNUSED.
11672         * modules/unistr/base (Depends-on): Add unused-parameter.
11673
11674 2009-12-24  Bruno Haible  <bruno@clisp.org>
11675
11676         Add missing dependencies to 'extensions' module.
11677         * m4/extensions.m4: Add comment.
11678         * modules/accept4 (Depends-on): Add extensions.
11679         * modules/dup3 (Depends-on): Likewise.
11680         * modules/fcntl (Depends-on): Likewise.
11681         * modules/futimens (Depends-on): Likewise.
11682         * modules/mknod (Depends-on): Likewise.
11683         * modules/pipe2 (Depends-on): Likewise.
11684         * modules/stat-time (Depends-on): Likewise.
11685         * modules/strcasestr-simple (Depends-on): Likewise.
11686         * modules/strsignal (Depends-on): Likewise.
11687         * modules/utimensat (Depends-on): Likewise.
11688         * modules/localcharset (Depends-on): Likewise. Needed because of
11689         gl_FCNTL_O_FLAGS.
11690         * modules/wcrtomb (Depends-on): Likewise. Needed because of
11691         AC_TYPE_MBSTATE_T.
11692         * modules/wcsnrtombs (Depends-on): Likewise.
11693         * modules/wcsrtombs (Depends-on): Likewise.
11694
11695 2009-12-24  Bruno Haible  <bruno@clisp.org>
11696
11697         binary-io: Avoid gcc warning due to SET_BINARY.
11698         * lib/binary-io.h (SET_BINARY): Cast the result to void.
11699         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
11700
11701 2009-12-24  Bruno Haible  <bruno@clisp.org>
11702
11703         Avoid future namespace pollution on glibc systems.
11704         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
11705         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
11706         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
11707         glibc systems.
11708
11709 2009-12-24  Bruno Haible  <bruno@clisp.org>
11710
11711         Refactor common macros used in tests.
11712         * tests/macros.h: New file.
11713         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
11714         and/or <stdlib.h>, if appropriate.
11715         (ASSERT, SIZEOF): Remove macros.
11716         * tests/test-areadlink-with-size.c: Likewise.
11717         * tests/test-areadlinkat.c: Likewise.
11718         * tests/test-areadlinkat-with-size.c: Likewise.
11719         * tests/test-argmatch.c: Likewise.
11720         * tests/test-argv-iter.c: Likewise.
11721         * tests/test-array-mergesort.c: Likewise.
11722         * tests/test-array_list.c: Likewise.
11723         * tests/test-array_oset.c: Likewise.
11724         * tests/test-avltree_list.c: Likewise.
11725         * tests/test-avltree_oset.c: Likewise.
11726         * tests/test-avltreehash_list.c: Likewise.
11727         * tests/test-base64.c: Likewise.
11728         * tests/test-binary-io.c: Likewise.
11729         * tests/test-bitrotate.c: Likewise.
11730         * tests/test-btowc.c: Likewise.
11731         * tests/test-byteswap.c: Likewise.
11732         * tests/test-c-ctype.c: Likewise.
11733         * tests/test-c-stack.c: Likewise.
11734         * tests/test-c-strcasecmp.c: Likewise.
11735         * tests/test-c-strcasestr.c: Likewise.
11736         * tests/test-c-strncasecmp.c: Likewise.
11737         * tests/test-c-strstr.c: Likewise.
11738         * tests/test-canonicalize-lgpl.c: Likewise.
11739         * tests/test-canonicalize.c: Likewise.
11740         * tests/test-carray_list.c: Likewise.
11741         * tests/test-ceilf1.c: Likewise.
11742         * tests/test-ceilf2.c: Likewise.
11743         * tests/test-ceill.c: Likewise.
11744         * tests/test-chown.c: Likewise.
11745         * tests/test-cloexec.c: Likewise.
11746         * tests/test-copy-acl.c: Likewise.
11747         * tests/test-copy-file.c: Likewise.
11748         * tests/test-count-one-bits.c: Likewise.
11749         * tests/test-dprintf-posix.c: Likewise.
11750         * tests/test-dup2.c: Likewise.
11751         * tests/test-dup3.c: Likewise.
11752         * tests/test-duplocale.c: Likewise.
11753         * tests/test-fbufmode.c: Likewise.
11754         * tests/test-fchdir.c: Likewise.
11755         * tests/test-fchownat.c: Likewise.
11756         * tests/test-fcntl-safer.c: Likewise.
11757         * tests/test-fcntl.c: Likewise.
11758         * tests/test-fdopendir.c: Likewise.
11759         * tests/test-fdutimensat.c: Likewise.
11760         * tests/test-fflush2.c: Likewise.
11761         * tests/test-file-has-acl.c: Likewise.
11762         * tests/test-filevercmp.c: Likewise.
11763         * tests/test-flock.c: Likewise.
11764         * tests/test-floorf1.c: Likewise.
11765         * tests/test-floorf2.c: Likewise.
11766         * tests/test-floorl.c: Likewise.
11767         * tests/test-fnmatch.c: Likewise.
11768         * tests/test-fopen.h: Likewise.
11769         * tests/test-fpending.c: Likewise.
11770         * tests/test-fprintf-posix.c: Likewise.
11771         * tests/test-fpurge.c: Likewise.
11772         * tests/test-freadable.c: Likewise.
11773         * tests/test-freadahead.c: Likewise.
11774         * tests/test-freading.c: Likewise.
11775         * tests/test-freadptr.c: Likewise.
11776         * tests/test-freadptr2.c: Likewise.
11777         * tests/test-freadseek.c: Likewise.
11778         * tests/test-freopen.c: Likewise.
11779         * tests/test-frexp.c: Likewise.
11780         * tests/test-frexpl.c: Likewise.
11781         * tests/test-fseek.c: Likewise.
11782         * tests/test-fseeko.c: Likewise.
11783         * tests/test-fstatat.c: Likewise.
11784         * tests/test-fstrcmp.c: Likewise.
11785         * tests/test-fsync.c: Likewise.
11786         * tests/test-ftell.c: Likewise.
11787         * tests/test-ftello.c: Likewise.
11788         * tests/test-func.c: Likewise.
11789         * tests/test-futimens.c: Likewise.
11790         * tests/test-fwritable.c: Likewise.
11791         * tests/test-fwriting.c: Likewise.
11792         * tests/test-getcwd.c: Likewise.
11793         * tests/test-getdate.c: Likewise.
11794         * tests/test-getdelim.c: Likewise.
11795         * tests/test-getdtablesize.c: Likewise.
11796         * tests/test-getgroups.c: Likewise.
11797         * tests/test-getline.c: Likewise.
11798         * tests/test-getndelim2.c: Likewise.
11799         * tests/test-glob.c: Likewise.
11800         * tests/test-hash.c: Likewise.
11801         * tests/test-i-ring.c: Likewise.
11802         * tests/test-iconv-utf.c: Likewise.
11803         * tests/test-iconv.c: Likewise.
11804         * tests/test-idpriv-drop.c: Likewise.
11805         * tests/test-idpriv-droptemp.c: Likewise.
11806         * tests/test-inet_ntop.c: Likewise.
11807         * tests/test-inet_pton.c: Likewise.
11808         * tests/test-isblank.c: Likewise.
11809         * tests/test-isfinite.c: Likewise.
11810         * tests/test-isinf.c: Likewise.
11811         * tests/test-isnan.c: Likewise.
11812         * tests/test-isnand.h: Likewise.
11813         * tests/test-isnanf.h: Likewise.
11814         * tests/test-isnanl.h: Likewise.
11815         * tests/test-lchown.c: Likewise.
11816         * tests/test-ldexpl.c: Likewise.
11817         * tests/test-link.c: Likewise.
11818         * tests/test-linkat.c: Likewise.
11819         * tests/test-linked_list.c: Likewise.
11820         * tests/test-linkedhash_list.c: Likewise.
11821         * tests/test-localename.c: Likewise.
11822         * tests/test-lseek.c: Likewise.
11823         * tests/test-lstat.c: Likewise.
11824         * tests/test-mbmemcasecmp.c: Likewise.
11825         * tests/test-mbmemcasecoll.c: Likewise.
11826         * tests/test-mbrtowc.c: Likewise.
11827         * tests/test-mbscasecmp.c: Likewise.
11828         * tests/test-mbscasestr1.c: Likewise.
11829         * tests/test-mbscasestr2.c: Likewise.
11830         * tests/test-mbscasestr3.c: Likewise.
11831         * tests/test-mbscasestr4.c: Likewise.
11832         * tests/test-mbschr.c: Likewise.
11833         * tests/test-mbscspn.c: Likewise.
11834         * tests/test-mbsinit.c: Likewise.
11835         * tests/test-mbsncasecmp.c: Likewise.
11836         * tests/test-mbsnrtowcs.c: Likewise.
11837         * tests/test-mbspbrk.c: Likewise.
11838         * tests/test-mbspcasecmp.c: Likewise.
11839         * tests/test-mbsrchr.c: Likewise.
11840         * tests/test-mbsrtowcs.c: Likewise.
11841         * tests/test-mbsspn.c: Likewise.
11842         * tests/test-mbsstr1.c: Likewise.
11843         * tests/test-mbsstr2.c: Likewise.
11844         * tests/test-mbsstr3.c: Likewise.
11845         * tests/test-memchr.c: Likewise.
11846         * tests/test-memchr2.c: Likewise.
11847         * tests/test-memcmp.c: Likewise.
11848         * tests/test-memmem.c: Likewise.
11849         * tests/test-memrchr.c: Likewise.
11850         * tests/test-mkdir.c: Likewise.
11851         * tests/test-mkdirat.c: Likewise.
11852         * tests/test-mkfifo.c: Likewise.
11853         * tests/test-mkfifoat.c: Likewise.
11854         * tests/test-mknod.c: Likewise.
11855         * tests/test-nanosleep.c: Likewise.
11856         * tests/test-nl_langinfo.c: Likewise.
11857         * tests/test-obstack-printf.c: Likewise.
11858         * tests/test-open.c: Likewise.
11859         * tests/test-openat.c: Likewise.
11860         * tests/test-pipe-filter-gi1.c: Likewise.
11861         * tests/test-pipe-filter-gi2-main.c: Likewise.
11862         * tests/test-pipe-filter-ii1.c: Likewise.
11863         * tests/test-pipe-filter-ii2-main.c: Likewise.
11864         * tests/test-pipe2.c: Likewise.
11865         * tests/test-popen.h: Likewise.
11866         * tests/test-posixtm.c: Likewise.
11867         * tests/test-pread.c: Likewise.
11868         * tests/test-printf-frexp.c: Likewise.
11869         * tests/test-printf-frexpl.c: Likewise.
11870         * tests/test-printf-posix.c: Likewise.
11871         * tests/test-priv-set.c: Likewise.
11872         * tests/test-quotearg.c: Likewise.
11873         * tests/test-random_r.c: Likewise.
11874         * tests/test-rawmemchr.c: Likewise.
11875         * tests/test-rbtree_list.c: Likewise.
11876         * tests/test-rbtree_oset.c: Likewise.
11877         * tests/test-rbtreehash_list.c: Likewise.
11878         * tests/test-readlink.c: Likewise.
11879         * tests/test-remove.c: Likewise.
11880         * tests/test-rename.c: Likewise.
11881         * tests/test-renameat.c: Likewise.
11882         * tests/test-rmdir.c: Likewise.
11883         * tests/test-round1.c: Likewise.
11884         * tests/test-roundf1.c: Likewise.
11885         * tests/test-roundl.c: Likewise.
11886         * tests/test-safe-alloc.c: Likewise.
11887         * tests/test-sameacls.c: Likewise.
11888         * tests/test-set-mode-acl.c: Likewise.
11889         * tests/test-setenv.c: Likewise.
11890         * tests/test-sigaction.c: Likewise.
11891         * tests/test-signbit.c: Likewise.
11892         * tests/test-sleep.c: Likewise.
11893         * tests/test-snprintf-posix.c: Likewise.
11894         * tests/test-snprintf.c: Likewise.
11895         * tests/test-sprintf-posix.c: Likewise.
11896         * tests/test-stat-time.c: Likewise.
11897         * tests/test-stat.c: Likewise.
11898         * tests/test-strcasestr.c: Likewise.
11899         * tests/test-strchrnul.c: Likewise.
11900         * tests/test-strerror.c: Likewise.
11901         * tests/test-striconv.c: Likewise.
11902         * tests/test-striconveh.c: Likewise.
11903         * tests/test-striconveha.c: Likewise.
11904         * tests/test-strsignal.c: Likewise.
11905         * tests/test-strstr.c: Likewise.
11906         * tests/test-strtod.c: Likewise.
11907         * tests/test-strverscmp.c: Likewise.
11908         * tests/test-symlink.c: Likewise.
11909         * tests/test-symlinkat.c: Likewise.
11910         * tests/test-trunc1.c: Likewise.
11911         * tests/test-trunc2.c: Likewise.
11912         * tests/test-truncf1.c: Likewise.
11913         * tests/test-truncf2.c: Likewise.
11914         * tests/test-truncl.c: Likewise.
11915         * tests/test-uname.c: Likewise.
11916         * tests/test-unlink.c: Likewise.
11917         * tests/test-unlinkat.c: Likewise.
11918         * tests/test-unsetenv.c: Likewise.
11919         * tests/test-usleep.c: Likewise.
11920         * tests/test-utimens.c: Likewise.
11921         * tests/test-utimensat.c: Likewise.
11922         * tests/test-vasnprintf-posix.c: Likewise.
11923         * tests/test-vasnprintf-posix2.c: Likewise.
11924         * tests/test-vasnprintf.c: Likewise.
11925         * tests/test-vasprintf-posix.c: Likewise.
11926         * tests/test-vasprintf.c: Likewise.
11927         * tests/test-vdprintf-posix.c: Likewise.
11928         * tests/test-vfprintf-posix.c: Likewise.
11929         * tests/test-vprintf-posix.c: Likewise.
11930         * tests/test-vsnprintf-posix.c: Likewise.
11931         * tests/test-vsnprintf.c: Likewise.
11932         * tests/test-vsprintf-posix.c: Likewise.
11933         * tests/test-wcrtomb.c: Likewise.
11934         * tests/test-wcsnrtombs.c: Likewise.
11935         * tests/test-wcsrtombs.c: Likewise.
11936         * tests/test-wctype.c: Likewise.
11937         * tests/test-wcwidth.c: Likewise.
11938         * tests/test-xfprintf-posix.c: Likewise.
11939         * tests/test-xmemdup0.c: Likewise.
11940         * tests/test-xprintf-posix.c: Likewise.
11941         * tests/test-xvasprintf.c: Likewise.
11942         * tests/unicase/test-locale-language.c: Likewise.
11943         * tests/unicase/test-mapping-part1.h: Likewise.
11944         * tests/unicase/test-predicate-part1.h: Likewise.
11945         * tests/unicase/test-u8-casecmp.c: Likewise.
11946         * tests/unicase/test-u8-casecoll.c: Likewise.
11947         * tests/unicase/test-u8-casefold.c: Likewise.
11948         * tests/unicase/test-u8-is-cased.c: Likewise.
11949         * tests/unicase/test-u8-is-casefolded.c: Likewise.
11950         * tests/unicase/test-u8-is-lowercase.c: Likewise.
11951         * tests/unicase/test-u8-is-titlecase.c: Likewise.
11952         * tests/unicase/test-u8-is-uppercase.c: Likewise.
11953         * tests/unicase/test-u8-tolower.c: Likewise.
11954         * tests/unicase/test-u8-totitle.c: Likewise.
11955         * tests/unicase/test-u8-toupper.c: Likewise.
11956         * tests/unicase/test-u16-casecmp.c: Likewise.
11957         * tests/unicase/test-u16-casecoll.c: Likewise.
11958         * tests/unicase/test-u16-casefold.c: Likewise.
11959         * tests/unicase/test-u16-is-cased.c: Likewise.
11960         * tests/unicase/test-u16-is-casefolded.c: Likewise.
11961         * tests/unicase/test-u16-is-lowercase.c: Likewise.
11962         * tests/unicase/test-u16-is-titlecase.c: Likewise.
11963         * tests/unicase/test-u16-is-uppercase.c: Likewise.
11964         * tests/unicase/test-u16-tolower.c: Likewise.
11965         * tests/unicase/test-u16-totitle.c: Likewise.
11966         * tests/unicase/test-u16-toupper.c: Likewise.
11967         * tests/unicase/test-u32-casecmp.c: Likewise.
11968         * tests/unicase/test-u32-casecoll.c: Likewise.
11969         * tests/unicase/test-u32-casefold.c: Likewise.
11970         * tests/unicase/test-u32-is-cased.c: Likewise.
11971         * tests/unicase/test-u32-is-casefolded.c: Likewise.
11972         * tests/unicase/test-u32-is-lowercase.c: Likewise.
11973         * tests/unicase/test-u32-is-titlecase.c: Likewise.
11974         * tests/unicase/test-u32-is-uppercase.c: Likewise.
11975         * tests/unicase/test-u32-tolower.c: Likewise.
11976         * tests/unicase/test-u32-totitle.c: Likewise.
11977         * tests/unicase/test-u32-toupper.c: Likewise.
11978         * tests/unicase/test-ulc-casecmp.c: Likewise.
11979         * tests/unicase/test-ulc-casecoll.c: Likewise.
11980         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11981         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11982         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11983         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11984         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11985         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11986         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11987         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11988         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11989         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11990         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11991         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11992         * tests/unictype/test-bidi_byname.c: Likewise.
11993         * tests/unictype/test-bidi_name.c: Likewise.
11994         * tests/unictype/test-bidi_of.c: Likewise.
11995         * tests/unictype/test-bidi_test.c: Likewise.
11996         * tests/unictype/test-block_list.c: Likewise.
11997         * tests/unictype/test-block_of.c: Likewise.
11998         * tests/unictype/test-block_test.c: Likewise.
11999         * tests/unictype/test-categ_and.c: Likewise.
12000         * tests/unictype/test-categ_and_not.c: Likewise.
12001         * tests/unictype/test-categ_byname.c: Likewise.
12002         * tests/unictype/test-categ_name.c: Likewise.
12003         * tests/unictype/test-categ_none.c: Likewise.
12004         * tests/unictype/test-categ_of.c: Likewise.
12005         * tests/unictype/test-categ_or.c: Likewise.
12006         * tests/unictype/test-categ_test_withtable.c: Likewise.
12007         * tests/unictype/test-combining.c: Likewise.
12008         * tests/unictype/test-decdigit.c: Likewise.
12009         * tests/unictype/test-digit.c: Likewise.
12010         * tests/unictype/test-mirror.c: Likewise.
12011         * tests/unictype/test-numeric.c: Likewise.
12012         * tests/unictype/test-pr_byname.c: Likewise.
12013         * tests/unictype/test-pr_test.c: Likewise.
12014         * tests/unictype/test-predicate-part1.h: Likewise.
12015         * tests/unictype/test-scripts.c: Likewise.
12016         * tests/unictype/test-sy_c_ident.c: Likewise.
12017         * tests/unictype/test-sy_java_ident.c: Likewise.
12018         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
12019         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
12020         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
12021         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
12022         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
12023         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
12024         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
12025         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
12026         * tests/uninorm/test-canonical-decomposition.c: Likewise.
12027         * tests/uninorm/test-compat-decomposition.c: Likewise.
12028         * tests/uninorm/test-composition.c: Likewise.
12029         * tests/uninorm/test-decomposing-form.c: Likewise.
12030         * tests/uninorm/test-decomposition.c: Likewise.
12031         * tests/uninorm/test-u8-nfc.c: Likewise.
12032         * tests/uninorm/test-u8-nfd.c: Likewise.
12033         * tests/uninorm/test-u8-nfkc.c: Likewise.
12034         * tests/uninorm/test-u8-nfkd.c: Likewise.
12035         * tests/uninorm/test-u8-normcmp.c: Likewise.
12036         * tests/uninorm/test-u8-normcoll.c: Likewise.
12037         * tests/uninorm/test-u16-nfc.c: Likewise.
12038         * tests/uninorm/test-u16-nfd.c: Likewise.
12039         * tests/uninorm/test-u16-nfkc.c: Likewise.
12040         * tests/uninorm/test-u16-nfkd.c: Likewise.
12041         * tests/uninorm/test-u16-normcmp.c: Likewise.
12042         * tests/uninorm/test-u16-normcoll.c: Likewise.
12043         * tests/uninorm/test-u32-nfc.c: Likewise.
12044         * tests/uninorm/test-u32-nfd.c: Likewise.
12045         * tests/uninorm/test-u32-nfkc.c: Likewise.
12046         * tests/uninorm/test-u32-nfkd.c: Likewise.
12047         * tests/uninorm/test-u32-normalize-big.c: Likewise.
12048         * tests/uninorm/test-u32-normcmp.c: Likewise.
12049         * tests/uninorm/test-u32-normcoll.c: Likewise.
12050         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
12051         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
12052         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
12053         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
12054         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
12055         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
12056         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
12057         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
12058         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
12059         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
12060         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
12061         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
12062         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
12063         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
12064         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
12065         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
12066         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
12067         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
12068         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
12069         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
12070         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
12071         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
12072         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
12073         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
12074         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
12075         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
12076         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
12077         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
12078         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
12079         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
12080         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
12081         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
12082         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
12083         * tests/uniwidth/test-u8-strwidth.c: Likewise.
12084         * tests/uniwidth/test-u8-width.c: Likewise.
12085         * tests/uniwidth/test-u16-strwidth.c: Likewise.
12086         * tests/uniwidth/test-u16-width.c: Likewise.
12087         * tests/uniwidth/test-u32-strwidth.c: Likewise.
12088         * tests/uniwidth/test-u32-width.c: Likewise.
12089         * tests/uniwidth/test-uc_width.c: Likewise.
12090         * tests/uniwidth/test-uc_width2.c: Likewise.
12091         * modules/acl-tests (Files): Add tests/macros.h.
12092         * modules/areadlink-tests (Files): Likewise.
12093         * modules/areadlink-with-size-tests (Files): Likewise.
12094         * modules/areadlinkat-tests (Files): Likewise.
12095         * modules/areadlinkat-with-size-tests (Files): Likewise.
12096         * modules/argmatch-tests (Files): Likewise.
12097         * modules/argv-iter-tests (Files): Likewise.
12098         * modules/array-list-tests (Files): Likewise.
12099         * modules/array-mergesort-tests (Files): Likewise.
12100         * modules/array-oset-tests (Files): Likewise.
12101         * modules/avltree-list-tests (Files): Likewise.
12102         * modules/avltree-oset-tests (Files): Likewise.
12103         * modules/avltreehash-list-tests (Files): Likewise.
12104         * modules/base64-tests (Files): Likewise.
12105         * modules/binary-io-tests (Files): Likewise.
12106         * modules/bitrotate-tests (Files): Likewise.
12107         * modules/btowc-tests (Files): Likewise.
12108         * modules/byteswap-tests (Files): Likewise.
12109         * modules/c-ctype-tests (Files): Likewise.
12110         * modules/c-stack-tests (Files): Likewise.
12111         * modules/c-strcase-tests (Files): Likewise.
12112         * modules/c-strcasestr-tests (Files): Likewise.
12113         * modules/c-strstr-tests (Files): Likewise.
12114         * modules/canonicalize-lgpl-tests (Files): Likewise.
12115         * modules/canonicalize-tests (Files): Likewise.
12116         * modules/carray-list-tests (Files): Likewise.
12117         * modules/ceilf-tests (Files): Likewise.
12118         * modules/ceill-tests (Files): Likewise.
12119         * modules/chown-tests (Files): Likewise.
12120         * modules/cloexec-tests (Files): Likewise.
12121         * modules/copy-file-tests (Files): Likewise.
12122         * modules/count-one-bits-tests (Files): Likewise.
12123         * modules/dprintf-posix-tests (Files): Likewise.
12124         * modules/dup2-tests (Files): Likewise.
12125         * modules/dup3-tests (Files): Likewise.
12126         * modules/duplocale-tests (Files): Likewise.
12127         * modules/fbufmode-tests (Files): Likewise.
12128         * modules/fchdir-tests (Files): Likewise.
12129         * modules/fcntl-safer-tests (Files): Likewise.
12130         * modules/fcntl-tests (Files): Likewise.
12131         * modules/fdopendir-tests (Files): Likewise.
12132         * modules/fdutimensat-tests (Files): Likewise.
12133         * modules/fflush-tests (Files): Likewise.
12134         * modules/filevercmp-tests (Files): Likewise.
12135         * modules/flock-tests (Files): Likewise.
12136         * modules/floorf-tests (Files): Likewise.
12137         * modules/floorl-tests (Files): Likewise.
12138         * modules/fnmatch-tests (Files): Likewise.
12139         * modules/fopen-safer-tests (Files): Likewise.
12140         * modules/fopen-tests (Files): Likewise.
12141         * modules/fpending-tests (Files): Likewise.
12142         * modules/fprintf-posix-tests (Files): Likewise.
12143         * modules/fpurge-tests (Files): Likewise.
12144         * modules/freadable-tests (Files): Likewise.
12145         * modules/freadahead-tests (Files): Likewise.
12146         * modules/freading-tests (Files): Likewise.
12147         * modules/freadptr-tests (Files): Likewise.
12148         * modules/freadseek-tests (Files): Likewise.
12149         * modules/freopen-tests (Files): Likewise.
12150         * modules/frexp-nolibm-tests (Files): Likewise.
12151         * modules/frexp-tests (Files): Likewise.
12152         * modules/frexpl-nolibm-tests (Files): Likewise.
12153         * modules/frexpl-tests (Files): Likewise.
12154         * modules/fseek-tests (Files): Likewise.
12155         * modules/fseeko-tests (Files): Likewise.
12156         * modules/fstrcmp-tests (Files): Likewise.
12157         * modules/fsync-tests (Files): Likewise.
12158         * modules/ftell-tests (Files): Likewise.
12159         * modules/ftello-tests (Files): Likewise.
12160         * modules/func-tests (Files): Likewise.
12161         * modules/futimens-tests (Files): Likewise.
12162         * modules/fwritable-tests (Files): Likewise.
12163         * modules/fwriting-tests (Files): Likewise.
12164         * modules/getcwd-tests (Files): Likewise.
12165         * modules/getdate-tests (Files): Likewise.
12166         * modules/getdelim-tests (Files): Likewise.
12167         * modules/getdtablesize-tests (Files): Likewise.
12168         * modules/getgroups-tests (Files): Likewise.
12169         * modules/getline-tests (Files): Likewise.
12170         * modules/getndelim2-tests (Files): Likewise.
12171         * modules/glob-tests (Files): Likewise.
12172         * modules/hash-tests (Files): Likewise.
12173         * modules/i-ring-tests (Files): Likewise.
12174         * modules/iconv-tests (Files): Likewise.
12175         * modules/iconv_open-utf-tests (Files): Likewise.
12176         * modules/idpriv-drop-tests (Files): Likewise.
12177         * modules/idpriv-droptemp-tests (Files): Likewise.
12178         * modules/inet_ntop-tests (Files): Likewise.
12179         * modules/inet_pton-tests (Files): Likewise.
12180         * modules/isblank-tests (Files): Likewise.
12181         * modules/isfinite-tests (Files): Likewise.
12182         * modules/isinf-tests (Files): Likewise.
12183         * modules/isnan-tests (Files): Likewise.
12184         * modules/isnand-nolibm-tests (Files): Likewise.
12185         * modules/isnand-tests (Files): Likewise.
12186         * modules/isnanf-nolibm-tests (Files): Likewise.
12187         * modules/isnanf-tests (Files): Likewise.
12188         * modules/isnanl-nolibm-tests (Files): Likewise.
12189         * modules/isnanl-tests (Files): Likewise.
12190         * modules/lchown-tests (Files): Likewise.
12191         * modules/ldexpl-tests (Files): Likewise.
12192         * modules/link-tests (Files): Likewise.
12193         * modules/linkat-tests (Files): Likewise.
12194         * modules/linked-list-tests (Files): Likewise.
12195         * modules/linkedhash-list-tests (Files): Likewise.
12196         * modules/localename-tests (Files): Likewise.
12197         * modules/lseek-tests (Files): Likewise.
12198         * modules/lstat-tests (Files): Likewise.
12199         * modules/mbmemcasecmp-tests (Files): Likewise.
12200         * modules/mbmemcasecoll-tests (Files): Likewise.
12201         * modules/mbrtowc-tests (Files): Likewise.
12202         * modules/mbscasecmp-tests (Files): Likewise.
12203         * modules/mbscasestr-tests (Files): Likewise.
12204         * modules/mbschr-tests (Files): Likewise.
12205         * modules/mbscspn-tests (Files): Likewise.
12206         * modules/mbsinit-tests (Files): Likewise.
12207         * modules/mbsncasecmp-tests (Files): Likewise.
12208         * modules/mbsnrtowcs-tests (Files): Likewise.
12209         * modules/mbspbrk-tests (Files): Likewise.
12210         * modules/mbspcasecmp-tests (Files): Likewise.
12211         * modules/mbsrchr-tests (Files): Likewise.
12212         * modules/mbsrtowcs-tests (Files): Likewise.
12213         * modules/mbsspn-tests (Files): Likewise.
12214         * modules/mbsstr-tests (Files): Likewise.
12215         * modules/memchr-tests (Files): Likewise.
12216         * modules/memchr2-tests (Files): Likewise.
12217         * modules/memcmp-tests (Files): Likewise.
12218         * modules/memmem-tests (Files): Likewise.
12219         * modules/memrchr-tests (Files): Likewise.
12220         * modules/mkdir-tests (Files): Likewise.
12221         * modules/mkfifo-tests (Files): Likewise.
12222         * modules/mkfifoat-tests (Files): Likewise.
12223         * modules/mknod-tests (Files): Likewise.
12224         * modules/nanosleep-tests (Files): Likewise.
12225         * modules/nl_langinfo-tests (Files): Likewise.
12226         * modules/obstack-printf-tests (Files): Likewise.
12227         * modules/open-tests (Files): Likewise.
12228         * modules/openat-tests (Files): Likewise.
12229         * modules/pipe-filter-gi-tests (Files): Likewise.
12230         * modules/pipe-filter-ii-tests (Files): Likewise.
12231         * modules/pipe2-tests (Files): Likewise.
12232         * modules/popen-safer-tests (Files): Likewise.
12233         * modules/popen-tests (Files): Likewise.
12234         * modules/posixtm-tests (Files): Likewise.
12235         * modules/pread-tests (Files): Likewise.
12236         * modules/printf-frexp-tests (Files): Likewise.
12237         * modules/printf-frexpl-tests (Files): Likewise.
12238         * modules/printf-posix-tests (Files): Likewise.
12239         * modules/priv-set-tests (Files): Likewise.
12240         * modules/quotearg-tests (Files): Likewise.
12241         * modules/random_r-tests (Files): Likewise.
12242         * modules/rawmemchr-tests (Files): Likewise.
12243         * modules/rbtree-list-tests (Files): Likewise.
12244         * modules/rbtree-oset-tests (Files): Likewise.
12245         * modules/rbtreehash-list-tests (Files): Likewise.
12246         * modules/readlink-tests (Files): Likewise.
12247         * modules/remove-tests (Files): Likewise.
12248         * modules/rename-tests (Files): Likewise.
12249         * modules/renameat-tests (Files): Likewise.
12250         * modules/rmdir-tests (Files): Likewise.
12251         * modules/round-tests (Files): Likewise.
12252         * modules/roundf-tests (Files): Likewise.
12253         * modules/roundl-tests (Files): Likewise.
12254         * modules/safe-alloc-tests (Files): Likewise.
12255         * modules/setenv-tests (Files): Likewise.
12256         * modules/sigaction-tests (Files): Likewise.
12257         * modules/signbit-tests (Files): Likewise.
12258         * modules/sleep-tests (Files): Likewise.
12259         * modules/snprintf-posix-tests (Files): Likewise.
12260         * modules/snprintf-tests (Files): Likewise.
12261         * modules/sprintf-posix-tests (Files): Likewise.
12262         * modules/stat-tests (Files): Likewise.
12263         * modules/stat-time-tests (Files): Likewise.
12264         * modules/strcasestr-tests (Files): Likewise.
12265         * modules/strchrnul-tests (Files): Likewise.
12266         * modules/strerror-tests (Files): Likewise.
12267         * modules/striconv-tests (Files): Likewise.
12268         * modules/striconveh-tests (Files): Likewise.
12269         * modules/striconveha-tests (Files): Likewise.
12270         * modules/strsignal-tests (Files): Likewise.
12271         * modules/strstr-tests (Files): Likewise.
12272         * modules/strtod-tests (Files): Likewise.
12273         * modules/strverscmp-tests (Files): Likewise.
12274         * modules/symlink-tests (Files): Likewise.
12275         * modules/symlinkat-tests (Files): Likewise.
12276         * modules/trunc-tests (Files): Likewise.
12277         * modules/truncf-tests (Files): Likewise.
12278         * modules/truncl-tests (Files): Likewise.
12279         * modules/uname-tests (Files): Likewise.
12280         * modules/unicase/cased-tests (Files): Likewise.
12281         * modules/unicase/ignorable-tests (Files): Likewise.
12282         * modules/unicase/locale-language-tests (Files): Likewise.
12283         * modules/unicase/tolower-tests (Files): Likewise.
12284         * modules/unicase/totitle-tests (Files): Likewise.
12285         * modules/unicase/toupper-tests (Files): Likewise.
12286         * modules/unicase/u8-casecmp-tests (Files): Likewise.
12287         * modules/unicase/u8-casecoll-tests (Files): Likewise.
12288         * modules/unicase/u8-casefold-tests (Files): Likewise.
12289         * modules/unicase/u8-is-cased-tests (Files): Likewise.
12290         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
12291         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
12292         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
12293         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
12294         * modules/unicase/u8-tolower-tests (Files): Likewise.
12295         * modules/unicase/u8-totitle-tests (Files): Likewise.
12296         * modules/unicase/u8-toupper-tests (Files): Likewise.
12297         * modules/unicase/u16-casecmp-tests (Files): Likewise.
12298         * modules/unicase/u16-casecoll-tests (Files): Likewise.
12299         * modules/unicase/u16-casefold-tests (Files): Likewise.
12300         * modules/unicase/u16-is-cased-tests (Files): Likewise.
12301         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
12302         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
12303         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
12304         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
12305         * modules/unicase/u16-tolower-tests (Files): Likewise.
12306         * modules/unicase/u16-totitle-tests (Files): Likewise.
12307         * modules/unicase/u16-toupper-tests (Files): Likewise.
12308         * modules/unicase/u32-casecmp-tests (Files): Likewise.
12309         * modules/unicase/u32-casecoll-tests (Files): Likewise.
12310         * modules/unicase/u32-casefold-tests (Files): Likewise.
12311         * modules/unicase/u32-is-cased-tests (Files): Likewise.
12312         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
12313         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
12314         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
12315         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
12316         * modules/unicase/u32-tolower-tests (Files): Likewise.
12317         * modules/unicase/u32-totitle-tests (Files): Likewise.
12318         * modules/unicase/u32-toupper-tests (Files): Likewise.
12319         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
12320         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
12321         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
12322         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
12323         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
12324         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
12325         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
12326         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
12327         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
12328         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
12329         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
12330         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
12331         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
12332         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
12333         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
12334         * modules/unictype/bidicategory-name-tests (Files): Likewise.
12335         * modules/unictype/bidicategory-of-tests (Files): Likewise.
12336         * modules/unictype/bidicategory-test-tests (Files): Likewise.
12337         * modules/unictype/block-list-tests (Files): Likewise.
12338         * modules/unictype/block-of-tests (Files): Likewise.
12339         * modules/unictype/block-test-tests (Files): Likewise.
12340         * modules/unictype/category-C-tests (Files): Likewise.
12341         * modules/unictype/category-Cc-tests (Files): Likewise.
12342         * modules/unictype/category-Cf-tests (Files): Likewise.
12343         * modules/unictype/category-Cn-tests (Files): Likewise.
12344         * modules/unictype/category-Co-tests (Files): Likewise.
12345         * modules/unictype/category-Cs-tests (Files): Likewise.
12346         * modules/unictype/category-L-tests (Files): Likewise.
12347         * modules/unictype/category-Ll-tests (Files): Likewise.
12348         * modules/unictype/category-Lm-tests (Files): Likewise.
12349         * modules/unictype/category-Lo-tests (Files): Likewise.
12350         * modules/unictype/category-Lt-tests (Files): Likewise.
12351         * modules/unictype/category-Lu-tests (Files): Likewise.
12352         * modules/unictype/category-M-tests (Files): Likewise.
12353         * modules/unictype/category-Mc-tests (Files): Likewise.
12354         * modules/unictype/category-Me-tests (Files): Likewise.
12355         * modules/unictype/category-Mn-tests (Files): Likewise.
12356         * modules/unictype/category-N-tests (Files): Likewise.
12357         * modules/unictype/category-Nd-tests (Files): Likewise.
12358         * modules/unictype/category-Nl-tests (Files): Likewise.
12359         * modules/unictype/category-No-tests (Files): Likewise.
12360         * modules/unictype/category-P-tests (Files): Likewise.
12361         * modules/unictype/category-Pc-tests (Files): Likewise.
12362         * modules/unictype/category-Pd-tests (Files): Likewise.
12363         * modules/unictype/category-Pe-tests (Files): Likewise.
12364         * modules/unictype/category-Pf-tests (Files): Likewise.
12365         * modules/unictype/category-Pi-tests (Files): Likewise.
12366         * modules/unictype/category-Po-tests (Files): Likewise.
12367         * modules/unictype/category-Ps-tests (Files): Likewise.
12368         * modules/unictype/category-S-tests (Files): Likewise.
12369         * modules/unictype/category-Sc-tests (Files): Likewise.
12370         * modules/unictype/category-Sk-tests (Files): Likewise.
12371         * modules/unictype/category-Sm-tests (Files): Likewise.
12372         * modules/unictype/category-So-tests (Files): Likewise.
12373         * modules/unictype/category-Z-tests (Files): Likewise.
12374         * modules/unictype/category-Zl-tests (Files): Likewise.
12375         * modules/unictype/category-Zp-tests (Files): Likewise.
12376         * modules/unictype/category-Zs-tests (Files): Likewise.
12377         * modules/unictype/category-and-not-tests (Files): Likewise.
12378         * modules/unictype/category-and-tests (Files): Likewise.
12379         * modules/unictype/category-byname-tests (Files): Likewise.
12380         * modules/unictype/category-name-tests (Files): Likewise.
12381         * modules/unictype/category-none-tests (Files): Likewise.
12382         * modules/unictype/category-of-tests (Files): Likewise.
12383         * modules/unictype/category-or-tests (Files): Likewise.
12384         * modules/unictype/category-test-withtable-tests (Files): Likewise.
12385         * modules/unictype/combining-class-tests (Files): Likewise.
12386         * modules/unictype/ctype-alnum-tests (Files): Likewise.
12387         * modules/unictype/ctype-alpha-tests (Files): Likewise.
12388         * modules/unictype/ctype-blank-tests (Files): Likewise.
12389         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
12390         * modules/unictype/ctype-digit-tests (Files): Likewise.
12391         * modules/unictype/ctype-graph-tests (Files): Likewise.
12392         * modules/unictype/ctype-lower-tests (Files): Likewise.
12393         * modules/unictype/ctype-print-tests (Files): Likewise.
12394         * modules/unictype/ctype-punct-tests (Files): Likewise.
12395         * modules/unictype/ctype-space-tests (Files): Likewise.
12396         * modules/unictype/ctype-upper-tests (Files): Likewise.
12397         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
12398         * modules/unictype/decimal-digit-tests (Files): Likewise.
12399         * modules/unictype/digit-tests (Files): Likewise.
12400         * modules/unictype/mirror-tests (Files): Likewise.
12401         * modules/unictype/numeric-tests (Files): Likewise.
12402         * modules/unictype/property-alphabetic-tests (Files): Likewise.
12403         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
12404         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
12405         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
12406         Likewise.
12407         * modules/unictype/property-bidi-block-separator-tests (Files):
12408         Likewise.
12409         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
12410         Likewise.
12411         * modules/unictype/property-bidi-common-separator-tests (Files):
12412         Likewise.
12413         * modules/unictype/property-bidi-control-tests (Files): Likewise.
12414         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
12415         Likewise.
12416         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
12417         Likewise.
12418         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
12419         Likewise.
12420         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
12421         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
12422         Likewise.
12423         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
12424         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
12425         Likewise.
12426         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
12427         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
12428         * modules/unictype/property-bidi-segment-separator-tests (Files):
12429         Likewise.
12430         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
12431         * modules/unictype/property-byname-tests (Files): Likewise.
12432         * modules/unictype/property-combining-tests (Files): Likewise.
12433         * modules/unictype/property-composite-tests (Files): Likewise.
12434         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
12435         * modules/unictype/property-dash-tests (Files): Likewise.
12436         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
12437         * modules/unictype/property-default-ignorable-code-point-tests (Files):
12438         Likewise.
12439         * modules/unictype/property-deprecated-tests (Files): Likewise.
12440         * modules/unictype/property-diacritic-tests (Files): Likewise.
12441         * modules/unictype/property-extender-tests (Files): Likewise.
12442         * modules/unictype/property-format-control-tests (Files): Likewise.
12443         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
12444         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
12445         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
12446         * modules/unictype/property-hex-digit-tests (Files): Likewise.
12447         * modules/unictype/property-hyphen-tests (Files): Likewise.
12448         * modules/unictype/property-id-continue-tests (Files): Likewise.
12449         * modules/unictype/property-id-start-tests (Files): Likewise.
12450         * modules/unictype/property-ideographic-tests (Files): Likewise.
12451         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
12452         * modules/unictype/property-ids-trinary-operator-tests (Files):
12453         Likewise.
12454         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
12455         * modules/unictype/property-iso-control-tests (Files): Likewise.
12456         * modules/unictype/property-join-control-tests (Files): Likewise.
12457         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
12458         * modules/unictype/property-line-separator-tests (Files): Likewise.
12459         * modules/unictype/property-logical-order-exception-tests (Files):
12460         Likewise.
12461         * modules/unictype/property-lowercase-tests (Files): Likewise.
12462         * modules/unictype/property-math-tests (Files): Likewise.
12463         * modules/unictype/property-non-break-tests (Files): Likewise.
12464         * modules/unictype/property-not-a-character-tests (Files): Likewise.
12465         * modules/unictype/property-numeric-tests (Files): Likewise.
12466         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
12467         * modules/unictype/property-other-default-ignorable-code-point-tests
12468         (Files): Likewise.
12469         * modules/unictype/property-other-grapheme-extend-tests (Files):
12470         Likewise.
12471         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
12472         * modules/unictype/property-other-id-start-tests (Files): Likewise.
12473         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
12474         * modules/unictype/property-other-math-tests (Files): Likewise.
12475         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
12476         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
12477         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
12478         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
12479         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
12480         * modules/unictype/property-private-use-tests (Files): Likewise.
12481         * modules/unictype/property-punctuation-tests (Files): Likewise.
12482         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
12483         * modules/unictype/property-radical-tests (Files): Likewise.
12484         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
12485         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
12486         * modules/unictype/property-space-tests (Files): Likewise.
12487         * modules/unictype/property-terminal-punctuation-tests (Files):
12488         Likewise.
12489         * modules/unictype/property-test-tests (Files): Likewise.
12490         * modules/unictype/property-titlecase-tests (Files): Likewise.
12491         * modules/unictype/property-unassigned-code-value-tests (Files):
12492         Likewise.
12493         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
12494         * modules/unictype/property-uppercase-tests (Files): Likewise.
12495         * modules/unictype/property-variation-selector-tests (Files): Likewise.
12496         * modules/unictype/property-white-space-tests (Files): Likewise.
12497         * modules/unictype/property-xid-continue-tests (Files): Likewise.
12498         * modules/unictype/property-xid-start-tests (Files): Likewise.
12499         * modules/unictype/property-zero-width-tests (Files): Likewise.
12500         * modules/unictype/scripts-tests (Files): Likewise.
12501         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
12502         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
12503         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
12504         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
12505         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
12506         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
12507         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
12508         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
12509         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
12510         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
12511         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
12512         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
12513         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
12514         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
12515         * modules/uninorm/composition-tests (Files): Likewise.
12516         * modules/uninorm/decomposing-form-tests (Files): Likewise.
12517         * modules/uninorm/decomposition-tests (Files): Likewise.
12518         * modules/uninorm/filter-tests (Files): Likewise.
12519         * modules/uninorm/nfc-tests (Files): Likewise.
12520         * modules/uninorm/nfd-tests (Files): Likewise.
12521         * modules/uninorm/nfkc-tests (Files): Likewise.
12522         * modules/uninorm/nfkd-tests (Files): Likewise.
12523         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
12524         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
12525         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
12526         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
12527         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
12528         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
12529         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
12530         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
12531         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
12532         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
12533         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
12534         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
12535         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
12536         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
12537         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
12538         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
12539         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
12540         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
12541         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
12542         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
12543         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
12544         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
12545         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
12546         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
12547         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
12548         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
12549         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
12550         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
12551         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
12552         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
12553         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
12554         * modules/uniwidth/u8-width-tests (Files): Likewise.
12555         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
12556         * modules/uniwidth/u16-width-tests (Files): Likewise.
12557         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
12558         * modules/uniwidth/u32-width-tests (Files): Likewise.
12559         * modules/uniwidth/width-tests (Files): Likewise.
12560         * modules/unlink-tests (Files): Likewise.
12561         * modules/unsetenv-tests (Files): Likewise.
12562         * modules/usleep-tests (Files): Likewise.
12563         * modules/utimens-tests (Files): Likewise.
12564         * modules/utimensat-tests (Files): Likewise.
12565         * modules/vasnprintf-posix-tests (Files): Likewise.
12566         * modules/vasnprintf-tests (Files): Likewise.
12567         * modules/vasprintf-posix-tests (Files): Likewise.
12568         * modules/vasprintf-tests (Files): Likewise.
12569         * modules/vdprintf-posix-tests (Files): Likewise.
12570         * modules/vfprintf-posix-tests (Files): Likewise.
12571         * modules/vprintf-posix-tests (Files): Likewise.
12572         * modules/vsnprintf-posix-tests (Files): Likewise.
12573         * modules/vsnprintf-tests (Files): Likewise.
12574         * modules/vsprintf-posix-tests (Files): Likewise.
12575         * modules/wcrtomb-tests (Files): Likewise.
12576         * modules/wcsnrtombs-tests (Files): Likewise.
12577         * modules/wcsrtombs-tests (Files): Likewise.
12578         * modules/wctype-tests (Files): Likewise.
12579         * modules/wcwidth-tests (Files): Likewise.
12580         * modules/xmemdup0-tests (Files): Likewise.
12581         * modules/xprintf-posix-tests (Files): Likewise.
12582         * modules/xvasprintf-tests (Files): Likewise.
12583
12584 2009-12-24  Eric Blake  <ebb9@byu.net>
12585
12586         test-nanosleep: fix typo
12587         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
12588         patch.
12589         Reported by Bruno Haible.
12590
12591 2009-12-24  Bruno Haible  <bruno@clisp.org>
12592
12593         Reduce namespace pollution on glibc systems.
12594         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
12595         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
12596         systems.
12597         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
12598         <getopt.h> on glibc systems.
12599         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
12600         systems.
12601         * lib/fcntl.c: Include <unistd.h> here instead.
12602
12603 2009-12-24  Bruno Haible  <bruno@clisp.org>
12604
12605         * lib/stdlib.in.h (includes): Fix typo in today's commit.
12606
12607 2009-12-24  Eric Blake  <ebb9@byu.net>
12608
12609         tests: add signature checks
12610         * tests/signature.h (SIGNATURE_CHECK): New file.
12611         * modules/atexit-tests (Files): Use it.
12612         * modules/btowc-tests (Files): Likewise.
12613         * modules/canonicalize-lgpl-tests (Files): Likewise.
12614         * modules/ceilf-tests (Files): Likewise.
12615         * modules/ceill-tests (Files): Likewise.
12616         * modules/chown-tests (Files): Likewise.
12617         * modules/dprintf-posix-tests (Files): Likewise.
12618         * modules/dup2-tests (Files): Likewise.
12619         * modules/dup3-tests (Files): Likewise.
12620         * modules/duplocale-tests (Files): Likewise.
12621         * modules/fchdir-tests (Files): Likewise.
12622         * modules/fcntl-tests (Files): Likewise.
12623         * modules/fdopendir-tests (Files): Likewise.
12624         * modules/fflush-tests (Files): Likewise.
12625         * modules/flock-tests (Files): Likewise.
12626         * modules/floorf-tests (Files): Likewise.
12627         * modules/floorl-tests (Files): Likewise.
12628         * modules/fnmatch-tests (Files): Likewise.
12629         * modules/fopen-tests (Files): Likewise.
12630         * modules/fprintf-posix-tests (Files): Likewise.
12631         * modules/freopen-tests (Files): Likewise.
12632         * modules/frexp-nolibm-tests (Files): Likewise.
12633         * modules/frexp-tests (Files): Likewise.
12634         * modules/frexpl-nolibm-tests (Files): Likewise.
12635         * modules/frexpl-tests (Files): Likewise.
12636         * modules/fseek-tests (Files): Likewise.
12637         * modules/fseeko-tests (Files): Likewise.
12638         * modules/fsync-tests (Files): Likewise.
12639         * modules/ftell-tests (Files): Likewise.
12640         * modules/ftello-tests (Files): Likewise.
12641         * modules/futimens-tests (Files): Likewise.
12642         * modules/getaddrinfo-tests (Files): Likewise.
12643         * modules/getcwd-tests (Files): Likewise.
12644         * modules/getdelim-tests (Files): Likewise.
12645         * modules/getdtablesize-tests (Files): Likewise.
12646         * modules/getgroups-tests (Files): Likewise.
12647         * modules/gethostname-tests (Files): Likewise.
12648         * modules/getline-tests (Files): Likewise.
12649         * modules/getopt-posix-tests (Files): Likewise.
12650         * modules/gettimeofday-tests (Files): Likewise.
12651         * modules/glob-tests (Files): Likewise.
12652         * modules/iconv-tests (Files): Likewise.
12653         * modules/inet_ntop-tests (Files): Likewise.
12654         * modules/inet_pton-tests (Files): Likewise.
12655         * modules/isblank-tests (Files): Likewise.
12656         * modules/lchown-tests (Files): Likewise.
12657         * modules/ldexpl-tests (Files): Likewise.
12658         * modules/link-tests (Files): Likewise.
12659         * modules/linkat-tests (Files): Likewise.
12660         * modules/lseek-tests (Files): Likewise.
12661         * modules/lstat-tests (Files): Likewise.
12662         * modules/mbrtowc-tests (Files): Likewise.
12663         * modules/mbsinit-tests (Files): Likewise.
12664         * modules/mbsnrtowcs-tests (Files): Likewise.
12665         * modules/mbsrtowcs-tests (Files): Likewise.
12666         * modules/memchr-tests (Files): Likewise.
12667         * modules/memcmp-tests (Files): Likewise.
12668         * modules/memmem-tests (Files): Likewise.
12669         * modules/memrchr-tests (Files): Likewise.
12670         * modules/mkdir-tests (Files): Likewise.
12671         * modules/mkfifo-tests (Files): Likewise.
12672         * modules/mkfifoat-tests (Files): Likewise.
12673         * modules/mknod-tests (Files): Likewise.
12674         * modules/nanosleep-tests (Files): Likewise.
12675         * modules/nl_langinfo-tests (Files): Likewise.
12676         * modules/obstack-printf-tests (Files): Likewise.
12677         * modules/open-tests (Files): Likewise.
12678         * modules/openat-tests (Files): Likewise.
12679         * modules/perror-tests (Files): Likewise.
12680         * modules/pipe2-tests (Files): Likewise.
12681         * modules/poll-tests (Files): Likewise.
12682         * modules/popen-tests (Files): Likewise.
12683         * modules/posix_spawn-tests (Files): Likewise.
12684         * modules/posix_spawnp-tests (Files): Likewise.
12685         * modules/pread-tests (Files): Likewise.
12686         * modules/printf-posix-tests (Files): Likewise.
12687         * modules/pty-tests (Files): Likewise.
12688         * modules/random_r-tests (Files): Likewise.
12689         * modules/rawmemchr-tests (Files): Likewise.
12690         * modules/readlink-tests (Files): Likewise.
12691         * modules/remove-tests (Files): Likewise.
12692         * modules/rename-tests (Files): Likewise.
12693         * modules/renameat-tests (Files): Likewise.
12694         * modules/rmdir-tests (Files): Likewise.
12695         * modules/round-tests (Files): Likewise.
12696         * modules/roundf-tests (Files): Likewise.
12697         * modules/roundl-tests (Files): Likewise.
12698         * modules/select-tests (Files): Likewise.
12699         * modules/setenv-tests (Files): Likewise.
12700         * modules/sigaction-tests (Files): Likewise.
12701         * modules/sleep-tests (Files): Likewise.
12702         * modules/snprintf-posix-tests (Files): Likewise.
12703         * modules/snprintf-tests (Files): Likewise.
12704         * modules/sprintf-posix-tests (Files): Likewise.
12705         * modules/stat-tests (Files): Likewise.
12706         * modules/strcasestr-tests (Files): Likewise.
12707         * modules/strchrnul-tests (Files): Likewise.
12708         * modules/strerror-tests (Files): Likewise.
12709         * modules/strsignal-tests (Files): Likewise.
12710         * modules/strstr-tests (Files): Likewise.
12711         * modules/strtod-tests (Files): Likewise.
12712         * modules/strverscmp-tests (Files): Likewise.
12713         * modules/symlink-tests (Files): Likewise.
12714         * modules/symlinkat-tests (Files): Likewise.
12715         * modules/times-tests (Files): Likewise.
12716         * modules/trunc-tests (Files): Likewise.
12717         * modules/truncf-tests (Files): Likewise.
12718         * modules/truncl-tests (Files): Likewise.
12719         * modules/tsearch-tests (Files): Likewise.
12720         * modules/uname-tests (Files): Likewise.
12721         * modules/unlink-tests (Files): Likewise.
12722         * modules/unsetenv-tests (Files): Likewise.
12723         * modules/usleep-tests (Files): Likewise.
12724         * modules/utimensat-tests (Files): Likewise.
12725         * modules/vasprintf-tests (Files): Likewise.
12726         * modules/vdprintf-posix-tests (Files): Likewise.
12727         * modules/vfprintf-posix-tests (Files): Likewise.
12728         * modules/vprintf-posix-tests (Files): Likewise.
12729         * modules/vsnprintf-posix-tests (Files): Likewise.
12730         * modules/vsnprintf-tests (Files): Likewise.
12731         * modules/vsprintf-posix-tests (Files): Likewise.
12732         * modules/wcrtomb-tests (Files): Likewise.
12733         * modules/wcsnrtombs-tests (Files): Likewise.
12734         * modules/wcsrtombs-tests (Files): Likewise.
12735         * modules/wcwidth-tests (Files): Likewise.
12736         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
12737         * tests/test-isinf.c (isinf): Likewise.
12738         * tests/test-isnan.c (isnan): Likewise.
12739         * tests/test-signbit.c (signbit): Likewise.
12740         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
12741         declaration, either as macro or with correct signature.
12742         (select): Ensure function under test is declared with correct
12743         signature in correct header.
12744         * tests/test-atexit.c (atexit): Likewise.
12745         * tests/test-btowc.c (btowc): Likewise.
12746         * tests/test-canonicalize-lgpl.c (realpath)
12747         (canonicalize_file_name): Likewise.
12748         * tests/test-ceilf1.c (ceilf): Likewise.
12749         * tests/test-ceill.c (ceill): Likewise.
12750         * tests/test-chown.c (chown): Likewise.
12751         * tests/test-dprintf-posix.c (dprintf): Likewise.
12752         * tests/test-dup2.c (dup2): Likewise.
12753         * tests/test-dup3.c (dup3): Likewise.
12754         * tests/test-duplocale.c (duplocale): Likewise.
12755         * tests/test-fchdir.c (fchdir): Likewise.
12756         * tests/test-fchownat.c (fchownat): Likewise.
12757         * tests/test-fcntl.c (fcntl): Likewise.
12758         * tests/test-fdopendir.c (fdopendir): Likewise.
12759         * tests/test-fflush.c (fflush): Likewise.
12760         * tests/test-flock.c (flock): Likewise.
12761         * tests/test-floorf1.c (floorf): Likewise.
12762         * tests/test-floorl.c (floorl): Likewise.
12763         * tests/test-fnmatch.c (fnmatch): Likewise.
12764         * tests/test-fopen.c (fopen): Likewise.
12765         * tests/test-fprintf-posix.c (fprintf): Likewise.
12766         * tests/test-freopen.c (freopen): Likewise.
12767         * tests/test-frexp.c (frexp): Likewise.
12768         * tests/test-frexpl.c (frexpl): Likewise.
12769         * tests/test-fseek.c (fseek): Likewise.
12770         * tests/test-fseeko.c (fseeko): Likewise.
12771         * tests/test-fstatat.c (fstatat): Likewise.
12772         * tests/test-fsync.c (fsync): Likewise.
12773         * tests/test-ftell.c (ftell): Likewise.
12774         * tests/test-ftello.c (ftello): Likewise.
12775         * tests/test-futimens.c (futimens): Likewise.
12776         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
12777         (gai_strerror): Likewise.
12778         * tests/test-getcwd.c (getcwd): Likewise.
12779         * tests/test-getdelim.c (getdelim): Likewise.
12780         * tests/test-getdtablesize.c (getdtablesize): Likewise.
12781         * tests/test-getgroups.c (getgroups): Likewise.
12782         * tests/test-gethostname.c (gethostname): Likewise.
12783         * tests/test-getline.c (getline): Likewise.
12784         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
12785         Likewise.
12786         * tests/test-gettimeofday.c (gettimeofday): Likewise.
12787         * tests/test-glob.c (glob, globfree): Likewise.
12788         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
12789         * tests/test-inet_ntop.c (inet_ntop): Likewise.
12790         * tests/test-inet_pton.c (inet_pton): Likewise.
12791         * tests/test-isblank.c (isblank): Likewise.
12792         * tests/test-lchown.c (lchown): Likewise.
12793         * tests/test-ldexpl.c (ldexpl): Likewise.
12794         * tests/test-link.c (link): Likewise.
12795         * tests/test-linkat.c (linkat): Likewise.
12796         * tests/test-lseek.c (lseek): Likewise.
12797         * tests/test-lstat.c (lstat): Likewise.
12798         * tests/test-mbrtowc.c (mbrtowc): Likewise.
12799         * tests/test-mbsinit.c (mbsinit): Likewise.
12800         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
12801         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
12802         * tests/test-memchr.c (memchr): Likewise.
12803         * tests/test-memcmp.c (memcmp): Likewise.
12804         * tests/test-memmem.c (memmem): Likewise.
12805         * tests/test-memrchr.c (memrchr): Likewise.
12806         * tests/test-mkdir.c (mkdir): Likewise.
12807         * tests/test-mkdirat.c (mkdirat): Likewise.
12808         * tests/test-mkfifo.c (mkfifo): Likewise.
12809         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
12810         * tests/test-mknod.c (mknod): Likewise.
12811         * tests/test-nanosleep.c (nanosleep): Likewise.
12812         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
12813         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
12814         Likewise.
12815         * tests/test-open.c (open): Likewise.
12816         * tests/test-openat.c (openat): Likewise.
12817         * tests/test-perror.c (perror): Likewise.
12818         * tests/test-pipe2.c (pipe2): Likewise.
12819         * tests/test-poll.c (poll): Likewise.
12820         * tests/test-popen.c (popen, pclose): Likewise.
12821         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
12822         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
12823         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
12824         (posix_spawn_file_actions_destroy)
12825         (posix_spawn_file_actions_addclose)
12826         (posix_spawn_file_actions_addopen)
12827         (posix_spawn_file_actions_adddup2): Likewise.
12828         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
12829         * tests/test-pread.c (pread): Likewise.
12830         * tests/test-printf-posix.c (printf): Likewise.
12831         * tests/test-pty.c (openpty, forkpty): Likewise.
12832         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
12833         (random_r): Likewise.
12834         * tests/test-rawmemchr.c (rawmemchr): Likewise.
12835         * tests/test-readlink.c (readlink): Likewise.
12836         * tests/test-remove.c (remove): Likewise.
12837         * tests/test-rename.c (rename): Likewise.
12838         * tests/test-renameat.c (renameat): Likewise.
12839         * tests/test-rmdir.c (rmdir): Likewise.
12840         * tests/test-round1.c (round): Likewise.
12841         * tests/test-roundf1.c (roundf): Likewise.
12842         * tests/test-roundl.c (roundl): Likewise.
12843         * tests/test-setenv.c (setenv): Likewise.
12844         * tests/test-sigaction.c (sigaction): Likewise.
12845         * tests/test-sleep.c (sleep): Likewise.
12846         * tests/test-snprintf.c (snprintf): Likewise.
12847         * tests/test-sprintf-posix.c (sprintf): Likewise.
12848         * tests/test-stat.c (stat): Likewise.
12849         * tests/test-stpncpy.c (stpncpy): Likewise.
12850         * tests/test-strcasestr.c (strcasestr): Likewise.
12851         * tests/test-strchrnul.c (strchrnul): Likewise.
12852         * tests/test-strerror.c (strerror): Likewise.
12853         * tests/test-strsignal.c (strsignal): Likewise.
12854         * tests/test-strstr.c (strstr): Likewise.
12855         * tests/test-strtod.c (strtod): Likewise.
12856         * tests/test-strverscmp.c (strverscmp): Likewise.
12857         * tests/test-symlink.c (symlink): Likewise.
12858         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
12859         * tests/test-times.c (times): Likewise.
12860         * tests/test-trunc1.c (trunc): Likewise.
12861         * tests/test-truncf1.c (truncf): Likewise.
12862         * tests/test-truncl.c (truncl): Likewise.
12863         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
12864         Likewise.
12865         * tests/test-uname.c (uname): Likewise.
12866         * tests/test-unlink.c (unlink): Likewise.
12867         * tests/test-unlinkat.c (unlinkat): Likewise.
12868         * tests/test-unsetenv.c (unsetenv): Likewise.
12869         * tests/test-usleep.c (usleep): Likewise.
12870         * tests/test-utimensat.c (utimensat): Likewise.
12871         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
12872         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
12873         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
12874         * tests/test-vprintf-posix.c (vprintf): Likewise.
12875         * tests/test-vsnprintf.c (vsnprintf): Likewise.
12876         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
12877         * tests/test-wcrtomb.c (wcrtomb): Likewise.
12878         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
12879         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
12880         * tests/test-wcwidth.c (wcwidth): Likewise.
12881
12882         build: pull in conditional headers during GNULIB_POSIXCHECK
12883         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
12884         definitions from any conditionally-included headers.
12885         * lib/stdlib.in.h (includes): Likewise.
12886         * lib/unistd.in.h (includes): Likewise.
12887
12888 2009-12-24  Bruno Haible  <bruno@clisp.org>
12889
12890         * tests/test-argv-iter.c: Include header file being tested immediately
12891         after config.h.
12892         * tests/test-base64.c: Likewise.
12893         * tests/test-flock.c: Likewise.
12894         * tests/test-fsync.c: Likewise.
12895         * tests/test-getdate.c: Likewise.
12896         * tests/test-getndelim2.c: Likewise.
12897         * tests/test-isfinite.c: Likewise.
12898         * tests/test-isinf.c: Likewise.
12899         * tests/test-strerror.c: Likewise.
12900         * tests/test-strsignal.c: Likewise.
12901
12902 2009-12-23  Eric Blake  <ebb9@byu.net>
12903
12904         unistd: work around cygwin bug
12905         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
12906         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
12907         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12908
12909 2009-12-23  Bruno Haible  <bruno@clisp.org>
12910
12911         localename: More tests.
12912         * tests/test-localename.c (SIZEOF): New macro.
12913         (categories): New variable.
12914         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
12915         test_locale_name_default): Add test w.r.t. thread locale.
12916         (test_locale_name_thread): New function.
12917         (main): Invoke it.
12918
12919         localename: Make aware of thread locale.
12920         * lib/localename.h (gl_locale_name_thread): New declaration.
12921         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
12922         behaviour with respect to thread locale.
12923         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
12924         <langinfo.h>, glthread/lock.h.
12925         (SIZE_BITS): New macro.
12926         (string_hash): New function.
12927         (struct hash_node): New type.
12928         (HASH_TABLE_SIZE): New macro.
12929         (struniq_hash_table, struniq_lock): New variables.
12930         (struniq): New function.
12931         (gl_locale_name_thread): New function.
12932         (gl_locale_name): Invoke it.
12933         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
12934         * modules/localename (Depends-on): Add lock.
12935         Reported by Mike Gran <spk121@yahoo.com>.
12936
12937 2009-12-23  Eric Blake  <ebb9@byu.net>
12938
12939         va-args: new module
12940         * modules/va-args: New file.
12941         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
12942         * MODULES.html.sh (Core language properties): Mention it.
12943
12944         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
12945         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
12946         named alias for __attribute__((__unused__)).
12947         * lib/chown.c: Update client.
12948         * lib/fchmodat.c: Likewise.
12949         * lib/fts.c: Likewise.
12950         * lib/getdate.y: Likewise.
12951         * lib/getgroups.c: Likewise.
12952         * lib/getopt.c: Likewise.
12953         * lib/getugroups.c: Likewise.
12954         * lib/mkdir.c: Likewise.
12955         * lib/mkfifo.c: Likewise.
12956         * lib/mkfifoat.c: Likewise.
12957         * lib/mknod.c: Likewise.
12958         * lib/mknodat.c: Likewise.
12959         * lib/readlink.c: Likewise.
12960         * lib/se-context.in.h: Likewise.
12961         * lib/se-selinux.in.h: Likewise.
12962         * lib/sockets.c: Likewise.
12963         * lib/symlink.c: Likewise.
12964         * lib/symlinkat.c: Likewise.
12965         * lib/unicodeio.c: Likewise.
12966         * lib/unistr.h: Likewise.
12967         * tests/test-areadlink.c: Likewise.
12968         * tests/test-areadlinkat.c: Likewise.
12969         * tests/test-filenamecat.c: Likewise.
12970         * tests/test-fseeko.c: Likewise.
12971         * tests/test-ftello.c: Likewise.
12972         * tests/test-getdate.c: Likewise.
12973         * tests/test-getgroups.c: Likewise.
12974         * tests/test-gethostname.c: Likewise.
12975         * tests/test-quotearg.c: Likewise.
12976         * tests/test-version-etc.c: Likewise.
12977         * tests/test-xalloc-die.c: Likewise.
12978         * tests/test-xfprintf-posix.c: Likewise.
12979         * tests/test-xprintf-posix.c: Likewise.
12980         * tests/test-xvasprintf.c: Likewise.
12981
12982         tests: avoid compiler warnings
12983         * tests/test-fcntl.c (main): Delete unused parameters.
12984         * tests/test-freopen-safer.c (main): Likewise.
12985         * tests/test-xalloc-die.c (main): Mark unused parameters.
12986         * tests/test-fseeko.c (main): Likewise.
12987         * tests/test-ftello.c (main): Likewise.
12988         * tests/test-nanosleep.c (main): Avoid declaration warning.
12989         * tests/test-sleep.c (main): Likewise.
12990         * tests/test-unsetenv.c (main): Silence warning about string
12991         literal.
12992         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12993
12994 2009-12-23  Bruno Haible  <bruno@clisp.org>
12995
12996         * tests/test-localename.c (test_locale_name): New function, extracted
12997         from main. Also test mixed situations.
12998         (test_locale_name_posix, test_locale_name_environ,
12999         test_locale_name_default): New functions.
13000         (main): Invoke them all.
13001         * modules/localename-tests (configure.ac): Test for newlocale.
13002
13003 2009-12-23  Bruno Haible  <bruno@clisp.org>
13004
13005         unistd: Ensure getcwd gets declared before being overridden.
13006         * lib/unistd.in.h: Conditionally include <io.h>.
13007
13008 2009-12-22  Bruno Haible  <bruno@clisp.org>
13009
13010         wchar: Diagnose broken combination of glibc and gcc versions and flags.
13011         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
13012         (gl_WCHAR_H): Invoke it.
13013         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
13014         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
13015         Reported by Karl Berry <karl@freefriends.org>.
13016
13017 2009-12-22  Eric Blake  <ebb9@byu.net>
13018
13019         math, unistd: avoid redundant includes
13020         * lib/math.in.h (isnan): No need to re-include <math.h>.
13021         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
13022
13023         getsubopt: work around cygwin bug
13024         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
13025         avoid conflicting with system getsubopt.
13026         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
13027         bug.
13028
13029         getopt: synchronize from glibc
13030         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
13031         parameter order.  Adjust all callers.
13032         (_getopt_internal_r, main): Adjust quoting in error messages.
13033         Drop considerations for outdated POSIX 1003.2 error message.
13034         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
13035         callers.
13036         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
13037
13038         test-getopt: test stderr behavior
13039         * modules/getopt-posix-tests (Depends-on): Add dup2.
13040         * tests/test-getopt.c (ASSERT): Avoid stderr.
13041         (main): Move stderr to a temporary file.
13042         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
13043         Instead, add parameter to inform caller if output occurred.
13044         (test_getopt): Adjust all existing tests to expect silence, and
13045         add new tests of leading ":".
13046         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
13047         glibc shortcomings with leading "-:" or "+:" in optstring.
13048         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13049         Likewise.
13050         * doc/posix-functions/getopt.texi (getopt): Likewise.
13051
13052         test-getopt: enhance test
13053         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
13054         supports optind=0.
13055         * tests/test-getopt.c (OPTIND_MIN): Move...
13056         * tests/test-getopt.h (OPTIND_MIN): ...here.
13057         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
13058         Require that optind=0 works, since modern BSD supports it in
13059         addition to optreset, and since coreutils expects it.
13060         (test_getopt_long_only): New test.
13061         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
13062         glibc shortcomings with 'W;', and enforcement of optind=0.
13063         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13064         Likewise.
13065
13066 2009-12-21  Bruno Haible  <bruno@clisp.org>
13067
13068         localename: Improvements for MacOS X and Cygwin.
13069         * lib/localename.h (gl_locale_name_environ): New declaration.
13070         * lib/localename.c (gl_locale_name_environ): New function, extracted from
13071         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
13072         (gl_locale_name_posix): Invoke it.
13073         (gl_locale_name_default): Add comments. Use Windows native API also on
13074         Cygwin.
13075
13076 2009-12-21  Bruno Haible  <bruno@clisp.org>
13077
13078         Update list of Win32 locale ids.
13079         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
13080         (LANG_SAMI): Renamed from LANG_SAAMI.
13081         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
13082         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
13083         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
13084         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
13085         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
13086         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
13087         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
13088         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
13089         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
13090         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
13091         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
13092         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
13093         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
13094         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
13095         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
13096         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
13097         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
13098         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
13099         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
13100         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
13101         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
13102         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
13103         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
13104         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
13105         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
13106         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
13107         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
13108         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
13109         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
13110         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
13111         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
13112         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
13113         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
13114         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
13115         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
13116         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
13117         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
13118         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
13119         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
13120         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
13121         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
13122         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
13123         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
13124         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
13125         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
13126         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
13127         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
13128         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
13129         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
13130         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
13131         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
13132         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
13133         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
13134         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
13135         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
13136         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
13137         Add more languages and countries for Sami, Sorbian. Add more countries
13138         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
13139         for Pashto. Change country for Syriac, Tswana.
13140
13141 2009-12-21  Eric Blake  <ebb9@byu.net>
13142
13143         test-utimens: avoid spurious failure
13144         * tests/test-chown.h (nap): Factor...
13145         * tests/nap.h: ...into new file.
13146         * tests/test-lchown.h (nap): Avoid duplication.
13147         * tests/test-utimens-common.h (nap): Use shared implementation,
13148         necessary on file systems with 1-second resolution.
13149         * modules/chown-tests (Files): Include new file.
13150         * modules/fdutimensat-tests (Files): Likewise.
13151         * modules/futimens-tests (Files): Likewise.
13152         * modules/lchown-tests (Files): Likewise.
13153         * modules/openat-tests (Files): Likewise.
13154         * modules/utimens-tests (Files): Likewise.
13155         * modules/utimensat-tests (Files): Likewise.
13156
13157 2009-12-19  Eric Blake  <ebb9@byu.net>
13158
13159         futimens, utimensat: work around Linux bug
13160         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
13161         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13162         * lib/utimensat.c (rpl_utimensat): Work around it.
13163         * lib/futimens.c (rpl_futimens): Adjust comment.
13164
13165         utimens: work around Linux ctime bug
13166         * lib/utimens.c (detect_ctime_bug): New helper function.
13167         (update_timespec): Differentiate between workaround needed for
13168         this bug vs. what is needed for systems that lack utimensat.
13169         (fdutimens, lutimens): Work around bug.
13170
13171         utimens: check for ctime update
13172         * tests/test-utimens-common.h (check_ctime): Define.
13173         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
13174         * tests/test-futimens.h (test_futimens): Likewise.
13175         * tests/test-lutimens.h (test_lutimens): Likewise.
13176         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13177         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13178
13179 2009-12-19  Bruno Haible  <bruno@clisp.org>
13180
13181         dprintf-posix: Check against memory leak fixed on 2009-12-15.
13182         * tests/test-dprintf-posix2.sh: New file.
13183         * tests/test-dprintf-posix2.c: New file.
13184         * modules/dprintf-posix-tests (Files): Add them.
13185         (configure.ac): Check for getrlimit and setrlimit.
13186         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
13187
13188 2009-12-19  Bruno Haible  <bruno@clisp.org>
13189
13190         fprintf-posix: Check against memory leak fixed on 2009-12-15.
13191         * tests/test-fprintf-posix3.sh: New file.
13192         * tests/test-fprintf-posix3.c: New file.
13193         * modules/fprintf-posix-tests (Files): Add them.
13194         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
13195
13196 2009-12-19  Eric Blake  <ebb9@byu.net>
13197
13198         dirfd: fix prototype
13199         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
13200         * lib/dirfd.c (dirfd): Likewise.
13201
13202         canonicalize: reduce memory usage
13203         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
13204         allocation to size.
13205         Reported by Solar Designer <solar@openwall.com>.
13206
13207 2009-12-19  Bruno Haible  <bruno@clisp.org>
13208
13209         New module attribute 'Applicability'.
13210         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
13211         * gnulib-tool: New option --extract-applicability.
13212         (func_usage): Document it.
13213         (sed_extract_prog): Recognize it.
13214         (func_get_applicability): New function.
13215         (func_import): Generalize handling of 'link-warning' module.
13216         * modules/link-warning (Applicability): New section.
13217         * modules/arg-nonnull (Applicability): New section.
13218         Repoted by Simon Josefsson <simon@josefsson.org>.
13219
13220 2009-12-19  Bruno Haible  <bruno@clisp.org>
13221
13222         fflush: tweak
13223         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
13224         * lib/fseeko.c (rpl_fseeko): Likewise.
13225
13226 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
13227
13228         * lib/gl_list.h: Fix typo in comment.
13229
13230 2009-12-16  Eric Blake  <ebb9@byu.net>
13231
13232         fcntl: use to simplify other modules
13233         * modules/cloexec (Depends-on): Add fcntl.
13234         * modules/fchdir (Depends-on): Likewise.
13235         * modules/fd-safer-flag (Depends-on): Likewise.
13236         * modules/unistd-safer (Depends-on): Likewise.
13237         * modules/dup3 (configure.ac): Set module indicator.
13238         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
13239         missing.
13240         * lib/fchdir.c (_gl_register_dup): Fix comment.
13241         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
13242         * lib/dup-safer.c (dup_safer): Likewise.
13243         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
13244         * lib/dup3.c (dup3): Likewise.
13245         * tests/test-fchdir.c (main): Enhance test.
13246         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
13247
13248         fcntl: port portions of fcntl to mingw
13249         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
13250         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
13251         replacement for mingw.
13252         * modules/fcntl (Description): Update.
13253         (Depends-on): Add dup2.
13254         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
13255         * modules/fcntl-h (Makefile.am): Substitute it.
13256         * lib/fcntl.in.h (fcntl): Update declaration.
13257         (F_DUPFD, F_GETFD): New macros, when needed.
13258         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
13259         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
13260         * tests/test-fcntl.c (check_flags, main): Enhance test for items
13261         we now guarantee.
13262
13263         fcntl: work around cygwin bug in F_DUPFD
13264         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
13265         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
13266         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
13267         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
13268         * doc/posix-functions/fcntl.texi (fcntl): Document it.
13269
13270         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
13271         * modules/fcntl (Files): List new files.
13272         (configure.ac): Run a test.
13273         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
13274         * lib/fcntl.c (rpl_fcntl): Likewise.
13275         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
13276         (gl_FCNTL_H): Always replace fcntl.h.
13277         * modules/fcntl-h (Makefile.am): Substitute witnesses.
13278         * lib/fcntl.in.h (fcntl): Declare replacement.
13279         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
13280         needed, plus a witness.
13281         * doc/posix-functions/fcntl.texi (fcntl): Document this.
13282         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
13283         * tests/test-fcntl.c: New file.
13284         * modules/fcntl-tests: Likewise.
13285
13286         binary-io: avoid potential compilation warning
13287         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
13288         directives.
13289
13290         fflush: avoid compilation error on NetBSD
13291         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
13292         between off_t and fpos_t, since the latter is sometimes a struct.
13293         * lib/fseeko.c (rpl_fseeko): Likewise.
13294         Reported by Alexander Nasonov <alnsn@yandex.ru>.
13295
13296 2009-12-15  Eric Blake  <ebb9@byu.net>
13297
13298         fcntl-h, stdio, sys_ioctl: fix declarations
13299         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
13300         function must not take arguments.
13301         * lib/sys_ioctl.in.h (ioctl): Likewise.
13302         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
13303         (open): Add a link warning.
13304
13305 2009-12-15  Jim Meyering  <meyering@redhat.com>
13306
13307         areadlink, areadlink-with-size: relax license to LGPLv2+
13308         * modules/areadlink (License): Relax to LGPLv2+.
13309         * modules/areadlink-with-size (License): Likewise.
13310
13311 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
13312             Bruno Haible  <bruno@clisp.org>
13313
13314         *printf: Fix memory leak.
13315         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
13316         * lib/vfprintf.c (vfprintf): Likewise.
13317         * lib/dprintf.c (dprintf): Likewise.
13318         * lib/vdprintf.c (vdprintf): Likewise.
13319
13320 2009-12-14  Eric Blake  <ebb9@byu.net>
13321
13322         accept4: adjust module dependencies
13323         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
13324
13325         utimens: one more try at avoiding compiler warning
13326         * lib/utimens.c (lutimens): Lower scope of result.
13327
13328 2009-12-13  Bruno Haible  <bruno@clisp.org>
13329
13330         Move the malloc checking from module 'list' to new module 'xlist'.
13331         * modules/xlist: New file.
13332         * lib/gl_xlist.h: New file.
13333         * lib/gl_xlist.c: New file.
13334         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
13335         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
13336         gl_list_add_last, gl_list_add_before, gl_list_add_after,
13337         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
13338         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
13339         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
13340         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
13341         gl_sortedlist_nx_add): New declarations.
13342         (struct gl_list_implementation): Rename and change methods accordingly.
13343         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
13344         (gl_list_nx_create): Renamed from gl_list_create.
13345         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13346         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13347         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13348         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13349         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13350         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13351         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13352         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13353         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
13354         gl_list_create_empty.
13355         (gl_list_nx_create): Renamed from gl_list_create.
13356         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13357         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13358         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13359         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13360         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13361         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13362         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13363         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13364         * lib/gl_array_list.c: Don't include xalloc.h.
13365         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
13366         NULL upon out-of-memory.
13367         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
13368         out-of-memory.
13369         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
13370         Change return type to 'int'.
13371         (gl_array_nx_set_at): Renamed from gl_array_set_at.
13372         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13373         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
13374         upon out-of-memory.
13375         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
13376         upon out-of-memory.
13377         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
13378         upon out-of-memory.
13379         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
13380         upon out-of-memory.
13381         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
13382         out-of-memory.
13383         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
13384         Update.
13385         (gl_array_list_implementation): Update.
13386         * lib/gl_carray_list.c: Don't include xalloc.h.
13387         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
13388         Return NULL upon out-of-memory.
13389         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
13390         out-of-memory.
13391         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
13392         Change return type to 'int'.
13393         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
13394         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13395         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
13396         upon out-of-memory.
13397         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
13398         upon out-of-memory.
13399         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
13400         out-of-memory.
13401         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
13402         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
13403         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
13404         Update.
13405         (gl_carray_list_implementation): Update.
13406         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
13407         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
13408         gl_linked_create_empty. Return NULL upon out-of-memory.
13409         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
13410         out-of-memory.
13411         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
13412         Change return type to 'int'. Return -1 upon out-of-memory.
13413         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
13414         out-of-memory.
13415         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
13416         upon out-of-memory.
13417         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
13418         upon out-of-memory.
13419         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
13420         NULL upon out-of-memory.
13421         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
13422         upon out-of-memory.
13423         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
13424         out-of-memory.
13425         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
13426         Update.
13427         * lib/gl_linked_list.c: Don't include xalloc.h.
13428         (gl_linked_list_implementation): Update.
13429         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
13430         (add_to_bucket): Change return type to 'int'.
13431         (gl_linkedhash_list_implementation): Update.
13432         * lib/gl_anytree_list1.h (free_subtree): New function.
13433         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
13434         gl_tree_create_empty. Return NULL upon out-of-memory.
13435         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
13436         Change return type to 'int'. Return -1 upon out-of-memory.
13437         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
13438         out-of-memory.
13439         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
13440         (gl_tree_remove_node): New function, moved here from
13441         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
13442         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
13443         Update.
13444         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
13445         malloc, not xmalloc. Return NULL upon out-of-memory.
13446         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13447         out-of-memory.
13448         (gl_tree_remove_node_from_tree): New function, extracted from
13449         gl_tree_remove_node.
13450         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13451         upon out-of-memory.
13452         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13453         out-of-memory.
13454         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13455         upon out-of-memory.
13456         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13457         upon out-of-memory.
13458         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13459         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
13460         not xmalloc. Return NULL upon out-of-memory.
13461         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13462         out-of-memory.
13463         (gl_tree_remove_node_from_tree): New function, extracted from
13464         gl_tree_remove_node.
13465         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13466         upon out-of-memory.
13467         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13468         out-of-memory.
13469         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13470         upon out-of-memory.
13471         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13472         upon out-of-memory.
13473         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13474         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
13475         gl_anytree_list1.h before gl_anyavltree_list2.h.
13476         (gl_avltree_list_implementation): Update.
13477         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
13478         gl_anytree_list1.h before gl_anyavltree_list2.h.
13479         (gl_rbtree_list_implementation): Update.
13480         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
13481         Change return type to 'int'. Return -1 upon out-of-memory. Use
13482         __builtin_expect.
13483         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
13484         (gl_avltreehash_list_implementation): Update.
13485         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
13486         (gl_rbtreehash_list_implementation): Update.
13487         * modules/array-list (Depends-on): Remove xalloc.
13488         * modules/carray-list (Depends-on): Likewise.
13489         * modules/linked-list (Depends-on): Likewise.
13490         * modules/linkedhash-list (Depends-on): Likewise.
13491         * modules/avltree-list (Depends-on): Likewise.
13492         * modules/rbtree-list (Depends-on): Likewise.
13493         * modules/avltreehash-list (Depends-on): Likewise.
13494         * modules/rbtreehash-list (Depends-on): Likewise.
13495
13496         * modules/xsublist: New file.
13497         * lib/gl_xsublist.h: New file.
13498         * lib/gl_xsublist.c: New file.
13499         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
13500         (gl_sublist_nx_create): New declaration.
13501         * lib/gl_sublist.c: Don't include xalloc.h.
13502         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
13503         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
13504         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
13505         Change return type to 'int'. Return -1 upon out-of-memory.
13506         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
13507         upon out-of-memory.
13508         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
13509         NULL upon out-of-memory.
13510         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
13511         upon out-of-memory.
13512         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
13513         NULL upon out-of-memory.
13514         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
13515         NULL upon out-of-memory.
13516         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
13517         upon out-of-memory.
13518         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
13519         (gl_sublist_list_implementation): Update.
13520         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
13521         upon out-of-memory.
13522         * modules/sublist (Depends-on): Remove xalloc.
13523
13524         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
13525         * tests/test-carray_list.c: Likewise.
13526         * tests/test-linked_list.c: Likewise.
13527         * tests/test-linkedhash_list.c: Likewise.
13528         * tests/test-avltree_list.c: Likewise.
13529         * tests/test-rbtree_list.c: Likewise.
13530         * tests/test-avltreehash_list.c: Likewise.
13531         * tests/test-rbtreehash_list.c: Likewise.
13532         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
13533         * modules/carray-list-tests (Makefile.am): Likewise.
13534         * modules/linked-list-tests (Makefile.am): Likewise.
13535         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13536         * modules/avltree-list-tests (Makefile.am): Likewise.
13537         * modules/rbtree-list-tests (Makefile.am): Likewise.
13538         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13539         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13540
13541         * NEWS: Mention the changes.
13542
13543         * lib/clean-temp.c: Include gl_xlist.h.
13544         * modules/clean-temp (Depends-on): Add xlist.
13545
13546         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
13547         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
13548
13549         * tests/test-array_oset.c: Include gl_xlist.h.
13550         * modules/array-oset-tests (Depends-on): Add xlist.
13551
13552         Reported by José E. Marchesi <jemarch@gnu.org>.
13553
13554 2009-12-13  Bruno Haible  <bruno@clisp.org>
13555
13556         Move the malloc checking from module 'oset' to new module 'xoset'.
13557         * modules/xoset: New file.
13558         * lib/gl_xoset.h: New file.
13559         * lib/gl_xoset.c: New file.
13560         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
13561         declarations.
13562         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
13563         (struct gl_oset_implementation): Rename and change methods accordingly.
13564         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
13565         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13566         'int'. Mark as __warn_unused_result__.
13567         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
13568         gl_oset_create_empty.
13569         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13570         'int'.
13571         * lib/gl_array_oset.c: Don't include xalloc.h.
13572         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
13573         malloc, not xmalloc.
13574         (grow): Change return type to 'int'. Don't call xalloc_die.
13575         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
13576         to 'int'.
13577         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
13578         'int'.
13579         (gl_array_oset_implementation): Update.
13580         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
13581         gl_tree_create_empty.
13582         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
13583         'int'.
13584         * lib/gl_avltree_oset.c: Don't include xalloc.h.
13585         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13586         xmalloc.
13587         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13588         not xmalloc.
13589         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13590         xmalloc.
13591         (gl_avltree_oset_implementation): Update.
13592         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
13593         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13594         xmalloc.
13595         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13596         not xmalloc.
13597         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13598         xmalloc.
13599         (gl_rbtree_oset_implementation): Update.
13600         * modules/array-oset (Depends-on): Remove xalloc.
13601         * modules/avltree-oset (Depends-on): Likewise.
13602         * modules/rbtree-oset (Depends-on): Likewise.
13603         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
13604         * tests/test-avltree_oset.c: Likewise.
13605         * tests/test-rbtree_oset.c: Likewise.
13606         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
13607         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
13608         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13609         * NEWS: Mention the change.
13610
13611 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
13612
13613         maint.mk: allow a project to override release-prep commands
13614         * top/maint.mk (alpha, beta, stable): Move release-preparatory
13615         commands into a new rule.
13616         (release-prep): New rule.
13617         (release-prep-hook): New overridable variable.
13618
13619 2009-12-13  Bruno Haible  <bruno@clisp.org>
13620
13621         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
13622
13623 2009-12-13  Jim Meyering  <meyering@redhat.com>
13624
13625         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
13626         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
13627
13628 2009-12-12  Bruno Haible  <bruno@clisp.org>
13629
13630         duplocale: Tweak.
13631         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
13632
13633 2009-12-12  Karl Berry  <karl@gnu.org>
13634
13635         * config/srclist.txt (strtoll.c): tab changes, no more sync.
13636
13637 2009-12-12  Bruno Haible  <bruno@clisp.org>
13638
13639         * m4/po.m4: Undo incorrect untabification.
13640
13641 2009-12-12  Bruno Haible  <bruno@clisp.org>
13642
13643         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
13644         * modules/c-strtod (Depends-on): Add locale.
13645         * modules/c-strtold (Depends-on): Likewise.
13646
13647 2009-12-12  Bruno Haible  <bruno@clisp.org>
13648
13649         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
13650
13651 2009-12-11  Eric Blake  <ebb9@byu.net>
13652
13653         setenv: relax requirement in light of POSIX ruling
13654         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
13655         not NULL.
13656         * tests/test-setenv.c (main): Relax test.
13657         * tests/test-unsetenv.c (main): Likewise.
13658         * doc/posix-functions/setenv.texi (setenv): Document this.
13659         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13660
13661 2009-12-11  Bruno Haible  <bruno@clisp.org>
13662
13663         New module 'fd-safer-flag'.
13664         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
13665         * lib/dup-safer.c (dup_safer_flag): Remove function.
13666         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
13667         * lib/fd-safer.c (fd_safer_flag): Remove function.
13668         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
13669         * modules/cloexec (configure.ac): Drop indicator macro.
13670         * modules/fd-safer-flag: New file.
13671         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
13672         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
13673         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
13674
13675 2009-12-11  Bruno Haible  <bruno@clisp.org>
13676
13677         Tests for module 'nl_langinfo'.
13678         * modules/nl_langinfo-tests: New file.
13679         * tests/test-nl_langinfo.sh: New file.
13680         * tests/test-nl_langinfo.c: New file.
13681
13682         New module 'nl_langinfo'.
13683         * lib/nl_langinfo.c: New file.
13684         * m4/nl_langinfo.m4: New file.
13685         * modules/nl_langinfo: New file.
13686         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
13687
13688 2009-12-11  Bruno Haible  <bruno@clisp.org>
13689
13690         Tests for module 'langinfo'.
13691         * modules/langinfo-tests: New file.
13692         * tests/test-langinfo.c: New file.
13693
13694         New module 'langinfo'.
13695         * lib/langinfo.in.h: New file.
13696         * m4/langinfo_h.m4: New file.
13697         * modules/langinfo: New file.
13698         * doc/posix-headers/langinfo.texi: Mention the new module.
13699
13700 2009-12-11  Bruno Haible  <bruno@clisp.org>
13701
13702         * lib/config.charset: Untabify.
13703
13704 2009-12-11  Bruno Haible  <bruno@clisp.org>
13705
13706         * modules/unistd-safer (configure.ac): Drop indicator macro.
13707
13708 2009-12-11  Bruno Haible  <bruno@clisp.org>
13709
13710         Move pipe2-safer code to its own file.
13711         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
13712         * lib/pipe-safer.c (pipe2_safer): Remove function.
13713         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
13714         (Makefile.am): Add it to lib_SOURCES.
13715
13716 2009-12-10  Bruno Haible  <bruno@clisp.org>
13717
13718         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
13719
13720 2009-12-10  Bruno Haible  <bruno@clisp.org>
13721
13722         Declare which arguments expect non-NULL values, for GCC and clang.
13723         * build-aux/arg-nonnull.h: New file.
13724         * modules/arg-nonnull: New file.
13725         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
13726         (inet_ntop, inet_pton): Use it.
13727         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
13728         (closedir, dirfd, opendir, scandir, alphasort): Use it.
13729         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
13730         (open, openat): Use it.
13731         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
13732         (fnmatch): Use it.
13733         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
13734         (getopt, getopt_long, getopt_long_only): Use it.
13735         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
13736         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
13737         Use it.
13738         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
13739         (iconv_open): Use it.
13740         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
13741         (strtoimax, strtoumax): Use it.
13742         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
13743         (duplocale): Use it.
13744         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
13745         (frexp, frexpl): Use it.
13746         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
13747         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
13748         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
13749         (tsearch, tfind, tdelete, twalk): Use it.
13750         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
13751         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
13752         sigpending): Use it.
13753         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
13754         (posix_spawn, posix_spawnp, posix_spawnattr_init,
13755         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
13756         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
13757         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
13758         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
13759         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
13760         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
13761         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
13762         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
13763         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
13764         Use it.
13765         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
13766         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
13767         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
13768         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
13769         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
13770         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
13771         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
13772         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
13773         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
13774         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
13775         strtoull, unsetenv): Use it.
13776         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
13777         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
13778         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
13779         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
13780         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
13781         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
13782         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
13783         (strcasecmp, strncasecmp): Use it.
13784         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
13785         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
13786         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
13787         rpl_setsockopt): Use it.
13788         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
13789         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
13790         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
13791         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
13792         (gettimeofday): Use it.
13793         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
13794         (times): Use it.
13795         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
13796         (uname): Use it.
13797         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
13798         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
13799         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
13800         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
13801         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
13802         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
13803         unlinkat, write): Use it.
13804         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
13805         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
13806         * lib/argv-iter.h: Include arg-nonnull.h.
13807         (_ATTRIBUTE_NONNULL_): Remove macro.
13808         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
13809         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
13810         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
13811         optimization.
13812         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
13813         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
13814         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
13815         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
13816         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
13817         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
13818         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
13819         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
13820         * modules/arpa_inet (Depends-on): Add arg-nonnull.
13821         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
13822         * modules/dirent (Depends-on): Add arg-nonnull.
13823         (Makefile.am): Insert arg-nonnull.h into dirent.h.
13824         * modules/fcntl-h (Depends-on): Add arg-nonnull.
13825         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
13826         * modules/fnmatch (Depends-on): Add arg-nonnull.
13827         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
13828         * modules/getopt-posix (Depends-on): Add arg-nonnull.
13829         (Makefile.am): Insert arg-nonnull.h into getopt.h.
13830         * modules/glob (Depends-on): Add arg-nonnull.
13831         (Makefile.am): Insert arg-nonnull.h into glob.h.
13832         * modules/iconv_open (Depends-on): Add arg-nonnull.
13833         (Makefile.am): Insert arg-nonnull.h into iconv.h.
13834         * modules/inttypes (Depends-on): Add arg-nonnull.
13835         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
13836         * modules/locale (Depends-on): Add arg-nonnull.
13837         (Makefile.am): Insert arg-nonnull.h into locale.h.
13838         * modules/math (Depends-on): Add arg-nonnull.
13839         (Makefile.am): Insert arg-nonnull.h into math.h.
13840         * modules/netdb (Depends-on): Add arg-nonnull.
13841         (Makefile.am): Insert arg-nonnull.h into netdb.h.
13842         * modules/search (Depends-on): Add arg-nonnull.
13843         (Makefile.am): Insert arg-nonnull.h into search.h.
13844         * modules/signal (Depends-on): Add arg-nonnull.
13845         (Makefile.am): Insert arg-nonnull.h into signal.h.
13846         * modules/spawn (Depends-on): Add arg-nonnull.
13847         (Makefile.am): Insert arg-nonnull.h into spawn.h.
13848         * modules/stdio (Depends-on): Add arg-nonnull.
13849         (Makefile.am): Insert arg-nonnull.h into stdio.h.
13850         * modules/stdlib (Depends-on): Add arg-nonnull.
13851         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
13852         * modules/string (Depends-on): Add arg-nonnull.
13853         (Makefile.am): Insert arg-nonnull.h into string.h.
13854         * modules/strings (Depends-on): Add arg-nonnull.
13855         (Makefile.am): Insert arg-nonnull.h into strings.h.
13856         * modules/sys_socket (Depends-on): Add arg-nonnull.
13857         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
13858         * modules/sys_stat (Depends-on): Add arg-nonnull.
13859         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
13860         * modules/sys_time (Depends-on): Add arg-nonnull.
13861         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
13862         * modules/sys_times (Depends-on): Add arg-nonnull.
13863         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
13864         * modules/sys_utsname (Depends-on): Add arg-nonnull.
13865         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
13866         * modules/time (Depends-on): Add arg-nonnull.
13867         (Makefile.am): Insert arg-nonnull.h into time.h.
13868         * modules/unistd (Depends-on): Add arg-nonnull.
13869         (Makefile.am): Insert arg-nonnull.h into unistd.h.
13870         * modules/wchar (Depends-on): Add arg-nonnull.
13871         (Makefile.am): Insert arg-nonnull.h into wchar.h.
13872         * modules/argv-iter (Depends-on): Add arg-nonnull.
13873         * tests/test-canonicalize.c (null_ptr): New function.
13874         (main): Use it.
13875         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
13876         (main): Use it.
13877         * tests/test-memmem.c (null_ptr): New function.
13878         (main): Use it.
13879         Reported by Jim Meyering.
13880
13881 2009-12-10  Bruno Haible  <bruno@clisp.org>
13882
13883         Use spaces for indentation, not tabs.
13884         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13885         * m4/*.m4: Untabify.
13886         * build-aux/*.h: Untabify.
13887         * tests/**/*.[hc]: Untabify.
13888         * README: New section "Indent with spaces, not TABs", based on
13889         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
13890         * NEWS: Mention the change.
13891
13892 2009-12-10  Bruno Haible  <bruno@clisp.org>
13893
13894         pty test: Fix link error.
13895         * modules/pty-tests (Makefile.am): Add the default LDADD value to
13896         test_pty_LDADD.
13897
13898 2009-12-07  Simon Josefsson  <simon@josefsson.org>
13899
13900         * modules/pty: New file.
13901         * modules/pty-tests: New file.
13902         * m4/pty.m4: New file.
13903         * tests/test-pty.c: New file.
13904         * doc/glibc-headers/pty.texi: Modified.
13905         * doc/glibc-functions/forkpty.texi: Modified.
13906         * doc/glibc-functions/openpty.texi: Modified.
13907
13908 2009-12-10  Bruno Haible  <bruno@clisp.org>
13909
13910         Avoid syntax error in C++ mode.
13911         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
13912
13913 2009-12-10  Bruno Haible  <bruno@clisp.org>
13914
13915         Use sed with option -e.
13916         * gnulib-tool (func_version, func_emit_copyright_notice,
13917         func_emit_initmacro_end, func_import, func_create_testdir): Pass
13918         option -e to sed.
13919         * modules/link-warning (Makefile.am): Likewise.
13920
13921 2009-12-10  Jim Meyering  <meyering@redhat.com>
13922
13923         mgetgroups: do not write bytes beyond end of malloc'd buffer
13924         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
13925         username, we call getgroups with a one-element-shorter buffer,
13926         but still told it the length was original, max_n_groups.
13927
13928 2009-12-09  Eric Blake  <ebb9@byu.net>
13929
13930         cloexec: relax license
13931         * modules/cloexec (Maintainer): Add myself.
13932         (License): Use LGPL, not GPL.
13933
13934         link-warning: optimize generation
13935         * modules/link-warning (Makefile.am): Reduce process usage.
13936
13937 2009-12-09  Bruno Haible  <bruno@clisp.org>
13938
13939         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
13940         workaround was added on 2009-11-17.
13941
13942 2009-12-09  Jim Meyering  <meyering@redhat.com>
13943             Bruno Haible  <bruno@clisp.org>
13944
13945         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
13946         * modules/link-warning (Makefile.am): Make the comment-removing sed
13947         command more robust in the face of bootstrap-prepended comment lines.
13948
13949 2009-12-09  Bruno Haible  <bruno@clisp.org>
13950
13951         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
13952         most one group.
13953
13954 2009-12-09  Simon Josefsson <simon@josefsson.org>
13955             Bruno Haible  <bruno@clisp.org>
13956
13957         * build-aux/link-warning.h: Add copyright notice.
13958         * modules/link-warning (Makefile.am): Generate link-warning.h from
13959         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
13960         * NEWS: Mention change in link-warning module.
13961         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
13962         * modules/dirent (Makefile.am): Add dependency to dirent.h.
13963         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
13964         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
13965         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
13966         * modules/math (Makefile.am): Add dependency to math.h.
13967         * modules/search (Makefile.am): Add dependency to search.h.
13968         * modules/signal (Makefile.am): Add dependency to signal.h.
13969         * modules/spawn (Makefile.am): Add dependency to spawn.h.
13970         * modules/stdio (Makefile.am): Add dependency to stdio.h.
13971         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
13972         * modules/string (Makefile.am): Add dependency to string.h.
13973         * modules/strings (Makefile.am): Add dependency to strings.h.
13974         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
13975         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
13976         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
13977         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
13978         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
13979         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
13980         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
13981         * modules/unistd (Makefile.am): Add dependency to unistd.h.
13982         * modules/wchar (Makefile.am): Add dependency to wchar.h.
13983
13984 2009-12-09  Bruno Haible  <bruno@clisp.org>
13985
13986         fchdir: Optimize away rpl_fstat when possible.
13987         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
13988         REPLACE_OPEN_DIRECTORY.
13989         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
13990
13991 2009-12-09  Bruno Haible  <bruno@clisp.org>
13992
13993         * lib/fchdir.c: Update comment.
13994
13995 2009-12-09  Bruno Haible  <bruno@clisp.org>
13996
13997         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
13998
13999 2009-12-08  Eric Blake  <ebb9@byu.net>
14000
14001         fchdir: avoid memory leak on re-registration.
14002         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
14003
14004 2009-12-08  Jim Meyering  <meyering@redhat.com>
14005
14006         init.sh: avoid Solaris 10 /bin/sh portability problem
14007         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
14008         sourced script:
14009           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
14010           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
14011           bar
14012         tests/init.sh relied on that, accepting a --set-path=DIR argument,
14013         and two tests used that idiom.
14014         * tests/init.sh: Update suggested usage comments.
14015         (path_prepend_): New function, to be used in place
14016         of the --src-path=DIR option.
14017         (setup_): Move PATH-prepending code into path_prepend_.
14018         * tests/test-pread.sh: Adapt to new usage.
14019         * tests/test-xalloc-die.sh: Likewise.
14020
14021 2009-12-08  Simon Josefsson  <simon@josefsson.org>
14022
14023         * doc/gnulib.texi (Glibc pty.h): Add.
14024         * doc/glibc-functions/forkpty.texi: Add.
14025         * doc/glibc-functions/openpty.texi: Add.
14026         Suggested by Bruno Haible.
14027
14028 2009-12-08  Eric Blake  <ebb9@byu.net>
14029
14030         fchdir: fix logic bugs
14031         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
14032         * tests/test-fchdir.c (main): Enhance test.
14033         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
14034         is in use.
14035
14036         dup2: fix logic bugs
14037         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
14038         REPLACE_DUP2 to decide when rpl_dup2 is needed.
14039         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
14040         exists.
14041         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
14042
14043 2009-12-07  Eric Blake  <ebb9@byu.net>
14044
14045         unlink: fix m4 detection
14046         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
14047
14048         unistd-safer: add unit test
14049         * modules/unistd-safer-tests: New file.
14050         * tests/test-dup-safer.c: Likewise.
14051         * tests/test-cloexec.c (setmode): Avoid compiler warning.
14052         * tests/test-dup2.c (setmode): Likewise.
14053         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
14054
14055         cloexec: preserve text vs. binary across dup_cloexec
14056         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
14057         mode.
14058         * modules/dup2-tests (Depends-on): Add binary-io.
14059         * modules/cloexec-tests (Depends-on): Likewise.
14060         * tests/test-dup2.c (setmode, is_mode): New helpers.
14061         (main): Add tests that translation mode is preserved.
14062         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
14063         Reported by Bruno Haible.
14064
14065         mgetgroups: reduce duplicate listings
14066         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
14067         resulting array.
14068         * tests/test-chown.h (test_chown): Simplify client.
14069         * tests/test-lchown.h (test_lchown): Likewise.
14070
14071 2009-12-06  Bruno Haible  <bruno@clisp.org>
14072
14073         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
14074         value.
14075
14076 2009-12-06  Bruno Haible  <bruno@clisp.org>
14077
14078         * lib/progname.c: Include stdio.h, stdlib.h.
14079         (set_program_name): Reject a NULL argument.
14080
14081 2009-12-05  Eric Blake  <ebb9@byu.net>
14082
14083         pipe2-safer: new module
14084         * modules/pipe2-safer: New file.
14085         * lib/unistd-safer.h (pipe2_safer): New prototype.
14086         * lib/unistd--.h (pipe2): New wrapper.
14087         * lib/pipe-safer.c (pipe2_safer): New function.
14088         * modules/pipe (Depends-on): Add pipe2-safer.
14089         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
14090
14091         stdlib-safer: preserve cloexec flag for mkostemp[s]
14092         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
14093         fd_safer_flag.
14094
14095         unistd-safer: allow preservation of cloexec status via flag
14096         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
14097         prototypes.
14098         * lib/dup-safer.c (dup_safer_flag): New function.
14099         * lib/fd-safer.c (fd_safer_flag): Likewise.
14100         * modules/cloexec (configure.ac): Set witness.
14101
14102         test-dup2: enhance test
14103         * modules/dup2-tests (Depends-on): Add cloexec.
14104         * tests/test-dup2.c (main): Enhance test.
14105
14106         cloexec: add dup_cloexec
14107         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
14108         header and comments.
14109         * lib/cloexec.c (set_cloexec_flag): Add comments.
14110         (dup_cloexec): New function, with mingw implementation borrowed
14111         from...
14112         * lib/w32spawn.h (dup_noinherit): ...here.
14113         * modules/execute (Depends-on): Add cloexec.
14114         * modules/pipe (Depends-on): Likewise.
14115         * modules/cloexec (Depends-on): Add dup2.
14116         * modules/cloexec-tests (Files): New file.
14117         * tests/test-cloexec.c: Likewise.
14118
14119         test-xalloc-die: fix test for mingw
14120         * modules/xalloc-die-tests (Files): Add tests/init.sh.
14121         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
14122         directory and .exe suffix off argv[0] output.
14123
14124         test-fseeko: fix test for mingw
14125         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
14126         than undefining fseek, so test will pass on mingw.
14127
14128 2009-12-05  Bruno Haible  <bruno@clisp.org>
14129
14130         * lib/progname.h (set_program_name): Clarify specification.
14131         * lib/progname.c (set_program_name): Likewise.
14132         Reported by Jim Meyering.
14133
14134 2009-12-05  Jim Meyering  <meyering@redhat.com>
14135
14136         maint.mk: backslash-escape parens in default regexp
14137         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
14138         backslash-escape the literal parentheses.
14139
14140         maint.mk: news-date-check: use grep -E
14141         * top/maint.mk (today): Define a Make variable, not a...
14142         (news-date-check): ...shell variable.
14143         (news-date-regexp): Use the Make variable.
14144         Use grep's -E option.  Change the failing diagnostic to mention
14145         the variable, $(news-date-regexp).
14146
14147 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
14148
14149         maintainer-makefile: allow customization of NEWS entry format
14150         * top/maint.mk (news-date-regexp): New overridable variable.
14151         (news-date-check): Use it.
14152
14153 2009-12-04  Eric Blake  <ebb9@byu.net>
14154
14155         mgetgroups: add xgetgroups, and avoid ENOSYS failures
14156         * lib/mgetgroups.h (xgetgroups): New prototype.
14157         * lib/mgetgroups.c (xgetgroups): New wrapper.
14158         (mgetgroups): Handle ENOSYS.
14159         * modules/mgetgroups (Depends-on): Add realloc.
14160         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
14161
14162         mgetgroups: avoid argument promotion issues with -1
14163         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
14164         for invalid gid_t.
14165         * tests/test-chown.h (getegid, test_chown): Likewise.
14166         * tests/test-lchown.h (getegid, test_lchown): Likewise.
14167
14168 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
14169
14170         exclude: Fix header file problems.
14171         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
14172
14173 2009-12-01  Jim Meyering  <meyering@redhat.com>
14174
14175         fts: fts_open: do not let an empty string cause immediate failure
14176         This is required in support of GNU rm, for which the command
14177         "rm A '' B" must process and remove both A and B, in spite of
14178         the empty string argument.
14179         * lib/fts.c (fts_open): Do not let the presence of an empty string
14180         cause fts_open to fail immediately.  Most fts-using tools must be
14181         able to process all arguments, in order, and can be expected to
14182         diagnose such arguments themselves.
14183
14184 2009-11-30  Eric Blake  <ebb9@byu.net>
14185
14186         utimens: fix compilation error
14187         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
14188         Declare variable at right scope.
14189
14190 2009-11-29  Jim Meyering  <meyering@redhat.com>
14191
14192         bootstrap: handle perl-5.11's changed --version output
14193         * build-aux/bootstrap (get_version): Handle perl separately,
14194         since perl-5.11's --version output is different.
14195
14196 2009-11-28  Jim Meyering  <meyering@redhat.com>
14197
14198         userspec: depend on the inttostr module, too
14199         * modules/userspec (Depends-on): Add inttostr.
14200
14201         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
14202         * lib/userspec.c (parse_with_separator): Do not accept a user ID
14203         number of MAXUID when it evaluates to (uid_t) -1.
14204         Likewise for group ID.  Reported by Matt McCutchen in
14205         <http://savannah.gnu.org/bugs/?28113>
14206
14207         userspec: reformat to use spaces, not TABs
14208         * lib/userspec.c: Expand TABs to spaces.
14209         Add Emacs' "indent-tabs-mode: nil" hint.
14210
14211 2009-11-27  Eric Blake  <ebb9@byu.net>
14212
14213         getopt-gnu: flush out another BSD bug
14214         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
14215         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
14216         flush out BSD bug.
14217         * tests/test-getopt.h (test_getopt): End lists with NULL.
14218         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14219         (test_getopt_long_posix): Enhance test.
14220         * modules/getopt-posix-tests (Depends-on): Add stdbool.
14221         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
14222         getopt-gnu.
14223         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14224         Likewise.
14225
14226 2009-11-27  Simon Josefsson  <simon@josefsson.org>
14227
14228         * modules/idpriv-droptemp-tests (Notice): Fix text.
14229
14230 2009-11-27  Jim Meyering  <meyering@redhat.com>
14231
14232         test-xalloc-die: avoid spurious failure due to libtool argv difference
14233         In a libtool-enabled project, this test would fail due to a difference
14234         in the emitted program name, e.g.,
14235         -test-xalloc-die: memory exhausted
14236         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
14237         Use program to avoid that.
14238         * modules/xalloc-die-tests (Depends-on): Add progname.
14239         * tests/test-xalloc-die.c: Include progname.h".
14240         (program_name): Remove decl.
14241         (main): Call set_program_name.
14242         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
14243
14244 2009-11-26  Richard Jones  <rjones@redhat.com>
14245
14246         w32sock: leave win32 error in place.
14247         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
14248
14249 2009-11-26  Eric Blake  <ebb9@byu.net>
14250
14251         init.sh: suggest to use skip_ and fail_ functions in comments
14252         * tests/init.sh: Add a sentence.
14253
14254 2009-11-25  Bruno Haible  <bruno@clisp.org>
14255
14256         init.sh: add documentation in comments
14257         * tests/init.sh: Add some developer and user documentation.
14258
14259 2009-11-26  Jim Meyering  <meyering@redhat.com>
14260
14261         init.sh: accommodate even those who specify bogus srcdir manually
14262         * tests/init.sh: Normally, srcdir is guaranteed by automake and
14263         configure-time tests to be sanitized, so that there is no need to
14264         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
14265         (with no double quotes) suffices.  However, since tests may be
14266         invoked manually, and since you may explicitly set srcdir to the
14267         name of a directory containing spaces, do quote its uses here.
14268         * tests/test-pread.sh: Likewise.
14269         Suggested by Bruno Haible.
14270
14271         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
14272         * tests/test-pread.sh: Write no data into the pipe, because
14273         test-pread actually reads none.  This avoids a diagnostic,
14274         "bash: echo: write error: Broken pipe", that arises in the unusual
14275         event something is ignoring SIGPIPE, and might be interpreted
14276         as some sort of failure.  Reported by Bruno Haible.
14277
14278 2009-11-25  Jim Meyering  <meyering@redhat.com>
14279
14280         test-pread: cover failure with ESPIPE and EINVAL
14281         * tests/test-pread.c (main): Test for failure, too.
14282         * tests/test-pread.sh: Invoke with stdin on a pipe.
14283         Suggested by Eric Blake.
14284
14285         pread: improvement and fix
14286         * modules/pread (Depends-on): Depend on lseek, for portability to
14287         e.g., mingw.  Suggested by Eric Blake.
14288         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
14289
14290         unistd.in.h: correct declaration of pread
14291         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
14292         Reported by Richard W.M. Jones.
14293
14294         test-pread.sh: distribute the test script
14295         * modules/pread-tests (Files): Include test-pread.sh.
14296
14297         test-pread.sh: clean up
14298         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
14299         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
14300         That is unnecessary, since it's always ".".
14301         Suggestion from Eric Blake.
14302
14303         test-pread.sh: make executable
14304         * tests/test-pread.sh: Set executable bit.
14305         Reported by Eric Blake.
14306
14307         correct typo in test-pread.sh
14308         * tests/test-pread.sh: Add #! line.
14309
14310         test pread
14311         * tests/test-pread.c: New file.
14312         * tests/test-pread.sh: Likewise.
14313         * modules/pread-tests: Likewise.
14314
14315         pread: new module
14316         * modules/pread: New file.
14317         * lib/unistd.in.h (pread): Define/declare.
14318         * lib/pread.c (pread): New file.
14319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
14320         * modules/unistd (Makefile.am): Substitute witnesses.
14321         * doc/posix-functions/pread.texi (pread): Update.
14322         * MODULES.html.sh: Add pread.
14323
14324 2009-11-25  Jim Meyering  <meyering@redhat.com>
14325
14326         tests/init.sh: new file to be used via most *.sh tests
14327         * tests/init.sh: New file.
14328
14329 2009-11-25  Eric Blake  <ebb9@byu.net>
14330
14331         utimens: work around older Linux failure with symlinks
14332         * lib/utimens.c (lutimensat_works_really): New variable.
14333         (fdutimens, lutimens): Use it to manage kernels that support
14334         nanosecond times on files, but not on symlinks.
14335         Reported by OndÅ™ej Vašík.
14336
14337         utimes: fix configure grammar
14338         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
14339
14340 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
14341
14342         regex: Fix fastmap for multibyte character ranges.
14343         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
14344         characters when a multibyte character range is included.
14345
14346 2009-11-22  Andy Wingo  <wingo@pobox.com>
14347
14348         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
14349         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
14350
14351 2009-11-24  Bruno Haible  <bruno@clisp.org>
14352
14353         doc: Most *_l functions exist in MacOS X 10.5.
14354         * doc/posix-functions/duplocale.texi: Update platforms list.
14355         * doc/posix-functions/freelocale.texi: Likewise.
14356         * doc/posix-functions/newlocale.texi: Likewise.
14357         * doc/posix-functions/uselocale.texi: Likewise.
14358         * doc/posix-functions/isalnum_l.texi: Likewise.
14359         * doc/posix-functions/isalpha_l.texi: Likewise.
14360         * doc/posix-functions/isblank_l.texi: Likewise.
14361         * doc/posix-functions/iscntrl_l.texi: Likewise.
14362         * doc/posix-functions/isdigit_l.texi: Likewise.
14363         * doc/posix-functions/isgraph_l.texi: Likewise.
14364         * doc/posix-functions/islower_l.texi: Likewise.
14365         * doc/posix-functions/isprint_l.texi: Likewise.
14366         * doc/posix-functions/ispunct_l.texi: Likewise.
14367         * doc/posix-functions/isspace_l.texi: Likewise.
14368         * doc/posix-functions/isupper_l.texi: Likewise.
14369         * doc/posix-functions/iswalnum_l.texi: Likewise.
14370         * doc/posix-functions/iswalpha_l.texi: Likewise.
14371         * doc/posix-functions/iswblank_l.texi: Likewise.
14372         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14373         * doc/posix-functions/iswctype_l.texi: Likewise.
14374         * doc/posix-functions/iswdigit_l.texi: Likewise.
14375         * doc/posix-functions/iswgraph_l.texi: Likewise.
14376         * doc/posix-functions/iswlower_l.texi: Likewise.
14377         * doc/posix-functions/iswprint_l.texi: Likewise.
14378         * doc/posix-functions/iswpunct_l.texi: Likewise.
14379         * doc/posix-functions/iswspace_l.texi: Likewise.
14380         * doc/posix-functions/iswupper_l.texi: Likewise.
14381         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14382         * doc/posix-functions/isxdigit_l.texi: Likewise.
14383         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
14384         * doc/posix-functions/strcasecmp_l.texi: Likewise.
14385         * doc/posix-functions/strcoll_l.texi: Likewise.
14386         * doc/posix-functions/strfmon_l.texi: Likewise.
14387         * doc/posix-functions/strftime_l.texi: Likewise.
14388         * doc/posix-functions/strncasecmp_l.texi: Likewise.
14389         * doc/posix-functions/strxfrm_l.texi: Likewise.
14390         * doc/posix-functions/tolower_l.texi: Likewise.
14391         * doc/posix-functions/toupper_l.texi: Likewise.
14392         * doc/posix-functions/towctrans_l.texi: Likewise.
14393         * doc/posix-functions/towlower_l.texi: Likewise.
14394         * doc/posix-functions/towupper_l.texi: Likewise.
14395         * doc/posix-functions/wcscoll_l.texi: Likewise.
14396         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14397         * doc/posix-functions/wctrans_l.texi: Likewise.
14398         * doc/posix-functions/wctype_l.texi: Likewise.
14399         * doc/glibc-functions/strptime_l.texi: Likewise.
14400         * doc/glibc-functions/strtod_l.texi: Likewise.
14401         * doc/glibc-functions/strtof_l.texi: Likewise.
14402         * doc/glibc-functions/strtol_l.texi: Likewise.
14403         * doc/glibc-functions/strtold_l.texi: Likewise.
14404         * doc/glibc-functions/strtoll_l.texi: Likewise.
14405         * doc/glibc-functions/strtoul_l.texi: Likewise.
14406         * doc/glibc-functions/strtoull_l.texi: Likewise.
14407         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14408         * doc/glibc-functions/wcstod_l.texi: Likewise.
14409         * doc/glibc-functions/wcstof_l.texi: Likewise.
14410         * doc/glibc-functions/wcstol_l.texi: Likewise.
14411         * doc/glibc-functions/wcstold_l.texi: Likewise.
14412         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14413         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14414         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14415
14416 2009-11-24  Bruno Haible  <bruno@clisp.org>
14417
14418         duplocale: Fix logic bug.
14419         * lib/duplocale.c: Don't include <langinfo.h>.
14420         (_NL_LOCALE_NAME): Remove macro.
14421         (rpl_duplocale): Use setlocale instead of nl_langinfo.
14422         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
14423
14424 2009-11-23  Jim Meyering  <meyering@redhat.com>
14425
14426         test-update-copyright: don't hard-code /usr/bin/perl
14427         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
14428         perl to print the current year.  Gilles Espinasse reported that
14429         the replaced use of perl was hard-coded as /usr/bin/perl.
14430
14431 2009-11-23  Bruno Haible  <bruno@clisp.org>
14432
14433         duplocale: Add support for glibc 2.3.x.
14434         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
14435
14436 2009-11-22  Bruno Haible  <bruno@clisp.org>
14437
14438         vasnprintf: Tiny optimization.
14439         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
14440         MacOS X.
14441
14442 2009-11-22  Bruno Haible  <bruno@clisp.org>
14443
14444         Tests for module 'duplocale'.
14445         * modules/duplocale-tests: New file.
14446         * tests/test-duplocale.c: New file.
14447
14448         New module 'duplocale'.
14449         * m4/duplocale.m4: New file.
14450         * lib/locale.in.h (duplocale): New declaration.
14451         * lib/duplocale.c: New file.
14452         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
14453         gl_LOCALE_H_DEFAULTS): New macros.
14454         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
14455         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
14456         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
14457         REPLACE_DUPLOCALE.
14458         * modules/duplocale: New file.
14459         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
14460
14461 2009-11-22  Bruno Haible  <bruno@clisp.org>
14462
14463         * modules/locale-tests (configure.ac): Test for newlocale function.
14464         * tests/test-locale.c: When the system has extended locale functions,
14465         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
14466
14467         locale: Make locale_t available when possible.
14468         * lib/locale.in.h: Include <xlocale.h> when it exists.
14469         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
14470         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
14471         * modules/locale (Depends-on): Add extensions.
14472         (Makefile.am): Also substitute HAVE_XLOCALE_H.
14473         * doc/posix-headers/locale.texi: Document the problem with locale_t.
14474
14475 2009-11-22  Bruno Haible  <bruno@clisp.org>
14476
14477         Add comments.
14478         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
14479         invocation.
14480         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14481         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14482         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14483
14484 2009-11-22  Bruno Haible  <bruno@clisp.org>
14485
14486         error: account for the possibility of freopen (stdout).
14487         * lib/error.c: Include <unistd.h>.
14488         (flush_stdout): New function, extracted from error and error_at_line.
14489         Determine stdout's fd dynamically.
14490         (error, error_at_line): Invoke flush_stdout.
14491         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
14492         * modules/error (Depends-on): Add unistd.
14493
14494 2009-11-22  Bruno Haible  <bruno@clisp.org>
14495
14496         diffseq: Add comment.
14497         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
14498
14499 2009-11-22  Jim Meyering  <meyering@redhat.com>
14500
14501         c-stack: avoid defining an unused static function
14502         * lib/c-stack.c (find_stack_direction): Do not define this function
14503         when it will not be used.
14504
14505         diffseq: avoid spurious gcc warnings
14506         * lib/diffseq.h (IF_LINT2): Define.
14507         (compareseq): Use it to initialize two members of "part".
14508         This avoids two used-uninitialized warnings.
14509
14510 2009-11-21  Jim Meyering  <meyering@redhat.com>
14511
14512         c-stack: avoid "ignoring return value of `write'" warning
14513         * lib/c-stack.c: Include "ignore-value.h".
14514         (die): Explicitly ignore each write return value.
14515         * modules/c-stack (Depends-on): Add ignore-value.
14516
14517 2009-11-21  Bruno Haible  <bruno@clisp.org>
14518
14519         diffseq: reduce scope of variable 'best'.
14520         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
14521         variable, earlier used for two different purposes.
14522
14523 2009-11-21  Jim Meyering  <meyering@redhat.com>
14524
14525         diffseq: remove useless assignment to "best"
14526         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
14527         assignment.  At that point "best" is already guaranteed to be zero.
14528
14529 2009-11-20  Eric Blake  <ebb9@byu.net>
14530
14531         build: mention ftp redirector in release announcements
14532         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
14533         values that used to come from cfg.mk; mention FTP redirect URL.
14534         * build-aux/announce-gen: Mention the mirror list.
14535         Suggested by Karl Berry.
14536
14537         nanosleep: improve port to mingw
14538         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
14539         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
14540         LIB_NANOSLEEP, but only when needed.
14541         * modules/select (Link): Document LIBSOCKET.
14542         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
14543         enough.
14544
14545         nanosleep: work around cygwin bug
14546         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
14547         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
14548         bug.
14549         (getnow): Delete, not needed.
14550         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
14551         LIB_CLOCK_GETTIME.
14552         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
14553         clock-time, gettime.
14554         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
14555         bug.
14556         * modules/nanosleep-tests: New test.
14557         * tests/test-nanosleep.c: New file.
14558
14559         sleep: work around cygwin bug
14560         * lib/sleep.c (rpl_sleep): Work around the bug.
14561         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
14562         (gl_PREREQ_SLEEP): Delete unused macro.
14563         * modules/sleep (Depends-on): Add verify.
14564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14565         * modules/unistd (Makefile.am): Substitute witness.
14566         * lib/unistd.in.h (sleep): Update prototype.
14567         * doc/posix-functions/sleep.texi (sleep): Document the bug.
14568         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
14569         * modules/sleep-tests (Depends-on): Check for alarm.
14570
14571 2009-11-20  Jim Meyering  <meyering@redhat.com>
14572
14573         maint.mk: improve sc_prohibit_magic_number_exit
14574         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
14575         so it does not match uses like System.exit(1).
14576         Add comments showing how to correct all offenders.
14577
14578 2009-11-19  Eric Blake  <ebb9@byu.net>
14579
14580         xalloc-die-tests: add missing library
14581         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
14582
14583         test-xvasprintf: silence compiler warnings
14584         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
14585         empty string from gcc.
14586
14587 2009-11-19  Jim Meyering  <meyering@redhat.com>
14588
14589         xfreopen: new module, from coreutils
14590         * modules/xfreopen: New module.
14591         * lib/xfreopen.c: New file.
14592         * lib/xfreopen.h: New file.
14593         * MODULES.html.sh (File stream based Input/Output"): Add it.
14594
14595 2009-11-19  Eric Blake  <ebb9@byu.net>
14596
14597         manywarnings: depend on warnings
14598         * modules/manywarnings (Depends-on): Add warnings.
14599
14600         build: avoid compiler warnings
14601         * lib/select.c (rpl_select): Delete unused variable.
14602         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
14603
14604 2009-11-18  Eric Blake  <ebb9@byu.net>
14605
14606         tests: avoid false negative with --with-packager
14607         * tests/test-version-etc.sh: Discard packager information.
14608         * tests/test-argp-version-etc-1.sh: Likewise.
14609         Reported by Mike Frysinger.
14610
14611         utimens: fix regression on Solaris
14612         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
14613         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
14614         can only change fd timestamps via futimesat.  Instead, use an
14615         additional witness macro to avoid BSD bug.
14616         Reported by Jim Meyering.
14617
14618 2009-11-17  Eric Blake  <ebb9@byu.net>
14619
14620         usleep: use it to simplify tests
14621         * modules/stat-time-tests (Depends-on): Add usleep.
14622         (configure.ac): Drop usleep check.
14623         * modules/chown-tests (Depends-on, configure.ac): Likewise.
14624         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
14625         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
14626         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
14627         * modules/openat-tests (Depends-on, configure.ac): Likewise.
14628         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
14629         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
14630         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
14631         Likewise.
14632         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
14633         * tests/test-lchown.h (nap): Likewise.
14634         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
14635         * tests/test-stat-time.c (nap): Likewise.
14636         * tests/test-utimens-common.h (nap): Update comments.
14637
14638         usleep: new module
14639         * modules/usleep: New file.
14640         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14641         * lib/usleep.c (usleep): Likewise.
14642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14643         * modules/unistd (Makefile.am): Substitute witnesses.
14644         * lib/unistd.in.h (usleep): Add declaration.
14645         * doc/pastposix-functions/usleep.texi (usleep): Document this.
14646         * MODULES.html.sh (Date and time): Likewise.
14647         * modules/usleep-tests (Depends-on): New test.
14648         * tests/test-usleep.c: New file.
14649
14650         chown: work around OpenBSD bug
14651         * lib/chown.c (rpl_chown): Work around the bug.
14652         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
14653         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
14654         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
14655         * modules/chown (Depends-on): Add stdbool.
14656         * modules/lchown (Depends-on): Likewise.
14657         * doc/posix-functions/chown.texi (chown): Document the bug.
14658         * doc/posix-functions/lchown.texi (lchown): Likewise.
14659         * tests/test-lchown.h (test_chown): Relax test.
14660
14661         mkstemp: avoid conflict with C++ keyword template
14662         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
14663         * lib/mkostemp.c (mkostemp): Likewise.
14664         * lib/mkostemps.c (mkostemps): Likewise.
14665         * lib/mkstemp.c (mkstemp): Likewise.
14666         * lib/mkstemps.c (mkstemps): Likewise.
14667
14668         xalloc-die-tests: optimize
14669         * tests/test-xalloc-die.sh: Reduce number of processes.
14670
14671 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14672
14673         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
14674         patch from ludo@gnu.org (Ludovic Courtès).
14675
14676 2009-11-17  Jim Meyering  <meyering@redhat.com>
14677
14678         version-etc: use proper license string
14679         * modules/version-etc (License): Use LGPL, not LGPLv3+.
14680         * modules/version-etc-fsf: Likewise.
14681
14682 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14683
14684         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
14685         printed to stdout.  Deal with EOL differences.
14686
14687 2009-11-17  Eric Blake  <ebb9@byu.net>
14688
14689         unsetenv: work around Solaris bug
14690         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
14691         * lib/unsetenv.c (rpl_unsetenv): Work around it.
14692         Reported by Jim Meyering.
14693
14694         vasnprintf: avoid compiler warnings
14695         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
14696         variables.
14697         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
14698
14699 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14700
14701         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
14702         settings since xalloc-die is no longer the self test,
14703         xalloc-die.sh is.
14704
14705 2009-11-17  Jim Meyering  <meyering@redhat.com>
14706
14707         test-xalloc-die.sh: make the code agree with the commit log
14708         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
14709         at the end, just in case you happen to have a test-xalloc-die
14710         program in some other PATH directory.
14711
14712         test-xalloc-die.sh: fix a portability bug
14713         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
14714         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
14715         Otherwise, argv[0] (as often seen in diagnostics) would be too
14716         system-dependent, sometimes with, and sometimes without the leading "./".
14717
14718         version-etc-fsf: relax license to LGPLv3+
14719         * modules/version-etc-fsf (License): Relax license.
14720
14721 2009-11-16  Eric Blake  <ebb9@byu.net>
14722
14723         xalloc-die-tests: avoid printing null pointer
14724         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
14725         shell script.
14726         * tests/test-xalloc-die.c (program_name): Declare.
14727         * tests/test-xalloc-die.sh (tmpfiles): New file.
14728
14729         setenv, unsetenv: work around various bugs
14730         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
14731         (setenv) [HAVE_SETENV]: Work around bugs.
14732         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
14733         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
14734         for bugs.
14735         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
14736         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
14737         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
14738         * modules/stdlib (Makefile.am): Update substitutions.
14739         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
14740         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
14741         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14742         * modules/setenv-tests: New test.
14743         * modules/unsetenv-tests: Likewise.
14744         * tests/test-setenv.c: New file.
14745         * tests/test-unsetenv.c: Likewise.
14746
14747 2009-11-16  Jim Meyering  <meyering@redhat.com>
14748
14749         version-etc: relax license to LGPLv3+
14750         * modules/version-etc (License): Relax license.
14751
14752         better AC_REQUIRE expanded-before-required-warning avoidance
14753         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
14754         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
14755         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
14756         which is no longer needed.
14757
14758 2009-11-16  Eric Blake  <ebb9@byu.net>
14759
14760         test-freading: clean up temporary file
14761         * tests/test-freading.c (main): Remove file on success, and use
14762         ASSERT more liberally.
14763         Reported by Jim Meyering.
14764
14765 2009-11-16  Jim Meyering  <meyering@redhat.com>
14766
14767         avoid new AC_REQUIRE expanded-before-required warnings
14768         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
14769         merely using it.
14770         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
14771         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
14772
14773 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14774
14775         * tests/test-xalloc-die.c: New file.
14776         * modules/xalloc-die-tests: New file.
14777         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
14778         XFAIL_TESTS so it can be appended by modules.
14779
14780 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14781
14782         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
14783         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
14784
14785 2009-11-14  Eric Blake  <ebb9@byu.net>
14786
14787         fnmatch: avoid compiler warning
14788         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
14789         to silence compiler warning about mismatch signedness in ?:.
14790         Reported by Robert Millan.
14791
14792         intprops: add double-inclusion guard
14793         * lib/intprops.h: Allow idempotent includes.
14794         Suggested by Bruce Korb.
14795
14796         openat: detect Solaris fchownat bug
14797         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
14798         penalizing glibc chownat when only lchownat is broken.
14799         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
14800         trailing slash bugs.
14801         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
14802         * modules/openat-tests (Files): Include more files.
14803         (Depends-on): Add mgetgroups, sleep, stat-time.
14804         (configure.ac): Add additional checks.
14805         (Makefile.am): Build new test.
14806         * tests/test-fchownat.c: New file.
14807
14808         lchown: detect Solaris and FreeBSD bug
14809         * lib/lchown.c (rpl_lchown): Work around bug.
14810         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
14811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14812         * modules/unistd (Makefile.am): Populate it.
14813         * lib/unistd.in.h (lchown): Update declaration.
14814         * doc/posix-functions/lchown.texi (lchown): Document the bug.
14815         * modules/lchown-tests: New file.
14816         * tests/test-lchown.h (test_lchown): Likewise.
14817         * tests/test-lchown.c (main): Likewise.
14818
14819         chown: detect Solaris and FreeBSD bug
14820         * lib/chown.c (rpl_chown): Work around bug.
14821         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
14822         (gl_PREREQ_CHOWN): Delete.
14823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14824         * modules/unistd (Makefile.am): Populate it.
14825         * lib/unistd.in.h (chown): Update declaration.
14826         * lib/lchown.c (chown): Update client.
14827         * modules/lchown (Depends-on): Add lstat.
14828         * doc/posix-functions/chown.texi (chown): Document the bug.
14829         * doc/posix-functions/getgroups.texi (getgroups): Document
14830         getgroups pitfall.
14831         * modules/chown-tests: New file.
14832         * tests/test-chown.h (test_chown): Likewise.
14833         * tests/test-chown.c (main): Likewise.
14834
14835 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
14836
14837         gnulib-tool: correctly detect absence of m4 directories
14838         * gnulib-tool: Avoid extra newline on data passed to wc -l.
14839
14840 2009-11-14  Jim Meyering  <meyering@redhat.com>
14841
14842         maint.mk: Prohibit inclusion of "xalloc.h" without use.
14843         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14844
14845 2009-11-14  John W. Eaton  <jwe@gnu.org>
14846
14847         strftime.h: wrap funtion declaration in extern "C" block
14848         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
14849
14850 2009-11-13  Eric Blake  <ebb9@byu.net>
14851
14852         getgroups: avoid compiler warning
14853         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
14854
14855         getgroups: work around FreeBSD bug
14856         * lib/getgroups.c (rpl_getgroups): Work around the bug.
14857         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
14858         * doc/posix-functions/getgroups.texi (getgroups): Document it.
14859         * tests/test-getgroups.c (main): Fix buffer overrun.
14860
14861         getgroups: avoid compilation failure
14862         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
14863         * modules/getgroups (Depends-on): Add stdint.
14864
14865 2009-11-13  Jim Meyering  <meyering@redhat.com>
14866
14867         test-getgroups: avoid compilation failure
14868         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
14869
14870 2009-11-13  Eric Blake  <ebb9@byu.net>
14871
14872         mgetgroups: new module, taken from coreutils
14873         * modules/mgetgroups: New file.
14874         * lib/mgetgroups.h: Likewise.
14875         * lib/mgetgroups.c (mgetgroups): Likewise.
14876         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
14877         * MODULES.html.sh (Users and groups): Mention it.
14878
14879         getgroups: don't expose GETGROUPS_T to user
14880         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
14881         an element at a time if GETGROUPS_T is wrong size.
14882         * lib/getugroups.h (getugroups): Change signature.
14883         * lib/unistd.in.h (getgroups): Likewise.
14884         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
14885         signature needs fixing.
14886         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
14887         AC_TYPE_GETGROUPS.
14888         * modules/group-member (Depends-on): Add getgroups.
14889         * lib/group-member.c (group_info, get_group_info): Use gid_t.
14890         (group_member): Rely on getgroups replacement.
14891         * lib/getugroups.c (getugroups): Use gid_t.
14892         * tests/test-getgroups.c (main): Likewise.
14893         * NEWS: Mention the signature change.
14894         * doc/posix-functions/getgroups.texi (getgroups): Mention the
14895         problem with signature.
14896         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
14897         GETGROUPS_T is still useful for setgroups.
14898
14899         getgroups, getugroups: provide stubs for mingw
14900         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
14901         * lib/getugroups.c (getugroups): Likewise.
14902         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
14903         function.  Modernize replacement scheme.
14904         (gl_PREREQ_GETGROUPS): Delete.
14905         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
14906         * modules/getgroups (configure.ac): Declare witness.
14907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14908         * modules/unistd (Depends-on): Substitute witness.
14909         * lib/unistd.in.h (getgroups): Declare replacement.
14910
14911         getgroups: avoid calling exit
14912         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
14913         drop xalloc.
14914         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
14915         dependencies.
14916         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
14917         exiting, in the rare case of malloc failure.
14918
14919         getgroups: fix logic error
14920         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
14921         has more than 20 groups.
14922         * modules/getgroups-tests: New test.
14923         * tests/test-getgroups.c: New file.
14924
14925 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14926
14927         * tests/test-base64.c: Improve.
14928
14929 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14930
14931         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
14932         Blake <ebb9@byu.net>.
14933
14934 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14935
14936         * tests/test-xvasprintf.c: Add %s%s related checks.
14937
14938 2009-11-12  Eric Blake  <ebb9@byu.net>
14939
14940         version-etc: match standards.texi style
14941         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
14942         and use <> only for URLs.
14943
14944 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
14945
14946         fts: do not fail on a submount during traversal
14947         * lib/fts.c (fts_build): Read the stat info again after opening
14948         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
14949         Original report at http://bugzilla.redhat.com/501848.
14950
14951 2009-11-12  Jim Meyering  <meyering@redhat.com>
14952
14953         bootstrap: sync from coreutils
14954         * build-aux/bootstrap (bootstrap_epilogue): New function.
14955         Use git_modules_config in one more place.  This make bootstrap's
14956         --gnulib-srcdir option more useful for testing.
14957
14958         bootstrap: generalize autoheader check
14959         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
14960         AC_CONFIG_HEADERS.
14961
14962 2009-11-11  Eric Blake  <ebb9@byu.net>
14963
14964         mkfifoat: use new modules for Solaris and BSD bugs
14965         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
14966         * lib/mkfifoat.c (mknodat): Split...
14967         * lib/mknodat.c (mknodat): ...into new file.
14968         * modules/mkfifoat (Files): Ship new file.
14969         (Depends-on): Add mkfifo, mknod.
14970         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
14971         (Depends-on): Add symlink.
14972         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
14973         redundant with test_mkfifo.h.
14974         (do_mkfifoat, do_mknodat): New helpers.
14975
14976         mknod: new module
14977         * modules/mknod: New file.
14978         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
14979         * lib/mknod.c (mknod): Likewise.
14980         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14981         defaults.
14982         * modules/sys_stat (Makefile.am): Substitute them.
14983         * lib/sys_stat.in.h (mknod): Declare replacement.
14984         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14985         Document it.
14986         * doc/posix-functions/mknod.texi (mknod): Likewise.
14987         * modules/mknod-tests: New test.
14988         * tests/test-mknod.c: Likewise.
14989
14990         mkfifo: new module
14991         * modules/mkfifo: New file.
14992         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14993         * lib/mkfifo.c (mkfifo): Likewise.
14994         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14995         defaults.
14996         * modules/sys_stat (Makefile.am): Substitute them.
14997         * lib/sys_stat.in.h (mkfifo): Declare replacement.
14998         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14999         Document it.
15000         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
15001         * modules/mkfifo-tests: New test.
15002         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
15003         from test-mkfifoat.c.
15004         * tests/test-mkfifo.c: New file.
15005
15006         readlink: detect FreeBSD bug
15007         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
15008         slash on symlink.
15009         * doc/posix-functions/readlink.texi (readlink): Document the bug.
15010         * tests/test-readlink.h (test_readlink): Enhance test.
15011
15012         symlink: detect FreeBSD bug
15013         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
15014         slash on symlink.
15015         * doc/posix-functions/symlink.texi (symlink): Document the bug.
15016         * tests/test-symlink.h (test_symlink): Enhance test.
15017
15018 2009-11-10  Eric Blake  <ebb9@byu.net>
15019
15020         link: detect FreeBSD bug
15021         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
15022         symlink.
15023         * doc/posix-functions/link.texi (link): Document the bug.
15024         * tests/test-link.h (test_link): Enhance test.
15025         * tests/test-linkat.c (main): Update caller.
15026
15027         unlink, remove: detect FreeBSD bug
15028         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
15029         slash on symlink.
15030         * doc/posix-functions/unlink.texi (unlink): Document the bug.
15031         * doc/posix-functions/remove.texi (remove): Likewise.
15032         * tests/test-unlink.h (test_unlink): Enhance test.
15033         * tests/test-remove.c (main): Likewise.
15034
15035 2009-11-09  Eric Blake  <ebb9@byu.net>
15036
15037         rename: detect FreeBSD bug
15038         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
15039         slash on symlink.
15040         * modules/renameat-tests (Depends-on): Add filenamecat.
15041         * tests/test-rename.h (test_rename): Allow one more errno.
15042         * tests/test-renameat.c (main): Likewise.
15043         * doc/posix-functions/rename.texi (rename): Document the bug.
15044
15045         open: detect FreeBSD bug
15046         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
15047         symlink.
15048         * doc/posix-functions/open.texi (open): Document the bug.
15049         * doc/posix-functions/utimes.texi (utimes): Likewise.
15050         * tests/test-open.h (test_open): Add parameters, and test symlink
15051         handling.
15052         * tests/test-open.c (main): Adjust caller.
15053         * tests/test-fcntl-safer.c (main): Likewise.
15054         * modules/open-tests (Depends-on): Add stdbool, symlink.
15055         * modules/fcntl-safer-tests (Depends-on): Likewise.
15056         * tests/test-openat.c (main): Add test-open tests.
15057
15058         stat: detect FreeBSD bug
15059         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
15060         symlink.
15061         * doc/posix-functions/stat.texi (stat): Document the bug.
15062         * tests/test-stat.h (test_stat_func): Add argument.
15063         * tests/test-stat.c (main): Adjust caller.
15064         * tests/test-fstatat.c (main): Likewise.
15065         * modules/stat-tests (Depends-on): Add stdbool, symlink.
15066         Reported by Jim Meyering.
15067
15068 2009-11-09  James Youngman  <jay@gnu.org>
15069
15070         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
15071         * lib/strftime.c: Correct placement of #include "ignore-value.h".
15072
15073 2009-11-08  Jim Meyering  <meyering@redhat.com>
15074
15075         utimens: remove invalid futimesat call
15076         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
15077         It used the file descriptor of the target file as the DIR_FD
15078         parameter and NULL as the file name.  That caused failure with
15079         errno == EFAULT on FreeBSD-8.0-rc2
15080
15081 2009-11-07  Eric Blake  <ebb9@byu.net>
15082
15083         fflush, freadseek: use fseeko, not fseek
15084         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
15085         (clear_ungetc_buffer): Avoid potential problems on large files.
15086         * lib/freadseek.c (freadseek): Likewise.
15087         * modules/freadseek (Depends-on): Add fseeko.
15088         * modules/fseek (configure.ac): Set a witness.
15089         * tests/test-fflush.c (main): Use fseeko.
15090         * tests/test-fpurge.c (fseek): Disable link warning.
15091         * tests/test-freadable.c (fseek): Likewise.
15092         * tests/test-freading.c (fseek): Likewise.
15093         * tests/test-fseeko.c (fseek): Likewise.
15094         * tests/test-ftell.c (fseek): Likewise.
15095         * tests/test-ftello.c (fseek): Likewise.
15096         * tests/test-fwritable.c (fseek): Likewise.
15097         * tests/test-fwriting.c (fseek): Likewise.
15098
15099 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15100
15101         * modules/memchr (Depends-on): Drop getpagesize dependency.
15102
15103 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15104
15105         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
15106         Reported by Ludovic Courtès.
15107         * build-aux/pmccabe2html: Improve example usage.
15108         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
15109
15110 2009-11-06  Jim Meyering  <meyering@redhat.com>
15111
15112         do-release-commit-and-tag: New module.
15113         Automate the release-commit and tag process.
15114         * build-aux/do-release-commit-and-tag: New script, from coreutils.
15115         * modules/do-release-commit-and-tag: New file.
15116         * MODULES.html.sh (Support for maintaining and releasing): Add it.
15117
15118 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15119
15120         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
15121         because test-select.c uses inet_pton.
15122
15123 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15124
15125         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
15126         GETADDRINFO_LIB.  Bump serial number.
15127         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
15128         Suggested by Eric Blake <ebb9@byu.net>.
15129
15130 2009-11-05  Eric Blake  <ebb9@byu.net>
15131
15132         strtod: detect darwin bug
15133         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
15134         Reported by Leo Davis.
15135
15136         freopen-safer: new module
15137         * modules/freopen-safer: New module.
15138         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
15139         * lib/freopen-safer.c (freopen_safer): New file.
15140         * lib/stdio-safer.h (freopen_safer): New declaration.
15141         * lib/stdio--.h (freopen): New override.
15142         * MODULES.html.sh (File stream based Input/Output): Mention it.
15143         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
15144         freopen-safer module.
15145         * doc/posix-functions/stderr.texi (stderr): Likewise.
15146         * doc/posix-functions/stdin.texi (stdin): Likewise.
15147         * doc/posix-functions/stdout.texi (stdout): Likewise.
15148         * modules/freopen-safer-tests: New test.
15149         * tests/test-reopen-safer.c: New file.
15150
15151 2009-11-05  Jim Meyering  <meyering@redhat.com>
15152
15153         maint.mk: Prohibit inclusion of "close-stream.h" without use.
15154         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15155
15156 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15157
15158         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
15159
15160 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15161
15162         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
15163
15164 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15165
15166         Fix link error.
15167         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
15168         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15169
15170 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15171
15172         * tests/test-func.c: Also test value of __func__.
15173
15174 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15175
15176         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
15177         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
15178
15179 2009-11-05  Bruno Haible  <bruno@clisp.org>
15180
15181         Fix link error.
15182         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
15183         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15184         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
15185
15186 2009-11-05  Bruno Haible  <bruno@clisp.org>
15187
15188         Tests for module 'inet_pton'.
15189         * modules/inet_pton-tests: New file.
15190         * tests/test-inet_pton.c: New file.
15191
15192 2009-11-05  Bruno Haible  <bruno@clisp.org>
15193
15194         Tests for module 'inet_ntop'.
15195         * modules/inet_ntop-tests: New file.
15196         * tests/test-inet_ntop.c: New file.
15197
15198 2009-11-04  Eric Blake  <ebb9@byu.net>
15199
15200         stdlib-safer: wrap all mkstemp variants
15201         * modules/mkostemp (configure.ac): Set witness.
15202         * modules/mkostemps (configure.ac): Likewise.
15203         * modules/mkstemps (configure.ac): Likewise.
15204         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
15205         (mkstemps_safer): Wrap more functions.
15206         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
15207         wrapping.
15208         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
15209         (mkstemps_safer): Implement the wrappers.
15210
15211         mkstemps, mkostemps: new modules
15212         * modules/mkostemps: New module.
15213         * modules/mkstemps: Likewise.
15214         * lib/mkostemps.c (mkostemps): New file.
15215         * lib/mkstemps.c (mkstemps): Likewise.
15216         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
15217         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
15218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
15219         * modules/stdlib (Makefile.am): Substitute them.
15220         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
15221         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
15222         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15223         * doc/gnulib.texi (Glibc stdlib.h): Include them.
15224         * MODULES.html.sh (File system functions): Mention them.
15225
15226         tempname: resync from glibc
15227         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
15228         same values for __GT_FILE as glibc.  Abort even when assertions
15229         are disabled.
15230         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
15231         match its value otherwise.  Allow idempotent inclusion.
15232         * lib/mkdtemp.c (mkdtemp): Adjust caller.
15233         * lib/mkostemp.c (mkostemp): Likewise.
15234         * lib/mkstemp.c (mkstemp): Likewise.
15235         * lib/tmpfile.c (tmpfile): Likewise.
15236         * NEWS: Document this.
15237
15238         utimens: fix use of futimens on older Linux
15239         * lib/utimens.c (fdutimens): Use updated, rather than original,
15240         timespec to avoid bug in older Linux kernel.
15241         Reported by Simon Josefsson.
15242
15243 2009-11-04  Bruno Haible  <bruno@clisp.org>
15244
15245         Make num_processors more flexible and consistent.
15246         * lib/nproc.h (enum nproc_query): New type.
15247         (num_processors): Add a 'query' argument.
15248         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
15249         (num_processors): Add a 'query' argument. Test the value of the
15250         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
15251         mingw, count the number of CPUs available for the current process.
15252         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
15253         Check for sched_getaffinity and sched_getaffinity_np.
15254         * modules/nproc (Depends-on): Add c-ctype, extensions.
15255         * NEWS: Mention the change.
15256
15257 2009-11-03  Bruno Haible  <bruno@clisp.org>
15258
15259         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
15260
15261 2009-11-03  Jim Meyering  <meyering@redhat.com>
15262
15263         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
15264         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
15265         if it is defined.
15266
15267 2009-11-02  Eric Blake  <ebb9@byu.net>
15268
15269         mktime, timegm: share common declaration
15270         * lib/mktime-internal.h: New file.
15271         * lib/mktime.c: Use it rather than open-coding a declaration.
15272         * lib/timegm.c: Likewise.
15273         * modules/mktime (Files): Ship it.
15274         * modules/timegm (Files): Likewise.
15275         Suggested by Bruno Haible.
15276
15277         test-update-copyright: update test to match script changes
15278         * tests/test-update-copyright.sh: Avoid hard-coding perl
15279         location.  Don't update *.bak created by earlier runs.
15280
15281 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15282             Simon Josefsson  <simon@josefsson.org>
15283             Bruno Haible  <bruno@clisp.org>
15284
15285         Fix link error on Solaris 8.
15286         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
15287         also in libnsl. Define also INET_PTON_LIB.
15288         * modules/inet_pton (Link): New section.
15289
15290 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15291             Bruno Haible  <bruno@clisp.org>
15292
15293         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
15294         * modules/inet_ntop (Link): New section.
15295         Reported by Boyan Kasarov <bkasarov@gmail.com>.
15296
15297 2009-11-02  Eric Blake  <ebb9@byu.net>
15298
15299         maint: avoid compiler warnings in m4 macros
15300         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
15301         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
15302
15303 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15304
15305         * m4/pmccabe2html.m4: Remove file.
15306         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
15307         function.  Change maintainer.
15308         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
15309         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
15310         Courtès).
15311
15312 2009-10-31  Eric Blake  <ebb9@byu.net>
15313
15314         fseeko: fix m4 regression
15315         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
15316         regression from 2009-10-27.
15317         Reported by Ralf Wildenhues.
15318
15319 2009-10-31  Jim Meyering  <meyering@redhat.com>
15320
15321         inttostr: aesthetics and improved (compile-time) safety
15322         Define inttype_is_signed rather than inttype_is_unsigned,
15323         since the sole use is via "#if inttype_is_signed".
15324         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
15325         inttype_is_unsigned.
15326         * lib/offtostr.c (inttype_is_signed): Likewise.
15327         * lib/uinttostr.c (inttype_is_signed): Likewise.
15328         * lib/umaxtostr.c (inttype_is_signed): Likewise.
15329         * lib/inttostr.c (inttostr): Use verify to cross-check the
15330         inttype_is_signed value and the signedness of the actual type.
15331         * modules/inttostr (Depends-on): Add verify.
15332
15333 2009-10-30  Eric Blake  <ebb9@byu.net>
15334
15335         build: avoid compiler warnings
15336         * lib/fchmodat.c (lchmod): Mark unused variables.
15337         * lib/getopt.c (_getopt_initialize): Likewise.
15338         * lib/mktime.c (__mktime_internal): Provide prototype.
15339         * lib/inttostr.c (inttostr): Avoid compiler warning even with
15340         older gcc that do not understand #pragma GCC diagnostic.
15341         * lib/uinttostr.c (inttype_is_unsigned): Define.
15342         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
15343
15344 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15345
15346         stat: fix compilation on AIX
15347         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
15348         only see struct stat64.
15349
15350 2009-10-30  Eric Blake  <ebb9@byu.net>
15351
15352         exclude: make more robust
15353         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
15354         rather than masking a coding bug.
15355         Suggested by Bruno Haible.
15356
15357 2009-10-30  Jim Meyering  <meyering@redhat.com>
15358
15359         perl scripts: remove #!/usr/bin/perl in favor of more portable...
15360         Rather than putting #!/usr/bin/perl on the first line,
15361         start with a variant of what's recommended by "man perlrun" that
15362         invokes the first "perl" program from your shell's search path.
15363         * build-aux/gitlog-to-changelog: Replace #!... as above.
15364         Add a "Local Variables" perl mode setting.
15365         Prompted by a patch from Ludovic Courtès.
15366         Improved by Eric Blake.
15367         * build-aux/useless-if-before-free: Likewise.
15368         * build-aux/announce-gen: Likewise.
15369         * build-aux/update-copyright: Likewise.
15370
15371 2009-10-29  Eric Blake  <ebb9@byu.net>
15372
15373         filenamecat-lgpl: adjust clients
15374         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
15375         filenamecat.
15376         * modules/renameat (Depends-on): Likewise.
15377
15378         filenamecat: split into filenamecat-lgpl
15379         * modules/filenamecat-lgpl: New module.
15380         * modules/filenamecat (Files): Move library-safe files into
15381         filenamecat-lgpl.
15382         (Depends-on): Add filenamecat-lgpl.
15383         (configure.ac): Declare witness.
15384         * lib/filenamecat.h (file_name_concat): Only declare when using
15385         GPL module.
15386         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
15387         Move...
15388         * lib/filenamecat-lgpl.c: ...into new file.
15389         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
15390         (gl_FILE_NAME_CONCAT): Use it.
15391         * MODULES.html.sh (File system functions): Mention new module.
15392
15393         argp: avoid memory leak
15394         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
15395         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
15396         base_name, since the latter malloc()s and can call exit().
15397         Leak introduced 2006-07-03.
15398
15399         dirname-lgpl: adjust clients that don't need full dirname
15400         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
15401         * modules/filenamecat (Depends-on): Likewise.
15402         * modules/linkat (Depends-on): Likewise.
15403         * modules/mkancesdirs (Depends-on): Likewise.
15404         * modules/mkdir (Depends-on): Likewise.
15405         * modules/openat (Depends-on): Likewise.
15406         * modules/savewd (Depends-on): Likewise.
15407         * modules/rename (Depends-on): Likewise.
15408         (License): Relax license.
15409         * modules/mkdir-tests (Depends-on): Drop progname.
15410         (Makefile.am): Delete unneeded LDADD.
15411         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
15412
15413         dirname: split into dirname-lgpl
15414         * modules/dirname-lgpl: New module.
15415         * modules/dirname (Files): Move library-safe files into
15416         dirname-lgpl.
15417         (Depends-on): Add dirname-lgpl.
15418         (configure.ac): Declare witness.
15419         * modules/double-slash-root (License): Relax license.
15420         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
15421         module.
15422         * lib/dirname.c (dir_len, mdir_name): Move...
15423         * lib/dirname-lgpl.c: ...into new file.
15424         * lib/basename.c (last_component, base_len): Move...
15425         * lib/basename-lgpl.c: ...into new file.
15426         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
15427         (gl_DIRNAME): Use it.
15428         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
15429         Mention new module.
15430         * modules/dirname-tests (Depends-on): Add progname.
15431         * tests/test-dirname.c (program_name): Delete.
15432
15433         mkdir: make safe for libraries
15434         * modules/mkdir (Depends-on): Drop xalloc.
15435         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
15436         exit.
15437
15438         tests: avoid some compiler warnings
15439         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
15440         literals.
15441         * tests/test-memchr.c (main): Avoid type mismatch.
15442         * tests/test-arpa_inet.c (main): Avoid unused parameters.
15443         * tests/test-base64.c (main): Likewise.
15444         * tests/test-getdelim.c (main): Likewise.
15445         * tests/test-gethostname.c (main): Likewise.
15446         * tests/test-getline.c (main): Likewise.
15447         * tests/test-netinet_in.c (main): Likewise.
15448         * tests/test-select.c (open_server_socket, main): Likewise.
15449         * tests/test-select-stdin.c (main): Likewise.
15450         * tests/test-sockets.c (main): Likewise.
15451         * tests/test-strsignal.c (main): Likewise.
15452         * tests/test-sys_select.c (main): Likewise.
15453         * tests/test-sys_socket.c (main): Likewise.
15454         * tests/test-u64.c (main): Likewise.
15455         * tests/test-xfprintf-posix.c (main): Likewise.
15456         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
15457
15458         sockets: avoid compiler warning
15459         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
15460
15461         maint: detect usage(1) and other suspicious exits
15462         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
15463
15464 2009-10-29  Jim Meyering  <meyering@redhat.com>
15465
15466         timespec: long-to-int truncation could make timespec_cmp malfunction
15467         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
15468         a multiple of 2^32 nanoseconds as no difference.
15469
15470 2009-10-28  Jim Meyering  <meyering@redhat.com>
15471
15472         fprintftime: wrap macro code argument in "do {...} while(0)"
15473         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
15474         cpy macro must be a statement that can be followed by a semicolon.
15475         Now that the else clause contains a comment and is hence longer
15476         than one line, I require curly braces.  That in turn requires
15477         that we wrap this code block in the standard do...while(0).
15478
15479         fprintftime: remove stray semicolon from previous change
15480         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
15481
15482         fprintftime: avoid a warning about ignored fwrite return value
15483         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
15484         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
15485         that is unsafe.
15486         * modules/fprintftime (Depends-on): Add ignore-value.
15487
15488         exclude: avoid an unwarranted warning
15489         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
15490
15491 2009-10-27  Eric Blake  <ebb9@byu.net>
15492
15493         fseek: avoid compilation failure when fflush is replaced
15494         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
15495         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
15496         module is in use.
15497         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
15498         module is not in use; since REPLACE_FSEEK worked otherwise.
15499         (GNULIB_FTELLO): Likewise for ftell.
15500         Reported by Ian Beckwith and others.
15501
15502 2009-10-27  Bruno Haible  <bruno@clisp.org>
15503
15504         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
15505         Reported by Jim Meyering.
15506
15507 2009-10-27  Jim Meyering  <jim@meyering.net>
15508             Bruno Haible  <bruno@clisp.org>
15509
15510         Avoid warning despite dropping the return value of fwrite.
15511         * lib/unicodeio.c: Include ignore-value.h.
15512         (fwrite_success_callback): Explicitly ignore fwrite's return value.
15513         * modules/unicodeio (Depends-on): Add ignore-value.
15514
15515 2009-10-26  Eric Blake  <ebb9@byu.net>
15516
15517         areadlinkat: fix fallback path
15518         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
15519         pointer and zero.
15520
15521 2009-10-22  Pádraig Brady  <P@draigBrady.com>
15522
15523         Use a better IO block size for modern systems
15524         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
15525         * lib/md2.c: Likewise.
15526         * lib/md4.c: Likewise.
15527         * lib/md5.c: Likewise.
15528         * lib/sha1.c: Likewise.
15529         * lib/sha256.c: Likewise.
15530         * lib/sha512.c: Likewise.
15531
15532 2009-10-22  Eric Blake  <ebb9@byu.net>
15533
15534         tests: avoid several compiler warnings
15535         * tests/test-getcwd.c (main): Avoid buffer underflow.
15536         * tests/test-getdate.c (main): String literals are not safe with
15537         putenv, so use setenv.  Declare unused argument.
15538         * modules/getdate-tests (Depends-on): Add setenv.
15539         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
15540         problems with string literals in char *.
15541         * tests/test-hash.c (main): Avoid shadowing declaration.
15542         (insert_new): Treat string literals as char const *.
15543         * tests/test-getopt.h (test_getopt): Likewise.
15544         (getopt_loop): Alter types to minimize casting elsewhere.
15545         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
15546         (test_getopt_long_posix): Likewise.
15547         (do_getopt_long): Add wrapper to minimize casting.
15548         * tests/test-atexit.c (clear_temp_file): Use void.
15549         * tests/test-areadlink-with-size.c (main): Declare unused
15550         arguments.
15551         * tests/test-areadlink.c (main): Likewise.
15552         * tests/test-areadlinkat-with-size.c (main): Likewise.
15553         * tests/test-areadlinkat.c (main): Likewise.
15554         * tests/test-canonicalize-lgpl.c (main): Likewise.
15555         * tests/test-canonicalize.c (main): Likewise.
15556         * tests/test-dirent-safer.c (main): Likewise.
15557         * tests/test-dirname.c (main): Likewise.
15558         * tests/test-dup2.c (main): Likewise.
15559         * tests/test-fchdir.c (main): Likewise.
15560         * tests/test-fcntl-h.c (main): Likewise.
15561         * tests/test-fcntl-safer.c (main): Likewise.
15562         * tests/test-fdopendir.c (main): Likewise.
15563         * tests/test-fdutimensat.c (main): Likewise.
15564         * tests/test-fflush.c (main): Likewise.
15565         * tests/test-filenamecat.c (main): Likewise.
15566         * tests/test-filevercmp.c (main): Likewise.
15567         * tests/test-fopen-safer.c (main): Likewise.
15568         * tests/test-fopen.c (main): Likewise.
15569         * tests/test-fpending.c (main): Likewise.
15570         * tests/test-fpurge.c (main): Likewise.
15571         * tests/test-freading.c (main): Likewise.
15572         * tests/test-fstatat.c (main): Likewise.
15573         * tests/test-fsync.c (main): Likewise.
15574         * tests/test-futimens.c (main): Likewise.
15575         * tests/test-getndelim2.c (main): Likewise.
15576         * tests/test-gettimeofday.c (main): Likewise.
15577         * tests/test-getopt.c (main): Likewise.
15578         * tests/test-i-ring.c (main): Likewise.
15579         * tests/test-inttypes.c (main): Likewise.
15580         * tests/test-link.c (main): Likewise.
15581         * tests/test-lstat.c (main): Likewise.
15582         * tests/test-math.c (main): Likewise.
15583         * tests/test-md5.c (main): Likewise.
15584         * tests/test-memchr2.c (main): Likewise.
15585         * tests/test-memrchr.c (main): Likewise.
15586         * tests/test-mkdir.c (main): Likewise.
15587         * tests/test-mkdirat.c (main): Likewise.
15588         * tests/test-mkfifoat.c (main): Likewise.
15589         * tests/test-open.c (main): Likewise.
15590         * tests/test-openat-safer.c (main): Likewise.
15591         * tests/test-openat.c (main): Likewise.
15592         * tests/test-quotearg.c (main): Likewise.
15593         * tests/test-rawmemchr.c (main): Likewise.
15594         * tests/test-readlink.c (main): Likewise.
15595         * tests/test-remove.c (main): Likewise.
15596         * tests/test-rename.c (main): Likewise.
15597         * tests/test-renameat.c (main): Likewise.
15598         * tests/test-rmdir.c (main): Likewise.
15599         * tests/test-sha1.c (main): Likewise.
15600         * tests/test-signal.c (main): Likewise.
15601         * tests/test-sigaction.c (main): Likewise.
15602         * tests/test-stat.c (main): Likewise.
15603         * tests/test-stat-time.c (main): Likewise.
15604         * tests/test-stddef.c (main): Likewise.
15605         * tests/test-stdint.c (main): Likewise.
15606         * tests/test-stdio.c (main): Likewise.
15607         * tests/test-stdlib.c (main): Likewise.
15608         * tests/test-strchrnul.c (main): Likewise.
15609         * tests/test-strerror.c (main): Likewise.
15610         * tests/test-string.c (main): Likewise.
15611         * tests/test-strtod.c (main): Likewise.
15612         * tests/test-strverscmp.c (main): Likewise.
15613         * tests/test-symlink.c (main): Likewise.
15614         * tests/test-symlinkat.c (main): Likewise.
15615         * tests/test-sys_stat.c (main): Likewise.
15616         * tests/test-sys_time.c (main): Likewise.
15617         * tests/test-time.c (main): Likewise.
15618         * tests/test-unistd.c (main): Likewise.
15619         * tests/test-unlink.c (main): Likewise.
15620         * tests/test-unlinkat.c (main): Likewise.
15621         * tests/test-utimens.c (main): Likewise.
15622         * tests/test-utimensat.c (main): Likewise.
15623         * tests/test-version-etc.c (main): Likewise.
15624         * tests/test-wchar.c (main): Likewise.
15625         * tests/test-wctype.c (main): Likewise.
15626         * tests/test-xprintf-posix.c (main): Likewise.
15627         * tests/test-posixtm.c (main): Likewise.
15628         (STREQ): Delete unused macro.
15629         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
15630         shadowed variables.
15631         * tests/test-memchr.c (main): Likewise.
15632
15633 2009-10-21  Eric Blake  <ebb9@byu.net>
15634
15635         areadlinkat: avoid failure on older glibc
15636         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
15637         rather than mis-comparing 0 against FUNC_RESULT of char*.
15638
15639 2009-10-21  Bruno Haible  <bruno@clisp.org>
15640
15641         * modules/stpncpy (License): Relicense under LGPLv2+.
15642         Reported by David Lutterkort <lutter@redhat.com>.
15643
15644 2009-10-20  Eric Blake  <ebb9@byu.net>
15645
15646         utimensat: work around Solaris 9 bug
15647         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
15648         has trailing slash bugs.
15649         * tests/test-lutimens.h (test_lutimens): Enhance test.
15650         * tests/test-utimens.h (test_utimens): Likewise.
15651         * doc/posix-functions/utime.texi (utime): Enhance documentation.
15652         * doc/posix-functions/utimes.texi (utimes): Likewise.
15653         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15654         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
15655         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
15656         * doc/posix-functions/futimens.texi (futimens): Likewise.
15657
15658         fdutimensat: new module
15659         * modules/fdutimensat: New file.
15660         * lib/fdutimensat.c (fdutimensat): Likewise.
15661         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
15662         * MODULES.html.sh (File system functions): Mention module.
15663         * modules/fdutimensat-tests: New test.
15664         * tests/test-fdutimensat.c: Likewise.
15665
15666         doc: regenerate INSTALL
15667         * doc/INSTALL: Reflect recent autoconf update.
15668         * doc/INSTALL.ISO: Likewise.
15669         * doc/INSTALL.UTF-8: Likewise.
15670
15671 2009-10-20  Pádraig Brady  <P@draigBrady.com>
15672
15673         acl: warn if ACL support is not detected
15674         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
15675
15676 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
15677
15678         * lib/nproc.h: Add extern "C" block for C++.
15679
15680 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
15681             Bruno Haible  <bruno@clisp.org>
15682
15683         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
15684         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
15685         * doc/posix-functions/isalpha.texi: Likewise.
15686         * doc/posix-functions/isblank.texi: Likewise.
15687         * doc/posix-functions/iscntrl.texi: Likewise.
15688         * doc/posix-functions/isdigit.texi: Likewise.
15689         * doc/posix-functions/isgraph.texi: Likewise.
15690         * doc/posix-functions/islower.texi: Likewise.
15691         * doc/posix-functions/isprint.texi: Likewise.
15692         * doc/posix-functions/ispunct.texi: Likewise.
15693         * doc/posix-functions/isspace.texi: Likewise.
15694         * doc/posix-functions/isupper.texi: Likewise.
15695         * doc/posix-functions/isxdigit.texi: Likewise.
15696
15697 2009-10-18  Bruno Haible  <bruno@clisp.org>
15698
15699         Tests for module 'isblank'.
15700         * modules/isblank-tests: New file.
15701         * tests/test-isblank.c: New file.
15702
15703         New module 'isblank'.
15704         * lib/isblank.c: New file.
15705         * m4/isblank.m4: New file.
15706         * modules/isblank: New file.
15707         * doc/posix-functions/isblank.texi: Mention the new module.
15708
15709 2009-10-18  Bruno Haible  <bruno@clisp.org>
15710
15711         New module 'ctype'.
15712         * lib/ctype.in.h: New file.
15713         * m4/ctype.m4: New file.
15714         * modules/ctype: New file.
15715         * doc/posix-headers/ctype.texi: Mention the new module.
15716
15717 2009-10-18  Jim Meyering  <meyering@redhat.com>
15718
15719         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
15720         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
15721         right after its initialization, rather than farther down.
15722         Keeping these in close proximity makes it easier to ensure
15723         that each such variable is initialized.  E.g.,
15724
15725             LIB_CLOCK_GETTIME=
15726             AC_SUBST([LIB_CLOCK_GETTIME])
15727
15728         This change also increments these serial numbers.
15729         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
15730         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15731         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15732
15733 2009-10-18  Bruno Haible  <bruno@clisp.org>
15734
15735         Don't let environment variables perturb build.
15736         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
15737         (gl_PREREQ_GETHRXTIME): ... not here.
15738
15739 2009-10-18  Bruno Haible  <bruno@clisp.org>
15740
15741         Avoid symlink attack in localcharset module.
15742         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
15743         (O_NOFOLLOW): Define fallback.
15744         (get_charset_aliases): Don't open the file if it is a symbolic link.
15745         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
15746         gl_FCNTL_H.
15747         (gl_FCNTL_H): Require it.
15748         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
15749         * modules/localcharset (Files): Add m4/fcntl_h.m4.
15750         Reported by Fergal Glynn <fglynn@veracode.com>.
15751
15752 2009-10-18  Bruno Haible  <bruno@clisp.org>
15753
15754         Implement nproc for mingw.
15755         * lib/nproc.c: Include <windows.h>
15756         (num_processors): On native Windows platforms, try GetSystemInfo.
15757
15758 2009-10-18  Bruno Haible  <bruno@clisp.org>
15759
15760         Implement nproc for IRIX.
15761         * lib/nproc.c: Include <sys/sysmp.h>.
15762         (num_processors): On IRIX systems, try sysmp.
15763         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
15764
15765 2009-10-18  Bruno Haible  <bruno@clisp.org>
15766
15767         Implement nproc for HP-UX.
15768         * lib/nproc.c: Include <sys/pstat.h>
15769         (num_processors): On HP-UX systems, try pstat_getdynamic.
15770         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
15771         pstat_getdynamic.
15772
15773 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
15774             Bruno Haible  <bruno@clisp.org>
15775
15776         Implement nproc for NetBSD, OpenBSD.
15777         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
15778         (ARRAY_SIZE): New macro.
15779         (num_processors): On BSD systems, try sysctl of HW_NCPU.
15780         * m4/nproc.m4: New file.
15781         * modules/nproc (Files): Add m4/nproc.m4.
15782         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
15783         (Makefile.am): Instead, augment lib_SOURCES.
15784
15785 2009-10-18  Bruno Haible  <bruno@clisp.org>
15786
15787         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
15788         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
15789         sys/param.h.
15790
15791 2009-10-16  Eric Blake  <ebb9@byu.net>
15792
15793         utimensat: new module
15794         * modules/utimensat: New file.
15795         * lib/utimensat.c (utimensat): Likewise.
15796         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15797         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
15798         so we can work around Linux bugs.
15799         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15800         * modules/sys_stat (Makefile.am): Substitute them.
15801         * lib/sys_stat.in.h (utimensat): Declare it.
15802         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15803         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15804         * modules/utimensat-tests: New test.
15805         * tests/test-utimensat.c: Likewise.
15806
15807         utimens: let lutimens work on non-symlinks
15808         * lib/utimens.c (lutimens): Fall back to utimens rather than
15809         failing with ENOSYS, when file is not a symlink.
15810         (utimens): Reduce redirection.
15811         * tests/test-lutimens.h (test_lutimens): Update test to cover
15812         non-symlinks.
15813         * tests/test-utimens.h (test_utimens): Update test to cover
15814         symlinks.
15815         * tests/test-utimens.c (main): Update caller.
15816
15817         utimens: cache whether utimensat syscall works
15818         * lib/utimens.c (utimensat_works_really): New cache variable.
15819         (fdutimens, lutimens): Use it to avoid failing syscall.
15820
15821         test-stat-time, test-utimens: improve portability
15822         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
15823         ext4 on alpha, and for cygwin.
15824         * tests/test-utimens-common.h: New file.
15825         (nap): Factor delays into single function.
15826         * tests/test-lutimens.h (test_lutimens): Use new header.
15827         * tests/test-futimens.h (test_futimens): Likewise.
15828         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
15829         timestamps to occur from same machine, as was done previously for
15830         test_utimens.
15831         * modules/utimens-tests (Files): Ship new file.
15832         * modules/futimens-tests (Files): Likewise.
15833         Reported in part by Jim Meyering.
15834
15835         sys_stat: sort replacement declarations
15836         * lib/sys_stat.in.h: Sort declarations.
15837         * lib/futimens.c (futimens): Fix typo.
15838
15839 2009-10-15  Jim Meyering  <meyering@redhat.com>
15840
15841         don't let environment settings perturb build
15842         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
15843         could cause a configure-time and/or build-time malfunction.
15844         Typically, a configure-time function-in-library test is performed
15845         via code like this:
15846
15847           LIB_VAR=
15848           AC_SUBST([LIB_VAR])
15849           prefix_saved_LIBS=$LIBS
15850             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
15851                        [test "$ac_cv_search_FUNC" = "none required" ||
15852                         LIB_VAR=$ac_cv_search_FUNC])
15853           LIBS=$prefix_saved_LIBS
15854
15855         However, in each of the files affected by this change, the LIB_VAR=
15856         initialization was omitted.  Thus, when set in the environment, its
15857         value would propagate into generated Makefiles when FUNC is not found
15858         in LIB_NAME.
15859         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
15860         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15861         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15862
15863 2009-10-14  Eric Blake  <ebb9@byu.net>
15864
15865         fchdir: avoid infinite recursion in mingw
15866         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
15867         recursing.
15868
15869         test-stat-time: port to mingw
15870         * tests/test-stat-time.c (force_unlink): Return a value.
15871         (test_ctime) [W32]: Fix compilation error.
15872         (nap): Don't call usleep with too large an argument.  Use
15873         force_unlink.
15874         * doc/pastposix-functions/usleep.texi (usleep): Document the
15875         portability issue.
15876
15877 2009-10-13  Jim Meyering  <meyering@redhat.com>
15878
15879         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
15880         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
15881         * modules/pipe-filter-ii: Likewise.
15882         * modules/sys_socket-tests: Likewise.
15883         * modules/tsearch-tests: Likewise.
15884         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
15885         (check): Depend on it.
15886
15887 2009-10-12  Eric Blake  <ebb9@byu.net>
15888
15889         utimens-tests: port to NFS file systems
15890         * tests/test-utimens.h (test_utimens): Refactor utimecmp
15891         comparisons to avoid spurious failures from timestamp drift
15892         between NFS machines.
15893
15894 2009-10-12  Eric Blake  <ebb9@byu.net>
15895
15896         stat-time-tests: minor cleanups
15897         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
15898         * tests/test-stat-time.c (nap): Separate assignment from call.
15899         Suggested by Paolo Bonzini and Bruno Haible.
15900
15901         sys_stat: guarantee struct timespec
15902         * lib/sys_stat.in.h (includes): Always include <time.h>
15903         * modules/sys_stat (Depends-on): Add time.
15904         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
15905         mode_t permission values.
15906         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
15907         get at subsecond timestamps.
15908
15909 2009-10-10  Eric Blake  <ebb9@byu.net>
15910
15911         futimens: new module
15912         * modules/futimens: New file.
15913         * lib/futimens.c (futimens): Likewise.
15914         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
15915         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
15916         we can work around Linux bugs.
15917         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15918         * modules/sys_stat (Makefile.am): Substitute them.
15919         * lib/sys_stat.in.h (futimens): Declare it.
15920         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15921         * doc/posix-functions/futimens.texi (futimens): Likewise.
15922         * modules/futimens-tests: New test.
15923         * tests/test-futimens.c: Likewise.
15924
15925         utimens: introduce fdutimens
15926         * lib/utimens.h (fdutimens): New prototype.
15927         * lib/utimens.c (gl_futimens): Move guts...
15928         (fdutimens): ...to new interface.
15929         * tests/test-utimens.c (do_fdutimens): Use it.
15930
15931         utimens: add UTIME_NOW and UTIME_OMIT support
15932         * lib/utimens.c (validate_timespec, update_timespec): New helper
15933         functions.
15934         (gl_futimens, lutimens): Use them.
15935         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
15936         stdbool, sys_stat.
15937         (Link): Mention resulting library dependency.
15938         * modules/utimecmp (Link): Likewise.
15939         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
15940         (Makefile.am): Pick up library dependency.
15941         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
15942         definition.
15943         * tests/test-sys_stat.c: Test the definitions.
15944         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
15945         * NEWS: Document library dependency.
15946
15947         utimecmp: support symlink timestamps
15948         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
15949         hashing when possible.  Use pathconf when available.
15950         (SYSCALL_RESOLUTION): Recognize tighter resolution.
15951         * modules/utimecmp (Depends-on): Add lstat.
15952
15953         utimens: add lutimens interface
15954         * lib/utimens.c (lutimens): New function.
15955         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
15956         * lib/utimens.h (lutimens): Declare new interface.
15957         * tests/test-utimens.c (main): Enhance test.
15958         * tests/test-lutimens.h (test_lutimens): New file.
15959         * modules/utimens-tests (Files): Distribute it.
15960         (Depends-on): Add symlink.
15961         (configure.ac): Check for usleep.
15962
15963         utimens: validate futimens usage
15964         * lib/utimens.c (gl_futimens): Require valid fd up front, using
15965         fewer syscalls on failure later on.  Avoid compiler warning on
15966         mingw.
15967         * modules/utimens (Depends-on): Add dup2.
15968
15969         utimens: add test
15970         * modules/utimens-tests: New test.
15971         * tests/test-utimens.h: New file.
15972         * tests/test-futimens.h: Likewise.
15973         * tests/test-utimens.c: Likewise.
15974
15975         doc: mention timestamp portability issues
15976         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
15977         instead.
15978         * doc/posix-functions/utime.texi (utime): Likewise.
15979         * doc/posix-functions/utimes.texi (utimes): Likewise.
15980         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
15981         instead.
15982         * doc/posix-functions/futimens.texi (futimens): Mention utimens
15983         module.
15984         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15985         Mention weakness with symlink timestamps.
15986         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
15987         to utimensat/futimens instead.
15988         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
15989
15990         test-dup2: enhance test
15991         * tests/test-dup2.c (main): Also check AT_FDCWD.
15992
15993         test-stat-time: avoid more spurious failures
15994         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
15995         xfs; and avoid race if the two timestamps cross quantization edge.
15996
15997         relocatable: prefer 'file system' over 'filesystem'
15998         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
15999         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
16000         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
16001         * doc/relocatable.texi (Enabling Relocatability): Likewise.
16002         * lib/relocatable.c (compute_curr_prefix): Likewise.
16003
16004 2009-10-10  Jim Meyering  <meyering@redhat.com>
16005
16006         stat-time-tests: check for the usleep function
16007         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
16008
16009 2009-10-10  Bruno Haible  <bruno@clisp.org>
16010
16011         * modules/xnanosleep: Put the Link section after the Include section.
16012
16013 2009-10-09  Eric Blake  <ebb9@byu.net>
16014
16015         dup2: work around FreeBSD 6.1 bug
16016         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
16017         * doc/posix-functions/dup2.texi (dup2): Document it.
16018         Reported by Nelson H. F. Beebe and Jim Meyering.
16019
16020         test-stat-time: port to buggy NFS clients
16021         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
16022         (test_ctime): Also skip test if mtime and ctime are skewed.
16023
16024         maint: prefer 'file system' over 'filesystem'
16025         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16026         * doc/posix-functions/lstat.texi (lstat): Likewise.
16027         * lib/file-has-acl.c (file_has_acl): Likewise.
16028         * lib/fwriteerror.c [TEST]: Likewise.
16029         * tests/test-areadlink.h (test_areadlink): Likewise.
16030         * tests/test-areadlinkat-with-size.c (main): Likewise.
16031         * tests/test-areadlinkat.c (main): Likewise.
16032         * tests/test-canonicalize-lgpl.c (main): Likewise.
16033         * tests/test-canonicalize.c (main): Likewise.
16034         * tests/test-fstatat.c (main): Likewise.
16035         * tests/test-linkat.c (main): Likewise.
16036         * tests/test-lstat.h (test_lstat_func): Likewise.
16037         * tests/test-mkdir.h (test_mkdir): Likewise.
16038         * tests/test-readlink.h (test_readlink): Likewise.
16039         * tests/test-remove.c (main): Likewise.
16040         * tests/test-rename.h (test_rename): Likewise.
16041         * tests/test-renameat.c (main): Likewise.
16042         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16043         * tests/test-symlink.h (test_symlink): Likewise.
16044         * tests/test-symlinkat.c (main): Likewise.
16045         * tests/test-unlink.h (test_unlink_func): Likewise.
16046         * tests/test-unlinkat.c (main): Likewise.
16047
16048         maint: make realtime library usage explicit
16049         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
16050         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
16051         * modules/settime (Link): Likewise.
16052         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
16053
16054         test-stat-time: speed up execution
16055         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
16056         warning on mingw.
16057         (nap): New helper function.
16058         (prepare_test): Use it to reduce sleep time.
16059         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
16060         execution.
16061         * modules/stat-time-tests (configure.ac): Check for usleep.
16062
16063 2009-10-09  Jim Meyering  <meyering@redhat.com>
16064
16065         selinux-h: always use getfilecon wrappers
16066         * lib/getfilecon.c: New file.
16067         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
16068         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
16069         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
16070         (fgetfilecon): Provide a stub.
16071         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
16072         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
16073         file unconditionally.
16074         When <selinux/selinux.h> is found, arrange to use wrappers.
16075         * modules/selinux-h (Files): Add getfilecon.c.
16076         (Makefile.am): Substitute include-next-related bits
16077         into the now-always-generated selinux/selinux.h file.
16078         * doc/glibc-functions/lgetfilecon.texi: New file.
16079         * doc/glibc-functions/fgetfilecon.texi: New file.
16080         * doc/glibc-functions/getfilecon.texi: New file.
16081         * doc/glibc-functions/getfilecon-desc.texi: New file.
16082         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
16083         which to pull in the new files.
16084         * MODULES.html.sh (Misc): Add selinux-h.
16085
16086 2009-10-08  Jim Meyering  <meyering@redhat.com>
16087
16088         unistd: fix comment typo
16089         * lib/unistd.in.h (euidaccess): Fix a comment typo.
16090
16091 2009-10-08  Eric Blake  <ebb9@byu.net>
16092
16093         areadlink: use SIZE_MAX consistently
16094         * modules/areadlink (Depends-on): Add stdint.
16095         * modules/areadlink-with-size (Depends-on): Likewise.
16096         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
16097         gives NULL; drop sys/types, since unistd gives size_t; and add
16098         stdint for SIZE_MAX.
16099         (SIZE_MAX): Rely on headers.
16100         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
16101         and add stdint.
16102         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
16103         (SIZE_MAX): Likewise.
16104         (INITIAL_BUF_SIZE): Turn into enum.
16105         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
16106
16107 2009-10-08  Jim Meyering  <meyering@redhat.com>
16108
16109         areadlinkat: avoid compilation failure
16110         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
16111         Fix typo in comment.
16112
16113 2009-10-07  Eric Blake  <ebb9@byu.net>
16114
16115         areadlinkat-with-size: new module
16116         * modules/areadlinkat-with-size: New module.
16117         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
16118         * lib/areadlink.h (areadlinkat): Declare it.
16119         * MODULES.html.sh (File system functions): Mention it.
16120         * modules/areadlinkat-with-size-tests: New test.
16121         * tests/test-areadlinkat-with-size.c: New file.
16122
16123         xreadlinkat: new module
16124         * modules/xreadlinkat: New module.
16125         * lib/xreadlinkat.c (xreadlinkat): New file.
16126         * lib/xreadlink.h (xreadlinkat): Declare it.
16127         * MODULES.html.sh (File system functions): Mention it.
16128
16129         areadlinkat: new module
16130         * lib/at-func.c (FUNC_FAIL): New define.
16131         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
16132         * modules/areadlinkat: New module.
16133         * lib/linkat.c (areadlinkat): Move...
16134         * lib/areadlinkat.c (areadlinkat): ...to new file.
16135         * lib/areadlink.h (areadlinkat): Declare it.
16136         * modules/linkat (Depends-on): Add areadlinkat.
16137         * MODULES.html.sh (File system functions): Mention it.
16138         * modules/areadlinkat-tests: New test.
16139         * tests/test-areadlinkat.c: New file.
16140
16141         areadlink, areadlink-with-size: add tests
16142         * modules/areadlink-tests: New test.
16143         * modules/areadlink-with-size-tests: Likewise.
16144         * tests/test-areadlink.h: New file.
16145         * tests/test-areadlink.c: Likewise.
16146         * tests/test-areadlink-with-size.c: Likewise.
16147
16148         maint: minor cleanups
16149         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
16150         _UNUSED_PARAMETER_ instead.
16151         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
16152         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
16153         * modules/linkat-tests (Files): Distribute test-link.h.
16154
16155         openat, utimens: whitespace cleanup
16156         * lib/openat.c: Prefer space throughout, rather than mix of 8
16157         spaces vs. tabs.
16158         * lib/at-func.c: Likewise.
16159         * lib/utimens.c: Likewise.
16160
16161         openat: avoid using wrong fd
16162         * lib/openat.c (openat_permissive): Reject user's fd if saving the
16163         working directory chooses same fd.
16164         * lib/at-func.c (AT_FUNC_NAME): Likewise.
16165
16166         mkdir, mkdirat: fix cygwin 1.5.x bug
16167         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
16168         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
16169         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
16170         bug.
16171         (gl_PREREQ_MKDIR): Delete unused macro.
16172         * modules/mkdir (Files): Track file rename.
16173         (configure.ac): Update macro name.
16174         * modules/openat (Depends-on): Add mkdir.
16175         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
16176
16177         mkdir, mkdirat: add tests
16178         * modules/mkdir-tests: New test.
16179         * tests/test-mkdir.h: New file.
16180         * tests/test-mkdir.c: Likewise.
16181         * tests/test-mkdirat.c: Likewise.
16182         * modules/openat-tests (Files): Add new files.
16183         (Makefile.am): Run new test.
16184
16185 2009-10-06  Eric Blake  <ebb9@byu.net>
16186
16187         doc: tweak *at function documentation
16188         * doc/posix-functions/faccessat.texi (faccessat): Mention
16189         known issue with replacement.
16190         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
16191         * doc/posix-functions/linkat.texi (linkat): Likewise.
16192         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
16193         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
16194         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16195         * doc/posix-functions/renameat.texi (renameat): Likewise.
16196         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16197
16198         openat: fix GNU/Hurd bug in unlinkat
16199         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
16200         broken.
16201         * doc/posix-functions/unlink.texi (unlink): Document this.
16202         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
16203
16204         fdopendir: fix GNU/Hurd bug
16205         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
16206         allowing non-directory fds.
16207         * lib/fdopendir.c (rpl_fdopendir): Work around it.
16208         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16209         * modules/dirent (Makefile.am): Substitute it.
16210         * lib/dirent.in.h (fdopendir): Declare replacement.
16211         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
16212         * tests/test-fdopendir.c (main): Test something other than
16213         /dev/null, since on Hurd that behaves like a directory.
16214
16215         test-symlink: port to GNU/Hurd
16216         * tests/test-symlink.h (test_symlink): Relax expected errno.
16217
16218         doc: tweak more cygwin information
16219         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
16220         now compatible with glibc.
16221         * doc/posix-functions/getopt.texi (getopt): Likewise.
16222
16223         getopt-gnu: add another test
16224         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
16225         guarantee behavior relied on by m4.
16226         * tests/test-getopt.c (main): Use it.
16227         * modules/getopt-posix-tests (Depends-on): Add setenv.
16228         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
16229
16230         getopt: fix compilation on darwin
16231         * lib/getopt.in.h (includes): Leave breadcrumbs during system
16232         include.
16233         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
16234         Reported by Ludovic Courtès.
16235
16236 2009-10-06  Bruno Haible  <bruno@clisp.org>
16237
16238         * modules/size_max (Description): Discourage its use.
16239         Reported by Simon Josefsson.
16240
16241 2009-10-06  Jim Meyering  <meyering@redhat.com>
16242
16243         linkat: avoid compilation failure
16244         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
16245
16246 2009-10-05  Eric Blake  <ebb9@byu.net>
16247
16248         linkat: support Linux 2.6.17
16249         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
16250         linkat on Linux, but allow cache variable override.
16251         * lib/linkat.c (rpl_linkat): Define override.
16252         * modules/linkat (Depends-on): Add symlinkat.
16253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
16254         * modules/unistd (Makefile.am): Substitute it.
16255         * lib/unistd.in.h (linkat): Declare replacement.
16256         Reported by Pádraig Brady.
16257
16258         quotearg: port test to systems with C.UTF-8 locale
16259         * tests/test-quotearg.c (struct result_strings): Add another
16260         member, differentiating between C.ASCII and C.UTF-8 handling.
16261         (compare_strings): Add parameter.
16262         (main): Adjust all callers.
16263
16264         getopt: avoid clash with FreeBSD _getopt_internal
16265         * lib/getopt.in.h (_getopt_internal): Override the name.
16266         * lib/getopt_int.h (includes): Pick up any overrides.
16267         Reported by Reuben Thomas.
16268
16269         hash: allow C89 compilation
16270         * lib/hash.c (check_tuning): Move declaration before statement.
16271         Reported by Reuben Thomas.
16272
16273 2009-10-05  Karl Berry  <karl@gnu.org>
16274
16275         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
16276
16277 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
16278             Bruno Haible  <bruno@clisp.org>
16279
16280         * lib/uname.c (uname): Use a table-driven algorithm to compute
16281         Windows NT versions.
16282
16283 2009-10-04  Bruno Haible  <bruno@clisp.org>
16284
16285         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
16286         program_invocation_short_name.
16287         * modules/progname (configure.ac): Test for presence of
16288         program_invocation_short_name.
16289         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16290
16291 2009-10-04  Bruno Haible  <bruno@clisp.org>
16292
16293         * lib/progname.c (set_program_name): Fix comment.
16294         Reported by Jim Meyering.
16295
16296 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16297             Bruno Haible  <bruno@clisp.org>
16298
16299         * lib/uname.c: Include <string.h>.
16300         (uname): Do only one call to GetVersionEx in the common case.
16301
16302 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16303             Bruno Haible  <bruno@clisp.org>
16304
16305         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
16306         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
16307         (uname): Add support for Windows CE and various non-x86 CPU types.
16308
16309 2009-10-03  Bruno Haible  <bruno@clisp.org>
16310
16311         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
16312         invocation to tests/configure.ac.
16313         Reported by Ian Beckwith <ianb@erislabs.net>.
16314
16315 2009-10-02  Eric Blake  <ebb9@byu.net>
16316
16317         fchdir: avoid compiler warning
16318         * lib/fchdir.c (canonicalize_file_name)
16319         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
16320
16321         test-open: support mingw errno values
16322         * tests/test-open.h (test_open): Relax test.
16323         * tests/test-fopen.h (test_fopen): Likewise.
16324         * tests/test-openat-safer.c (main): Likewise.
16325
16326         open: fix opening directory on mingw
16327         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
16328
16329         test-open: on GNU/Hurd, /dev/null is a directory
16330         * tests/test-fopen.h (main): Rename...
16331         (test_fopen): ...to this.  Use a guaranteed non-directory when
16332         confirming open behavior on trailing slash.
16333         * tests/test-openat-safer.c (main): Likewise.
16334         * tests/test-open.h (main): Likewise....
16335         (test_open): ...to this.
16336         * tests/test-fopen.c (main): Adjust caller.
16337         * tests/test-fopen-safer.c (main): Likewise.
16338         * tests/test-open.c (main): Likewise.
16339         * tests/test-fcntl-safer.c (main): Likewise.
16340         Reported by Samuel Thibault.
16341
16342         rename, fchdir: don't ignore chdir failure
16343         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
16344         * lib/rename.c (rpl_rename) [W32]: Likewise.
16345         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
16346         an empty destination directory if source cannot be renamed,
16347         although there is still possibility for failure.
16348         * doc/posix-functions/rename.texi (rename): Document the race.
16349         Reported by Jim Meyering.
16350
16351         maint: cleanup whitespace in recent commits
16352         * lib/rename.c (rpl_rename): Remove tabs.
16353         * tests/test-link.h (test_link): Likewise.
16354         * lib/fchdir.c (get_name): Likewise.
16355         Reported by Jim Meyering.
16356
16357 2009-10-02  Ben Pfaff  <blp@gnu.org>
16358
16359         relocatable-prog-wrapper: Add missing dependency on
16360         double-slash-root.
16361         * modules/relocatable-prog-wrapper: Add dependency.
16362         Reported by Ian Beckwith <ianb@erislabs.net>.
16363
16364 2009-10-02  Eric Blake  <ebb9@byu.net>
16365
16366         renameat: fix Solaris bugs
16367         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
16368         needed fixing.
16369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
16370         * modules/stdio (Makefile.am): Substitute it.
16371         * lib/stdio.in.h (renameat): Declare replacement.
16372         * lib/renameat.c (rpl_renameat): Implement fix.
16373
16374         renameat: new module
16375         * modules/renameat: New file.
16376         * lib/renameat.c (renameat): Likewise.
16377         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
16378         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16379         * modules/stdio (Makefile.am): Substitute them.
16380         * lib/stdio.in.h (renameat): Declare it.
16381         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16382         * doc/posix-functions/renameat.texi (renameat): Likewise.
16383         * modules/renameat-tests: New test.
16384         * tests/test-renameat.c: Likewise.
16385
16386         rename: fix mingw bugs
16387         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
16388         directory overwrite bugs.
16389
16390         rename: fix another cygwin 1.5 bug
16391         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
16392         checks.
16393         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
16394         unnecessary cygwin workarounds.  Also work around bug with moving
16395         full directory onto an empty one.
16396         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
16397
16398         rename-dest-slash: merge into rename module
16399         * modules/rename-dest-slash (Status): Mark obsolete.
16400         (Depends-on): Add rename.
16401         (Files): Let rename do it all.
16402         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
16403         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
16404         * m4/rename-dest-slash.m4: ...so this file can be deleted.
16405         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
16406         * lib/rename.c (rpl_rename): Update comments.
16407
16408         rename: fix cygwin 1.5.x bugs
16409         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
16410         * lib/rename.c (rpl_rename): Work around them.
16411         * modules/rename (Depends-on): Add same-inode.
16412
16413         rename: fix Solaris 10 bug
16414         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16415         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
16416         was the only bug.
16417
16418         rename: fix Solaris 9 bug
16419         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
16420         on non-directory.  Avoid calling exit.
16421         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
16422         strdup.
16423         * modules/rename-tests (Depends-on): Drop lstat.
16424         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16425         (gl_PREREQ_RENAME): Delete unused macro.
16426
16427         rename-dest-slash: fix NetBSD bug
16428         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
16429         links.
16430         * modules/rename-dest-slash (Depends-on): Add same-inode.
16431
16432         rename-tests: new test, exposes several platform bugs
16433         * modules/rename-tests: New file.
16434         * tests/test-rename.h: Likewise.
16435         * tests/test-rename.c: Likewise.
16436         * doc/posix-functions/rename.texi (rename): Improve documentation,
16437         including bugs that will eventually be fixed in gnulib.
16438
16439 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
16440
16441         * lib/uname.c: Include <stdlib.h>
16442         (uname): Assume version info is available.
16443
16444 2009-10-02  Jim Meyering  <meyering@redhat.com>
16445
16446         gnu-web-doc-update: correct --help output
16447         * build-aux/gnu-web-doc-update: Make --help output relevant.
16448
16449         gnu-web-doc-update: add standard options
16450         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
16451
16452         gnu-web-doc-update: New module.
16453         Use this script to automatically update the on-line web documentation
16454         for your GNU project at http://www.gnu.org/software/$pkg/manual/
16455         * modules/gnu-web-doc-update: New file, from coreutils.
16456         * build-aux/gnu-web-doc-update: New script.
16457
16458 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
16459
16460         link: LoadLibrary is not needed.
16461         * lib/link.c: Use GetModuleHandle.
16462
16463 2009-10-01  Eric Blake  <ebb9@byu.net>
16464
16465         getopt: bump serial number
16466         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
16467         change.
16468
16469         tests: tighten link, rmdir, and remove tests
16470         * tests/test-link.h (includes): No need to use <config.h> here.
16471         Clean up if directory hard link was created, otherwise test for
16472         trailing '.'.
16473         * tests/test-linkat.c (main): Simplify.
16474         * tests/test-remove.c (main): Enhance test for trailing '.'.
16475         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16476
16477 2009-10-01  Jim Meyering  <meyering@redhat.com>
16478
16479         maint.mk: requiring "make major" was annoying, for a "minor" release.
16480         What is intended is "stable", to contrast with alpha and beta,
16481         so require "make stable", not "make major".
16482         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
16483         (get_tool_versions): Likewise.
16484         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
16485
16486 2009-09-30  Ben Pfaff  <blp@gnu.org>
16487
16488         Fix broken build of replacement for Windows tmpfile().
16489         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
16490         flags argument added along with the 'mkostemp' module.
16491
16492 2009-09-28  Bruno Haible  <bruno@clisp.org>
16493
16494         Avoid identifier clash with POSIX function 'remove' defined as a macro.
16495         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
16496         to 'remove_elt'.
16497         (gl_list_remove): Update.
16498         * lib/gl_list.c (gl_list_remove): Update.
16499         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
16500         to 'remove_elt'.
16501         (gl_oset_remove): Update.
16502         * lib/gl_list.c (gl_oset_remove): Update.
16503         Reported by Eric Blake.
16504
16505 2009-09-28  Eric Blake  <ebb9@byu.net>
16506
16507         doc: mention yet more cygwin 1.7 status
16508         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
16509         cygwin.
16510         * doc/glibc-functions/execvpe.texi (execvpe): New file.
16511         * doc/gnulib.texi (Glibc unistd.h): Mention it.
16512
16513         argp: fix test failure
16514         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
16515         that are not upper-case.  Pass correct range to tolower.
16516
16517 2009-09-27  Jim Meyering  <meyering@redhat.com>
16518
16519         test-yesno: work around sparc-dash here-document infelicity
16520         Without this change, the literal \177 byte in a here document
16521         would make dash 0.5.5.1-3 access uninitialized memory.
16522         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
16523         Instead, use a marker, "@", and filter through tr to create the desired
16524         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
16525
16526 2009-09-27  Bruno Haible  <bruno@clisp.org>
16527
16528         Disable untested support for new flavours of ACLs on AIX.
16529         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
16530         progress.
16531         * lib/set-mode-acl.c (qset_acl): Likewise.
16532
16533 2008-12-07  Bruno Haible  <bruno@clisp.org>
16534
16535         Add support for new flavours of ACLs on AIX. (Untested.)
16536         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
16537         (file_has_acl): Add support for newer AIX.
16538         * lib/set-mode-acl.c (qset_acl): Likewise.
16539         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
16540         Rainer Tammer <tammer@tammer.net>.
16541
16542 2009-09-26  Eric Blake  <ebb9@byu.net>
16543
16544         argp: fix compilation of getopt
16545         * lib/getopt.in.h (includes): Use different guard than glibc.
16546         Reported by Sergey Poznyakoff.
16547
16548         doc: mention more cygwin 1.7 status
16549         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
16550         bug.
16551         * doc/posix-functions/execl.texi (execl): Likewise.
16552         * doc/posix-functions/execle.texi (execle): Likewise.
16553         * doc/posix-functions/execlp.texi (execlp): Likewise.
16554         * doc/posix-functions/execv.texi (execv): Likewise.
16555         * doc/posix-functions/execve.texi (execve): Likewise.
16556         * doc/posix-functions/execvp.texi (execvp): Likewise.
16557         * doc/glibc-functions/canonicalize_file_name.texi
16558         (canonicalize_file_name): Cygwin 1.7 now provides this.
16559         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
16560         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
16561         on AT_SYMLINK_NOFOLLOW.
16562
16563 2009-09-24  Eric Blake  <ebb9@byu.net>
16564
16565         test-linkat: make test more robust
16566         * tests/test-linkat.c (main): Avoid collision with EEXIST.
16567
16568         getopt: fix inclusion guards for cygwin
16569         * modules/getopt-posix (Depends-on): Add include-next.
16570         (Makefile.am): Substitute more items in replacement header.
16571         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
16572         <getopt.h>.
16573         * lib/getopt.in.h (includes): Use split inclusion guard, and
16574         prefer <getopt.h> over include <unistd.h> when one is present.
16575         (option): Also override name of 'struct option'.
16576
16577         same-inode: revert prior change; it is not yet ready
16578         * NEWS: Undo mention of this change.
16579         * lib/same-inode.h (same-inode.h): Undo tri-state change.
16580         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16581         * lib/cycle-check.c (cycle_check): Likewise.
16582         * lib/same.c (same_name): Likewise.
16583         * lib/at-func2.c (at_func2): Likewise.
16584
16585 2009-09-23  Eric Blake  <ebb9@byu.net>
16586
16587         linkat: new module
16588         * modules/linkat: New file.
16589         * lib/at-func2.c (at_func2): Likewise.
16590         * lib/linkat.c (linkat): Likewise.
16591         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16592         * lib/openat-priv.h (at_func2): Add declaration.
16593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16594         * modules/unistd (Makefile.am): Substitute them.
16595         * lib/unistd.in.h (linkat): Declare it.
16596         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16597         * doc/posix-functions/linkat.texi (linkat): Likewise.
16598         * doc/posix-functions/link.texi (link): Tweak wording.
16599         * tests/test-link.c (main): Move guts...
16600         * tests/test-link.h (test_link): ...into new file.
16601         * modules/linkat-tests: New test.
16602         * tests/test-linkat.c: Likewise.
16603         * modules/link-tests (Files): Ship new file.
16604         (Depends-on): Add stdbool.
16605
16606         dirname: add library-safe mdir_name
16607         * lib/dirname.h (mdir_name): New prototype.
16608         * lib/dirname.c (dir_name): Move guts...
16609         (mdir_name): ...to new function that avoids xalloc_die.
16610
16611         fchdir: another mingw fix
16612         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
16613         * lib/fchdir.c (get_name): New helper method; skips canonicalize
16614         on mingw (where it has not yet been ported), and make it optional
16615         elsewhere.
16616         (_gl_register_fd): Use it.
16617
16618         same-inode: make SAME_INODE tri-state, to port to mingw
16619         * NEWS: Mention this change.
16620         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
16621         st_ino always being 0.
16622         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16623         * lib/cycle-check.c (cycle_check): Likewise.
16624         * lib/same.c (same_name): Likewise.
16625
16626         lstat: avoid mingw compilation error
16627         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
16628         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
16629         lstat ourselves.
16630         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
16631         was adequate.
16632         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
16633         the checks for lstat.
16634         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
16635
16636         link: fix test failure on Solaris 9
16637         * lib/link.c (rpl_link): Don't assume link will catch bogus
16638         trailing slash on source.
16639
16640         test-symlinkat: enhance test
16641         * tests/test-readlink.c (main): Move guts...
16642         * tests/test-readlink.h (test_readlink): ...into new file.
16643         * tests/test-symlink.c (main): Move guts...
16644         * tests/test-symlink.h (test_symlink): ...into new file.
16645         * tests/test-symlinkat.c (main): Use new files for further
16646         coverage.
16647         (do_symlink, do_readlink): New helper functions.
16648         * modules/symlink-tests (Files): Ship new file.
16649         (Depends-on): Add stdbool.
16650         * modules/readlink-tests (Files): Ship new file.
16651         (Depends-on): Add stdbool.
16652         * modules/symlinkat-tests (Files): Use new files.
16653
16654 2009-09-23  Eric Blake  <ebb9@byu.net>
16655
16656         readlink: document portability issue with symlink length
16657         * doc/posix-functions/lstat.texi (lstat): Mention that some file
16658         systems have bogus st_size on symlinks, and mention the
16659         areadlink-with-size module.
16660         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16661         * doc/posix-functions/readlink.texi (readlink): Mention the
16662         areadlink module, and ERANGE failure.
16663         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16664         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
16665
16666         readlink: fix Solaris 9 bug with trailing slash
16667         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
16668         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
16669         * doc/posix-functions/readlink.texi (readlink): Document this.
16670         * modules/readlink-tests: New test.
16671         * tests/test-readlink.c: Likewise.
16672
16673         readlink: fix cygwin 1.5.x bug with return type
16674         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
16675         * lib/unistd.in.h (readlink): Use ssize_t.
16676         * lib/readlink.c (readlink): Likewise.
16677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16678         * modules/unistd (Makefile.am): Substitute it.
16679         * lib/unistd.in.h (readlink): Declare replacement.
16680         * doc/posix-functions/readlink.texi (readlink): Document this.
16681
16682         symlink: use throughout gnulib
16683         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
16684         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
16685         symlink is not used.
16686         * modules/symlinkat (Depends-on): Add symlink.
16687         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16688         * modules/canonicalize-tests (Depends-on): Likewise.
16689         * modules/lstat-tests (Depends-on): Likewise.
16690         * modules/openat-tests (Depends-on): Likewise.
16691         * modules/remove-tests (Depends-on): Likewise.
16692         * modules/rmdir-tests (Depends-on): Likewise.
16693         * modules/unlink-tests (Depends-on): Likewise.
16694         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
16695         * tests/test-canonicalize.c (symlink): Likewise.
16696         * tests/test-fstatat.c (symlink): Likewise.
16697         * tests/test-lstat.c (symlink): Likewise.
16698         * tests/test-remove.c (symlink): Likewise.
16699         * tests/test-rmdir.c (symlink): Likewise.
16700         * tests/test-unlink.c (symlink): Likewise.
16701         * tests/test-unlinkat.c (symlink): Likewise.
16702
16703         symlink: new module, for Solaris 9 bug
16704         * modules/symlink: New file.
16705         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16706         * lib/symlink.c: Likewise.
16707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
16708         * modules/unistd (Makefile.am): Substitute them.
16709         * lib/unistd.in.h (symlink): Declare replacement.
16710         * MODULES.html.sh (File system functions): Mention it.
16711         * doc/posix-functions/symlink.texi (symlink): Likewise.
16712         * modules/symlink-tests: New test.
16713         * tests/test-symlink.c: Likewise.
16714
16715 2009-09-23  Bruno Haible  <bruno@clisp.org>
16716
16717         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
16718         when needed.
16719         Test case: gnulib-tool --import --with-tests atexit inttypes.
16720         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
16721
16722 2009-09-23  Bruno Haible  <bruno@clisp.org>
16723
16724         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
16725         subcommand, not in a subshell.
16726
16727 2009-09-22  Eric Blake  <ebb9@byu.net>
16728
16729         unistd: sort replacement declarations
16730         * lib/unistd.in.h: Sort declarations.
16731
16732         open, openat: minor optimization
16733         * lib/open.c (open): If open succeeded, len is non-zero.
16734         * lib/openat.c (rpl_openat): Likewise.
16735
16736         link-follow: ensure correct result
16737         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
16738         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
16739         distinguish between possible failures.
16740
16741 2009-09-21  Eric Blake  <ebb9@byu.net>
16742
16743         fts: avoid compiler warning
16744         * lib/fts.c (dirent_inode_sort_may_be_useful)
16745         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
16746
16747 2009-09-19  Bruno Haible  <bruno@clisp.org>
16748
16749         * lib/progreloc.c (canonicalize_file_name): New declaration.
16750
16751 2009-09-19  Eric Blake  <ebb9@byu.net>
16752
16753         link: fix quoting
16754         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
16755
16756         openat: fix openat bugs on Solaris 9
16757         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
16758         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
16759         * modules/openat (Depends-on): Add open.
16760         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
16761         * modules/fcntl-h (Makefile.am): Substitute it.
16762         * lib/fcntl.in.h (openat): Declare replacement.
16763         * doc/posix-functions/openat.texi (openat): Document this.
16764
16765         openat: move fstatat and unlinkat into correct files
16766         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
16767         compiled.
16768         * lib/openat.c (fstatat, unlinkat): Move...
16769         * lib/fstatat.c (fstatat): ...into correct files.
16770         * lib/unlinkat.c (unlinkat): Likewise.
16771
16772         openat: fix unlinkat bugs on Solaris 9
16773         * lib/unlinkat.c (unlinkat): New file.
16774         * modules/openat (Depends-on): Add unlink.
16775         (Files): Distribute it.
16776         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
16777         trailing slash behavior is broken.
16778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16779         * modules/unistd (Makefile.am): Substitute it.
16780         * lib/unistd.in.h (unlinkat): Declare replacement.
16781         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
16782
16783         openat: fix fstatat bugs on Solaris 9
16784         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
16785         stat.
16786         * doc/posix-functions/fstatat.texi (fstatat): Document this.
16787
16788         test-unlinkat: enhance test, to expose Solaris 9 bug
16789         * tests/test-unlink.c (main): Factor guts...
16790         * tests/test-unlink.h (test_rmdir_func): ...into new file.
16791         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
16792         * tests/test-rmdir.c (main): Adjust caller.
16793         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
16794         (unlinker): New helper function.
16795         (rmdirat): Enhance check.
16796         * modules/rmdir-tests (Depends-on): Add stdbool.
16797         * modules/unlink-tests (Depends-on): Likewise.
16798         (Files): Add test-unlink.h.
16799         * modules/openat-tests (Files): Likewise.
16800         (Depends-on): Add unlinkdir.
16801
16802         test-fstatat: new test, to expose Solaris 9 bugs
16803         * tests/test-stat.c (main): Factor guts...
16804         * tests/test-stat.h (test_stat_func): ...into new file.
16805         * tests/test-lstat.c (main): Factor guts...
16806         * tests/test-lstat.h (test_lstat_func): ...into new file.
16807         * tests/test-fstatat.c: New file.
16808         * modules/stat-tests (Files): Add test-stat.h.
16809         * modules/lstat-tests (Files): Add test-lstat.h.
16810         (Depends-on): Add stdbool.
16811         * modules/openat-tests (Depends-on): Add pathmax.
16812         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
16813         (Makefile.am): Run new test.
16814
16815         remove: new module, for mingw and Solaris 9 bugs
16816         * modules/remove: New file.
16817         * lib/remove.c: Likewise.
16818         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
16819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16820         * modules/stdio (Makefile.am): Use them.
16821         * lib/stdio.in.h (remove): Declare replacement.
16822         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16823         * doc/posix-functions/remove.texi (remove): Likewise.
16824         * modules/remove-tests: New test.
16825         * tests/test-remove.c: Likewise.
16826
16827         unlink: new module, for Solaris 9 bug
16828         * modules/unlink: New file.
16829         * lib/unlink.c: Likewise.
16830         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16832         * modules/unistd (Makefile.am): Use them.
16833         * lib/unistd.in.h (stat): Declare replacement.
16834         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16835         * doc/posix-functions/unlink.texi (unlink): Likewise.
16836         * modules/unlink-tests: New test.
16837         * tests/test-unlink.c: Likewise.
16838
16839         lstat: fix Solaris 9 bug
16840         * lib/lstat.c (lstat): Also check for trailing slash on
16841         non-symlink, non-directories.  Use stat module to simplify logic.
16842         * doc/posix-functions/lstat.texi (lstat): Document it.
16843         * modules/lstat-tests (Depends-on): Add errno, same-inode.
16844         (configure.ac): Check for symlink.
16845         * tests/test-lstat.c (main): Add more tests.
16846
16847         stat: add as dependency to other modules
16848         * modules/chown (Depends-on): Add stat.
16849         * modules/euidaccess (Depends-on): Likewise.
16850         * modules/fchdir (Depends-on): Likewise.
16851         * modules/isdir (Depends-on): Likewise.
16852         * modules/link (Depends-on): Likewise.
16853         * modules/lstat (Depends-on): Likewise.
16854         * modules/mkdir-p (Depends-on): Likewise.
16855         * modules/modechange (Depends-on): Likewise.
16856         * modules/open (Depends-on): Likewise.
16857         * modules/readlink (Depends-on): Likewise.
16858         * modules/same (Depends-on): Likewise.
16859
16860         stat: fix Solaris 9 bug
16861         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
16862         slash.
16863         * lib/stat.c (rpl_stat): Work around it.
16864         * doc/posix-functions/stat.texi (stat): Update documentation.
16865
16866         stat: new module, for mingw bug
16867         * modules/stat: New file.
16868         * lib/stat.c: Likewise.
16869         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16870         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16871         * modules/sys_stat (Makefile.am): Use them.
16872         * lib/sys_stat.in.h (stat): Declare replacement.
16873         * lib/openat.c (fstatat): Deal with lstat and stat being function
16874         macros.
16875         * modules/openat (Depends-on): Add inline.
16876         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16877         * doc/posix-functions/stat.texi (stat): Likewise.
16878         * modules/stat-tests: New test.
16879         * tests/test-stat.c: Likewise.
16880
16881 2009-09-19  Jim Meyering  <meyering@redhat.com>
16882
16883         syntax-check: detect unnecessary inclusion of canonicalize.h
16884         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
16885
16886 2009-09-19  Eric Blake  <ebb9@byu.net>
16887
16888         canonicalize-lgpl: adjust clients to use correct header
16889         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16890         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
16891         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
16892         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
16893         * lib/progreloc.c (includes): Likewise.
16894
16895 2009-09-19  Jim Meyering  <meyering@redhat.com>
16896
16897         test-posixtm.c: correct a comment
16898         * tests/test-posixtm.c: Correct first-line comment.
16899         Spotted by Eric Blake.
16900
16901 2009-09-16  Jim Meyering  <meyering@redhat.com>
16902
16903         posixtm-tests: make T const-correct; add a test case
16904         * tests/test-posixtm.c (T): Declare const.
16905         Add a test for -(2^31+1).
16906         Remove useless can-succeed-only-in-2002 test.
16907
16908         posixtm-tests: adjust the sole failing test
16909         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
16910         expected output matches what mktime now produces.  Cross-checked via
16911         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
16912
16913         posixtm: move #ifdef'd tests into a new module
16914         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
16915         * tests/test-posixtm.c: ... this new file.
16916         * modules/posixtm-tests: New module.
16917
16918 2009-09-19  Eric Blake  <ebb9@byu.net>
16919
16920         openat: simplify use of at-func.c
16921         * lib/at-func.c (includes): Include prerequisites here, to
16922         simplify requirements on client files.
16923         * lib/openat-priv.h: Add double-inclusion guard.
16924         * lib/faccessat.c (includes): Simplify.
16925         * lib/fchmodat.c (includes): Likewise.
16926         * lib/fchownat.c (includes): Likewise.
16927         * lib/mkdirat.c (includes): Likewise.
16928         * lib/mkfifoat.c (includes): Likewise.
16929         * lib/symlinkat.c (includes): Likewise.
16930
16931         openat: allow return of fd 0
16932         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
16933         * modules/save-cwd (Depends-on): Replace fcntl-safer with
16934         unistd-safer.
16935         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
16936         <fcntl.h>; this module does not leak fds.
16937         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
16938         must be allowed to return 0, leaving openat_safer to add the
16939         safety.
16940         (openat_permissive): Avoid writing to just-opened fd 2 if
16941         restoring the current directory fails.
16942         * lib/openat-die.c (openat_restore_fail): Add comment.
16943         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
16944         (save_cwd): Guarantee safe fd, but without use of open_safer.
16945         * tests/test-openat.c: New test.
16946         * modules/openat-tests (Files, Makefile.am): Distribute and build
16947         new file.
16948
16949         relocatable-prog-wrapper: fix build
16950         * modules/relocatable-prog-wrapper (Files): Update name of
16951         canonicalize m4 file, broken on 2009-09-17.
16952         Reported by emad hajjar <aleppos@hotmail.com>.
16953
16954 2009-09-19  Bruno Haible  <bruno@clisp.org>
16955
16956         * lib/safe-alloc.h: Use the standard header with GPL copyright.
16957         * lib/safe-alloc.c: Likewise.
16958         Reported by Ian Beckwith <ianb@erislabs.net>.
16959
16960 2009-09-18  Bruno Haible  <bruno@clisp.org>
16961
16962         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
16963         Reported by <erobles@sensacd.com.mx>.
16964
16965 2009-09-17  Eric Blake  <ebb9@byu.net>
16966
16967         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
16968         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
16969         slashes when checking if last component is missing.
16970         * tests/test-canonicalize.c (main): Test this.
16971
16972         canonicalize, canonicalize-lgpl: honor // if distinct from /
16973         * modules/canonicalize (Files): Add double-slash-root.m4.
16974         * modules/canonicalize-lgpl (Files): Likewise.
16975         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16976         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
16977         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
16978         fallback definition.
16979         (canonicalize_filename_mode): Use it to protect //.
16980         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
16981         (__realpath): Likewise.
16982         * tests/test-canonicalize.c (main): Test this.
16983         * tests/test-canonicalize-lgpl.c (main): Likewise.
16984         * modules/canonicalize-tests (Depends-on): Add same-inode.
16985         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16986
16987         canonicalize-lgpl: fix glibc bug with trailing slash
16988         * m4/canonicalize-lgpl.m4: Move contents...
16989         * m4/canonicalize.m4: ...here.
16990         (gl_CANONICALIZE_LGPL): Factor realpath check...
16991         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
16992         glibc 2.3.5 bug, fixed 2005-04-27.
16993         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
16994         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
16995         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
16996         * modules/canonicalize-lgpl (Files): Manage file rename.
16997         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16998         * modules/stdlib (Makefile.am): Substitute witness.
16999         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
17000         is needed.
17001         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
17002         replacement is required.
17003         * lib/canonicalize.c (canonicalize_file_name): Likewise.
17004         * doc/glibc-functions/canonicalize_file_name.texi
17005         (canonicalize_file_name): Document this.
17006         * doc/posix-functions/realpath.texi (realpath): Likewise.
17007
17008         canonicalize-lgpl: reject non-directory with trailing slash
17009         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
17010         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
17011         catches failures in glibc 2.3.5.
17012         * tests/test-canonicalize.c (main): Likewise.
17013
17014         canonicalize-lgpl: use native realpath if it works
17015         * lib/canonicalize-lgpl.c (realpath): Guard with
17016         FUNC_REALPATH_WORKS.
17017         * lib/stdlib.in.h (realpath): Make declaration optional based on
17018         HAVE_REALPATH.
17019         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
17020         native realpath works.
17021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
17022         * modules/stdlib (Makefile.am): Substitute witness.
17023
17024         canonicalize, canonicalize-lgpl: use <stdlib.h>
17025         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
17026         (Include): Mention <stdlib.h>.
17027         (configure.ac): Mention functions we provide.
17028         * modules/canonicalize (configure.ac): Likewise.
17029         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
17030         realpath if canonicalize_file_name is missing.
17031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
17032         * modules/stdlib (Makefile.am): Substitute witnesses.
17033         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
17034         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
17035         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
17036         * NEWS: Document this.
17037         * doc/glibc-functions/canonicalize_file_name.texi
17038         (canonicalize_file_name): Likewise.
17039         * doc/posix-functions/realpath.texi (realpath): Likewise.
17040         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
17041
17042         test-canonicalize: consolidate into single C program
17043         * tests/test-canonicalize.sh: Delete; move setup into...
17044         * tests/test-canonicalize.c (main): ...the program, making it
17045         easier to run in debugger.  Add some tests.
17046         * modules/canonicalize-tests (Files): Remove unused file.
17047         (Depends-on): Add progname.
17048         (configure.ac, Makefile.am): Simplify.
17049
17050         test-canonicalize-lgpl: consolidate into single C program
17051         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
17052         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
17053         easier to run in debugger.  Add some tests.
17054         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
17055         (configure.ac, Makefile.am): Simplify.
17056
17057         canonicalize: avoid resolvepath
17058         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
17059         unnecessary checks.
17060         * lib/canonicalize.c (includes): Simplify.
17061         (canonicalize_file_name): Drop resolvepath implementation.
17062         * modules/canonicalize (Depends-on): Drop filenamecat.
17063
17064         canonicalize: don't lose errno
17065         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
17066         over calls to free.
17067
17068         canonicalize: simplify errno handling
17069         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
17070         assignment.
17071
17072         canonicalize, canonicalize-lgpl: update module dependencies
17073         * modules/canonicalize (Depends-on): Add extensions, lstat,
17074         pathmax, stdlib.
17075         (Files): Drop pathmax.h.
17076         (configure.ac): Adjust macro name.
17077         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
17078         lstat, stdlib, sys_stat.
17079         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
17080         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
17081         extensions.
17082         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
17083         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
17084         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
17085         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
17086         declaration, if available.
17087         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
17088         we can rely on the readlink module.
17089         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
17090         (includes): Use <unistd.h> unconditionally.
17091
17092 2009-09-17  Eric Blake  <ebb9@byu.net>
17093
17094         maint: make Include sections of modules consistent
17095         * modules/alloca: Use only header name; no need to list #include.
17096         * modules/alloca-opt: Likewise.
17097         * modules/arpa_inet: Likewise.
17098         * modules/canon-host: Likewise.
17099         * modules/configmake: Likewise.
17100         * modules/dirent: Likewise.
17101         * modules/eealloc: Likewise.
17102         * modules/environ: Likewise.
17103         * modules/fchdir: Likewise.
17104         * modules/fcntl: Likewise.
17105         * modules/fcntl-h: Likewise.
17106         * modules/gethrxtime: Likewise.
17107         * modules/gettime: Likewise.
17108         * modules/ignore-value: Likewise.
17109         * modules/inet_ntop: Likewise.
17110         * modules/inet_pton: Likewise.
17111         * modules/inttypes: Likewise.
17112         * modules/isnand-nolibm: Likewise.
17113         * modules/isnanf-nolibm: Likewise.
17114         * modules/mbchar: Likewise.
17115         * modules/mbfile: Likewise.
17116         * modules/mbiter: Likewise.
17117         * modules/mbuiter: Likewise.
17118         * modules/netdb: Likewise.
17119         * modules/netinet_in: Likewise.
17120         * modules/nproc: Likewise.
17121         * modules/pagealign_alloc: Likewise.
17122         * modules/poll: Likewise.
17123         * modules/printf-frexp: Likewise.
17124         * modules/pthread: Likewise.
17125         * modules/putenv: Likewise.
17126         * modules/random_r: Likewise.
17127         * modules/relocatable-prog: Likewise.
17128         * modules/search: Likewise.
17129         * modules/select: Likewise.
17130         * modules/selinux-h: Likewise.
17131         * modules/settime: Likewise.
17132         * modules/signal: Likewise.
17133         * modules/size_max: Likewise.
17134         * modules/socklen: Likewise.
17135         * modules/ssize_t: Likewise.
17136         * modules/stdarg: Likewise.
17137         * modules/stdbool: Likewise.
17138         * modules/stddef: Likewise.
17139         * modules/stdint: Likewise.
17140         * modules/stdio: Likewise.
17141         * modules/stdlib: Likewise.
17142         * modules/string: Likewise.
17143         * modules/strings: Likewise.
17144         * modules/sys_file: Likewise.
17145         * modules/sys_ioctl: Likewise.
17146         * modules/sys_select: Likewise.
17147         * modules/sys_socket: Likewise.
17148         * modules/sys_stat: Likewise.
17149         * modules/sys_time: Likewise.
17150         * modules/sys_times: Likewise.
17151         * modules/sys_utsname: Likewise.
17152         * modules/sys_wait: Likewise.
17153         * modules/sysexits: Likewise.
17154         * modules/time: Likewise.
17155         * modules/times: Likewise.
17156         * modules/tmpfile: Likewise.
17157         * modules/trim: Likewise.
17158         * modules/unistd: Likewise.
17159         * modules/wchar: Likewise.
17160         * modules/wctype: Likewise.
17161
17162 2009-09-17  Bruno Haible  <bruno@clisp.org>
17163
17164         Make getdate.y compile on QNX and NetBSD 5 / i386.
17165         * m4/getdate.m4 (gl_GETDATE): Conditionally define
17166         TIME_T_FITS_IN_LONG_INT.
17167         * lib/getdate.y (long_time_t): New type.
17168         (relative_time): Change type of 'seconds' field to long_time_t.
17169         (get_date): Update types of local variables. Check against overflow
17170         during conversion from long_time_t to time_t.
17171         Reported by Matt Kraai <kraai@ftbfs.org>
17172         and Hasso Tepper <hasso@netbsd.org>.
17173
17174 2009-09-17  Bruno Haible  <bruno@clisp.org>
17175
17176         * modules/COPYING: Update copyright years.
17177         * modules/README: Likeiwse.
17178         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
17179         Reported by Ian Beckwith <ianb@erislabs.net>.
17180
17181 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
17182
17183         * users.txt: Update references for gnuit package.
17184
17185 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
17186
17187         * m4/getdelim.m4: Fix typo in copyright line.
17188
17189 2009-09-17  Bruno Haible  <bruno@clisp.org>
17190
17191         * lib/atoll.c: Use the standard header with GPL copyright.
17192         * lib/argz.in.h: Likewise.
17193         * lib/glob.c: Likewise.
17194         * lib/glob-libc.h: Likewise.
17195         * lib/random_r.c: Likewise.
17196         * lib/siglist.h: Likewise.
17197         * lib/strsignal.c: Likewise.
17198         Reported by Ian Beckwith <ianb@erislabs.net>.
17199
17200 2009-09-17  Eric Blake  <ebb9@byu.net>
17201
17202         rmdir: ensure correct dependency order
17203         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
17204
17205 2009-09-17  Bruno Haible  <bruno@clisp.org>
17206
17207         Disable assertion that fails on NetBSD 5 / i386.
17208         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
17209         Reported by Sam Steingold <sds@gnu.org>
17210         and Hasso Tepper <hasso@netbsd.org>.
17211
17212 2009-09-16  Eric Blake  <ebb9@byu.net>
17213
17214         unlinkdir: port to mingw
17215         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
17216         on which no one can unlink a directory.
17217
17218         stdlib: sort witness names
17219         * modules/stdlib (Makefile.am): Sort replacements.
17220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
17221         * lib/stdlib.in.h: Likewise.
17222
17223         parse-duration-tests: avoid link failure
17224         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
17225         LIBINTL.
17226         Reported by Tom G. Christensen.
17227
17228         openat-tests: ensure unlinkat behaves like rmdir
17229         * tests/test-rmdir.c (main): Factor guts...
17230         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
17231         * modules/rmdir-tests (Files): Ship new file.
17232         * modules/openat-tests: New test.
17233         * tests/test-unlinkat.c: Likewise.
17234
17235         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
17236         * modules/rmdir-errno (Status, Notice): Now obsolete.
17237
17238         rmdir: work around cygwin 1.5.x and mingw bugs
17239         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
17240         * lib/rmdir.c (rmdir): Work around it.
17241         * modules/rmdir (Status, Notice): No longer obsolete.
17242         (Files): Add dos.m4.
17243         (Depends-on): Add unistd.
17244         (configure.ac): Set witnesses.
17245         (License): Relax to LGPLv2+.
17246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
17247         * modules/unistd (Makefile.am): Substitute witnesses.
17248         * lib/unistd.in.h (rmdir): Declare replacement.
17249         * doc/posix-functions/rmdir.texi (rmdir): Document this.
17250         * modules/rmdir-tests: New tests.
17251         * tests/test-rmdir.c: Likewise.
17252
17253 2009-09-15  Eric Blake  <ebb9@byu.net>
17254
17255         fchdir: improve use of replacement functions
17256         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
17257         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
17258         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
17259         REPLACE_CLOSEDIR.
17260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
17261         * modules/sys_stat (Makefile.am): Substitute correct witness.
17262         * modules/dirent (Makefile.am): Likewise.
17263         * modules/unistd (Makefile.am): Likewise.
17264         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
17265         * lib/unistd.in.h (dup): Likewise.
17266         * lib/sys_stat.in.h (fstat): Likewise.
17267
17268         maint: ignore gnulib-tool temp files
17269         * .gitignore: Ignore files created during gnulib-tool --test.
17270
17271 2009-09-13  Jim Meyering  <meyering@redhat.com>
17272
17273         posixtm: don't reject a time that specify "60" as the number of seconds
17274         * lib/posixtm.c (posixtime): The code to reject invalid dates
17275         would also reject a time specified with the .60 suffix.
17276         But POSIX allows that, in order to accommodate leap seconds.
17277         So don't reject it.
17278         (main): Adjust tests accordingly.
17279         * modules/posixtm (Depends-on): Add stpcpy.
17280
17281 2009-09-11  Jim Meyering  <meyering@redhat.com>
17282
17283         announce-gen: include [$release_type] in emitted Subject:
17284         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
17285         e.g., [stable] in the emitted Subject: line.
17286
17287 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17288
17289         Remove obsolete macros from several modules.
17290         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
17291         obsolete Autoconf macros with their modern counterparts.
17292         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
17293         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
17294         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
17295         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
17296         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
17297         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17298         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17299         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17300         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17301         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
17302         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17303         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17304         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
17305         * m4/sockets.m4 (gl_SOCKETS): Likewise.
17306         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
17307         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
17308         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
17309         * m4/time_r.m4 (gl_TIME_R): Likewise.
17310         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17311         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
17312         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
17313
17314         Fix copyright header in build-aux scripts.
17315         * build-aux/git-version-gen: Fix copyright header to match GPLv3
17316         recommendation.
17317         * build-aux/ncftpput-ftp: Likewise.
17318         * build-aux/update-copyright: Likewise.
17319
17320 2009-09-09  Eric Blake  <ebb9@byu.net>
17321
17322         test-link: allow Linux choice of errno
17323         * tests/test-link.c (main): Relax test for alternate error.
17324
17325         strndup: fix improper m4 caching
17326         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
17327         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
17328         (gl_PREREQ_STRNDUP): Delete.
17329         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
17330         * modules/string (Makefile.am): Substitute it.
17331         * lib/string.in.h (strndup): Modernize prototype.
17332
17333         getcwd: port to mingw
17334         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
17335         different from the POSIX assumptions made throughout the getcwd
17336         module; fortunately, the mingw getcwd does not need replacement.
17337         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
17338         * modules/getcwd-tests: New test.
17339         * tests/test-getcwd.c: Likewise.
17340
17341         link: fix platform bugs
17342         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
17343         * lib/link.c (link): Work around them.  Fix related mingw bug.
17344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
17345         * modules/unistd (Makefile.am): Substitute it.
17346         * lib/unistd.in.h (link): Declare replacement.
17347         * doc/posix-functions/link.texi (link): Document this.
17348         * modules/link (Depends-on): Add strdup-posix, sys_stat.
17349
17350         test-link: consolidate into single C program, test more cases
17351         * tests/test-link.sh: Delete.
17352         * tests/test-link.c: Test more error conditions.  Exposes bugs on
17353         at least Cygwin and Solaris.
17354         * modules/link-tests (Files): Remove unused file.
17355         (Depends-on): Add errno, sys_stat.
17356         (Makefile.am): Simplify.
17357
17358 2009-09-08  Bruno Haible  <bruno@clisp.org>
17359
17360         Work around towlower, towupper bug on mingw.
17361         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
17362         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
17363         * doc/posix-functions/towlower.texi: Mention the mingw bug.
17364         * doc/posix-functions/towupper.texi: Likewise.
17365         Reported by Eric Blake.
17366
17367 2009-09-08  Jim Meyering  <meyering@redhat.com>
17368
17369         build: don't try to run autoheader if we don't use it
17370         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
17371         is not used in configure.ac.
17372
17373 2009-09-08  Eric Blake  <ebb9@byu.net>
17374
17375         euidaccess: fix compilation error
17376         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
17377
17378         rawmemchr: relax license
17379         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
17380         okay.
17381         Reported by Jim Meyering.
17382
17383         mkfifoat: new module
17384         * modules/mkfifoat: New file.
17385         * lib/mkfifoat.c: Likewise.
17386         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
17387         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17388         * modules/sys_stat (Makefile.am): Use them.
17389         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
17390         * MODULES.html.sh (File system functions): Mention module.
17391         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17392         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17393         * modules/mkfifoat-tests: New test.
17394         * tests/test-mkfifoat.c: Likewise.
17395
17396         strchrnul: relax license
17397         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
17398         okay.
17399         Reported by Jim Meyering.
17400
17401 2009-09-08  Eric Blake  <ebb9@byu.net>
17402
17403         fstatat: fix compilation on Solaris
17404         * lib/fstatat.c (includes): Add fcntl.h.
17405         Reported by Pádraig Brady.
17406
17407 2009-09-07  Eric Blake  <ebb9@byu.net>
17408
17409         rename: modernize replacement
17410         * modules/rename (Depends-on): Add stdio.
17411         (configure.ac): Declare witness.
17412         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
17413         stdio take care of replacement.
17414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17415         * modules/stdio (Makefile.am): Substitute them.
17416         * lib/stdio.in.h (rename): Declare replacement.
17417         * lib/rename.c (includes): Allow cross-compilation to non-windows
17418         machines.
17419         * doc/posix-functions/rename.texi (rename): Improve
17420         documentation.
17421
17422         stdio: sort witness names
17423         * modules/stdio (Makefile.am): Sort replacements.
17424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17425         * lib/stdio.in.h: Likewise.
17426
17427         getcwd: minor cleanups
17428         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
17429         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
17430
17431         openat: provide more convenience names
17432         * modules/faccessat (configure.ac): Add C witness.
17433         * lib/unistd.in.h (readlinkat): Fix typo.
17434         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
17435         convenience wrappers.
17436         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
17437         wrappers in syntax checks.
17438
17439 2009-09-06  Eric Blake  <ebb9@byu.net>
17440
17441         doc: fix comments in recent patches
17442         * lib/faccessat.c: Mention correct function.
17443         * lib/fchmodat.c: Likewise.
17444         * lib/fchownat.c: Likewise.
17445         * lib/symlinkat.c: Likewise.
17446         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
17447         constants.
17448
17449         faccessat, symlinkat: continue cleanup of previous patch
17450         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
17451         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17452         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
17453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
17454         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
17455         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
17456         set.
17457
17458 2009-09-06  Bruno Haible  <bruno@clisp.org>
17459
17460         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
17461         (fstatat): Declare if GNULIB_FSTATAT is set.
17462         (mkdirat): Declare if GNULIB_MKDIRAT is set.
17463         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
17464         (unlinkat): Declare if GNULIB_UNLINKAT is set.
17465         * modules/fcntl-h (Files): Remove m4/openat.m4.
17466         * modules/sys_stat (Files): Remove m4/openat.m4.
17467         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
17468         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
17469         * modules/unistd (Files): Remove m4/openat.m4.
17470         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
17471         GNULIB_OPENAT.
17472         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
17473         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
17474         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
17475         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
17476         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
17477         gl_OPENAT_DEFAULTS.
17478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
17479         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
17480         Don't require gl_OPENAT_DEFAULTS.
17481         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
17482         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
17483         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
17484         (gl_OPENAT_DEFAULTS): Remove macro.
17485
17486 2009-09-06  Bruno Haible  <bruno@clisp.org>
17487
17488         * modules/openat (configure.ac): Remove unneeded witness.
17489
17490 2009-09-06  Bruno Haible  <bruno@clisp.org>
17491
17492         Set errno to ENOSYS when a function is entirely unsupported.
17493         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
17494         EOPNOTSUPP.
17495         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17496         * modules/chown (Depends-on): Remove errno.
17497
17498 2009-09-06  Bruno Haible  <bruno@clisp.org>
17499
17500         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
17501
17502 2009-09-06  Bruno Haible  <bruno@clisp.org>
17503
17504         * lib/sys_stat.in.h: Fix preprocessor command indentation.
17505
17506 2009-09-06  Ben Pfaff  <blp@gnu.org>
17507             Bruno Haible  <bruno@clisp.org>
17508
17509         Work around a glibc bug in strtok_r.
17510         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
17511         Undefine if UNDEFINE_STRTOK_R is set.
17512         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
17513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17514         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
17515         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
17516         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
17517         UNDEFINE_STRTOK_R.
17518         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
17519
17520 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17521
17522         exclude: minor fix
17523         * lib/exclude.c: Include wctype.h
17524
17525 2009-09-06  Akim Demaille  <demaille@gostai.com>
17526
17527         bootstrap: improve error message
17528         * build-aux/bootstrap (find_tool): Upon failure, report the list
17529         of candidates.
17530         Honor the initial value of the envvar.
17531
17532 2009-09-05  Eric Blake  <ebb9@byu.net>
17533
17534         symlinkat: new module
17535         * modules/symlinkat: New file.
17536         * lib/symlinkat.c: Likewise.
17537         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
17538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17539         * modules/unistd (Makefile.am): Use them.
17540         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
17541         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
17542         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
17543         * MODULES.html.sh (File system functions): Mention module.
17544         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17545         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17546         * modules/symlinkat-tests: New test.
17547         * tests/test-symlinkat.c: Likewise.
17548
17549         test-openat-safer: add more checks
17550         * tests/test-openat-safer.c (main): Check more code paths.
17551
17552 2009-09-05  Jim Meyering  <meyering@redhat.com>
17553
17554         syntax-check: detect unnecessary inclusion of openat.h
17555         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
17556
17557 2009-09-05  Bruno Haible  <bruno@clisp.org>
17558
17559         Support towlower, towupper.
17560         * doc/posix-functions/towlower.texi: Mention module wctype.
17561         * doc/posix-functions/towupper.texi: Likewise.
17562         * lib/wctype.in.h (towlower, towupper): New functions.
17563         * tests/test-wctype.c: Include stdio.h, stdlib.h.
17564         (ASSERT): New macro.
17565         (e): New variable.
17566         (main): Test also towlower, towupper. Test WEOF argument.
17567         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
17568
17569 2009-09-05  Bruno Haible  <bruno@clisp.org>
17570
17571         Fix conversion behaviour when the input is invalid.
17572         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
17573         mark occurring in first pass of indirect conversion.
17574         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
17575         input.
17576         Found by clang's static analyzer.
17577
17578 2009-09-05  Bruno Haible  <bruno@clisp.org>
17579
17580         * tests/test-striconveh.c (main): Test indirect conversion on platforms
17581         where direct conversion is possible.
17582
17583 2009-09-04  Eric Blake  <ebb9@byu.net>
17584
17585         openat: fail with ENOENT on empty name
17586         * lib/openat-proc.c (openat_proc_name): Special-case the empty
17587         buffer.
17588
17589         link-follow: fix logic bug in prior patch
17590         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
17591         reversed sense of yes and no in prior patch.  Avoid confusing
17592         compilation failure with desired semantics.
17593
17594         link-follow: accomodate mingw and cross-compilation
17595         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
17596         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
17597         cross-compilation results to -1, to make linkat easier to
17598         implement when cross-compiling.  Trivially support mingw.
17599         * modules/link-follow (configure.ac): Call new name.
17600         * NEWS: Mention this.
17601
17602 2009-09-03  Eric Blake  <ebb9@byu.net>
17603
17604         faccessat: compile replacement
17605         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
17606         needed.
17607
17608         fts: fix compilation error
17609         * lib/fts.c (includes): Re-add "openat.h", for
17610         openat_needs_fchdir.
17611
17612         faccessat: new module
17613         * modules/faccessat: New file.
17614         * lib/faccessat.c: Likewise.
17615         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17617         * modules/unistd (Makefile.am): Use it.
17618         * lib/unistd.in.h (faccessat): Declare it.
17619         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
17620         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
17621         * MODULES.html.sh (File system functions): Mention it.
17622         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
17623         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17624
17625         euidaccess: prefer POSIX over non-standard implementation
17626         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
17627         * lib/euidaccess.c (euidaccess): Use it if available.
17628
17629         openat: make template easier to use
17630         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
17631         AT_FUNC_F2 to be undefined.
17632         (VALIDATE_FLAG): New macro; use it to reject bad flags.
17633         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
17634         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
17635         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
17636         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
17637         Likewise.
17638         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
17639         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
17640         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
17641         Likewise.
17642
17643         openat: declare in POSIX headers
17644         * NEWS: Mention this.
17645         * modules/openat (configure.ac): Declare witnesses.
17646         (Depends-on): Add fcntl-h, sys_stat, unistd.
17647         (Include): Mention correct headers.
17648         * modules/fcntl-h (Depends-on): Add link-warning.
17649         (Files): Add openat.m4.
17650         (Makefile.am): Substitute witnesses.
17651         * modules/sys_stat (Files, Makefile.am): Likewise.
17652         * modules/unistd (Files, Makefile.am): Likewise.
17653         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
17654         (gl_OPENAT_DEFAULTS): New macro.
17655         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
17656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
17657         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
17658         (SYS_STAT_H): Remove unused variable.
17659         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
17660         * lib/fcntl--.h (includes): Remove unneeded header.
17661         * lib/openat-safer.c (includes): Likewise.
17662         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
17663         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
17664         appropriate headers.
17665         (__OPENAT_PREFIX): Delete.
17666         * lib/fcntl.in.h (openat): Provide declaration.
17667         (AT_FDCWD): Fix Solaris bug.
17668         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
17669         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
17670         * lib/fchmodat.c (includes):  Adjust to find declaration.
17671         * lib/fchownat.c (includes): Likewise.
17672         * lib/mkdirat.c (includes): Likewise.
17673         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
17674         still visible.
17675
17676 2009-09-02  Eric Blake  <ebb9@byu.net>
17677
17678         errno: use consistently
17679         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
17680         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
17681         * lib/canonicalize.c (ELOOP): Likewise.
17682         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
17683         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
17684         * lib/lchown.c (EOPNOTSUPP): Likewise.
17685         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
17686         * lib/savewd.c (ESTALE): Likewise.
17687         * lib/settime.c (ENOSYS): Likewise.
17688         * lib/utimens.c (ENOSYS): Likewise.
17689         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
17690         * lib/chdir-safer.c (ELOOP): Likewise.
17691         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
17692         * modules/c-stack (Depends-on): Add errno.
17693         * modules/canonicalize (Depends-on): Likewise.
17694         * modules/chdir-safer (Depends-on): Likewise.
17695         * modules/fdopendir (Depends-on): Likewise.
17696         * modules/inet_ntop (Depends-on): Likewise.
17697         * modules/inet_pton (Depends-on): Likewise.
17698         * modules/lchown (Depends-on): Likewise.
17699         * modules/openat (Depends-on): Likewise.
17700         * modules/savewd (Depends-on): Likewise.
17701         * modules/settime (Depends-on): Likewise.
17702         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
17703
17704         fts: avoid leaking fds
17705         * modules/fts (Depends-on): Add cloexec.
17706         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
17707         flag.
17708
17709         fts: make directory fds more robust
17710         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
17711         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
17712
17713         backupfile, chdir-long, fts, savedir: make safer
17714         * lib/backupfile.c (includes): Use "dirent--.h", since
17715         numbered_backup can write to stderr during readdir.
17716         * lib/savedir.c (includes): Likewise.
17717         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
17718         emulation can write to stderr on failure.
17719         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
17720         * lib/getcwd.c: Document why opendir_safer is unused.
17721         * lib/glob.c: Likewise.
17722         * lib/scandir.c: Likewise.
17723         * lib/openat-proc.c: Likewise, for open_safer.
17724         * modules/backupfile (Depends-on): Add dirent-safer.
17725         * modules/savedir (Depends-on): Likewise.
17726         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
17727         * modules/chdir-long (Depends-on): Add openat-safer.
17728
17729         openat-safer: new module
17730         * modules/openat-safer: New file.
17731         * lib/openat-safer.c: Likewise.
17732         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
17733         * lib/fcntl-safer.h (openat_safer): Declare.
17734         * lib/fcntl--.h (openat): Override.
17735         * MODULES.html.sh (File descriptor based I/O): Mention it.
17736         * lib/openat.h: Add double-inclusion guards.
17737         * lib/openat.c (includes): Only include "fcntl-safer.h", not
17738         "fcntl--.h", so we can implement openat.
17739         * modules/openat-safer-tests: New test.
17740         * tests/test-openat-safer.c: New file.
17741
17742         dirent-safer: new module
17743         * modules/dirent-safer: New file.
17744         * lib/dirent--.h: Likewise.
17745         * lib/dirent-safer.h: Likewise.
17746         * lib/opendir-safer.c: Likewise.
17747         * m4/dirent-safer.m4: Likewise.
17748         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
17749         * modules/dirent-safer-tests: New test.
17750         * tests/test-dirent-safer.c: New file.
17751         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
17752
17753         fdopendir: optimize on mingw
17754         * lib/unistd.in.h (_gl_directory_name): New prototype.
17755         * lib/fchdir.c (_gl_directory_name): Implement it.
17756         (fchdir): Use it to simplify implementation.
17757         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
17758         fchdir, when available, to avoid calling [f]chdir().
17759
17760         fdopendir: split into its own module
17761         * lib/openat.c (fdopendir): Move...
17762         * lib/fdopendir.c: ...into new file.
17763         * modules/fdopendir: New module.
17764         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
17765         * modules/openat (Depends-on): Add fdopendir.
17766         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
17767         fdopendir here.
17768         * modules/savedir (Depends-on): Only need fdopendir, not full
17769         openat.
17770         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
17771         * lib/openat.h (fdopendir): Drop prototype.
17772         * lib/dirent.in.h (fdopendir): Provide prototype.
17773         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
17774         * modules/dirent (Makefile.am): Substitute them.
17775         * MODULES.html.sh (File system functions): Mention it.
17776         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
17777         * modules/fdopendir-tests: New file.
17778         * tests/test-fdopendir.c: Likewise.
17779
17780         fchdir: use more consistent macro convention
17781         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
17782         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
17783         REPLACE_FCHDIR, rather than relying on config.h macros.
17784         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
17785         inside a single make-time REPLACE_FCHDIR block, rather than using
17786         the config.h FCHDIR_REPLACEMENT.
17787         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
17788         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
17789         Manage fstat replacement.
17790         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
17791         REPLACE_FCHDIR.
17792         * modules/sys_stat (Files): Add m4/unistd_h.m4.
17793         (Makefile.am): Substitute REPLACE_FCHDIR.
17794         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
17795         FCHDIR_REPLACEMENT.
17796         * lib/dup-safer.c (dup_safer): Likewise.
17797         * lib/dup2.c (rpl_dup2): Likewise.
17798         * lib/dup3.c (rpl_dup3): Likewise.
17799         * lib/open.c (rpl_open): Likewise.
17800
17801         fchdir: simplify error handling, and support dup3
17802         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
17803         stdbool, malloc-posix, realloc-posix.
17804         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
17805         (ensure_dirs_slot): Return false on allocation failure.
17806         (rpl_dup2): Delete.
17807         (_gl_register_dup): New function.
17808         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
17809         (_gl_register_fd): Close fd on allocation failure.
17810         * lib/fcntl.in.h (_gl_register_fd): Update signature.
17811         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
17812         prototype.
17813         (rpl_dup2_fchdir): Delete prototype.
17814         * lib/open.c (open): Update caller.
17815         * lib/dup2.c (dup2): Track fchdir metadata.
17816         * lib/dup3.c (dup3): Likewise.
17817         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
17818         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
17819
17820 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17821
17822         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
17823         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
17824         don't pass arguments to AC_OUTPUT.
17825
17826 2009-09-02  Bruno Haible  <bruno@clisp.org>
17827
17828         * modules/mkdtemp (License): Relicense under LGPLv2+.
17829         Reported by Paolo Bonzini.
17830
17831 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17832
17833         Replace uses of obsolete autoconf macros in Jim's modules.
17834         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
17835         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
17836         can evoke a warning from autoconf when run with -Wobsolete
17837         enabled.  They were declared obsolete for good reasons (see
17838         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
17839         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
17840         should not continue using the deprecated macros.
17841         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
17842         obsolete Autoconf macros with modern counterparts.
17843         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17844         * m4/dos.m4 (gl_AC_DOS): Likewise.
17845         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
17846         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17847         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
17848         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
17849         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
17850         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
17851         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
17852         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
17853         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
17854         Likewise.
17855         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17856         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
17857         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
17858         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
17859         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17860         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
17861
17862 2009-09-01  Eric Blake  <ebb9@byu.net>
17863
17864         fchdir: fix off-by-one bug in previous patch
17865         * lib/fchdir.c (rpl_fstat): Use correct bounds.
17866         (_gl_unregister_fd): Delete useless if.
17867
17868 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
17869
17870         maint.mk: sort the list of syntax-check rules
17871         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
17872         easier to get a sense of progress when the rules are run sequentially
17873         and take a long time.
17874
17875 2009-09-01  Simon Josefsson  <simon@josefsson.org>
17876
17877         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
17878         * modules/netinet_in: Likewise.
17879         * modules/sys_file: Likewise.
17880         * modules/sys_ioctl: Likewise.
17881         * modules/sys_select: Likewise.
17882         * modules/sys_socket: Likewise.
17883         * modules/sys_stat: Likewise.
17884         * modules/sys_time: Likewise.
17885         * modules/sys_times: Likewise.
17886         * modules/sys_utsname: Likewise.
17887         * modules/sys_wait: Likewise.
17888
17889 2009-09-01  Jim Meyering  <meyering@redhat.com>
17890
17891         fts: help ensure that return values are not ignored
17892         * lib/fts_.h (__GNUC_PREREQ): Define.
17893         (__attribute_warn_unused_result__): Define.
17894         (fts_children, fts_close, fts_open, fts_read): Declare with
17895         __attribute_warn_unused_result__.
17896
17897         fts: fts_close now fails also when closing a dir file descriptor fails
17898         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
17899         and propagate to caller, along with errno.
17900
17901         announce-gen: correct formatting in --help output
17902         * build-aux/announce-gen (usage): Move the one-line description in
17903         --help output "up", to where it belongs, just after Usage:.
17904
17905 2009-08-31  Eric Blake  <ebb9@byu.net>
17906
17907         fchdir: port to mingw
17908         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
17909         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
17910         opened, then use a substitute.
17911         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
17912         replacement.
17913         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
17914         (_gl_register_fd): No need to check stat if open already filters
17915         all directories.
17916         (fchdir): Fix error condition to match POSIX.
17917         * modules/fchdir (Depends-on): Add sys_stat.
17918         * doc/posix-functions/open.texi (open): Document the limitation.
17919         * modules/fchdir-tests: New file.
17920         * tests/test-fchdir.c: Likewise.
17921
17922         canonicalize: allow cross-testing from cygwin to mingw
17923         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
17924         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
17925         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
17926         Likewise.
17927         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
17928         target does not support symlinks.
17929         * tests/test-canonicalize-lgpl.sh: Likewise.
17930
17931         chown: avoid compilation warning on mingw
17932         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
17933         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
17934         mingw.
17935         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17936         * modules/chown (Depends-on): Add errno.
17937
17938 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17939
17940         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
17941         command.
17942
17943 2009-08-31  Jim Meyering  <meyering@redhat.com>
17944
17945         canonicalize: remove useless initialization
17946         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
17947         initialization of local, "end".
17948
17949 2009-08-30  Bruno Haible  <bruno@clisp.org>
17950
17951         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
17952         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
17953         ENOSYS.
17954
17955 2009-08-30  Bruno Haible  <bruno@clisp.org>
17956
17957         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
17958         /usr/xpg4/bin/tr when it exists.
17959         * tests/test-pipe-filter-gi1.sh: Likewise.
17960
17961 2009-08-30  Bruno Haible  <bruno@clisp.org>
17962
17963         Work around deficient /usr/bin/id program on Solaris.
17964         * tests/test-file-has-acl.sh (ID): New variable.
17965         * tests/test-set-mode-acl.sh (ID): Likewise.
17966         * tests/test-copy-acl.sh (ID): Likewise.
17967         * tests/test-copy-file.sh (ID): Likewise.
17968
17969 2009-08-30  Bruno Haible  <bruno@clisp.org>
17970
17971         New module 'xstriconveh'.
17972         * lib/xstriconveh.h: New file.
17973         * lib/xstriconveh.c: New file.
17974         * modules/xstriconveh: New file.
17975
17976 2009-08-30  Bruno Haible  <bruno@clisp.org>
17977
17978         Make it easier to use mem_cd_iconveh.
17979         * lib/striconveh.h (iconveh_t): New type.
17980         (iconveh_open, iconveh_close): New declarations.
17981         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17982         with a single 'const iconveh_t *' argument.
17983         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
17984         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17985         with a single 'const iconveh_t *' argument.
17986         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
17987         * tests/test-striconveh.c (main): Update.
17988         * NEWS: Mention the change.
17989
17990 2009-08-30  Bruno Haible  <bruno@clisp.org>
17991
17992         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
17993         problem.
17994
17995 2009-08-30  Bruno Haible  <bruno@clisp.org>
17996
17997         Work around iconv_open problem on Solaris.
17998         * lib/iconv_open-solaris.gperf: New file.
17999         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
18000         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
18001         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
18002         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
18003         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
18004         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
18005
18006 2009-08-29  Jim Meyering  <meyering@redhat.com>
18007
18008         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
18009         * top/maint.mk (cvs-check): Remove target; it was just an alias
18010         to the better-named vc-diff-check.
18011         (maintainer-distcheck): Remove rule.  It was used only from
18012         the (alpha/beta/major) target, and all of its commands but one
18013         were coreutils-specific.
18014         (vc-dist): Remove rule.
18015         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
18016         Run vc-diff-check, not vc-dist.
18017         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
18018
18019 2009-08-27  Bruno Haible  <bruno@clisp.org>
18020
18021         * tests/test-bitrotate.c (main): Remove test that uses a shift count
18022         of 0.
18023
18024 2009-08-27  Bruno Haible  <bruno@clisp.org>
18025
18026         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
18027         compilers.
18028         * doc/func.texi: Document the SunPRO C bug.
18029
18030 2009-08-27  Bruno Haible  <bruno@clisp.org>
18031
18032         Fix link error on Solaris.
18033         * tests/test-parse-duration.c (xstrdup): Remove function.
18034
18035 2009-08-26  Pádraig Brady  <P@draigbrady.com>
18036
18037         ignore-value: handle pointer types, too
18038         * lib/ignore-value.h (__attribute__): Remove definition.
18039         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
18040         of a more concise and more-often effective "(void) i" statement.
18041         (ignore_ptr): New function to suppress warnings from functions that
18042         return pointers, and to make it explicit that one function doesn't
18043         handle all cases.
18044
18045 2009-08-25  Bruno Haible  <bruno@clisp.org>
18046
18047         dup2: work around a Linux bug.
18048         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
18049         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
18050         * doc/posix-functions/dup2.texi: Mention the Linux bug.
18051         Reported by Simon Josefsson.
18052
18053 2009-08-25  Jim Meyering  <meyering@redhat.com>
18054
18055         libguestfs uses gnulib
18056         * users.txt: Add libguestfs.
18057
18058 2009-08-24  Eric Blake  <ebb9@byu.net>
18059
18060         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
18061         * lib/pipe2.c (includes): Add binary-io.h.
18062         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
18063
18064 2009-08-24  Bruno Haible  <bruno@clisp.org>
18065
18066         Tolerate declared but missing accept4 syscall.
18067         * lib/accept4.c (accept4): Invoke original accept4 function first, if
18068         available.
18069         * lib/sys_socket.in.h (accept4): If the function is already present,
18070         override it.
18071         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
18072         * modules/accept4 (Makefile.am): Compile accept4.c always.
18073         Reported by Paolo Bonzini and Eric Blake.
18074
18075 2009-08-23  Bruno Haible  <bruno@clisp.org>
18076
18077         New module 'accept4'.
18078         * lib/sys_socket.in.h (accept4): New declaration.
18079         * lib/accept4.c: New file.
18080         * m4/accept4.m4: New file.
18081         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18082         GNULIB_ACCEPT4, HAVE_ACCEPT4.
18083         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
18084         HAVE_ACCEPT4.
18085         * modules/accept4: New file.
18086         * doc/glibc-functions/accept4.texi: Mention the new module.
18087
18088 2009-08-24  Jim Meyering  <meyering@redhat.com>
18089
18090         progname: also set global program_invocation_name, when possible
18091         Before this change, a libtool-enabled program that calls glibc's
18092         error function would report the program name as
18093         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
18094         * modules/progname (configure.ac): Check for a declaration of
18095         program_invocation_name.
18096         * lib/progname.c:  Include <errno.h>.
18097         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
18098         Set program_invocation_name.
18099
18100 2009-08-23  Bruno Haible  <bruno@clisp.org>
18101
18102         * lib/dup3.c: Include <string.h>.
18103
18104 2009-08-23  Bruno Haible  <bruno@clisp.org>
18105
18106         * lib/dup3.c (dup3): Test only once whether the system actually exists.
18107         * lib/pipe2.c (pipe2): Likewise.
18108         Suggested by Eric Blake.
18109
18110 2009-08-23  Bruno Haible  <bruno@clisp.org>
18111
18112         Tolerate declared but missing dup3 syscall.
18113         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
18114         * lib/unistd.in.h (dup3): If the function is already present,
18115         override it.
18116         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
18117         * modules/dup3 (Makefile.am): Compile dup3.c always.
18118         Reported by Paolo Bonzini.
18119
18120 2009-08-23  Bruno Haible  <bruno@clisp.org>
18121
18122         Tolerate declared but missing pipe2 syscall.
18123         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
18124         available.
18125         * lib/unistd.in.h (pipe2): If the function is already present,
18126         override it.
18127         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
18128         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
18129         Reported by Paolo Bonzini.
18130
18131 2009-08-23  Bruno Haible  <bruno@clisp.org>
18132
18133         * lib/pipe2.c (pipe2): Move #ifs inside function.
18134
18135 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18136
18137         quotearg: document limitations of quote_these_too
18138         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
18139         those limitations are created.
18140         * lib/quotearg.h (set_char_quoting): Document that digits and
18141         letters that are special after backslash are not permitted.
18142         (quotearg_char): Cross-reference set_char_quoting documentation.
18143
18144 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
18145
18146         quotearg: implement custom_quoting_style
18147         * lib/quotearg.c: (struct quoting_options): Add left_quote and
18148         right_quote fields.
18149         (set_custom_quoting): New public function.
18150         (quotearg_buffer_restyled): Add left_quote and right_quote
18151         arguments, handle them very much like locale quoting, and update
18152         all uses.
18153         (quotearg_n_custom): New public function.
18154         (quotearg_n_custom_mem): New public function.
18155         (quotearg_custom): New public function.
18156         (quotearg_custom_mem): New public function.
18157         * lib/quotearg.h: Prototype and document new public functions.
18158         (enum quoting_style): For escape_quoting_style and
18159         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
18160         ignored even though they're otherwise like c_quoting_style.
18161         Add custom_quoting_style member and document with comparison to
18162         clocale_quoting_style.
18163         * tests/test-quotearg.c (custom_quotes): New array.
18164         (custom_results): New array.
18165         (main): Extend to test custom quoting.
18166
18167 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18168
18169         quotearg: fix right quote escaping when it's in quote_these_too
18170         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
18171         quote, be sure to prepend only one backslash.
18172         * tests/test-quotearg.c (use_quote_double_quotes): New function.
18173         (main): Test it.
18174
18175 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18176
18177         quotearg-tests: test escaping of embedded locale quotes
18178         * tests/test-quotearg.c (struct result_strings): Add member for
18179         new input.
18180         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
18181         (inputs): Add new input.
18182         (results_g): Add expected results.
18183         (flag_results): Likewise.
18184         (locale_results): Likewise.
18185         (compare_strings): Check those.
18186
18187 2009-08-23  Bruno Haible  <bruno@clisp.org>
18188
18189         Tests for module 'dup3'.
18190         * modules/dup3-tests: New file.
18191         * tests/test-dup3.c: New file.
18192
18193         New module 'dup3'.
18194         * lib/unistd.in.h (dup3): New declaration.
18195         * lib/dup3.c: New file.
18196         * m4/dup3.m4: New file.
18197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
18198         HAVE_DUP3.
18199         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
18200         * modules/dup3: New file.
18201         * doc/glibc-functions/dup3.texi: Mention the new module.
18202
18203 2009-08-23  Bruno Haible  <bruno@clisp.org>
18204
18205         Tweak the dup2 test.
18206         * tests/test-dup2.c (main): Create the test file empty. Verify that an
18207         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
18208         the test file is still empty. Fix argument order of lseek.
18209
18210 2009-08-23  Bruno Haible  <bruno@clisp.org>
18211
18212         Avoid test link errors when the modules getopt-gnu, gettext are used.
18213         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
18214         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18215
18216 2009-08-23  Bruno Haible  <bruno@clisp.org>
18217
18218         Fix getdtablesize() on mingw.
18219         * lib/getdtablesize.c (getdtablesize): Implement differently.
18220         * lib/unistd.in.h (getdtablesize): Improve comment.
18221
18222 2009-08-23  Bruno Haible  <bruno@clisp.org>
18223
18224         New module 'mkostemp'.
18225         Based on Ulrich Drepper's 2007-08-10 change in glibc.
18226         * lib/stdlib.in.h (mksotemp): New declaration.
18227         * lib/mkostemp.c: New file, from glibc with modifications.
18228         * lib/tempname.h (GT_FILE): Remove outdated comment.
18229         (gen_tempname): Add flags argument.
18230         * lib/tempname.c (__GT_BIGFILE): Remove macro.
18231         (__GT_FILE): Map to 1.
18232         (small_open, large_open): Remove macros.
18233         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
18234         * lib/mkstemp.c (mkstemp): Update.
18235         * lib/mkdtemp.c (mkdtemp): Likewise.
18236         * m4/mkostemp.m4: New file.
18237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
18238         HAVE_MKOSTEMP.
18239         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
18240         HAVE_MKOSTEMP.
18241         * modules/mkostemp: New file, based on modules/mkstemp.
18242         * doc/glibc-functions/mkostemp.texi: Mention the new module.
18243         * NEWS: Mention the change.
18244
18245 2009-08-23  Bruno Haible  <bruno@clisp.org>
18246
18247         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
18248         Reported by Eric Blake.
18249
18250 2009-08-23  Bruno Haible  <bruno@clisp.org>
18251
18252         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
18253         Reported by Eric Blake.
18254
18255 2009-08-23  Bruno Haible  <bruno@clisp.org>
18256
18257         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
18258         * modules/pipe2 (Depends-on): Likewise.
18259
18260 2009-08-23  Eric Blake  <ebb9@byu.net>
18261
18262         fcntl-h: add O_TTY_INIT support
18263         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
18264         * tests/test-fcntl-h.c (o): Test it.
18265         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18266
18267         fcntl-h: rename from fcntl, in preparation for fcntl(2)
18268         * modules/fcntl: Move <fcntl.h> header replacement...
18269         * modules/fcntl-h: ...to new name, so as not to collide with
18270         like-named function.
18271         * tests/test-fcntl.c: Rename...
18272         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
18273         * modules/fcntl-tests: Rename...
18274         * modules/fcntl-h-tests: ...to this.  Update test file name.
18275         * modules/chdir-long (Depends-on): Update clients.
18276         * modules/chdir-safer (Depends-on): Likewise.
18277         * modules/fcntl-safer (Depends-on): Likewise.
18278         * modules/fts (Depends-on): Likewise.
18279         * modules/mkancesdirs (Depends-on): Likewise.
18280         * modules/mkdir-p (Depends-on): Likewise.
18281         * modules/open (Depends-on): Likewise.
18282         * modules/savewd (Depends-on): Likewise.
18283         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
18284         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18285
18286 2009-08-22  Bruno Haible  <bruno@clisp.org>
18287
18288         * modules/binary-io (License): Relicense under LGPL.
18289         * modules/pipe2 (License): Likewise.
18290
18291 2009-08-22  Bruno Haible  <bruno@clisp.org>
18292
18293         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
18294         return value.
18295         * lib/pipe-filter-gi.c (filter_init): Likewise.
18296         Reported by Eric Blake.
18297
18298 2009-08-22  Bruno Haible  <bruno@clisp.org>
18299
18300         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
18301         * modules/pipe (Depends-on): Add pipe2.
18302
18303 2009-08-22  Bruno Haible  <bruno@clisp.org>
18304
18305         Tests for module 'pipe2'.
18306         * modules/pipe2-tests: New file.
18307         * tests/test-pipe2.c: New file.
18308
18309         New module 'pipe2'.
18310         * lib/unistd.in.h (pipe2): New declaration.
18311         * lib/pipe2.c: New file.
18312         * m4/pipe2.m4: New file.
18313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
18314         HAVE_PIPE2.
18315         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
18316         * modules/pipe2: New file.
18317         * doc/glibc-functions/pipe2.texi: Mention the new module.
18318
18319 2009-08-22  Bruno Haible  <bruno@clisp.org>
18320
18321         Reference some new glibc functions.
18322         * doc/glibc-functions/accept4.texi: New file.
18323         * doc/glibc-functions/dup3.texi: New file.
18324         * doc/glibc-functions/mkostemp.texi: New file.
18325         * doc/glibc-functions/pipe2.texi: New file.
18326         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
18327         (Glibc sys/socket.h): Refer to accept4.
18328         (Glibc unistd.h): Refer to dup3, pipe2.
18329         Reported by Eric Blake.
18330
18331 2009-08-22  Jim Meyering  <meyering@redhat.com>
18332             Bruno Haible  <bruno@clisp.org>
18333
18334         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
18335         This makes it so packages using automake-1.11's silent-rules option
18336         can print e.g., a single "GEN    configmake.h" line, rather than
18337         the 30+ statements that perform the job.  If you want to see the
18338         actual commands, you can still run "make V=1".
18339         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
18340         so that make output is abbreviated when those variables are defined
18341         appropriately.
18342         * modules/argz: Likewise.
18343         * modules/arpa_inet: Likewise.
18344         * modules/byteswap: Likewise.
18345         * modules/configmake: Likewise.
18346         * modules/dirent: Likewise.
18347         * modules/errno: Likewise.
18348         * modules/fcntl: Likewise.
18349         * modules/float: Likewise.
18350         * modules/fnmatch: Likewise.
18351         * modules/getopt-posix: Likewise.
18352         * modules/glob: Likewise.
18353         * modules/iconv_open: Likewise.
18354         * modules/inttypes: Likewise.
18355         * modules/localcharset: Likewise.
18356         * modules/locale: Likewise.
18357         * modules/math: Likewise.
18358         * modules/netdb: Likewise.
18359         * modules/netinet_in: Likewise.
18360         * modules/poll: Likewise.
18361         * modules/posix_spawnp-tests: Likewise.
18362         * modules/sched: Likewise.
18363         * modules/search: Likewise.
18364         * modules/selinux-h: Likewise.
18365         * modules/signal: Likewise.
18366         * modules/spawn: Likewise.
18367         * modules/stdarg: Likewise.
18368         * modules/stdbool: Likewise.
18369         * modules/stddef: Likewise.
18370         * modules/stdint: Likewise.
18371         * modules/stdio: Likewise.
18372         * modules/stdlib: Likewise.
18373         * modules/string: Likewise.
18374         * modules/strings: Likewise.
18375         * modules/sys_file: Likewise.
18376         * modules/sys_ioctl: Likewise.
18377         * modules/sys_select: Likewise.
18378         * modules/sys_socket: Likewise.
18379         * modules/sys_stat: Likewise.
18380         * modules/sys_time: Likewise.
18381         * modules/sys_times: Likewise.
18382         * modules/sys_utsname: Likewise.
18383         * modules/sys_wait: Likewise.
18384         * modules/sysexits: Likewise.
18385         * modules/time: Likewise.
18386         * modules/unistd: Likewise.
18387         * modules/wchar: Likewise.
18388         * modules/wctype: Likewise.
18389
18390 2009-08-22  Jim Meyering  <meyering@redhat.com>
18391
18392         announce-gen: detect write failure
18393         * build-aux/announce-gen: Add Coda at end.
18394         Remove equivalent-but-more-verbose block at top.
18395
18396 2009-08-19  Akim Demaille  <demaille@gostai.com>
18397
18398         bootstrap: --help to stdout.
18399         * bootstrap (usage): Don't send --help to stderr.
18400         Use a here doc instead of a long string.
18401
18402 2009-08-21  Eric Blake  <ebb9@byu.net>
18403
18404         test-popen-safer: split from test-popen
18405         * tests/test-popen.c (main): Move...
18406         * tests/test-popen.h: ...into new file.
18407         * tests/test-popen-safer2.c: New file.
18408         * modules/popen-tests (Files): Add test-popen.h.
18409         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
18410         Suggested by Bruno Haible.
18411
18412         test-fcntl-safer: split from test-open
18413         * tests/test-open.c (main): Move...
18414         * tests/test-open.h: ...into new file.
18415         * tests/test-fcntl-safer.c: New file.
18416         * modules/open-tests (Files): Add test-open.h.
18417         * modules/fcntl-safer-tests: New file.
18418         Suggested by Bruno Haible.
18419
18420         test-fopen-safer: split from test-fopen
18421         * tests/test-fopen.c (main): Move...
18422         * tests/test-fopen.h: ...into new file.
18423         * tests/test-fopen-safer.c: New file.
18424         * modules/fopen-tests (Files): Add test-fopen.h.
18425         * modules/fopen-safer-tests: New file.
18426         Suggested by Bruno Haible.
18427
18428 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18429
18430         popen-safer: test O_CLOEXEC at run-time.
18431         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
18432
18433 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18434
18435         fcntl: move more flags to the header
18436         * lib/cloexec.c: Do not define FD_CLOEXEC here.
18437         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
18438         * lib/fcntl.in.h: Do both things here.
18439
18440 2009-08-21  Jim Meyering  <meyering@redhat.com>
18441
18442         consistently remove $@-t before redirecting to it
18443         * modules/argz: Remove $@-t and $@ before redirecting to the former.
18444         * modules/alloca-opt: Likewise.
18445         * modules/byteswap: Likewise.
18446         * modules/fnmatch: Likewise.
18447         * modules/getopt-posix: Likewise.
18448         * modules/glob: Likewise.
18449         * modules/poll: Likewise.
18450         * modules/posix_spawnp-tests: Likewise.
18451         * modules/sys_socket: Likewise.
18452         * modules/sysexits: Likewise.
18453
18454 2009-08-21  Eric Blake  <ebb9@byu.net>
18455
18456         popen: simplify access to original popen
18457         * lib/popen.c (rpl_popen): No need to worry about popen being a
18458         macro.
18459         Reported by Bruno Haible.
18460
18461 2009-08-20  Eric Blake  <ebb9@byu.net>
18462
18463         build: avoid some compiler warnings
18464         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
18465         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
18466         type.
18467         (new_exclude_segment, excluded_file_pattern_p)
18468         (excluded_file_name_p): Reduce scope.
18469         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
18470         old-style declaration.
18471
18472 2009-08-20  Simon Josefsson  <simon@josefsson.org>
18473
18474         * tests/test-exclude1.sh: Handle Windows EOL.
18475         * tests/test-exclude2.sh: Likewise.
18476         * tests/test-exclude3.sh: Likewise.
18477         * tests/test-exclude4.sh: Likewise.
18478         * tests/test-exclude5.sh: Likewise.
18479         * tests/test-exclude6.sh: Likewise.
18480         * tests/test-exclude7.sh: Likewise.
18481
18482 2009-08-19  Akim Demaille  <demaille@gostai.com>
18483
18484         bootstrap: find sha1sum when named gsha1sum.
18485         * bootstrap (find_tool): New.
18486         ($SHA1SUM): New.
18487         Use it.
18488
18489 2009-08-20  Jim Meyering  <meyering@redhat.com>
18490
18491         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
18492         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
18493         expression that converts "." in a file name to "\." in the resulting
18494         regexp.  Start with a dummy statement, so that prior shell variable
18495         definitions are expanded portably.  Reported by Simon Josefsson.
18496
18497 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
18498
18499         Fix polling for writeability of a screen buffer.
18500         * lib/poll.c: Distinguish input and screen buffers for the
18501         Win32 implementation.
18502         * lib/select.c: Likewise.
18503
18504 2009-08-19  Eric Blake  <ebb9@byu.net>
18505
18506         popen-safer: prevent popen from clobbering std descriptors
18507         * modules/popen-safer: New file.
18508         * lib/popen-safer.c: Likewise.
18509         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
18510         * lib/stdio--.h (popen): Provide override.
18511         * lib/stdio-safer.h (popen_safer): Provide declaration.
18512         * tests/test-popen.c (includes): Partially test this.
18513         * modules/popen-safer-tests: New file, for more tests.
18514         * tests/test-popen-safer.c: Likewise.
18515         * MODULES.html.sh (file stream based Input/Output): Mention it.
18516
18517         tests: test some of the *-safer modules
18518         * modules/fopen-safer (Depends-on): Add fopen.
18519         * modules/fcntl-safer (Depends-on): Add fcntl.
18520         * modules/stdlib-safer (Depends-on): Add stdlib.
18521         (configure.ac): Set indicator.
18522         * modules/unistd-safer (configure.ac): Likewise.
18523         * modules/tmpfile-safer (configure.ac): Likewise.
18524         (Depends-on): Add tmpfile.
18525         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
18526         active.
18527         * tests/test-fopen.c (includes): Test safer versions when they are
18528         in use.
18529         * tests/test-open.c (includes): Likewise.
18530
18531         popen: fix cygwin 1.5 bug when stdin closed
18532         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
18533         * modules/popen: New file.
18534         * modules/popen-tests: Likewise.
18535         * tests/test-popen.c: Likewise.
18536         * m4/popen.m4: Likewise.
18537         * lib/popen.c: Likewise.
18538         * lib/stdio.in.h (popen): New declaration.
18539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
18540         * modules/stdio (Makefile.am): Likewise.
18541         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
18542
18543 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
18544
18545         maint.mk: give full control over update-copyright exclusions
18546         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
18547         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
18548         (update-copyright): Don't force inclusion of top-level
18549         ChangeLog.  Don't force exclusion of all COPYING files, but make
18550         them the default exclusion instead.
18551
18552 2009-08-16  Bruno Haible  <bruno@clisp.org>
18553
18554         Fix test failures on Solaris 10.
18555         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
18556         tests when Solaris iconv() is used.
18557         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
18558         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
18559         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
18560         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
18561         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
18562
18563 2009-08-16  Bruno Haible  <bruno@clisp.org>
18564
18565         Fix test failures on Solaris 10.
18566         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
18567         'tr' program and pass it as first argument.
18568         * tests/test-pipe-filter-gi1.sh: Likewise.
18569         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
18570         program as first argument.
18571         * tests/test-pipe-filter-gi1.c (main): Likewise.
18572
18573 2009-08-16  Eric Blake  <ebb9@byu.net>
18574
18575         fpurge: fix previous commits
18576         * modules/fpurge (Makefile.am): Make replacement conditional,
18577         partially reverting 2007-04-29 change; missed in previous
18578         attempt.
18579         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
18580         is missing.
18581
18582 2009-08-16  Bruno Haible  <bruno@clisp.org>
18583
18584         Clarify fpurge's effect on the file position.
18585         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
18586         * tests/test-fpurge.c (main): Make a second pass for checking the file
18587         position.
18588
18589 2009-08-16  Bruno Haible  <bruno@clisp.org>
18590
18591         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
18592         declaration of fpurge is missing.
18593         * tests/test-fpurge.c (main): Check that the file has not more contents
18594         than expected. Close the file before removing it.
18595
18596 2009-08-15  Eric Blake  <ebb9@byu.net>
18597
18598         fpurge: don't wrap working cygwin implementation
18599         * lib/fpurge.c (fpurge): Fix comment typo.
18600         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
18601         1.7 to avoid replacement.
18602         * tests/test-fpurge.c (main): Enhance test.
18603
18604 2009-08-15  Eric Blake  <ebb9@byu.net>
18605         and Jim Meyering  <meyering@redhat.com>
18606
18607         test-update-copyright: skip if perl is insufficient
18608         * tests/test-update-copyright.sh: Failure to run maintainer tool
18609         should not cause testsuite failure on cygwin 1.5.
18610
18611 2009-08-14  Eric Blake  <ebb9@byu.net>
18612
18613         doc: mention more functions added in cygwin 1.7.0
18614         * doc/posix-headers/limits.texi (limits.h): Update for recent
18615         cygwin additions.
18616         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
18617         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18618         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
18619         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
18620         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
18621
18622 2009-08-14  Eric Blake  <ebb9@byu.net>
18623
18624         maint.mk: simplify update-copyright rule
18625         * top/maint.mk (update-copyright-local): Delete, and document how
18626         to do it in cfg.mk instead.
18627         (update-copyright-exclude-regexp): Delete, and document how to do
18628         it in .x-update-copyright instead.
18629         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
18630         exclude ChangeLog.
18631
18632 2009-08-14  Bruno Haible  <bruno@clisp.org>
18633
18634         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
18635
18636 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18637
18638         maint.mk: support update-copyright-env
18639         * top/maint.mk (update-copyright-env): Define place-holder.
18640         (update-copyright): Expand $(update-copyright-env) before
18641         invoking update-copyright.
18642
18643 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18644
18645         update-copyright: implement forced reformatting
18646         * build-aux/update-copyright: Implement and document
18647         UPDATE_COPYRIGHT_FORCE.
18648         * tests/test-update-copyright.sh: Test it.
18649
18650 2009-08-14  Eric Blake  <ebb9@byu.net>
18651         and Bruno Haible  <bruno@clisp.org>
18652
18653         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
18654         * tests/test-locale.c: Revert previous patch related to NULL.
18655         * tests/test-stdio.c: Likewise.
18656         * tests/test-stdlib.c: Likewise.
18657         * tests/test-string.c: Likewise.
18658         * tests/test-unistd.c: Likewise.
18659         * modules/time-tests (Depends-on): Add verify.
18660         * modules/wchar-tests (Depends-on): Likewise.
18661         * tests/test-time.c: Test for NULL compliance.
18662         * tests/test-wchar.c: Likewise.
18663         * modules/locale (Depends-on): Add stddef.
18664         * modules/stdio (Depends-on): Likewise.
18665         * modules/stdlib (Depends-on): Likewise.
18666         * modules/string (Depends-on): Likewise.
18667         * modules/time (Depends-on): Likewise.
18668         * modules/unistd (Depends-on): Likewise.
18669         * modules/wchar (Depends-on): Likewise.
18670         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
18671         * lib/stdlib.in.h (includes): Likewise.
18672         * lib/string.in.h (includes): Likewise.
18673         * lib/time.in.h (includes): Likewise.
18674         * lib/unistd.in.h (includes): Likewise.
18675         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
18676         replaced.
18677         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18678         * m4/stddef_h.m4: New file.
18679         * modules/stddef: Likewise.
18680         * lib/stddef.in.h: Likewise.
18681         * modules/stddef-tests: Likewise.
18682         * tests/test-stddef.c: Likewise.
18683         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
18684         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
18685         * doc/posix-headers/locale.texi (locale.h): Likewise.
18686         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
18687         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18688         * doc/posix-headers/string.texi (string.h): Likewise.
18689         * doc/posix-headers/time.texi (time.h): Likewise.
18690         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
18691         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
18692
18693 2009-08-14  Eric Blake  <ebb9@byu.net>
18694
18695         doc: improve git diff of texinfo files
18696         * .gitattributes: Add rule for *.texi files, with hint on how to
18697         use it.
18698         Copied from m4, and based on a report by Bruno Haible.
18699
18700 2009-08-14  Bruno Haible  <bruno@clisp.org>
18701
18702         Disable multithread support by default on Cygwin 1.5.x for real.
18703         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
18704
18705 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18706
18707         update-copyright: much ado about intervals
18708         * build-aux/update-copyright: Implement and document
18709         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
18710         of copyright year intervals.
18711         Also, document UPDATE_COPYRIGHT_YEAR.
18712         * tests/test-update-copyright.sh: Test it.
18713
18714         update-copyright: convert 2-digit to 4-digit years
18715         * build-aux/update-copyright: Implement and document.
18716         * tests/test-update-copyright.sh: Update.
18717
18718 2009-08-14  Jim Meyering  <meyering@redhat.com>
18719
18720         test-exclude: avoid coreutils "make check" failure
18721         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
18722         just as in test-argmatch.c.
18723
18724 2009-08-13  Eric Blake  <ebb9@byu.net>
18725
18726         test-dup2: fix bad assumption
18727         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
18728         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
18729
18730         test-version-etc: fix CRLF portability issue
18731         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
18732         recognize \r.
18733         * tests/test-argp-version-etc-1.sh: Likewise.
18734
18735         getopt: update client modules
18736         * modules/argp (Depends-on): Use getopt-gnu.
18737         * modules/git-merge-changelog (Depends-on): Likewise.
18738         * modules/long-options (Depends-on): Likewise.
18739         * modules/xstrtol (Depends-on): Likewise.
18740
18741 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18742
18743         * tests/test-version-etc.sh: Don't fail on different
18744         project/version.  Don't fail on CRLF differences.  Rewrite to use
18745         multiple -e instead of multiple sed forks, suggested by Eric Blake
18746         <ebb9@byu.net>.
18747         * tests/test-argp-version-etc-1.sh: Likewise.
18748
18749 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18750
18751         * tests/test-version-etc.sh: Don't fail on different
18752         project/version.
18753
18754 2009-08-12  Bruno Haible  <bruno@clisp.org>
18755
18756         Tests for modules 'getopt-posix', 'getopt-gnu'.
18757         * modules/getopt-posix-tests: New file.
18758         * tests/test-getopt.c: New file.
18759         * tests/test-getopt.h: New file.
18760         * tests/test-getopt_long.h: New file.
18761
18762         New modules 'getopt-posix', 'getopt-gnu'.
18763         * modules/getopt-gnu: New file, renamed from modules/getopt.
18764         * modules/getopt-posix: New file.
18765         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
18766         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
18767         (gl_GETOPT): Remove macro.
18768         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
18769         Disable the test against BSD systems that declare optreset. Test
18770         against mingw bug. Test against lack of support of optional arguments
18771         on many platforms.
18772         * doc/glibc-headers/getopt.texi: Update module name and list of
18773         relevant platforms.
18774         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
18775         'getopt-gnu' and more portability problems.
18776         * NEWS: Mention the changes.
18777
18778 2009-08-12  Bruno Haible  <bruno@clisp.org>
18779
18780         Ensure that optarg etc. get declared by <unistd.h>.
18781         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
18782         AC_USE_SYSTEM_EXTENSIONS.
18783         * modules/getopt (Depends-on): Add 'extensions'.
18784
18785 2009-08-12  Bruno Haible  <bruno@clisp.org>
18786
18787         Avoid test link errors.
18788         * modules/pipe-filter-ii-tests (Makefile.am): Define
18789         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
18790         * modules/pipe-filter-gi-tests (Makefile.am): Define
18791         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
18792         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18793
18794 2009-08-12  Bruno Haible  <bruno@clisp.org>
18795
18796         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
18797         gl_GETOPT_SUBSTITUTE before.
18798         (gl_GETOPT): Use it.
18799         * m4/argp.m4 (gl_ARGP): Update.
18800         Reported by Sergey Poznyakoff.
18801
18802         * m4/getopt.m4: Reorder macros.
18803         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
18804         (gl_GETOPT_SUBSTITUTE): Remove macro.
18805
18806 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18807
18808         Minor improvement in gitlog-to-changelog
18809
18810         * build-aux/gitlog-to-changelog: New option `--format' makes
18811         output format string configurable.
18812
18813 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18814
18815         Optimize exclude: use hash tables for non-wildcard patterns.
18816
18817         * lib/exclude.c: Include hash.h and mbuiter.h
18818         (struct exclude_pattern, exclude_segment): New data types.
18819         (struct exclude): Rewrite.
18820         (fnmatch_pattern_has_wildcards): New function.
18821         (new_exclude_segment, free_exclude_segment): New functions.
18822         (excluded_file_pattern_p, excluded_file_name_p): New functions.
18823         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
18824         * lib/exclude.h (is_fnmatch_pattern): New prototype.
18825         * modules/exclude: Depend on hash and mbuiter.
18826
18827         * modules/exclude-tests: New file.
18828         * tests/test-exclude.c: New file.
18829         * tests/test-exclude1.sh: New file.
18830         * tests/test-exclude2.sh: New file.
18831         * tests/test-exclude3.sh: New file.
18832         * tests/test-exclude4.sh: New file.
18833         * tests/test-exclude5.sh: New file.
18834         * tests/test-exclude6.sh: New file.
18835         * tests/test-exclude7.sh: New file.
18836
18837 2009-08-12  Bruno Haible  <bruno@clisp.org>
18838
18839         Ensure that getopt() gets declared by <unistd.h>.
18840         * lib/unistd.in.h: Conditionally include getopt.h.
18841         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
18842         Set GNULIB_UNISTD_H_GETOPT.
18843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18844         GNULIB_UNISTD_H_GETOPT.
18845         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
18846
18847 2009-08-12  Bruno Haible  <bruno@clisp.org>
18848
18849         Clarify logic.
18850         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
18851         gl_replace_getopt instead of GETOPT_H.
18852
18853 2009-08-12  Bruno Haible  <bruno@clisp.org>
18854
18855         * m4/getopt.m4: Add comments.
18856
18857 2009-08-12  Bruno Haible  <bruno@clisp.org>
18858
18859         Disable multithread support by default on Cygwin 1.5.x.
18860         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
18861         set gl_use_threads=no if not specified otherwise.
18862
18863 2009-08-11  Bruno Haible  <bruno@clisp.org>
18864
18865         Avoid compilation error on NetBSD 5.0.
18866         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
18867         * tests/test-stdio.c: Likewise.
18868         * tests/test-stdlib.c: Likewise.
18869         * tests/test-string.c: Likewise.
18870         * tests/test-unistd.c: Likewise.
18871         Reported by Greg Troxel <gdt@ir.bbn.com>
18872         at <https://savannah.gnu.org/support/?106973>.
18873
18874 2009-08-11  Bruno Haible  <bruno@clisp.org>
18875
18876         * modules/dup2-tests (Depends-on): Remove close.
18877
18878         Undo 2009-07-19 commit.
18879         * modules/acl-tests (Depends-on): Remove close.
18880         * modules/binary-io-tests (Depends-on): Likewise.
18881         * modules/closein-tests (Depends-on): Likewise.
18882         * modules/flock-tests (Depends-on): Likewise.
18883         * modules/fsync-tests (Depends-on): Likewise.
18884         * modules/lseek-tests (Depends-on): Likewise.
18885         * modules/pipe-tests (Depends-on): Likewise.
18886         * modules/posix_spawn-tests (Depends-on): Likewise.
18887         * modules/posix_spawnp-tests (Depends-on): Likewise.
18888         * modules/stat-time-tests (Depends-on): Likewise.
18889         * modules/yesno-tests (Depends-on): Likewise.
18890
18891 2009-08-10  Bruno Haible  <bruno@clisp.org>
18892
18893         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
18894
18895 2009-08-10  Bruno Haible  <bruno@clisp.org>
18896
18897         Fix a gcc warning.
18898         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
18899
18900 2009-08-10  Bruno Haible  <bruno@clisp.org>
18901
18902         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
18903         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
18904         not only the first time.
18905         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
18906         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
18907         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
18908         is 1, not only the the first time.
18909
18910 2009-08-10  Bruno Haible  <bruno@clisp.org>
18911
18912         Make it possible to use module 'gethostname' without module 'close'.
18913         * lib/unistd.in.h (close): Evoke a link error only if
18914         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18916         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18917         * modules/unistd (Makefile.am): Substitute
18918         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18919         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
18920         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18921         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18922         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18923         * modules/sys_ioctl (Makefile.am): Substitute
18924         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18925         * modules/socket (configure.ac): On native Windows, set
18926         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
18927         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18928         Reported by Sam Steingold <sds@gnu.org>.
18929
18930 2009-08-10  Bruno Haible  <bruno@clisp.org>
18931
18932         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
18933         * modules/ioctl (configure.ac): Likewise.
18934
18935 2009-08-10  Bruno Haible  <bruno@clisp.org>
18936
18937         Avoid collision between gnulib wrapper and libintl wrapper.
18938         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
18939         already defined in intl/printf.c.
18940         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
18941         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
18942
18943 2009-08-09  Bruno Haible  <bruno@clisp.org>
18944
18945         Make <sys/select.h> really self-contained, also on Solaris 10.
18946         * lib/sys_select.in.h: Include <string.h>.
18947         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
18948         Solaris 10 problem.
18949         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
18950         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
18951         Reported by Jim Meyering.
18952
18953 2009-08-09  Bruno Haible  <bruno@clisp.org>
18954
18955         Avoid warnings from 'aclocal' that are due to a use of macro name
18956         AM_XGETTEXT_OPTION that is not defined in automake.
18957         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
18958         automake.
18959         * modules/error (configure.ac): Likewise.
18960         * modules/propername (configure.ac): Likewise.
18961         * modules/vasprintf (configure.ac): Likewise.
18962         * modules/verror (configure.ac): Likewise.
18963         * modules/xprintf (configure.ac): Likewise.
18964         * modules/xvasprintf (configure.ac): Likewise.
18965
18966 2009-08-08  Bruno Haible  <bruno@clisp.org>
18967
18968         Avoid compilation error in C++ mode.
18969         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
18970         Reported by Sam Steingold <sds@gnu.org>.
18971
18972 2009-08-08  Bruno Haible  <bruno@clisp.org>
18973
18974         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
18975         for the various Unix platforms.
18976         * doc/posix-headers/limits.texi: Update platforms list regarding
18977         HOST_NAME_MAX.
18978         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18979
18980 2009-08-07  Jim Meyering  <meyering@redhat.com>
18981
18982         selinux-at: fix typo in a comment
18983         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
18984         Spotted by Paolo Bonzini.
18985
18986         selinux-at: remove redundant m4 code, add documentation
18987         * modules/selinux-at (configure.ac): Remove redundant code.
18988         LIB_SELINUX is already set via the dependent module, selinux-h.
18989         (Include): Add quotes around selinux-at.h.
18990         * lib/selinux-at.h: Add documentation.
18991         Reported by Bruno Haible in
18992         http://marc.info/?l=gnulib-bug&m=124958988300749
18993
18994 2009-08-07  Bruno Haible  <bruno@clisp.org>
18995
18996         Avoid link error on MacOS X 10.3 and 10.4.
18997         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
18998         on non-ELF systems.
18999         * lib/argp-pv.c (argp_program_version): Likewise.
19000         Reported by Simon Josefsson.
19001
19002 2009-08-07  Simon Josefsson  <simon@josefsson.org>
19003
19004         * tests/test-version-etc.sh: Use $EXEEXT.
19005
19006 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
19007
19008         update-copyright: update documentation to point to maint.mk
19009         * build-aux/update-copyright: Here.
19010
19011 2009-08-06  Jim Meyering  <meyering@redhat.com>
19012
19013         maint.mk: support update-copyright-local
19014         * top/maint.mk (update-copyright-local): Define place-holder.
19015         (update-copyright): Depend on $(update-copyright-local).
19016
19017 2009-08-06  Jim Meyering  <meyering@redhat.com>
19018
19019         selinux-at: new module
19020         Initially written for coreutils, this module will soon be
19021         used by findutils, too.
19022         * MODULES.html.sh [Misc]: Add selinux-at.
19023         * lib/selinux-at.h: New file, from coreutils.
19024         * lib/selinux-at.c: Likewise.
19025         * modules/selinux-at: Likewise.
19026         (License): Change from LGPL to GPL, since it depends
19027         on the GPL'd openat module.
19028
19029         doc: update README
19030         * README: Remove references to cogito.
19031         Remove cvs-repo-updating instructions from 2007.
19032         Don't imply that CVS is better if you have limited disk space.
19033
19034 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19035
19036         update-copyright: support C-style comments
19037         * build-aux/update-copyright: Implement and document.
19038         * tests/test-update-copyright.sh: Test.
19039
19040 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19041
19042         update-copyright: support omitted "(C)"
19043         * build-aux/update-copyright: Implement and document.  Also,
19044         allow variable whitespace before "(C)".
19045         * tests/test-update-copyright.sh: Test.
19046
19047 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19048
19049         update-copyright: don't trip on non-FSF copyright statements
19050         * build-aux/update-copyright: Fix so that the first correctly
19051         formatted FSF copyright statement is recognized no matter what
19052         appears before it.  Update documentation.
19053         * tests/test-update-copyright.sh: Test that.
19054
19055 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19056
19057         update-copyright: clean up code a little
19058         * build-aux/update-copyright: Append "_re" to the name of any
19059         variable holding a regular expression.
19060         Replace "old" and "new" with "stmt" in variable names.
19061         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
19062         handled correctly.
19063         Format code more consistently.
19064
19065 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19066
19067         update-copyright-tests: improve portability
19068         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
19069         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
19070
19071 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
19072
19073         update-copyright: support @copyright{} and &copy;
19074         * build-aux/update-copyright: Implement and document.
19075         * tests/test-update-copyright.sh: Test.
19076
19077 2009-08-04  Jim Meyering  <meyering@redhat.com>
19078
19079         update-copyright-tests: correctly test EOL=\r\n handling
19080         * tests/test-update-copyright.sh: Put \r at the end of some lines
19081         for the dos-eol tests.  Based on a patch by Joel E. Denny.
19082
19083         maint.mk: make update-copyright exclusion list more configurable
19084         * top/maint.mk (update-copyright): Default to excluding COPYING,
19085         but allow an override, in case someone does want to update that file.
19086
19087         maint.mk: don't update copyright date in COPYING
19088         * top/maint.mk (update-copyright): Exclude COPYING.
19089
19090         maint.mk: add a copyright-updating rule
19091         * top/maint.mk (update-copyright): New rule.
19092         Derived from coreutils/Makefile.am.
19093
19094         update-copyright: rename some variables
19095         * build-aux/update-copyright: Rename a few variables for clarity.
19096         Tweak syntax.  List Joel E. Denny as coauthor.
19097
19098 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
19099
19100         update-copyright: fix bug for 2-digit last year and add tests
19101         * build-aux/update-copyright: Fix bug.
19102         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
19103         specified.
19104         * modules/update-copyright-tests: New
19105         * tests/test-update-copyright.sh: New.
19106
19107 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19108
19109         update-copyright: handle leading tabs in line prefix
19110         * build-aux/update-copyright: Count leading tabs as 8 spaces
19111         when computing margin.  This helps with the formatting of
19112         ChangeLogs, for example.
19113         Fix documentation a little.
19114
19115 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19116
19117         update-copyright: support EOL=\r\n
19118         * build-aux/update-copyright: Implement that.
19119
19120 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19121
19122         update-copyright: automatically format copyright statements
19123         * build-aux/update-copyright: Implement that.
19124         Also, be a little more predictable and safer by always failing
19125         when the full copyright format is not perfectly recognized as an
19126         unbroken whole.  Discussed at
19127         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
19128         Rewrite documentation.
19129
19130 2009-08-03  Bruno Haible  <bruno@clisp.org>
19131
19132         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
19133
19134 2009-08-02  Bruno Haible  <bruno@clisp.org>
19135
19136         Tests for module 'uname'.
19137         * modules/uname-tests: New file.
19138         * tests/test-uname.c: New file.
19139
19140         New module 'uname'.
19141         * lib/uname.c: New file.
19142         * m4/uname.m4: New file.
19143         * modules/uname: New file.
19144         * doc/posix-functions/uname.texi: Mention the new module.
19145
19146 2009-08-02  Bruno Haible  <bruno@clisp.org>
19147
19148         Tests for module 'sys_utsname'.
19149         * modules/sys_utsname-tests: New file.
19150         * tests/test-sys_utsname.c: New file.
19151
19152         New module 'sys_utsname'.
19153         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
19154         * m4/sys_utsname_h.m4: New file.
19155         * modules/sys_utsname: New file.
19156         * doc/posix-headers/sys_utsname.texi: Mention the new module.
19157
19158 2009-08-02  Bruno Haible  <bruno@clisp.org>
19159
19160         Implicitly initialize the sockets library.
19161         * lib/gethostname.c: Include sockets.h.
19162         (rpl_gethostname): Invoke gl_sockets_startup.
19163         * lib/socket.c: Include sockets.h.
19164         (rpl_socket): Invoke gl_sockets_startup.
19165         * modules/gethostname (Depends-on): Add sockets.
19166         * modules/socket (Depends-on): Likewise.
19167         * tests/test-poll.c: Don't include sockets.h.
19168         (main): Don't invoke gl_sockets_startup.
19169         * tests/test-select.c: Don't include sockets.h.
19170         (main): Don't invoke gl_sockets_startup.
19171
19172 2009-08-02  Bruno Haible  <bruno@clisp.org>
19173
19174         Allow multiple calls to gl_sockets_startup.
19175         * lib/sockets.c (initialized_sockets_version): New variable.
19176         (gl_sockets_startup): Do nothing if already called for this or a higher
19177         version.
19178         (gl_sockets_cleanup): Reset initialized_sockets_version.
19179
19180 2009-08-03  Simon Josefsson  <simon@josefsson.org>
19181
19182         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
19183         different project/version.
19184
19185 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
19186             Bruno Haible  <bruno@clisp.org>
19187
19188         Tests for module 'pipe-filter-gi'.
19189         * modules/pipe-filter-gi-tests: New file.
19190         * tests/test-pipe-filter-gi1.sh: New file.
19191         * tests/test-pipe-filter-gi1.c: New file.
19192         * tests/test-pipe-filter-gi2.sh: New file.
19193         * tests/test-pipe-filter-gi2-main.c: New file.
19194         * tests/test-pipe-filter-gi2-child.c: New file.
19195
19196         New module 'pipe-filter-gi'.
19197         * lib/pipe-filter-gi.c: New file.
19198         * modules/pipe-filter-gi: New file.
19199
19200 2009-08-02  Bruno Haible  <bruno@clisp.org>
19201             Paolo Bonzini  <bonzini@gnu.org>
19202
19203         Tests for module 'pipe-filter-ii'.
19204         * modules/pipe-filter-ii-tests: New file.
19205         * tests/test-pipe-filter-ii1.sh: New file.
19206         * tests/test-pipe-filter-ii1.c: New file.
19207         * tests/test-pipe-filter-ii2.sh: New file.
19208         * tests/test-pipe-filter-ii2-main.c: New file.
19209         * tests/test-pipe-filter-ii2-child.c: New file.
19210
19211         New module 'pipe-filter-ii'.
19212         * lib/pipe-filter.h: New file.
19213         * lib/pipe-filter-ii.c: New file.
19214         * lib/pipe-filter-aux.h: New file.
19215         * modules/pipe-filter-ii: New file.
19216
19217 2009-08-02  Simon Josefsson  <simon@josefsson.org>
19218
19219         * lib/gc-libgcrypt.c: Change copyright to FSF.
19220         * lib/gc-gnulib.c: Likewise.
19221
19222 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
19223
19224         * lib/gethostname.c: Include limits.h.
19225
19226 2009-08-02  Simon Josefsson  <simon@josefsson.org>
19227             Bruno Haible  <bruno@clisp.org>
19228
19229         Ensure HOST_NAME_MAX as part of the gethostname module.
19230         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
19231         define also HOST_NAME_MAX.
19232         * tests/test-gethostname.c: Include <limits.h>.
19233         (main): Check also HOST_NAME_MAX.
19234         * doc/posix-headers/limits.texi: Document the mingw problem.
19235
19236 2009-08-02  Bruno Haible  <bruno@clisp.org>
19237
19238         * lib/gethostname.c (gethostname): Fix handling of large len argument.
19239         Add comments.
19240
19241 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19242
19243         * lib/gethostname.c: Add Windows wrapper.
19244         * m4/gethostname.m4: Look for gethostname in -lws2_32.
19245         * modules/gethostname: Depend on sys_socket & errno, for also
19246         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
19247         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
19248
19249 2009-07-31  Jim Meyering  <meyering@redhat.com>
19250
19251         getloadavg: fix symbol name in comment
19252         * lib/getloadavg.c: Correct a typo I introduced when adding
19253         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
19254         Matt Kraai spotted the problem.
19255
19256 2009-07-29  Matt Kraai  <mkraai@beckman.com>
19257
19258         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
19259         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
19260         code also if ! defined N_NAME_POINTER.
19261         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
19262         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
19263         but the n_name member is a 12-byte array.
19264
19265 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
19266
19267         update-copyright: generalize comment handling
19268         * build-aux/update-copyright: Handle copyright statements
19269         within more comment styles.
19270         Document usage.
19271         Report any file with an external copyright holder or parse failure.
19272
19273 2009-07-29  Jim Meyering  <meyering@redhat.com>
19274
19275         mktime: correct setting of REPLACE_MKTIME
19276         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
19277
19278         update-copyright: new module
19279         * modules/update-copyright: New file.
19280         * build-aux/update-copyright: New file.
19281         * MODULES.html.sh (maint+release support): Add update-copyright.
19282
19283 2009-07-27  Bruno Haible  <bruno@clisp.org>
19284
19285         Fix compilation error when <ctime> is used and mktime is replaced.
19286         * lib/time.in.h (mktime): New declaration.
19287         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
19288         REPLACE_MKTIME instead of defining mktime in config.h.
19289         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
19290         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
19291         Reported by Ross McFarland <rwmcfa1@neces.com>.
19292
19293 2009-07-27  Bruno Haible  <bruno@clisp.org>
19294
19295         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
19296         Reported by Matt Kraai <mkraai@beckman.com>.
19297
19298 2009-07-25  Jim Meyering  <meyering@redhat.com>
19299
19300         maint.mk: avoid warnings about missing files
19301         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
19302         diagnostic when .prev-version does not exist.
19303         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
19304         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
19305         nonexistent cfg.mk.
19306         Suggestions from Simon Josefsson.
19307
19308 2009-07-25  Bruno Haible  <bruno@clisp.org>
19309
19310         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
19311         defined as macros. Needed on QNX 6.4.1.
19312         Reported by Matt Kraai <mkraai@beckman.com>.
19313
19314 2009-07-23  Jim Meyering  <meyering@redhat.com>
19315
19316         maint.mk: invoke "make dist" with a working value of XZ_OPT
19317         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
19318
19319 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
19320
19321         Make fseeko.c compile on QNX.
19322         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
19323
19324 2009-07-22  Peter Simons  <simons@cryp.to>
19325
19326         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
19327         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
19328         * lib/md4.h: Likewise.
19329         * lib/md5.h: Likewise.
19330         * lib/sha1.h: Likewise.
19331         * lib/sha256.h: Likewise.
19332         * lib/sha512.h: Likewise.
19333
19334         tests-sha1: don't assign literal string to 'char *' variable
19335         * tests/test-sha1.c (main): Declare locals with "const" to match
19336         attributes of the right hand side.
19337
19338 2009-07-21  Eric Blake  <ebb9@byu.net>
19339
19340         dup2: fix more mingw problems
19341         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
19342         fd to itself.
19343         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19344         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
19345         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
19346         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
19347         care of mingw bugs.
19348
19349 2009-07-21  Jim Meyering  <meyering@redhat.com>
19350
19351         vc-list-files: avoid failure when /bin/sh is dash
19352         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
19353         On some Debian based systems, /bin/sh is a symlink to dash, and running
19354         this command would omit the "/" following each 'tests' prefix:
19355           dash -x build-aux/vc-list-files -C . tests
19356         That is because bash and dash work differently:
19357           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
19358           bash ok
19359           dash odd
19360
19361 2009-07-21  Eric Blake  <ebb9@byu.net>
19362
19363         dup2-tests: test previous patch
19364         * modules/dup2-tests: New file.
19365         * tests/test-dup2.c: Likewise.
19366         * tests/test-open.c (main): Avoid unspecified behavior.
19367         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
19368         test.
19369
19370         dup2: work around mingw and cygwin 1.5 bug
19371         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
19372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19373         * modules/unistd (Makefile.am): Substitute it.
19374         * lib/unistd.in.h (dup2): Declare the replacement.
19375         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
19376         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
19377         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
19378         * modules/execute (Depends-on): Add dup2.
19379         * modules/fseterr (Depends-on): Likewise.
19380         * modules/pipe (Depends-on): Likewise.
19381         * modules/posix_spawn-internal (Depends-on): Likewise.
19382
19383 2009-07-21  Bruno Haible  <bruno@clisp.org>
19384
19385         * modules/.gitattributes: New file.
19386
19387 2009-07-20  Bruno Haible  <bruno@clisp.org>
19388
19389         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
19390         (main): Use it.
19391
19392 2009-07-20  Eric Blake  <ebb9@byu.net>
19393
19394         test-pipe: make a bit more robust.
19395         * tests/test-pipe.c (myerr): Allow error messages regardless of
19396         what we do to stderr.
19397         (test_pipe): Rearrange to avoid deadlock.
19398         (child_main): Try a larger read, to ensure we avoided deadlock.
19399         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
19400         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
19401         if misused.
19402
19403 2009-07-19  Jim Meyering  <meyering@redhat.com>
19404
19405         fts: avoid false-positive cycle-detection
19406         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
19407         for each new command line argument.
19408
19409 2009-07-19  Bruno Haible  <bruno@clisp.org>
19410
19411         Fix build error on mingw with the modules sys_select and unistd.
19412         * modules/acl-tests (Depends-on): Add close.
19413         * modules/binary-io-tests (Depends-on): Likewise.
19414         * modules/closein-tests (Depends-on): Likewise.
19415         * modules/flock-tests (Depends-on): Likewise.
19416         * modules/fsync-tests (Depends-on): Likewise.
19417         * modules/lseek-tests (Depends-on): Likewise.
19418         * modules/pipe-tests (Depends-on): Likewise.
19419         * modules/posix_spawn-tests (Depends-on): Likewise.
19420         * modules/posix_spawnp-tests (Depends-on): Likewise.
19421         * modules/stat-time-tests (Depends-on): Likewise.
19422         * modules/yesno-tests (Depends-on): Likewise.
19423
19424 2009-07-19  Bruno Haible  <bruno@clisp.org>
19425
19426         Unify conditionals.
19427         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
19428         macros, not at the compiler macros.
19429         * lib/pipe.c: Likewise.
19430         * lib/execute.c: Likewise.
19431         * lib/spawni.c: Likewise.
19432
19433 2009-07-19  Bruno Haible  <bruno@clisp.org>
19434
19435         Fix handling of closed stdin/stdout/stderr on mingw.
19436         * lib/w32spawn.h: Include unistd.h.
19437         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
19438         file descriptor with O_NOINHERIT flag.
19439         (fd_safer_noinherit): New function, based on fd-safer.c.
19440         (dup_safer_noinherit): New function, based on dup-safer.c.
19441         (undup_safer_noinherit): New function.
19442         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
19443         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
19444         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
19445         instead of fd_safer.
19446         * tests/test-pipe.c: Include <windows.h>.
19447         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
19448
19449         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
19450         from main.
19451         (test_pipe): Pass an extra argument for disambiguation.
19452         (main): Invoke parent_main or child_main.
19453
19454         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
19455         consistently.
19456
19457 2009-07-18  Eric Blake  <ebb9@byu.net>
19458
19459         test-pipe: fix mingw build
19460         * tests/test-pipe.c (main): Avoid fcntl on mingw.
19461
19462 2009-07-18  Bruno Haible  <bruno@clisp.org>
19463
19464         * modules/pipe-tests (Makefile.am): Fix typo.
19465
19466 2009-07-18  Eric Blake  <ebb9@byu.net>
19467
19468         error: fix mingw build
19469         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
19470         Reported by Bruno Haible.
19471
19472         error: avoid undefined use of stdout
19473         * lib/error.c (error, error_at_line): Check that fd 1 is open
19474         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
19475         is handling faults and the close_stdout module wants to report the
19476         detection of closed stdout as an error.
19477
19478 2009-07-17  Eric Blake  <ebb9@byu.net>
19479
19480         pipe: be robust in face of closed fds
19481         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
19482         should cause child to misbehave.
19483         * modules/pipe-tests: New module.
19484         * tests/test-pipe.c: New file.
19485         * tests/test-pipe.sh: New file.
19486         Reported by Akim Demaille.
19487
19488 2009-07-14  Bruno Haible  <bruno@clisp.org>
19489
19490         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
19491         Reported by anonymous kc.
19492
19493 2009-07-07  Jim Meyering  <meyering@redhat.com>
19494
19495         maint.mk: don't look for translatable strings in *.m4 or *.mk
19496         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
19497         when searching for translatable strings.
19498
19499 2009-07-05  Jim Meyering  <meyering@redhat.com>
19500
19501         remove superfluous parentheses in STREQ definition
19502         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
19503         * lib/getugroups.c (STREQ): Likewise.
19504         * lib/fnmatch.c (STREQ): Likewise.
19505         Spotted by Bruno Haible.
19506
19507 2009-07-04  Jim Meyering  <meyering@redhat.com>
19508
19509         argv-iter: new module
19510         * MODULES.html.sh: Add argv-iter.
19511         * lib/argv-iter.c, lib/argv-iter.h: New files.
19512         * modules/argv-iter: New file.
19513         * modules/argv-iter-tests: New file.
19514         * tests/test-argv-iter.c: Test it.
19515
19516 2009-07-04  Bruno Haible  <bruno@clisp.org>
19517
19518         Fix assertion.
19519         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
19520         contains more exact copies of a given entry than file2, leave the extra
19521         copies unpaired rather than aborting.
19522         Reported by Eric Blake.
19523
19524 2009-07-02  Bruno Haible  <bruno@clisp.org>
19525
19526         Speedup git-merge-changelog for git cherry-pick.
19527         * lib/git-merge-changelog.c (struct entries_mapping): New type.
19528         (entries_mapping_get): New function, extracted from compute_mapping.
19529         (entries_mapping_reverse_get): New function.
19530         (compute_mapping): Add a 'full' argument. Return the result in a
19531         'struct entries_mapping'.
19532         (main): Update. Access the mappings through entries_mapping_get.
19533         Reported by Eric Blake.
19534
19535 2009-07-02  Bruno Haible  <bruno@clisp.org>
19536
19537         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
19538         best_i.
19539
19540 2009-07-02  Bruno Haible  <bruno@clisp.org>
19541
19542         Speed up approximate search for matching ChangeLog entries.
19543         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
19544         argument. Call fstrcmp_bounded instead of fstrcmp.
19545         (compute_mapping, try_split_merged_entry, main): Update callers.
19546
19547 2009-07-02  Bruno Haible  <bruno@clisp.org>
19548
19549         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
19550
19551 2009-06-30  Bruno Haible  <bruno@clisp.org>
19552
19553         Reduce the number of uc_is_cased calls.
19554         * lib/unicase.h (casing_suffix_context_t): Add
19555         'first_char_except_ignorable' field.
19556         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
19557         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
19558         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
19559         Update initializer.
19560         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
19561         case-ignorable characters.
19562         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
19563         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
19564         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
19565         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
19566         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
19567
19568 2009-06-30  Bruno Haible  <bruno@clisp.org>
19569
19570         Tests for module 'unicase/ignorable'.
19571         * modules/unicase/ignorable-tests: New file.
19572         * tests/unicase/test-ignorable.c: New file, generated by
19573         gen-uni-tables.
19574
19575         Tests for module 'unicase/cased'.
19576         * modules/unicase/cased-tests: New file.
19577         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
19578         * tests/unicase/test-predicate-part1.h: New file, derived from
19579         tests/unictype/test-predicate-part1.h.
19580         * tests/unicase/test-predicate-part2.h: New file, same as
19581         tests/unictype/test-predicate-part2.h.
19582
19583         Fix evaluation of "Before C" condition of FINAL_SIGMA.
19584         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
19585         (output_casing_properties): New function.
19586         (main): Call it.
19587         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
19588         * lib/unicase/cased.c: Include unictype/bitmap.h.
19589         (uc_is_cased): Define through a bitmap lookup.
19590         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
19591         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
19592         (uc_is_case_ignorable): Define through a bitmap lookup.
19593         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
19594         lib/unictype/bitmap.h.
19595         (Depends-on): Add inline. Clean up.
19596         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
19597         lib/unictype/bitmap.h.
19598         (Depends-on): Add inline. Clean up.
19599         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
19600         recognition.
19601         * tests/unicase/test-u16-tolower.c (main): Likewise.
19602         * tests/unicase/test-u32-tolower.c (main): Likewise.
19603
19604 2009-06-30  Bruno Haible  <bruno@clisp.org>
19605
19606         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
19607         * lib/unicase/u16-casemap.c: Likewise.
19608         * lib/unicase/u32-casemap.c: Likewise.
19609
19610 2009-06-29  Bruno Haible  <bruno@clisp.org>
19611
19612         Define u32_casefold as a wrapper around u32_ct_casefold.
19613         * lib/unicase/u32-casefold.c: Update.
19614         * modules/unicase/u32-casefold (Depends-on): Add
19615         unicase/u32-ct-casefold, unicase/empty-prefix-context,
19616         unicase/empty-suffix-context. Clean up.
19617
19618         Define u16_casefold as a wrapper around u16_ct_casefold.
19619         * lib/unicase/u16-casefold.c: Update.
19620         * modules/unicase/u16-casefold (Depends-on): Add
19621         unicase/u16-ct-casefold, unicase/empty-prefix-context,
19622         unicase/empty-suffix-context. Clean up.
19623
19624         Define u8_casefold as a wrapper around u8_ct_casefold.
19625         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
19626         * lib/unicase/u8-casefold.c: Update.
19627         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
19628         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19629
19630         Define u32_totitle as a wrapper around u32_ct_totitle.
19631         * lib/unicase/u32-totitle.c: Update.
19632         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
19633         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19634
19635         Define u16_totitle as a wrapper around u16_ct_totitle.
19636         * lib/unicase/u16-totitle.c: Update.
19637         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
19638         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19639
19640         Define u8_totitle as a wrapper around u8_ct_totitle.
19641         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
19642         functions.
19643         (FUNC): Delegate to U_CT_TOTITLE.
19644         * lib/unicase/u8-totitle.c: Update.
19645         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
19646         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19647
19648         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
19649         invocation.
19650         * modules/unicase/u32-tolower (Depends-on): Add
19651         unicase/empty-prefix-context, unicase/empty-suffix-context.
19652
19653         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
19654         invocation.
19655         * modules/unicase/u16-tolower (Depends-on): Add
19656         unicase/empty-prefix-context, unicase/empty-suffix-context.
19657
19658         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
19659         * modules/unicase/u8-tolower (Depends-on): Add
19660         unicase/empty-prefix-context, unicase/empty-suffix-context.
19661
19662         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
19663         invocation.
19664         * modules/unicase/u32-toupper (Depends-on): Add
19665         unicase/empty-prefix-context, unicase/empty-suffix-context.
19666
19667         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
19668         invocation.
19669         * modules/unicase/u16-toupper (Depends-on): Add
19670         unicase/empty-prefix-context, unicase/empty-suffix-context.
19671
19672         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
19673         * modules/unicase/u8-toupper (Depends-on): Add
19674         unicase/empty-prefix-context, unicase/empty-suffix-context.
19675
19676         New module 'unicase/u32-ct-casefold'.
19677         * lib/unicase/u32-ct-casefold.c: New file.
19678         * modules/unicase/u32-ct-casefold: New file.
19679
19680         New module 'unicase/u16-ct-casefold'.
19681         * lib/unicase/u16-ct-casefold.c: New file.
19682         * modules/unicase/u16-ct-casefold: New file.
19683
19684         New module 'unicase/u8-ct-casefold'.
19685         * lib/unicase/u8-ct-casefold.c: New file.
19686         * lib/unicase/u-ct-casefold.h: New file, derived from
19687         lib/unicase/u-casefold.h.
19688         * modules/unicase/u8-ct-casefold: New file.
19689
19690         New module 'unicase/u32-ct-totitle'.
19691         * lib/unicase/u32-ct-totitle.c: New file.
19692         * modules/unicase/u32-ct-totitle: New file.
19693
19694         New module 'unicase/u16-ct-totitle'.
19695         * lib/unicase/u16-ct-totitle.c: New file.
19696         * modules/unicase/u16-ct-totitle: New file.
19697
19698         New module 'unicase/u8-ct-totitle'.
19699         * lib/unicase/u8-ct-totitle.c: New file.
19700         * lib/unicase/u-ct-totitle.h: New file, derived from
19701         lib/unicase/u-totitle.h.
19702         * modules/unicase/u8-ct-totitle: New file.
19703
19704         New module 'unicase/u32-ct-tolower'.
19705         * lib/unicase/u32-ct-tolower.c: New file.
19706         * modules/unicase/u32-ct-tolower: New file.
19707
19708         New module 'unicase/u16-ct-tolower'.
19709         * lib/unicase/u16-ct-tolower.c: New file.
19710         * modules/unicase/u16-ct-tolower: New file.
19711
19712         New module 'unicase/u8-ct-tolower'.
19713         * lib/unicase/u8-ct-tolower.c: New file.
19714         * modules/unicase/u8-ct-tolower: New file.
19715
19716         New module 'unicase/u32-ct-toupper'.
19717         * lib/unicase/u32-ct-toupper.c: New file.
19718         * modules/unicase/u32-ct-toupper: New file.
19719
19720         New module 'unicase/u16-ct-toupper'.
19721         * lib/unicase/u16-ct-toupper.c: New file.
19722         * modules/unicase/u16-ct-toupper: New file.
19723
19724         New module 'unicase/u8-ct-toupper'.
19725         * lib/unicase/u8-ct-toupper.c: New file.
19726         * modules/unicase/u8-ct-toupper: New file.
19727
19728         Add context arguments to u*_casemap functions.
19729         * lib/unicase/unicasemap.h: Include unicase.h.
19730         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
19731         suffix_context arguments.
19732         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
19733         functions.
19734         (FUNC): Add prefix_context and suffix_context arguments. Use
19735         uc_is_cased and uc_is_case_ignorable.
19736         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
19737         * lib/unicase/u16-casemap.c: Likewise.
19738         * lib/unicase/u32-casemap.c: Likewise.
19739         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
19740         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19741         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
19742         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19743         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
19744         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19745
19746         New module 'unicase/u32-suffix-context'.
19747         * lib/unicase/u32-suffix-context.c: New file.
19748         * modules/unicase/u32-suffix-context: New file.
19749
19750         New module 'unicase/u16-suffix-context'.
19751         * lib/unicase/u16-suffix-context.c: New file.
19752         * modules/unicase/u16-suffix-context: New file.
19753
19754         New module 'unicase/u8-suffix-context'.
19755         * lib/unicase/u8-suffix-context.c: New file.
19756         * lib/unicase/u-suffix-context.h: New file.
19757         * modules/unicase/u8-suffix-context: New file.
19758
19759         New module 'unicase/empty-suffix-context'.
19760         * lib/unicase/empty-suffix-context.c: New file.
19761         * modules/unicase/empty-suffix-context: New file.
19762
19763         New module 'unicase/u32-prefix-context'.
19764         * lib/unicase/u32-prefix-context.c: New file.
19765         * modules/unicase/u32-prefix-context: New file.
19766
19767         New module 'unicase/u16-prefix-context'.
19768         * lib/unicase/u16-prefix-context.c: New file.
19769         * modules/unicase/u16-prefix-context: New file.
19770
19771         New module 'unicase/u8-prefix-context'.
19772         * lib/unicase/u8-prefix-context.c: New file.
19773         * lib/unicase/u-prefix-context.h: New file.
19774         * lib/unicase/context.h: New file.
19775         * modules/unicase/u8-prefix-context: New file.
19776
19777         New module 'unicase/empty-prefix-context'.
19778         * lib/unicase/empty-prefix-context.c: New file.
19779         * modules/unicase/empty-prefix-context: New file.
19780
19781         New module 'unicase/ignorable'.
19782         * lib/unicase/ignorable.c: New file.
19783         * modules/unicase/ignorable: New file.
19784
19785         New module 'unicase/cased'.
19786         * lib/unicase/caseprop.h: New file.
19787         * lib/unicase/cased.c: New file.
19788         * modules/unicase/cased: New file.
19789
19790         New functions for case mapping of substrings.
19791         * lib/unicase.h (casing_prefix_context_t): New type.
19792         (unicase_empty_prefix_context): New variable.
19793         (u8_casing_prefix_context, u16_casing_prefix_context,
19794         u32_casing_prefix_context, u8_casing_prefixes_context,
19795         u16_casing_prefixes_context, u32_casing_prefixes_context): New
19796         declarations.
19797         (casing_suffix_context_t): New type.
19798         (unicase_empty_suffix_context): New variable.
19799         (u8_casing_suffix_context, u16_casing_suffix_context,
19800         u32_casing_suffix_context, u8_casing_suffixes_context,
19801         u16_casing_suffixes_context, u32_casing_suffixes_context,
19802         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
19803         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
19804         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
19805         declarations.
19806
19807 2009-06-28  Jim Meyering  <meyering@redhat.com>
19808
19809         boostrap: indent only with spaces
19810         * build-aux/bootstrap: Indent only with spaces, never TABs.
19811
19812         bootstrap: split long lines
19813         * build-aux/bootstrap: Keep line length < 80.
19814
19815         bootstrap: sync from coreutils
19816         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
19817         just as autoreconf does.  Verify a list of prerequisite
19818         package-name,version-number pairs if defined in bootstrap.conf.
19819         Refer to README-prereq, if prerequisites are not satisfied.
19820
19821 2009-06-27  Eric Blake  <ebb9@byu.net>
19822
19823         tests: add test for bogus NULL definition
19824         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
19825         * tests/test-stdlib.c: Likewise.
19826         * tests/test-string.c: Likewise.
19827         * tests/test-locale.c: Likewise.
19828         * tests/test-unistd.c: Likewise.
19829         * modules/stdio-tests (Depends-on): Add verify.
19830         * modules/stdlib-tests (Depends-on): Likewise.
19831         * modules/string-tests (Depends-on): Likewise.
19832         * modules/locale-tests (Depends-on): Likewise.
19833         * modules/unistd-tests (Depends-on): Likewise.
19834
19835 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
19836
19837         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
19838         self-explaining comment.
19839         * m4/selinux-selinux-h: Update serial.
19840         (gl_LIBSELINUX): New macro, adding a warning for missing development
19841         packages to code extracted from...
19842         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
19843         Add warning for missing development packages here, too.
19844
19845 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
19846
19847         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
19848
19849 2009-06-25  Eric Blake  <ebb9@byu.net>
19850
19851         version-etc: fix regression
19852         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
19853         gcc.
19854         (version_etc): Use it, to catch bugs with trailing NULL.
19855         * lib/version-etc.c (version_etc_arn): Delete unused argument.
19856         (version_etc_va): Fix logic bug.
19857         * modules/version-etc-tests: Add test.
19858         * tests/test-version-etc.c: New file.
19859         * tests/test-version-etc.sh: Likewise.
19860
19861 2009-06-25  Sam Steingold  <sds@gnu.org>
19862
19863         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
19864         mbtowc declaration.
19865
19866 2009-06-25  Eric Blake  <ebb9@byu.net>
19867
19868         fpurge: migrate into <stdio.h>
19869         * lib/fpurge.h: Delete...
19870         * lib/stdio.in.h (fpurge): ...and declare here, instead.
19871         * lib/fpurge.c (fpurge): Change declaring header.
19872         * modules/fpurge (Files): Drop deleted file.
19873         (Depends-on): Add stdio.
19874         (configure.ac): Set witness.
19875         * modules/stdio (Makefile.am): Support fpurge macros.
19876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19877         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
19878         * lib/fflush.c: Update client.
19879         * tests/test-fpurge.c: Likewise.
19880         * NEWS: Mention the change.
19881
19882 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19883
19884         * lib/argp-version-etc.c (program_authors): Add const
19885         qualifier.
19886         * lib/version-etc.c: Fix typos in the comments.
19887         * modules/argp-version-etc: Depends on version-etc.
19888
19889 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19890
19891         argp-version-etc: new module.
19892
19893         * lib/argp-version-etc.c: New file.
19894         * lib/argp-version-etc.h: New file.
19895         * modules/argp-version-etc: New file.
19896         * modules/argp-version-etc-tests: New file.
19897         * tests/test-argp-version-etc.c: New test.
19898         * tests/test-argp-version-etc-1.sh: New test.
19899
19900 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19901
19902         Provide additional interfaces and documentation for version-etc
19903         module.
19904
19905         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
19906         interfaces.
19907         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
19908         prototypes.
19909
19910 2009-06-24  Bruno Haible  <bruno@clisp.org>
19911
19912         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
19913         HAVE_LIB${NAME} macro.
19914         Reported by Sam Steingold <sds@gnu.org>.
19915
19916 2009-06-23  Simon Josefsson  <simon@josefsson.org>
19917
19918         * modules/hash-tests (test_hash_LDADD): Link to libintl when
19919         needed.
19920
19921 2009-06-21  Bruno Haible  <bruno@clisp.org>
19922
19923         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
19924         work.
19925         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
19926         together with LIB${NAME}, LTLIB${NAME}.
19927         Reported by Sam Steingold <sds@gnu.org>.
19928
19929 2009-06-20  Jim Meyering  <meyering@redhat.com>
19930
19931         tests: make sc_require_test_exit_idiom more generic
19932         * top/maint.mk (Exit_witness_file): New overridable variable.
19933         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
19934         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
19935
19936 2009-06-19  Jim Meyering  <meyering@redhat.com>
19937
19938         hash: reverse order of src/dst parameters in an internal interface
19939         * lib/hash.c (transfer_entries): Reverse order of parameters to
19940         put DST before SRC.  Adjust callers.
19941
19942         tests: test-hash: avoid wholesale duplication
19943         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
19944         Instead, use a loop and add a single conditional.
19945
19946         tests: test-hash: allow seed selection via a command line argument
19947         * tests/test-hash.c (get_seed): New function.
19948         (main): Use it.
19949
19950 2009-06-19  Eric Blake  <ebb9@byu.net>
19951
19952         hash: avoid memory leak on allocation failure
19953         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
19954         failure.  Factor repeated algorithm...
19955         (transfer_entries): ...into new helper routine.
19956         (hash_delete): React to hash_rehash return value.
19957
19958         hash: reduce memory pressure in hash_rehash no-op case
19959         * lib/hash.c (next_prime): Avoid overflow.
19960         (hash_initialize): Factor bucket size computation...
19961         (compute_bucket_size): ...into new helper function.
19962         (hash_rehash): Use new function and open coding to reduce memory
19963         pressure, and avoid a memory leak in USE_OBSTACK code.
19964         Reported by Jim Meyering.
19965
19966 2009-06-18  Eric Blake  <ebb9@byu.net>
19967
19968         hash: make rotation more obvious
19969         * modules/hash (Depends-on): Add bitrotate and stdint.
19970         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
19971         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
19972         (SIZE_MAX): Rely on headers for definition.
19973         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
19974         (raw_hasher): Use rotr_sz.
19975         Suggested by Jim Meyering.
19976
19977         hash: fix memory leak in last patch
19978         * lib/hash.c (hash_rehash): Avoid memory leak.
19979
19980         hash: avoid no-op rehashing
19981         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
19982
19983         hash: provide default callback functions
19984         * lib/hash.c (raw_hasher, raw_comparator): New functions.
19985         (hash_initialize): Use them as defaults.
19986         * tests/test-hash.c (main): Test this.
19987
19988         hash: minor optimization
19989         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
19990         when possible.
19991         (hash_initialize): Document this promise.
19992         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
19993         * tests/test-hash.c (hash_compare_strings): Test this.
19994
19995 2009-06-18  Bruno Haible  <bruno@clisp.org>
19996
19997         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
19998         going to be replaced anyway.
19999
20000 2009-06-18  Bruno Haible  <bruno@clisp.org>
20001
20002         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
20003         in one place.
20004         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
20005         be replaced anyway.
20006
20007 2009-06-18  Eric Blake  <ebb9@byu.net>
20008
20009         hash: check for resize before insertion
20010         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
20011         threshold before insertion, so that a pathological hash_rehash
20012         that fills every bucket can still trigger another rehash.
20013
20014 2009-06-18  Jim Meyering  <meyering@redhat.com>
20015
20016         hash-tests: add a loop around the small tests
20017         * tests/test-hash.c (main): Repeat small tests with selected
20018         small initial table sizes.
20019
20020 2009-06-17  Eric Blake  <ebb9@byu.net>
20021
20022         hash: minor cleanups
20023         * lib/hash.h (hash_entry): Make opaque, by moving...
20024         * lib/hash.c (hash_entry): ...here.
20025         (hash_insert): Clarify restrictions on what can be inserted.
20026         (hash_get_next): Clarify when it is safe to remove an element
20027         during traversal.
20028         (check_tuning): Skip verification when tuning is known safe.
20029         (hash_initialize): Clarify restrictions on tuning.
20030
20031 2009-06-17  Jim Meyering  <jim@meyering.net>
20032         and Eric Blake  <ebb9@byu.net>
20033
20034         hash-tests: new module
20035         * modules/hash-tests: New file.
20036         * tests/test-hash.c: New file.
20037
20038 2009-06-17  Eric Blake  <ebb9@byu.net>
20039
20040         strstr-simple: document new module
20041         * MODULES.html.sh: Document new module.
20042
20043         strstr, strcasestr: replace on platforms with broken memchr
20044         * modules/strstr: Split into...
20045         * modules/strstr-simple: ...new module that does not care about
20046         performance, but does care about glibc bug.
20047         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
20048         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
20049         if platform memchr is broken, per Debian bug 521737.
20050         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
20051         memchr.
20052         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
20053         * doc/posix-functions/strstr.texi (strstr): Document the fix.
20054         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20055         * modules/mountlist (Depends-on): Add strstr-simple.
20056         * modules/gen-uni-tables (Depends-on): Likewise.
20057         * modules/argz (Depends-on): Add strstr.
20058
20059 2009-06-17  Bruno Haible  <bruno@clisp.org>
20060
20061         * modules/posix_spawn-internal (Depends-on): Add errno.
20062
20063 2009-06-17  Bruno Haible  <bruno@clisp.org>
20064
20065         Define missing ESTALE on Interix 3.5.
20066         * lib/errno.in.h (ESTALE): Assign a value if missing.
20067         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
20068         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
20069         missing.
20070         * doc/posix-headers/errno.texi: Mention the Interix bug.
20071         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
20072
20073 2009-06-15  Eric Blake  <ebb9@byu.net>
20074
20075         memchr, memchr2: add valgrind exception
20076         * lib/memchr.valgrind: New file.
20077         * lib/memchr2.valgrind: New file.
20078         * modules/memchr (Files): Distribute valgrind file.
20079         * modules/memchr2 (Files): Likewise.
20080
20081         docs: memchr is no longer obsolete
20082         * MODULES.html.sh: Move memchr from obsolete to string.h section.
20083         * lib/string.in.h (memchr): Simplify logic.
20084
20085 2009-06-14  Jim Meyering  <meyering@redhat.com>
20086
20087         link-follow: fix the "checking..." message to not mention trailing slash
20088         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
20089         never considered trailing slashes.
20090
20091 2009-06-14  Bruno Haible  <bruno@clisp.org>
20092
20093         * m4/memchr.m4: Mention also the bug on IA-64.
20094         * doc/posix-functions/memchr.texi: Likewise.
20095
20096 2009-06-12  Eric Blake  <ebb9@byu.net>
20097
20098         memchr: detect broken x86_64 and alpha implementations
20099         * modules/memchr-tests (Depends-on): Move mmap detection...
20100         * modules/memchr (Depends-on): ...here.
20101         (configure.ac): Set indicator.
20102         * lib/string.in.h (memchr): Declare replacement.
20103         * modules/string (Makefile.am): Trigger replacement.
20104         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
20105         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
20106         bugs.
20107         * doc/posix-functions/memchr.texi (memchr): Document the bug.
20108         * modules/getpagesize (License): Relax license.
20109
20110 2009-06-11  Bruno Haible  <bruno@clisp.org>
20111
20112         * lib/idpriv.h: Add more references.
20113
20114 2009-06-08  Bruno Haible  <bruno@clisp.org>
20115
20116         Tests for module 'idpriv-droptemp'.
20117         * modules/idpriv-droptemp-tests: New file.
20118         * tests/test-idpriv-droptemp.sh: New file.
20119         * tests/test-idpriv-droptemp.su.sh: New file.
20120         * tests/test-idpriv-droptemp.c: New file.
20121
20122         New module 'idpriv-droptemp'.
20123         * lib/idpriv-droptemp.c: New file.
20124         * modules/idpriv-droptemp: New file.
20125
20126 2009-06-08  Bruno Haible  <bruno@clisp.org>
20127
20128         Tests for module 'idpriv-drop'.
20129         * modules/idpriv-drop-tests: New file.
20130         * tests/test-idpriv-drop.sh: New file.
20131         * tests/test-idpriv-drop.su.sh: New file.
20132         * tests/test-idpriv-drop.c: New file.
20133
20134         New module 'idpriv-drop'.
20135         * lib/idpriv.h: New file.
20136         * lib-idpriv-drop.c: New file.
20137         * m4/idpriv.m4: New file.
20138         * modules/idpriv-drop: New file.
20139
20140 2009-06-08  Bruno Haible  <bruno@clisp.org>
20141
20142         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
20143         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20144         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20145         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20146         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20147         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20148         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20149
20150 2009-06-08  Eric Blake  <ebb9@byu.net>
20151
20152         test-strstr: use memory fence, when possible
20153         * tests/test-strstr.c (main): Use memory fence, in order to be
20154         more likely to trigger Debian bug 521737.
20155         * modules/strstr-tests (Files): Pull in additional files.
20156
20157         memchr: no longer obsolete, for wider field testing
20158         * modules/memchr (Status, Notice): Delete, this module is no
20159         longer obsolete.
20160         * modules/vasnprintf (Depends-on): Add memchr.
20161
20162 2009-06-07  Jim Meyering  <meyering@redhat.com>
20163
20164         hash: declare some functions with the warn_unused_result attribute
20165         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
20166
20167 2009-06-07  Bruno Haible  <bruno@clisp.org>
20168
20169         * tests/test-alignof.c: Don't test int64_t if it does not exist.
20170         Reported by Eric Blake.
20171
20172 2009-06-06  Eric Blake  <ebb9@byu.net>
20173
20174         test-alignof: fix typo with long double
20175         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
20176         compiler error.
20177
20178 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
20179
20180         Escape non-texinfo { and }s.
20181         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
20182         markup error.
20183
20184 2009-06-04  Jim Meyering  <meyering@redhat.com>
20185
20186         gitlog-to-changelog: don't infloop on an empty commit log
20187         * build-aux/gitlog-to-changelog: Warn about an empty log message.
20188         Reported by Boris Petersen <transacid@centerim.org>.
20189
20190 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
20191
20192         version-etc: extend for packagers
20193         Add three new configure options, intended for packagers:
20194           --with-packager="packager name"
20195           --with-packager-version="packager-specific version"
20196           --with-packager-bug-reports="packager bug reporting"
20197         An example with coreutils:
20198           $ ./configure \
20199             --with-packager=Gentoo \
20200             --with-packager-bug-report=http://bugs.gentoo.org/ \
20201             --with-packager-version="patchset 1.6"
20202           $ ./src/ls --version | head -n2
20203           ls (GNU coreutils) 7.1-dirty
20204           Packaged by Gentoo (patchset 1.6)
20205         Note that the bug reporting info via --help doesn't show up because
20206         coreutils uses its own custom emit_bug_reporting_address() implementation
20207         in src/system.h.  If it didn't, it'd look like:
20208           $ ./src/ls --help | tail -n4
20209           Report bugs to <bug-coreutils@gnu.org>.
20210           Report Gentoo bugs to <http://bugs.gentoo.org/>.
20211           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
20212           General help using GNU software: <http://www.gnu.org/gethelp/>.
20213         * lib/version-etc.c: Print new information, if provided.
20214         * m4/version-etc.m4: New file.
20215         * modules/version-etc (Files): Add m4/version-etc.m4.
20216         (configure.ac): Add gl_VERSION_ETC.
20217
20218 2009-05-31  Bruno Haible  <bruno@clisp.org>
20219
20220         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
20221         and 'int64_t'.
20222         * modules/alignof-tests (Dependencies): Add stdint.
20223         Reported by Eric Blake.
20224
20225 2009-05-31  Bruno Haible  <bruno@clisp.org>
20226
20227         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
20228         restriction due to compiler bugs.
20229         Reported by Eric Blake.
20230
20231 2009-05-31  Simon Josefsson  <simon@josefsson.org>
20232             Bruno Haible  <bruno@clisp.org>
20233
20234         Fix test-alignof failure.
20235         * lib/alignof.h (alignof_slot): New macro.
20236         (alignof_type): New macro, with the same semantics as the previous
20237         'alignof'.
20238         (alignof): Alias to alignof_slot.
20239         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
20240         check that the results are usable as constant expressions.
20241
20242 2009-05-31  Bruno Haible  <bruno@clisp.org>
20243
20244         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
20245         * tests/test-memchr.c (main): Check that memchr does not read past the
20246         first occurrence of the byte.
20247         * tests/test-strstr.c (main): Update comment.
20248         Suggested by Eric Blake.
20249
20250 2009-05-30  Bruno Haible  <bruno@clisp.org>
20251
20252         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
20253         detail how to use dumpbin.
20254         Reported by David Byron <dbyron@dbyron.com>.
20255
20256 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20257
20258         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
20259
20260 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20261
20262         * m4/manywarnings.m4: Add GCC 4.4 warnings.
20263
20264 2009-05-28  Bruno Haible  <bruno@clisp.org>
20265
20266         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
20267         build-aux/ files.
20268
20269 2009-05-28  Simon Josefsson  <simon@josefsson.org>
20270
20271         * gnulib-tool (func_import): Transform license on build-aux/ files too.
20272
20273 2009-05-27  Simon Josefsson  <simon@josefsson.org>
20274
20275         * gnulib-tool (sed_transform_main_lib_file)
20276         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
20277         regexps.
20278
20279 2009-05-26  Simon Josefsson  <simon@josefsson.org>
20280
20281         * tests/test-strstr.c: Add another self-test.
20282         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
20283         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
20284
20285 2009-05-23  Bruno Haible  <bruno@clisp.org>
20286
20287         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
20288         change.
20289
20290 2009-05-21  Bruno Haible  <bruno@clisp.org>
20291
20292         Simplify use of mode_t varargs.
20293         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
20294         uses 'mode_t' or 'int'.
20295         * lib/openat.c (openat): Likewise.
20296         * lib/open-safer.c (open_safer): Likewise.
20297         * m4/mode_t.m4: New file.
20298         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
20299         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
20300         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
20301         * modules/open (Files): Add m4/mode_t.m4.
20302         * modules/openat (Files): Likewise.
20303         * modules/fcntl-safer (Files): Likewise.
20304         Suggested by Eric Blake.
20305
20306 2009-05-21  Pádraig Brady  <P@draigbrady.com>
20307
20308         * doc/glibc-functions/fallocate.texi: New file.
20309         * doc/gnulib.texi: Include it.
20310
20311 2009-05-21  Eric Blake  <ebb9@byu.net>
20312             Bruno Haible  <bruno@clisp.org>
20313
20314         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
20315         invocations.
20316         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20317
20318 2009-05-21  Eric Blake  <ebb9@byu.net>
20319             Bruno Haible  <bruno@clisp.org>
20320
20321         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
20322         include_next. Fix of 2008-11-20 commit.
20323         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
20324         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
20325         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
20326         NEXT_MATH_H.
20327         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
20328         instead of NEXT_MATH_H.
20329
20330 2009-05-21  Bruno Haible  <bruno@clisp.org>
20331
20332         Avoid redefinition warnings for SIZE_MAX.
20333         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
20334         Reported by Simon Josefsson.
20335
20336 2009-05-21  Bruno Haible  <bruno@clisp.org>
20337
20338         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
20339         AC_CACHE_VAL.
20340
20341 2009-05-20  Bruno Haible  <bruno@clisp.org>
20342
20343         Make zeroptr.h work on mingw.
20344         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
20345         mprotect.
20346         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
20347         * modules/memchr2-tests (configure.ac): Likewise.
20348         * modules/memcmp-tests (configure.ac): Likewise.
20349         * modules/memmem-tests (configure.ac): Likewise.
20350         * modules/memrchr-tests (configure.ac): Likewise.
20351         Reported by Simon Josefsson.
20352
20353 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20354
20355         * tests/test-glob.c: Include string.h for strcmp prototype.
20356
20357 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20358
20359         * modules/getdelim (Depends-on): Add explicit stdint, although it
20360         was implicitly already pulled in via realloc-posix.
20361         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
20362
20363 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20364
20365         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
20366         G. Christensen" <tgc@jupiterrise.com>.
20367         * m4/sys_socket_h.m4: Check for sa_family_t.
20368         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
20369         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
20370         * tests/test-sys_socket.c: Check that sa_family_t works.
20371
20372 2009-05-18  Eric Blake  <ebb9@byu.net>
20373
20374         maint.mk: allow gnulib_dir in VPATH build
20375         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
20376
20377 2009-05-15  Jim Meyering  <meyering@redhat.com>
20378
20379         maint.mk: Give gnulib_dir a default definition.
20380         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
20381         Thus, most packages no longer need to specify this variable in cfg.mk
20382
20383 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
20384
20385         rename.m4: fix typos that would make non-mingw cross-configure fail
20386         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
20387
20388 2009-05-13  Eric Blake  <ebb9@byu.net>
20389
20390         mmap-anon: avoid out-of-order autoconf expansion
20391         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
20392         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
20393         * modules/memchr-tests (Depends-on): Add extensions.
20394         * modules/memchr2-tests (Depends-on): Add extensions.
20395         * modules/memcmp-tests (Depends-on): Add extensions.
20396         * modules/memmem-tests (Depends-on): Add extensions.
20397         * modules/memrchr-tests (Depends-on): Add extensions.
20398
20399 2009-05-13  Bruno Haible  <bruno@clisp.org>
20400
20401         Make some tests ISO C 99 compliant.
20402         * tests/zerosize-ptr.h: New file.
20403         * tests/test-memchr.c: Include zerosize-ptr.h.
20404         (main): Use a zero-size object pointer instead of NULL.
20405         * tests/test-memchr2.c: Include zerosize-ptr.h.
20406         (main): Use a zero-size object pointer instead of NULL.
20407         * tests/test-memcmp.c: Include zerosize-ptr.h.
20408         (main): Use a zero-size object pointer instead of NULL.
20409         * tests/test-memmem.c: Include zerosize-ptr.h.
20410         (main): Use a zero-size object pointer instead of NULL.
20411         * tests/test-memrchr.c: Include zerosize-ptr.h.
20412         (main): Use a zero-size object pointer instead of NULL.
20413         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
20414         m4/mmap-anon.m4.
20415         (Depends-on): Add getpagesize.
20416         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20417         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
20418         m4/mmap-anon.m4.
20419         (Depends-on): Add getpagesize.
20420         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20421         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
20422         m4/mmap-anon.m4.
20423         (Depends-on): Add getpagesize.
20424         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20425         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
20426         m4/mmap-anon.m4.
20427         (Depends-on): Add getpagesize.
20428         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20429         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
20430         m4/mmap-anon.m4.
20431         (Depends-on): Add getpagesize.
20432         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20433
20434 2009-05-12  Bruno Haible  <bruno@clisp.org>
20435
20436         Tests for module 'alignof'.
20437         * modules/alignof-tests: New file.
20438         * tests/test-alignof.c: New file.
20439
20440 2009-05-12  Bruno Haible  <bruno@clisp.org>
20441
20442         Fix alignof macro.
20443         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
20444         vendor compilers that are always correct.
20445
20446 2009-05-12  Bruno Haible  <bruno@clisp.org>
20447
20448         Make the MAP_ANONYMOUS detection work on HP-UX 11.
20449         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
20450         not whether its fully works.
20451
20452 2009-05-12  Bruno Haible  <bruno@clisp.org>
20453
20454         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
20455
20456 2009-05-12  Jim Meyering  <meyering@redhat.com>
20457
20458         * top/maint.mk: Adjust backslash alignment.
20459
20460 2009-05-11  Simon Josefsson  <simon@josefsson.org>
20461
20462         * top/maint.mk: Make $(srcdir)/build-aux configurable.
20463
20464 2009-05-11  Eric Blake  <ebb9@byu.net>
20465
20466         argp: avoid undefined behavior
20467         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
20468         macros.
20469
20470 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20471
20472         * tests/test-vc-list-files-git.sh: Do git config of user.email and
20473         user.name to prevent git commit from complaining.
20474
20475 2009-05-10  Bruno Haible  <bruno@clisp.org>
20476
20477         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
20478         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
20479         it rewrites every file name only once.
20480         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
20481
20482 2009-05-08  Bruno Haible  <bruno@clisp.org>
20483
20484         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
20485         instead of 'max'.
20486
20487 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20488
20489         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
20490         sockaddr_storage test.
20491
20492 2009-05-07  Simon Josefsson  <simon@josefsson.org>
20493
20494         * modules/sys_socket (Makefile.am): Substitute
20495         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
20496         * m4/sys_socket_h.m4: Check for sockaddr_storage.
20497         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
20498         * tests/test-sys_socket.c: Check sockaddr_storage.
20499
20500 2009-05-08  Bruno Haible  <bruno@clisp.org>
20501
20502         New module 'alignof'.
20503         * lib/alignof.h: New file.
20504         * modules/alignof: New file.
20505
20506 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20507             Bruno Haible  <bruno@clisp.org>
20508
20509         Fix test-file-has-acl on FreeBSD.
20510         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
20511         mask is implicitly added.
20512         * tests/test-file-has-acl.c: Include <signal.h>.
20513         (main): Terminate the test after 5 seconds.
20514         * modules/acl-tests (configure.ac): Check for alarm function.
20515
20516 2009-05-04  Bruno Haible  <bruno@clisp.org>
20517
20518         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
20519         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
20520         * modules/errno (configure.ac): Drop AC_REQUIRE.
20521         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
20522         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
20523
20524 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20525
20526         * modules/glob-tests: New module.
20527         * tests/test-glob.c: Add.
20528
20529 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20530
20531         * modules/fnmatch-tests: New module.
20532         * tests/test-fnmatch.c: Add.
20533
20534 2009-05-04  Eric Blake  <ebb9@byu.net>
20535
20536         maint: make the new no-submodule-changes rule VPATH-safe
20537         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
20538
20539 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20540             Bruno Haible  <bruno@clisp.org>
20541
20542         acl: Fix infinite loop on FreeBSD.
20543         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
20544         of return value from acl_get_entry.
20545         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
20546         Likewise.
20547
20548 2009-05-03  Bruno Haible  <bruno@clisp.org>
20549
20550         * lib/acl-internal.h (acl_entries): Clarify return value.
20551         * lib/acl_entries.c (acl_entries): Likewise.
20552
20553 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20554
20555         Bug fix in acl module.
20556         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
20557
20558 2009-05-03  Bruno Haible  <bruno@clisp.org>
20559
20560         Create gperf-generated file in the source dir, not in the build dir.
20561         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
20562         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
20563         * modules/unicase/locale-language (unicase/locale-languages.h):
20564         Likewise.
20565         * modules/unicase/special-casing (unicase/special-casing-table.h):
20566         Likewise.
20567         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
20568         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
20569         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
20570         Reported by Ralf Wildenhues.
20571
20572 2009-05-03  Bruno Haible  <bruno@clisp.org>
20573
20574         * modules/fnmatch (Description, configure.ac): Taken from
20575         fnmatch-posix.
20576         * modules/fnmatch-posix: Turn into a symbolic reference to the
20577         'fnmatch' module, and deprecate.
20578         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
20579
20580 2009-05-03  Bruno Haible  <bruno@clisp.org>
20581
20582         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
20583         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
20584         Reported by Ralf Wildenhues.
20585
20586 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20587
20588         * m4/fnmatch.m4: Fix fnmatch re-define.
20589
20590 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20591
20592         priv-set: new module and tests; adapt write-any-file
20593         * lib/priv-set.c: New file.
20594         * lib/priv-set.h: New file.
20595         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
20596         * lib/write-any-file.c: Simplify by using priv-set module.
20597         * m4/priv-set.m4: New file.
20598         * modules/priv-set: New file.
20599         * modules/unlinkdir: Add dependency on priv-set module.
20600         * modules/write-any-file: Likewise.
20601
20602         Tests for module 'priv-set'.
20603         * modules/priv-set-tests: New file.
20604         * tests/test-priv-set.c: New file.
20605
20606 2009-05-03  Jim Meyering  <meyering@redhat.com>
20607             Bruno Haible  <bruno@clisp.org>
20608
20609         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
20610         use the converted UTF-8 variant of the name instead.
20611
20612 2009-05-03  Jim Meyering  <meyering@redhat.com>
20613
20614         tests: tighten some getdate tests
20615         * tests/test-getdate.c (main): Tighten tests: require equality,
20616         not just greater than.  Set TZ envvar to UTC0.
20617
20618 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20619
20620         getdate: correctly interpret "next monday" when run on a Monday
20621         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
20622         that e.g., "next tues" (when run on a tuesday) results in a date
20623         that is one week in the future, and not today's date.
20624         I.e., add a week when the wday is the same as the current one.
20625         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
20626         and earlier by Martin Bernreuther and Jan Minář.
20627         * tests/test-getdate.c (main): Check that "next DAY" is always in
20628         the future and that "last DAY" is always in the past.
20629
20630 2009-05-02  Jim Meyering  <meyering@redhat.com>
20631
20632         build: ensure that a release build fails when a submodule is unclean
20633         * top/maint.mk (no-submodule-changes): New rule.
20634         (alpha beta major): Depend on it.
20635
20636 2009-05-02  Bruno Haible  <bruno@clisp.org>
20637
20638         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
20639         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
20640         shell variable gl_fnmatch_required to detect which variant is
20641         requested.
20642         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
20643         gl_FUNC_FNMATCH_POSIX.
20644         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
20645         exclude fnmatch-posix.
20646
20647 2009-05-02  Bruno Haible  <bruno@clisp.org>
20648
20649         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
20650         * modules/mbsrtowcs (License): Change to LGPLv2+.
20651         * modules/strnlen1 (License): Likewise.
20652         Reported by Simon Josefsson.
20653
20654 2009-05-02  Bruno Haible  <bruno@clisp.org>
20655
20656         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
20657         "cross".
20658         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
20659         gnulib-tool was called with option --source-base=lib.
20660
20661 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20662
20663         Use automake *-local hooks without commands, for extensibility.
20664         * modules/localcharset (Makefile.am): Rename install-exec-local
20665         rule to install-exec-localcharset, and make it a prerequisite of
20666         install-exec-local.  Likewise, rename the uninstall-local rule to
20667         uninstall-localcharset, and make it a prerequisite of the former.
20668
20669 2009-05-01  Bruno Haible  <bruno@clisp.org>
20670
20671         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
20672         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20673         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
20674         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
20675         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
20676         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20677         m4/locale-zh.m4, m4/codeset.m4.
20678
20679         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20680         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
20681         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20682         m4/locale-zh.m4.
20683
20684         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
20685         REPLACE_WCRTOMB if mbstate_t must be replaced.
20686         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
20687         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
20688
20689 2009-05-01  Bruno Haible  <bruno@clisp.org>
20690
20691         Avoid compiler warnings when redefining macros defined by <libintl.h>.
20692         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
20693         dngettext, dcngettext, textdomain, bindtextdomain,
20694         bind_textdomain_codeset): Undefine before redefining.
20695
20696 2009-04-30  Bruno Haible  <bruno@clisp.org>
20697
20698         Fix bug introduced on 2009-04-25.
20699         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
20700         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
20701         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
20702         is defined.
20703         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
20704         is defined.
20705         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
20706         is defined.
20707         Reported by Elbert_Pol <elbert.pol@gmail.com>.
20708
20709 2009-04-28  Bruno Haible  <bruno@clisp.org>
20710
20711         Comment tweaks.
20712         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
20713         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
20714         * lib/unicase.h (u*_casexfrm): Likewise.
20715         Reported by Paolo Bonzini.
20716
20717 2009-04-28  Bruno Haible  <bruno@clisp.org>
20718
20719         Fix a compilation error.
20720         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
20721         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20722         Reported by Jim Meyering.
20723
20724 2009-04-27  Bruno Haible  <bruno@clisp.org>
20725
20726         New module 'libunistring'.
20727         * modules/libunistring: New file.
20728         * m4/libunistring.m4: New file.
20729         * MODULES.html.sh (Unicode string functions): Add it.
20730
20731 2009-04-27  Eric Blake  <ebb9@byu.net>
20732
20733         maint.mk: allow package-specific header to provide <config.h>
20734         * top/maint.mk (sc_require_config_h): New variable.
20735         (sc_require_config_h, sc_require_config_h_first): Use it.
20736
20737 2009-04-27  Simon Josefsson  <simon@josefsson.org>
20738
20739         * top/maint.mk (sc_avoid_if_before_free): Except
20740         useless-if-before-free script.
20741
20742 2009-04-27  Eric Blake  <ebb9@byu.net>
20743
20744         maintainer-makefile: depend on all required helper scripts
20745         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
20746         useless-if-before-free.
20747         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
20748         version, rather than assuming gnulib checkout is available.
20749         Reported by Simen Josefsson.
20750
20751 2009-04-26  Bruno Haible  <bruno@clisp.org>
20752
20753         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
20754         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
20755         "../" or "..".
20756
20757 2009-04-26  Bruno Haible  <bruno@clisp.org>
20758
20759         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
20760         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
20761         AC_LIB_HAVE_LINKFLAGS.
20762
20763 2009-04-26  Bruno Haible  <bruno@clisp.org>
20764
20765         Simplify calling convention of u*_conv_from_encoding.
20766         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
20767         u32_conv_from_encoding): Expect a resultbuf argument and return the
20768         result directly as a pointer.
20769         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
20770         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
20771         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
20772         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
20773         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
20774         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20775         Update.
20776         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
20777         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
20778         * lib/vasnprintf.c (VASNPRINTF): Update.
20779         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
20780         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
20781         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
20782         * NEWS: Mention the change.
20783
20784 2009-04-26  Bruno Haible  <bruno@clisp.org>
20785
20786         Simplify calling convention of u*_conv_to_encoding.
20787         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
20788         u32_conv_to_encoding): Expect a resultbuf argument and return the
20789         result directly as a pointer.
20790         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20791         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
20792         freeing scaled_offsets if mem_iconveha failed.
20793         * lib/unicase/u-casexfrm.h (FUNC): Update.
20794         * lib/uninorm/u-normxfrm.h (FUNC): Update.
20795         * lib/vasnprintf.c (VASNPRINTF): Update.
20796         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
20797         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
20798         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
20799         * NEWS: Mention the change.
20800
20801 2009-04-26  Bruno Haible  <bruno@clisp.org>
20802
20803         Avoid test failures on AIX and OSF/1.
20804         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
20805         malloc(0).
20806         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20807         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20808         Likewise.
20809         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
20810         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
20811         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
20812         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
20813         * doc/posix-functions/malloc.texi: Document the portability problem
20814         related to malloc(0).
20815
20816 2009-04-26  Bruno Haible  <bruno@clisp.org>
20817
20818         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
20819         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
20820         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
20821
20822 2009-04-25  Bruno Haible  <bruno@clisp.org>
20823
20824         Avoid link error when creating a namespace clean library.
20825         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
20826         as macro with arguments if already defined as an alias.
20827         * lib/signbitf.c (gl_signbitf): Don't undefine.
20828         * lib/signbitd.c (gl_signbitd): Don't undefine.
20829         * lib/signbitl.c (gl_signbitl): Don't undefine.
20830
20831 2009-04-25  Jim Meyering  <meyering@redhat.com>
20832
20833         vc-list-files: fix another quoting bug
20834         * build-aux/vc-list-files: Avoid sed backslash expansion
20835         of pathological directory names.
20836
20837 2009-04-25  Eric Blake  <ebb9@byu.net>
20838
20839         vc-list-files: fix shell quoting error
20840         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
20841         timestamp.
20842
20843 2009-04-25  Jim Meyering  <meyering@redhat.com>
20844
20845         vc-list-files: restore lost functionality with subdir argument
20846         * build-aux/vc-list-files: When given a non-"." sub-directory
20847         argument, substitute the $dir/ prefix back onto each resulting name.
20848         Otherwise, coreutils' root_tests check would fail.
20849
20850 2009-04-24  Eric Blake  <ebb9@byu.net>
20851
20852         vc-list-files: ignore git symlinks
20853         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
20854         than ls-files, to ignore git symlinks.
20855
20856         maint.mk: import improvements from m4
20857         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
20858         (move_if_change): Delete unused macro.
20859         (news-date-check, vc-diff-check): Support VPATH builds.
20860         (announcement): Likewise.  Split --bootstrap-tools list...
20861         (boostrap-tools): ...into separate list, which can be overridden
20862         in cfg.mk.
20863         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
20864         requiring dependency on useless-if-before-free module.
20865         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
20866         Support VPATH builds.
20867
20868 2009-04-24  Jim Meyering  <meyering@redhat.com>
20869
20870         maint.mk: remove coreutils-specific rules and variables
20871         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
20872         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
20873         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
20874
20875         maint.mk: remove obsolete rule
20876         * top/maint.mk (rel-check): Remove rule.
20877         (WGET, WGETFLAGS): Remove now-unused variables.
20878
20879 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20880
20881         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
20882         consistency.
20883
20884         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
20885         '$(PATH_SEPARATOR)' instead of ':'.
20886
20887 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20888
20889         * lib/getopt1.c (main): Use 'const' for static array.
20890
20891 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20892
20893         * top/maint.mk: Sync with coreutils.
20894         * NEWS: Explain incompatibilities.
20895
20896 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20897             Bruno Haible  <bruno@clisp.org>
20898
20899         Fix cross-compilation results.
20900         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
20901         statement, as third argument of AC_TRY_RUN.
20902         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20903         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20904         Likewise.
20905         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20906         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20907         Likewise.
20908         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20909         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
20910         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
20911
20912 2009-04-20  Bruno Haible  <bruno@clisp.org>
20913
20914         Avoid test failure on mingw.
20915         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
20916
20917 2009-04-20  Bruno Haible  <bruno@clisp.org>
20918
20919         Avoid compilation error on mingw.
20920         * modules/localename-tests (Depends-on): Add locale.
20921
20922 2009-04-19  Bruno Haible  <bruno@clisp.org>
20923
20924         Support for building a shared library on Windows platforms.
20925         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
20926         (main): Test the presence of UNINORM_NFC here.
20927         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
20928         (main): Test the presence of UNINORM_NFD here.
20929         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
20930         (main): Test the presence of UNINORM_NFKC here.
20931         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
20932         (main): Test the presence of UNINORM_NFKD here.
20933
20934 2009-04-19  Bruno Haible  <bruno@clisp.org>
20935
20936         Avoid a compiler warning.
20937         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
20938         Change type of variable 'sequence'.
20939
20940 2009-04-19  Bruno Haible  <bruno@clisp.org>
20941
20942         * modules/configmake (Makefile.am): When the contents of configmake.h
20943         does not change, arrange to preserve its modification time.
20944
20945 2009-04-17  Simon Josefsson  <simon@josefsson.org>
20946
20947         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
20948         gettext domain.
20949
20950 2009-04-16  Jim Meyering  <meyering@redhat.com>
20951
20952         useless-if-before-free: improve conversion code
20953         * build-aux/useless-if-before-free: Adjust code-in-comment to match
20954         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
20955
20956 2009-04-14  Bruno Haible  <bruno@clisp.org>
20957
20958         * modules/fcntl (Depends-on): Add extensions.
20959         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
20960
20961 2009-04-12  Ben Pfaff  <blp@gnu.org>
20962
20963         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
20964         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
20965
20966 2009-03-20  Ben Pfaff  <blp@gnu.org>
20967
20968         Make rename replace existing destinations on Windows.
20969         * m4/rename.m4: Add test for Mingw.
20970         * lib/rename.c: Add rename replacement that uses MoveFileEx with
20971         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
20972         * doc/posix-functions/rename.texi: Document.
20973
20974 2009-04-10  Bruno Haible  <bruno@clisp.org>
20975
20976         New include file "iconveh.h".
20977         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
20978         * lib/striconveh.h: Include it.
20979         (enum iconv_ilseq_handler): Remove definition.
20980         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
20981         striconveh.h.
20982         * lib/striconveha.c: Include striconveh.h.
20983         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
20984         * modules/striconveh (Files): Add lib/iconveh.h.
20985         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
20986         lib/striconveh.h.
20987
20988 2009-04-10  Bruno Haible  <bruno@clisp.org>
20989
20990         * lib/uniconv.h: Update comment.
20991
20992 2009-04-10  Bruno Haible  <bruno@clisp.org>
20993
20994         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
20995         always.
20996         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
20997         * lib/unistr/u16-mbtouc-aux.c: Likewise.
20998         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
20999         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
21000         "unistring-notinline.h", so that the function gets defined always.
21001         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
21002         * lib/unistr/u8-uctomb.c: Likewise.
21003         * lib/unistr/u16-mbtouc.c: Likewise.
21004         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
21005         * lib/unistr/u16-uctomb.c: Likewise.
21006         * lib/unistr/u32-mbtouc.c: Likewise.
21007         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
21008         * lib/unistr/u32-uctomb.c: Likewise.
21009
21010 2009-04-10  Bruno Haible  <bruno@clisp.org>
21011
21012         Mark 'utime' obsolete.
21013         * modules/utime (Status, Notice): New sections.
21014         Suggested by Jim Meyering.
21015
21016         Fix cross-compile guess for utime test.
21017         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
21018         autoconf.
21019         * doc/posix-functions/utime.texi: Give more precisions.
21020         Reported by Jan <ipif@ymail.com>.
21021
21022 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
21023
21024         filevercmp: correct today's change
21025         * lib/filevercmp.c: Also handle coreutils' test inputs.
21026         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
21027
21028         Fix regression in 'filevercmp' module. Thanks Sven Joachim
21029         for reporting it.
21030         * lib/filevercmp.c: Special handle for "", "." and "..".
21031         * tests/test-filevercmp.c: Enlarge the set suite.
21032
21033 2009-04-07  Jim Meyering  <meyering@redhat.com>
21034
21035         useless-if-before-free: show how to remove braced useless free, too
21036         * build-aux/useless-if-before-free: still only in a comment, though.
21037
21038 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
21039
21040         maint.mk: import changes to syntax-check macros from coreutils
21041         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
21042         Use them in the relevant macros.
21043
21044 2009-04-06  Bruno Haible  <bruno@clisp.org>
21045
21046         Fix unportable use of bit-fields.
21047         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
21048         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
21049         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
21050
21051 2009-04-06  Bruno Haible  <bruno@clisp.org>
21052
21053         Avoid test failures on AIX and OSF/1.
21054         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
21055         that malloc(0) = NULL.
21056         * tests/unicase/test-u8-tolower.c (check): Likewise.
21057         * tests/unicase/test-u8-totitle.c (check): Likewise.
21058         * tests/unicase/test-u8-toupper.c (check): Likewise.
21059         * tests/unicase/test-u16-casefold.c (check): Likewise.
21060         * tests/unicase/test-u16-tolower.c (check): Likewise.
21061         * tests/unicase/test-u16-totitle.c (check): Likewise.
21062         * tests/unicase/test-u16-toupper.c (check): Likewise.
21063         * tests/unicase/test-u32-casefold.c (check): Likewise.
21064         * tests/unicase/test-u32-tolower.c (check): Likewise.
21065         * tests/unicase/test-u32-totitle.c (check): Likewise.
21066         * tests/unicase/test-u32-toupper.c (check): Likewise.
21067         * tests/uninorm/test-u8-nfc.c (check): Likewise.
21068         * tests/uninorm/test-u8-nfd.c (check): Likewise.
21069         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
21070         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
21071         * tests/uninorm/test-u16-nfc.c (check): Likewise.
21072         * tests/uninorm/test-u16-nfd.c (check): Likewise.
21073         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
21074         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
21075         * tests/uninorm/test-u32-nfc.c (check): Likewise.
21076         * tests/uninorm/test-u32-nfd.c (check): Likewise.
21077         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
21078         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
21079
21080 2009-04-05  Bruno Haible  <bruno@clisp.org>
21081
21082         Work around an autoconf limitation.
21083         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
21084         comment line if it would be longer than 3 KB.
21085
21086 2009-04-05  Bruno Haible  <bruno@clisp.org>
21087
21088         Avoid test failure with libiconv-1.13.
21089         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
21090         of the expected test results.
21091
21092 2009-04-05  Bruno Haible  <bruno@clisp.org>
21093
21094         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
21095         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
21096         that it should be installed.
21097
21098 2009-04-05  Bruno Haible  <bruno@clisp.org>
21099
21100         * gnulib-tool: New option --copy-file.
21101         (func_usage): Document it.
21102         (func_dest_tmpfilename): Moved out of func_import.
21103         (func_add_file, func_update_file): New functions, extracted from
21104         func_import.
21105         (func_import): Update.
21106
21107 2009-04-05  Karl Berry  <karl@gnu.org>
21108
21109         * README: prominently mention gnulib-tool.
21110         Rearrange sections so getting the code is near the top.
21111
21112 2009-04-05  Bruno Haible  <bruno@clisp.org>
21113
21114         * lib/unicase.h: Mention u*_cmp2.
21115         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
21116         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
21117         * lib/unicase/ulc-casecmp.c: Likewise.
21118         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
21119         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
21120         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
21121         unistr/u8-cmp.
21122         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
21123         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
21124         unistr/u16-cmp.
21125         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
21126         unistr/u32-cmp.
21127
21128         * lib/uninorm.h: Mention u*_cmp2.
21129         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
21130         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
21131         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
21132         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
21133         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
21134         unistr/u8-cmp.
21135         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
21136         unistr/u16-cmp.
21137         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
21138         unistr/u32-cmp.
21139
21140         New module 'unistr/u32-cmp2'.
21141         * lib/unistr/u32-cmp2.c: New file.
21142         * modules/unistr/u32-cmp2: New file.
21143
21144         New module 'unistr/u16-cmp2'.
21145         * lib/unistr/u16-cmp2.c: New file.
21146         * modules/unistr/u16-cmp2: New file.
21147
21148         New module 'unistr/u8-cmp2'.
21149         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
21150         * lib/unistr/u8-cmp2.c: New file.
21151         * lib/unistr/u-cmp2.h: New file.
21152         * modules/unistr/u8-cmp2: New file.
21153
21154 2009-04-05  Bruno Haible  <bruno@clisp.org>
21155
21156         * lib/unictype.h (uc_property_is_valid): New macro.
21157         * tests/unictype/test-pr_byname.c (main): Use it.
21158
21159         * lib/unistr.h: Doc fixes.
21160         * lib/uniconv.h: Doc fixes.
21161         * lib/unictype.h: Doc fixes.
21162
21163 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
21164
21165         Port coreutils 7.2 to Solaris 8.
21166
21167         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
21168         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
21169         for Solaris 8.  This is a bit of a hack, as it means it's the
21170         caller's responsibility to add -lnsl if needed, but most likely it
21171         won't be needed since only getaddrinfo uses this and getaddrinfo
21172         isn't needed on Solaris 8.
21173
21174         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
21175         problem to Solaris 8 encountered with coreutils 7.2, which
21176         resulted in a message "fnmatch.c:292: warning: passing argument 4
21177         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
21178         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
21179
21180 2009-04-03  Simon Josefsson  <simon@josefsson.org>
21181
21182         * m4/ld-version-script.m4: Add FIXME comment.
21183
21184 2009-04-02  Simon Josefsson  <simon@josefsson.org>
21185
21186         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
21187         SOVERSION variable.
21188
21189 2009-04-02  Bruno Haible  <bruno@clisp.org>
21190
21191         * Makefile (info, html, dvi, pdf): Combine the rules.
21192         Suggested by Jim Meyering.
21193
21194 2009-04-01  Bruno Haible  <bruno@clisp.org>
21195
21196         * Makefile (info, html, dvi, pdf): New targets.
21197         Reported by Reuben Thomas <rrt@sc3d.org>.
21198
21199 2009-04-01  Bruno Haible  <bruno@clisp.org>
21200
21201         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
21202         can be put into PATH.
21203         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
21204
21205 2009-04-01  Bruno Haible  <bruno@clisp.org>
21206
21207         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
21208
21209 2009-04-01  Bruno Haible  <bruno@clisp.org>
21210
21211         Rename module 'visibility'.
21212         * modules/lib-symbol-visibility: Renamed from modules/visibility.
21213         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
21214         * doc/gnulib.texi: Update.
21215         * MODULES.html.sh (Misc): Update.
21216         * NEWS: Mention the change.
21217
21218 2009-04-01  Simon Josefsson  <simon@josefsson.org>
21219
21220         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
21221         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
21222         Eric Blake <ebb9@byu.net> for review.
21223         * MODULES.html.sh: Add lib-msvc-compat.
21224         * doc/gnulib.texi: Link to new section.
21225         * m4/ld-output-def.m4: New file.
21226         * doc/ld-output-def.texi: New file.
21227
21228 2009-04-01  Simon Josefsson  <simon@josefsson.org>
21229
21230         Rename ld-version-script to lib-symbol-versions.  Suggested by
21231         Bruno Haible <bruno@clisp.org>.
21232         * modules/ld-version-script: Renamed to lib-symbol-versions.
21233         * doc/ld-version-script.texi: Fix module name.
21234         * MODULES.html.sh: Add lib-symbol-versions.
21235
21236 2009-03-31  Simon Josefsson  <simon@josefsson.org>
21237
21238         * modules/u64-tests: New file.
21239         * tests/test-u64.c: New file.
21240
21241 2009-03-04  Simon Josefsson  <simon@josefsson.org>
21242
21243         * MODULES.html.sh: Mention u64.
21244         * modules/u64: New module.
21245         * modules/crypto/sha512: Depend on u64 module instead of providing
21246         u64.h.
21247
21248 2009-03-27  Eric Blake  <ebb9@byu.net>
21249
21250         test-strerror: make debugging EAI_SYSTEM easier
21251         * modules/getaddrinfo-tests (Depends-on): Add strerror.
21252         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
21253         failure was EAI_SYSTEM.
21254
21255 2009-03-25  Bruno Haible  <bruno@clisp.org>
21256
21257         Fix a problem with --enable-relocatable on Solaris 7.
21258         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
21259         since 2008-02-24.
21260
21261 2009-03-25  Eric Blake  <ebb9@byu.net>
21262
21263         test-sockets: avoid gcc warning
21264         * tests/test-sockets.c (main): Silence compiler warning.
21265
21266 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
21267
21268         New modules nproc, pthread, contributed by Glen Lenker.
21269
21270         * MODULES.html.sh: Add pthread, nproc.
21271         * lib/nproc.c: New file.
21272         * lib/nproc.h: New file.
21273         * lib/pthread.in.h: New file.
21274         * m4/pthread.m4: New file.
21275         * modules/nproc: New file.
21276         * modules/pthread: New file.
21277
21278 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21279
21280         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
21281         New variable.
21282
21283 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
21284
21285         filevercmp: handle simple~ and numbered.~3~ backup suffixes
21286         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
21287         * tests/test-filevercmp.c: Add tests for backup suffixes.
21288
21289 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21290
21291         * modules/stdlib (Depends-on): Add stdint, needed when defining
21292         struct random_data on, for example, HP-UX 10.20.  Reported by
21293         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21294
21295 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21296
21297         * lib/readline.c (readline): Call fflush on stdout after printing
21298         prompt.
21299
21300 2009-03-20  Bruno Haible  <bruno@clisp.org>
21301
21302         Remove dependency from 'close' module to -lws2_32 on native Windows.
21303         * lib/close-hook.h: New file.
21304         * lib/close-hook.c: New file.
21305         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
21306         w32sock.h.
21307         (_gl_close_fd_maybe_socket): Remove function.
21308         (rpl_close): Invoke execute_all_close_hooks instead of
21309         _gl_close_fd_maybe_socket.
21310         * lib/sockets.c: Include close-hook.h, w32sock.h.
21311         (close_fd_maybe_socket): New function, essentially from lib/close.c.
21312         (close_sockets_hook): New variable.
21313         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
21314         (gl_sockets_cleanup): Unregister it.
21315         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
21316         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
21317         * modules/close-hook: New file.
21318         * modules/close (Files): Remove lib/w32sock.h.
21319         (Depends-on): Add close-hook.
21320         (Link): Remove section.
21321         * modules/sockets (Files): Add lib/w32sock.h.
21322         (Depends-on): Add close-hook.
21323         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
21324         invocation.
21325         * NEWS: Mention that LIB_CLOSE is gone.
21326
21327 2009-03-23  Eric Blake  <ebb9@byu.net>
21328
21329         signal-tests: test previous patch
21330         * tests/test-signal.c: New file.
21331         * modules/signal-tests: Likewise.
21332
21333         signal.h: always support 'volatile sig_atomic_t'
21334         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
21335         (gl_SIGNAL_H_DEFAULTS): Add a default.
21336         * modules/signal (Makefile.am): Substitute if needed.
21337         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
21338         users can blindly add volatile.
21339         * doc/posix-headers/signal.texi (signal.h): Document it.
21340         Reported by Matthew Woehlke.
21341
21342 2009-03-23  Jim Meyering  <meyering@redhat.com>
21343
21344         pathmax: PATH_MAX: use pathconf only when available
21345         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
21346         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
21347         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
21348         This avoids a link failure in a PSP cross-compilation environment
21349         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
21350
21351         * lib/vasnprintf.c (divide): Fix typo in comment.
21352
21353 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21354
21355         * gnulib-tool (func_filter_filelist): Fix comment.
21356
21357 2009-03-20  Bruno Haible  <bruno@clisp.org>
21358
21359         Make sockets.h self-contained.
21360         * lib/sockets.c: Include sockets.h first.
21361         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
21362
21363 2009-03-19  Eric Blake  <ebb9@byu.net>
21364
21365         doc: mention more functions added in cygwin 1.7.0
21366         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
21367         addition.
21368         * doc/posix-functions/log2f.texi: Likewise.
21369
21370 2009-03-19  Jim Meyering  <meyering@redhat.com>
21371
21372         fsusage: avoid syntax error due to statement-before-declaration
21373         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
21374         after all declarations.  Reported by Matthew Woehlke in
21375         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
21376
21377 2009-03-18  Eric Blake  <ebb9@byu.net>
21378
21379         build-aux/compile: sync from automake
21380         * build-aux/compile: New file, from automake.
21381         * config/srclist.txt: Mention build-aux/compile.
21382
21383 2009-03-17  Bruno Haible  <bruno@clisp.org>
21384
21385         * lib/git-merge-changelog.c: Fix typo in comment.
21386         Reported by Reuben Thomas <rrt@sc3d.org>.
21387
21388 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
21389
21390         * m4/regex.m4: update and improve help for
21391         --without-included-regex.
21392
21393 2009-03-17  Simon Josefsson  <simon@josefsson.org>
21394
21395         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
21396         failure on missing include files.
21397
21398 2009-03-17  Eric Blake  <ebb9@byu.net>
21399
21400         doc: mention more functions added in cygwin 1.7.0
21401         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
21402         addition.
21403         * doc/posix-functions/fwscanf.texi: Likewise.
21404         * doc/posix-functions/swprintf.texi: Likewise.
21405         * doc/posix-functions/swscanf.texi: Likewise.
21406         * doc/posix-functions/vfwprintf.texi: Likewise.
21407         * doc/posix-functions/vfwscanf.texi: Likewise.
21408         * doc/posix-functions/vswprintf.texi: Likewise.
21409         * doc/posix-functions/vswscanf.texi: Likewise.
21410         * doc/posix-functions/vwprintf.texi: Likewise.
21411         * doc/posix-functions/vwscanf.texi: Likewise.
21412         * doc/posix-functions/wcscasecmp.texi: Likewise.
21413         * doc/posix-functions/wcsdup.texi: Likewise.
21414         * doc/posix-functions/wcsftime.texi: Likewise.
21415         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21416         * doc/posix-functions/wprintf.texi: Likewise.
21417         * doc/posix-functions/wscanf.texi: Likewise.
21418         * doc/glibc-functions/gethostbyname2.texi: Likewise.
21419
21420 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21421
21422         maint.mk: really add $(AM_MAKEFLAGS)
21423         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
21424         was inadvertently omitted in the last commit.
21425         Spotted by Bruno Haible.
21426
21427         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
21428         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
21429         $(AM_MAKEFLAGS)' rather than plain `make'.
21430
21431         gnulib-tool: execute $MAKE not make
21432         * gnulib-tool: Default $MAKE to 'make'.
21433         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
21434         than make.  Initialize $MAKE in the do-autobuild script.
21435
21436         gnulib-tool: use $MAKE not make in generated files
21437         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
21438         make, in generated files.  Initialize $MAKE in the do-autobuild
21439         script.
21440
21441         * top/GNUmakefile (_have-git-version-gen): Fix typo.
21442
21443         GNUmakefile: disable parallelism only for multiple, recursive targets
21444         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
21445         additions in the Makefile.
21446         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
21447         by Automake.
21448         (.NOTPARALLEL): Only disable parallel builds if multiple targets
21449         are listed on the command line and at least one of them is
21450         listed in $(ALL_RECURSIVE_TARGETS).
21451
21452 2009-03-14  Bruno Haible  <bruno@clisp.org>
21453
21454         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
21455         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
21456         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
21457         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
21458         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
21459         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
21460         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
21461         unistr/u8-uctomb.
21462         * modules/unistr/u8-strchr (Depends-on): Likewise.
21463         * modules/unistr/u8-strrchr (Depends-on): Likewise.
21464         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
21465         unistr/u16-uctomb.
21466         * modules/unistr/u16-strchr (Depends-on): Likewise.
21467         * modules/unistr/u16-strrchr (Depends-on): Likewise.
21468
21469 2009-03-12  Bruno Haible  <bruno@clisp.org>
21470
21471         Work around select() bug on Interix 3.5.
21472         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
21473         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
21474         * m4/select.m4: New file.
21475         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
21476         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
21477         * modules/select (Files): Add m4/select.m4.
21478         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
21479         * modules/nanosleep (Depends-on): Add select.
21480         * modules/poll (Depends-on): Likewise.
21481         * doc/posix-functions/select.texi: Mention the Interix bug.
21482         Reported by Markus Duft <mduft@gentoo.org>.
21483
21484         * lib/select.c: Renamed from lib/winsock-select.c.
21485         * modules/select (Files): Add lib/select.c, remove
21486         lib/winsock-select.c.
21487         (configure.ac): Update.
21488
21489 2009-03-12  Jim Meyering  <meyering@redhat.com>
21490
21491         avoid gcc warnings about unused macro definitions
21492         * lib/readtokens.c (STREQ): Remove unused definition.
21493         * lib/xmalloc.c (SIZE_MAX): Likewise.
21494         * lib/openat-die.c (N_): Likewise.
21495         * lib/mountlist.c (SIZE_MAX): Remove definition.
21496         Instead, include <stdint.h>.
21497         * lib/readutmp.c: Likewise.
21498         * modules/readutmp (Depends-on): Add stdint.
21499         * modules/mountlist (Depends-on): Add stdint.
21500         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
21501
21502 2009-03-10  Bruno Haible  <bruno@clisp.org>
21503
21504         Tests for module 'mbmemcasecoll'.
21505         * modules/mbmemcasecoll-tests: New file.
21506         * tests/test-mbmemcasecoll1.sh: New file.
21507         * tests/test-mbmemcasecoll2.sh: New file.
21508         * tests/test-mbmemcasecoll3.sh: New file.
21509         * tests/test-mbmemcasecoll.c: New file.
21510
21511         New module 'mbmemcasecoll'.
21512         * lib/mbmemcasecoll.h: New file.
21513         * lib/mbmemcasecoll.c: New file.
21514         * modules/mbmemcasecoll: New file.
21515
21516         * tests/test-mbmemcasecmp.h: New file, extracted from
21517         tests/test-mbmemcasecmp.c.
21518         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
21519         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
21520         (main): Update.
21521         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
21522
21523 2009-03-09  Bruno Haible  <bruno@clisp.org>
21524
21525         Tests for module 'mbmemcasecmp'.
21526         * modules/mbmemcasecmp-tests: New file.
21527         * tests/test-mbmemcasecmp1.sh: New file.
21528         * tests/test-mbmemcasecmp2.sh: New file.
21529         * tests/test-mbmemcasecmp3.sh: New file.
21530         * tests/test-mbmemcasecmp.c: New file.
21531
21532         New module 'mbmemcasecmp'.
21533         * lib/mbmemcasecmp.h: New file.
21534         * lib/mbmemcasecmp.c: New file.
21535         * modules/mbmemcasecmp: New file.
21536
21537 2009-03-09  Bruno Haible  <bruno@clisp.org>
21538
21539         Tests for module 'unicase/ulc-casecoll'.
21540         * modules/unicase/ulc-casecoll-tests: New file.
21541         * tests/unicase/test-ulc-casecoll1.sh: New file.
21542         * tests/unicase/test-ulc-casecoll2.sh: New file.
21543         * tests/unicase/test-ulc-casecoll.c: New file.
21544
21545         New module 'unicase/ulc-casecoll'.
21546         * lib/unicase.h (ulc_casecoll): New declaration.
21547         * lib/unicase/ulc-casecoll.c: New file.
21548         * modules/unicase/ulc-casecoll: New file.
21549
21550         New module 'unicase/ulc-casexfrm'.
21551         * lib/unicase.h (ulc_casexfrm): New declaration.
21552         * lib/unicase/ulc-casexfrm.c: New file.
21553         * modules/unicase/ulc-casexfrm: New file.
21554
21555 2009-03-09  Bruno Haible  <bruno@clisp.org>
21556
21557         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
21558         invocations.
21559
21560         * m4/mbscasecmp.m4: Remove file.
21561         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
21562         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
21563
21564         * m4/mbscasestr.m4: Remove file.
21565         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
21566         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
21567
21568         * m4/mbschr.m4: Remove file.
21569         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
21570         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
21571
21572         * m4/mbscspn.m4: Remove file.
21573         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
21574         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
21575
21576         * m4/mbslen.m4: Remove file.
21577         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
21578         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
21579
21580         * m4/mbsncasecmp.m4: Remove file.
21581         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
21582         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
21583
21584         * m4/mbsnlen.m4: Remove file.
21585         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
21586         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
21587
21588         * m4/mbspbrk.m4: Remove file.
21589         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
21590         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
21591
21592         * m4/mbspcasecmp.m4: Remove file.
21593         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
21594         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
21595
21596         * m4/mbsrchr.m4: Remove file.
21597         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
21598         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
21599
21600         * m4/mbssep.m4: Remove file.
21601         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
21602         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
21603
21604         * m4/mbsspn.m4: Remove file.
21605         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
21606         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
21607
21608         * m4/mbsstr.m4: Remove file.
21609         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
21610         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
21611
21612         * m4/mbstok_r.m4: Remove file.
21613         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
21614         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
21615
21616         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
21617
21618         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
21619         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
21620
21621         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
21622
21623 2009-03-08  Bruno Haible  <bruno@clisp.org>
21624
21625         Tests for module 'unicase/ulc-casecmp'.
21626         * modules/unicase/ulc-casecmp-tests: New file.
21627         * tests/unicase/test-ulc-casecmp1.sh: New file.
21628         * tests/unicase/test-ulc-casecmp2.sh: New file.
21629         * tests/unicase/test-ulc-casecmp.c: New file.
21630
21631         New module 'unicase/ulc-casecmp'.
21632         * lib/unicase.h (ulc_casecmp): New declaration.
21633         * lib/unicase/ulc-casecmp.c: New file.
21634         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
21635         'const SRC_UNIT *'.
21636         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
21637         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
21638         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
21639         * modules/unicase/ulc-casecmp: New file.
21640
21641         Tests for module 'unicase/u32-is-cased'.
21642         * modules/unicase/u32-is-cased-tests: New file.
21643         * tests/unicase/test-u32-is-cased.c: New file.
21644
21645         Tests for module 'unicase/u16-is-cased'.
21646         * modules/unicase/u16-is-cased-tests: New file.
21647         * tests/unicase/test-u16-is-cased.c: New file.
21648
21649         Tests for module 'unicase/u8-is-cased'.
21650         * modules/unicase/u8-is-cased-tests: New file.
21651         * tests/unicase/test-u8-is-cased.c: New file.
21652         * tests/unicase/test-is-cased.h: New file.
21653
21654         New module 'unicase/u32-is-cased'.
21655         * lib/unicase/u32-is-cased.c: New file.
21656         * modules/unicase/u32-is-cased: New file.
21657
21658         New module 'unicase/u16-is-cased'.
21659         * lib/unicase/u16-is-cased.c: New file.
21660         * modules/unicase/u16-is-cased: New file.
21661
21662         New module 'unicase/u8-is-cased'.
21663         * lib/unicase/u8-is-cased.c: New file.
21664         * lib/unicase/u-is-cased.h: New file.
21665         * modules/unicase/u8-is-cased: New file.
21666
21667         Tests for module 'unicase/u32-is-casefolded'.
21668         * modules/unicase/u32-is-casefolded-tests: New file.
21669         * tests/unicase/test-u32-is-casefolded.c: New file.
21670
21671         Tests for module 'unicase/u16-is-casefolded'.
21672         * modules/unicase/u16-is-casefolded-tests: New file.
21673         * tests/unicase/test-u16-is-casefolded.c: New file.
21674
21675         Tests for module 'unicase/u8-is-casefolded'.
21676         * modules/unicase/u8-is-casefolded-tests: New file.
21677         * tests/unicase/test-u8-is-casefolded.c: New file.
21678         * tests/unicase/test-is-casefolded.h: New file.
21679
21680         New module 'unicase/u32-is-casefolded'.
21681         * lib/unicase/u32-is-casefolded.c: New file.
21682         * modules/unicase/u32-is-casefolded: New file.
21683
21684         New module 'unicase/u16-is-casefolded'.
21685         * lib/unicase/u16-is-casefolded.c: New file.
21686         * modules/unicase/u16-is-casefolded: New file.
21687
21688         New module 'unicase/u8-is-casefolded'.
21689         * lib/unicase/u8-is-casefolded.c: New file.
21690         * modules/unicase/u8-is-casefolded: New file.
21691
21692         Tests for module 'unicase/u32-is-titlecase'.
21693         * modules/unicase/u32-is-titlecase-tests: New file.
21694         * tests/unicase/test-u32-is-titlecase.c: New file.
21695
21696         Tests for module 'unicase/u16-is-titlecase'.
21697         * modules/unicase/u16-is-titlecase-tests: New file.
21698         * tests/unicase/test-u16-is-titlecase.c: New file.
21699
21700         Tests for module 'unicase/u8-is-titlecase'.
21701         * modules/unicase/u8-is-titlecase-tests: New file.
21702         * tests/unicase/test-u8-is-titlecase.c: New file.
21703         * tests/unicase/test-is-titlecase.h: New file.
21704
21705         New module 'unicase/u32-is-titlecase'.
21706         * lib/unicase/u32-is-titlecase.c: New file.
21707         * modules/unicase/u32-is-titlecase: New file.
21708
21709         New module 'unicase/u16-is-titlecase'.
21710         * lib/unicase/u16-is-titlecase.c: New file.
21711         * modules/unicase/u16-is-titlecase: New file.
21712
21713         New module 'unicase/u8-is-titlecase'.
21714         * lib/unicase/u8-is-titlecase.c: New file.
21715         * modules/unicase/u8-is-titlecase: New file.
21716
21717         Tests for module 'unicase/u32-is-lowercase'.
21718         * modules/unicase/u32-is-lowercase-tests: New file.
21719         * tests/unicase/test-u32-is-lowercase.c: New file.
21720
21721         Tests for module 'unicase/u16-is-lowercase'.
21722         * modules/unicase/u16-is-lowercase-tests: New file.
21723         * tests/unicase/test-u16-is-lowercase.c: New file.
21724
21725         Tests for module 'unicase/u8-is-lowercase'.
21726         * modules/unicase/u8-is-lowercase-tests: New file.
21727         * tests/unicase/test-u8-is-lowercase.c: New file.
21728         * tests/unicase/test-is-lowercase.h: New file.
21729
21730         New module 'unicase/u32-is-lowercase'.
21731         * lib/unicase/u32-is-lowercase.c: New file.
21732         * modules/unicase/u32-is-lowercase: New file.
21733
21734         New module 'unicase/u16-is-lowercase'.
21735         * lib/unicase/u16-is-lowercase.c: New file.
21736         * modules/unicase/u16-is-lowercase: New file.
21737
21738         New module 'unicase/u8-is-lowercase'.
21739         * lib/unicase/u8-is-lowercase.c: New file.
21740         * modules/unicase/u8-is-lowercase: New file.
21741
21742         Tests for module 'unicase/u32-is-uppercase'.
21743         * modules/unicase/u32-is-uppercase-tests: New file.
21744         * tests/unicase/test-u32-is-uppercase.c: New file.
21745
21746         Tests for module 'unicase/u16-is-uppercase'.
21747         * modules/unicase/u16-is-uppercase-tests: New file.
21748         * tests/unicase/test-u16-is-uppercase.c: New file.
21749
21750         Tests for module 'unicase/u8-is-uppercase'.
21751         * modules/unicase/u8-is-uppercase-tests: New file.
21752         * tests/unicase/test-u8-is-uppercase.c: New file.
21753         * tests/unicase/test-is-uppercase.h: New file.
21754
21755         New module 'unicase/u32-is-uppercase'.
21756         * lib/unicase/u32-is-uppercase.c: New file.
21757         * modules/unicase/u32-is-uppercase: New file.
21758
21759         New module 'unicase/u16-is-uppercase'.
21760         * lib/unicase/u16-is-uppercase.c: New file.
21761         * modules/unicase/u16-is-uppercase: New file.
21762
21763         New module 'unicase/u8-is-uppercase'.
21764         * lib/unicase/u8-is-uppercase.c: New file.
21765         * modules/unicase/u8-is-uppercase: New file.
21766
21767         New module 'unicase/u32-is-invariant'.
21768         * lib/unicase/u32-is-invariant.c: New file.
21769         * modules/unicase/u32-is-invariant: New file.
21770
21771         New module 'unicase/u16-is-invariant'.
21772         * lib/unicase/u16-is-invariant.c: New file.
21773         * modules/unicase/u16-is-invariant: New file.
21774
21775         New module 'unicase/u8-is-invariant'.
21776         * lib/unicase/u8-is-invariant.c: New file.
21777         * lib/unicase/invariant.h: New file.
21778         * lib/unicase/u-is-invariant.h: New file.
21779         * modules/unicase/u8-is-invariant: New file.
21780
21781         Tests for module 'unicase/u32-casecoll'.
21782         * modules/unicase/u32-casecoll-tests: New file.
21783         * tests/unicase/test-u32-casecoll.c: New file.
21784
21785         Tests for module 'unicase/u16-casecoll'.
21786         * modules/unicase/u16-casecoll-tests: New file.
21787         * tests/unicase/test-u16-casecoll.c: New file.
21788
21789         Tests for module 'unicase/u8-casecoll'.
21790         * modules/unicase/u8-casecoll-tests: New file.
21791         * tests/unicase/test-u8-casecoll.c: New file.
21792
21793         New module 'unicase/u32-casecoll'.
21794         * lib/unicase/u32-casecoll.c: New file.
21795         * modules/unicase/u32-casecoll: New file.
21796
21797         New module 'unicase/u16-casecoll'.
21798         * lib/unicase/u16-casecoll.c: New file.
21799         * modules/unicase/u16-casecoll: New file.
21800
21801         New module 'unicase/u8-casecoll'.
21802         * lib/unicase/u8-casecoll.c: New file.
21803         * lib/unicase/u-casecoll.h: New file.
21804         * modules/unicase/u8-casecoll: New file.
21805
21806         New module 'unicase/u32-casexfrm'.
21807         * lib/unicase/u32-casexfrm.c: New file.
21808         * modules/unicase/u32-casexfrm: New file.
21809
21810         New module 'unicase/u16-casexfrm'.
21811         * lib/unicase/u16-casexfrm.c: New file.
21812         * modules/unicase/u16-casexfrm: New file.
21813
21814         New module 'unicase/u8-casexfrm'.
21815         * lib/unicase/u8-casexfrm.c: New file.
21816         * lib/unicase/u-casexfrm.h: New file.
21817         * modules/unicase/u8-casexfrm: New file.
21818
21819         Tests for module 'unicase/u32-casecmp'.
21820         * modules/unicase/u32-casecmp-tests: New file.
21821         * tests/unicase/test-u32-casecmp.c: New file.
21822
21823         Tests for module 'unicase/u16-casecmp'.
21824         * modules/unicase/u16-casecmp-tests: New file.
21825         * tests/unicase/test-u16-casecmp.c: New file.
21826
21827         Tests for module 'unicase/u8-casecmp'.
21828         * modules/unicase/u8-casecmp-tests: New file.
21829         * tests/unicase/test-u8-casecmp.c: New file.
21830         * tests/unicase/test-casecmp.h: New file.
21831
21832         New module 'unicase/u32-casecmp'.
21833         * lib/unicase/u32-casecmp.c: New file.
21834         * modules/unicase/u32-casecmp: New file.
21835
21836         New module 'unicase/u16-casecmp'.
21837         * lib/unicase/u16-casecmp.c: New file.
21838         * modules/unicase/u16-casecmp: New file.
21839
21840         New module 'unicase/u8-casecmp'.
21841         * lib/unicase/u8-casecmp.c: New file.
21842         * lib/unicase/u-casecmp.h: New file.
21843         * modules/unicase/u8-casecmp: New file.
21844
21845         Tests for module 'unicase/u32-casefold'.
21846         * modules/unicase/u32-casefold-tests: New file.
21847         * tests/unicase/test-u32-casefold.c: New file.
21848
21849         Tests for module 'unicase/u16-casefold'.
21850         * modules/unicase/u16-casefold-tests: New file.
21851         * tests/unicase/test-u16-casefold.c: New file.
21852
21853         Tests for module 'unicase/u8-casefold'.
21854         * modules/unicase/u8-casefold-tests: New file.
21855         * tests/unicase/test-u8-casefold.c: New file.
21856
21857         New module 'unicase/u32-casefold'.
21858         * lib/unicase/u32-casefold.c: New file.
21859         * modules/unicase/u32-casefold: New file.
21860
21861         New module 'unicase/u16-casefold'.
21862         * lib/unicase/u16-casefold.c: New file.
21863         * modules/unicase/u16-casefold: New file.
21864
21865         New module 'unicase/u8-casefold'.
21866         * lib/unicase/u8-casefold.c: New file.
21867         * lib/unicase/u-casefold.h: New file.
21868         * modules/unicase/u8-casefold: New file.
21869
21870         New module 'unicase/tocasefold'.
21871         * lib/unicase/casefold.h: New file.
21872         * lib/unicase/tocasefold.c: New file.
21873         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
21874         * modules/unicase/tocasefold: New file.
21875
21876         Tests for module 'unicase/u32-totitle'.
21877         * modules/unicase/u32-totitle-tests: New file.
21878         * tests/unicase/test-u32-totitle.c: New file.
21879
21880         Tests for module 'unicase/u16-totitle'.
21881         * modules/unicase/u16-totitle-tests: New file.
21882         * tests/unicase/test-u16-totitle.c: New file.
21883
21884         Tests for module 'unicase/u8-totitle'.
21885         * modules/unicase/u8-totitle-tests: New file.
21886         * tests/unicase/test-u8-totitle.c: New file.
21887
21888         New module 'unicase/u32-totitle'.
21889         * lib/unicase/u32-totitle.c: New file.
21890         * modules/unicase/u32-totitle: New file.
21891
21892         New module 'unicase/u16-totitle'.
21893         * lib/unicase/u16-totitle.c: New file.
21894         * modules/unicase/u16-totitle: New file.
21895
21896         New module 'unicase/u8-totitle'.
21897         * lib/unicase/u8-totitle.c: New file.
21898         * lib/unicase/u-totitle.h: New file.
21899         * modules/unicase/u8-totitle: New file.
21900
21901         Tests for module 'unicase/u32-tolower'.
21902         * modules/unicase/u32-tolower-tests: New file.
21903         * tests/unicase/test-u32-tolower.c: New file.
21904
21905         Tests for module 'unicase/u16-tolower'.
21906         * modules/unicase/u16-tolower-tests: New file.
21907         * tests/unicase/test-u16-tolower.c: New file.
21908
21909         Tests for module 'unicase/u8-tolower'.
21910         * modules/unicase/u8-tolower-tests: New file.
21911         * tests/unicase/test-u8-tolower.c: New file.
21912
21913         New module 'unicase/u32-tolower'.
21914         * lib/unicase/u32-tolower.c: New file.
21915         * modules/unicase/u32-tolower: New file.
21916
21917         New module 'unicase/u16-tolower'.
21918         * lib/unicase/u16-tolower.c: New file.
21919         * modules/unicase/u16-tolower: New file.
21920
21921         New module 'unicase/u8-tolower'.
21922         * lib/unicase/u8-tolower.c: New file.
21923         * modules/unicase/u8-tolower: New file.
21924
21925         Tests for module 'unicase/u32-toupper'.
21926         * modules/unicase/u32-toupper-tests: New file.
21927         * tests/unicase/test-u32-toupper.c: New file.
21928
21929         Tests for module 'unicase/u16-toupper'.
21930         * modules/unicase/u16-toupper-tests: New file.
21931         * tests/unicase/test-u16-toupper.c: New file.
21932
21933         Tests for module 'unicase/u8-toupper'.
21934         * modules/unicase/u8-toupper-tests: New file.
21935         * tests/unicase/test-u8-toupper.c: New file.
21936
21937         New module 'unicase/u32-toupper'.
21938         * lib/unicase/u32-toupper.c: New file.
21939         * modules/unicase/u32-toupper: New file.
21940
21941         New module 'unicase/u16-toupper'.
21942         * lib/unicase/u16-toupper.c: New file.
21943         * modules/unicase/u16-toupper: New file.
21944
21945         New module 'unicase/u8-toupper'.
21946         * lib/unicase/u8-toupper.c: New file.
21947         * modules/unicase/u8-toupper: New file.
21948
21949         New module 'unicase/u32-casemap'.
21950         * lib/unicase/u32-casemap.c: New file.
21951         * modules/unicase/u32-casemap: New file.
21952
21953         New module 'unicase/u16-casemap'.
21954         * lib/unicase/u16-casemap.c: New file.
21955         * modules/unicase/u16-casemap: New file.
21956
21957         New module 'unicase/u8-casemap'.
21958         * lib/unicase/unicasemap.h: New file.
21959         * lib/unicase/u8-casemap.c: New file.
21960         * lib/unicase/u-casemap.h: New file.
21961         * modules/unicase/u8-casemap: New file.
21962
21963         New module 'unicase/special-casing'.
21964         * lib/unicase/special-casing.h: New file.
21965         * lib/unicase/special-casing.c: New file.
21966         * lib/unicase/special-casing-table.gperf: New file, generated by
21967         gen-uni-tables.c.
21968         * modules/unicase/special-casing: New file.
21969
21970         Tests for module 'unicase/locale-language'.
21971         * modules/unicase/locale-language-tests: New file.
21972         * tests/unicase/test-locale-language.sh: New file.
21973         * tests/unicase/test-locale-language.c: New file.
21974
21975         New module 'unicase/locale-language'.
21976         * lib/unicase/locale-language.c: New file.
21977         * lib/unicase/locale-languages.gperf: New file.
21978         * modules/unicase/locale-language: New file.
21979
21980         Generate more tables for case conversion and case folding.
21981         * lib/gen-uni-tables.c (SCC_*): New enum items.
21982         (struct special_casing_rule): New type.
21983         (casing_rules, num_casing_rules, allocated_casing_rules): New
21984         variables.
21985         (add_casing_rule, fill_casing_rules): New functions.
21986         (struct casefold_rule): New type.
21987         (casefolding_rules, num_casefolding_rules,
21988         allocated_casefolding_rules): New variables.
21989         (fill_casefolding_rules): New function.
21990         (unicode_casefold): New variable.
21991         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
21992         sort_casing_rules, output_casing_rules): New functions.
21993         (main): Accept to more arguments: SpecialCasing.txt and
21994         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
21995         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
21996         Output mapping for casefolding.
21997
21998         * lib/unicase.h: Include stdbool.h, uninorm.h.
21999         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
22000         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
22001         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
22002         arguments.
22003         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
22004         resultp arguments.
22005         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
22006         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
22007         resultp arguments.
22008         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
22009         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
22010         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
22011         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
22012         declarations.
22013         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
22014
22015 2009-03-08  Bruno Haible  <bruno@clisp.org>
22016
22017         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
22018         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
22019         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
22020         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
22021
22022 2009-03-07  Bruno Haible  <bruno@clisp.org>
22023
22024         Adjust u*_normcmp, u*_normcoll API.
22025         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
22026         u16_normcoll, u32_normcoll): Change failure conventions.
22027         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
22028         errno and return -1.
22029         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
22030
22031 2009-03-07  Bruno Haible  <bruno@clisp.org>
22032
22033         Tests for module 'uninorm/u32-normcoll'.
22034         * modules/uninorm/u32-normcoll-tests: New file.
22035         * tests/uninorm/test-u32-normcoll.c: New file.
22036
22037         Tests for module 'uninorm/u16-normcoll'.
22038         * modules/uninorm/u16-normcoll-tests: New file.
22039         * tests/uninorm/test-u16-normcoll.c: New file.
22040
22041         Tests for module 'uninorm/u8-normcoll'.
22042         * modules/uninorm/u8-normcoll-tests: New file.
22043         * tests/uninorm/test-u8-normcoll.c: New file.
22044
22045 2009-03-07  Bruno Haible  <bruno@clisp.org>
22046
22047         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
22048         tests/uninorm/test-u32-normcmp.c.
22049         * tests/uninorm/test-u32-normcmp.c: Include it.
22050         (test_nonascii): New function, extracted from main. Add some more
22051         tests.
22052         (main): Invoke test_ascii and test_nonascii.
22053         * modules/uninorm/u32-normcmp-tests (Files): Add
22054         tests/uninorm/test-u32-normcmp.h.
22055         (Depends-on): Remove uninorm/u32-normcmp.
22056
22057         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
22058         tests/uninorm/test-u16-normcmp.c.
22059         * tests/uninorm/test-u16-normcmp.c: Include it.
22060         (test_nonascii): New function, extracted from main. Add some more
22061         tests.
22062         (main): Invoke test_ascii and test_nonascii.
22063         * modules/uninorm/u16-normcmp-tests (Files): Add
22064         tests/uninorm/test-u16-normcmp.h.
22065         (Depends-on): Remove uninorm/u16-normcmp.
22066
22067         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
22068         tests/uninorm/test-u8-normcmp.c.
22069         * tests/uninorm/test-u8-normcmp.c: Include it.
22070         (test_nonascii): New function, extracted from main. Add some more
22071         tests.
22072         (main): Invoke test_ascii and test_nonascii.
22073         * modules/uninorm/u8-normcmp-tests (Files): Add
22074         tests/uninorm/test-u8-normcmp.h.
22075         (Depends-on): Remove uninorm/u8-normcmp.
22076
22077 2009-03-07  Bruno Haible  <bruno@clisp.org>
22078
22079         New module 'uninorm/u32-normcoll'.
22080         * lib/uninorm/u32-normcoll.c: New file.
22081         * modules/uninorm/u32-normcoll: New file.
22082
22083         New module 'uninorm/u16-normcoll'.
22084         * lib/uninorm/u16-normcoll.c: New file.
22085         * modules/uninorm/u16-normcoll: New file.
22086
22087         New module 'uninorm/u8-normcoll'.
22088         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
22089         declarations.
22090         * lib/uninorm/u8-normcoll.c: New file.
22091         * lib/uninorm/u-normcoll.h: New file.
22092         * modules/uninorm/u8-normcoll: New file.
22093
22094         New module 'uninorm/u32-normxfrm'.
22095         * lib/uninorm/u32-normxfrm.c: New file.
22096         * modules/uninorm/u32-normxfrm: New file.
22097
22098         New module 'uninorm/u16-normxfrm'.
22099         * lib/uninorm/u16-normxfrm.c: New file.
22100         * modules/uninorm/u16-normxfrm: New file.
22101
22102         New module 'uninorm/u8-normxfrm'.
22103         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
22104         declarations.
22105         * lib/uninorm/u8-normxfrm.c: New file.
22106         * lib/uninorm/u-normxfrm.h: New file.
22107         * modules/uninorm/u8-normxfrm: New file.
22108
22109 2009-03-07  Bruno Haible  <bruno@clisp.org>
22110
22111         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
22112         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
22113         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
22114
22115 2009-03-07  Bruno Haible  <bruno@clisp.org>
22116
22117         New module 'memxfrm'.
22118         * lib/memxfrm.h: New file.
22119         * lib/memxfrm.c: New file.
22120         * modules/memxfrm: New file.
22121
22122 2009-03-07  Bruno Haible  <bruno@clisp.org>
22123
22124         New module 'memcmp2'.
22125         * lib/memcmp2.h: New file.
22126         * lib/memcmp2.c: New file.
22127         * modules/memcmp2: New file.
22128
22129 2009-03-07  Bruno Haible  <bruno@clisp.org>
22130
22131         Tests for module 'uninorm/decomposing-form'.
22132         * modules/uninorm/decomposing-form-tests: New file.
22133         * tests/uninorm/test-decomposing-form.c: New file.
22134
22135         New module 'uninorm/decomposing-form'.
22136         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
22137         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
22138         Add 'decomposing_variant' field.
22139         * lib/uninorm/decomposing-form.c: New file.
22140         * lib/uninorm/nfc.c (uninorm_nfc): Update.
22141         * lib/uninorm/nfd.c (uninorm_nfd): Update.
22142         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
22143         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
22144         * modules/uninorm/decomposing-form: New file.
22145         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
22146         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
22147
22148 2009-03-07  Bruno Haible  <bruno@clisp.org>
22149
22150         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
22151         strings.
22152
22153 2009-03-06  Bruno Haible  <bruno@clisp.org>
22154
22155         Tests for module 'uninorm/u32-normcmp'.
22156         * tests/uninorm/test-u32-normcmp.c: New file.
22157         * modules/uninorm/u32-normcmp-tests: New file.
22158
22159         Tests for module 'uninorm/u16-normcmp'.
22160         * tests/uninorm/test-u16-normcmp.c: New file.
22161         * modules/uninorm/u16-normcmp-tests: New file.
22162
22163         Tests for module 'uninorm/u8-normcmp'.
22164         * tests/uninorm/test-u8-normcmp.c: New file.
22165         * modules/uninorm/u8-normcmp-tests: New file.
22166
22167         New module 'uninorm/u32-normcmp'.
22168         * lib/uninorm/u32-normcmp.c: New file.
22169         * modules/uninorm/u32-normcmp: New file.
22170
22171         New module 'uninorm/u16-normcmp'.
22172         * lib/uninorm/u16-normcmp.c: New file.
22173         * modules/uninorm/u16-normcmp: New file.
22174
22175         New module 'uninorm/u8-normcmp'.
22176         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
22177         declarations.
22178         * lib/uninorm/u8-normcmp.c: New file.
22179         * lib/uninorm/u-normcmp.h: New file.
22180         * modules/uninorm/u8-normcmp: New file.
22181
22182 2009-03-06  Bruno Haible  <bruno@clisp.org>
22183
22184         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
22185         Reported by Eric Blake.
22186
22187 2009-03-06  Eric Blake  <ebb9@byu.net>
22188             Bruno Haible  <bruno@clisp.org>
22189
22190         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
22191         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
22192         condition.
22193         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
22194         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
22195         condition.
22196         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
22197
22198 2009-03-06  Eric Blake  <ebb9@byu.net>
22199
22200         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
22201         to avoid compiler warnings.
22202         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
22203
22204 2009-03-05  Bruno Haible  <bruno@clisp.org>
22205
22206         * tests/test-ftell.c (main): Disable test beyond end of file on
22207         FreeMiNT.
22208         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22209
22210 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
22211
22212         * lib/filevercmp.c: Move hidden files up in ordering.
22213         * tests/test-filevercmp.c: Add tests for hidden files.
22214
22215 2009-03-04  Bruno Haible  <bruno@clisp.org>
22216
22217         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
22218         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
22219         AM_CFLAGS.
22220         Reported by Simon Josefsson.
22221
22222 2009-03-03  Bruno Haible  <bruno@clisp.org>
22223
22224         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
22225         Reported by Simon Josefsson.
22226
22227         * doc/ld-version-script.texi: Update node reference.
22228
22229 2009-03-03  Bruno Haible  <bruno@clisp.org>
22230
22231         * modules/visibility (License): Change to 'unlimited'.
22232         Suggested by Simon Josefsson.
22233
22234 2009-03-03  Jim Meyering  <meyering@redhat.com>
22235
22236         unlinkdir: cannot_unlink_dir may modify process state
22237         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
22238         it's neither thread-safe nor appropriate for use in a library.
22239
22240 2009-03-03  Eric Blake  <ebb9@byu.net>
22241
22242         test-closein: silence test under Darwin
22243         * tests/test-closein.sh: Ignore stderr from cat, since we don't
22244         care if it dies from EPIPE or EBADF.
22245
22246 2009-03-03  Bruno Haible  <bruno@clisp.org>
22247
22248         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
22249         earlier.
22250         * doc/visibility.texi: Fix @node and @section.
22251
22252 2009-03-03  Simon Josefsson  <simon@josefsson.org>
22253
22254         * doc/gnulib.texi: Link to sections for ld version script and
22255         visibility.
22256         * doc/visibility.texi: Add @node and @section.
22257         * modules/ld-version-script: New module.
22258         * m4/ld-version-script.m4: New file.
22259         * doc/ld-version-script.texi: New file.
22260
22261 2009-03-02  David Lutterkort  <lutter@redhat.com>
22262
22263         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
22264         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22265
22266 2009-03-02  Bruno Haible  <bruno@clisp.org>
22267
22268         * doc/visibility.texi: Mention libtool's -export-symbols option.
22269
22270 2009-03-02  Jim Meyering  <meyering@redhat.com>
22271
22272         announce-gen: new option: --no-print-checksums
22273         * build-aux/announce-gen (usage): Describe it.
22274         (print_checksums): Print a newline here, not in the [*] footnote.
22275         (main): Honor it.
22276
22277 2009-03-01  Bruno Haible  <bruno@clisp.org>
22278
22279         Use socklen_t in the native Windows replacements prototypes.
22280         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
22281         instead of 'int'.
22282         * lib/getsockopt.c (rpl_getsockopt): Likewise.
22283         * lib/setsockopt.c (rpl_setsockopt): Likewise.
22284         * modules/getsockopt (Depends-on): Add socklen.
22285         * modules/setsockopt (Depends-on): Add socklen.
22286
22287 2009-03-01  Bruno Haible  <bruno@clisp.org>
22288
22289         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
22290         least 4.2.
22291
22292 2009-03-01  Eric Blake  <ebb9@byu.net>
22293             Bruno Haible  <bruno@clisp.org>
22294
22295         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
22296         error messages.
22297         * lib/wait-process.c (wait_subprocess): Omit error message about
22298         deadly signal sent to the child of termsigp != NULL.
22299
22300 2009-03-01  Eric Blake  <ebb9@byu.net>
22301
22302         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
22303
22304 2009-03-01  Bruno Haible  <bruno@clisp.org>
22305
22306         Avoid a gcc warning.
22307         * tests/test-sched.c (b): Make global.
22308         Reported by Eric Blake.
22309
22310 2009-01-19  Martin Lambers  <marlam@marlam.de>
22311
22312         Provide POSIX semantics for socket timeout options on W32.
22313         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
22314         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
22315         * modules/setsockopt: Depend on sys_time module for struct timeval.
22316         * modules/getsockopt: Depend on sys_time module for struct timeval.
22317
22318 2009-03-01  Simon Josefsson  <simon@josefsson.org>
22319
22320         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
22321         __USE_GNU, for consistency with netdb.in.h.
22322         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22323
22324 2009-03-01  Bruno Haible  <bruno@clisp.org>
22325
22326         More support for FreeMiNT.
22327         * lib/fseeko.c (rpl_fseeko): Complete last commit.
22328         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22329
22330 2009-03-01  Bruno Haible  <bruno@clisp.org>
22331
22332         More support for FreeMiNT.
22333         * lib/fpurge.c (fpurge): Correct last commit.
22334         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22335
22336 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22337
22338         Fix unportable awk script in vc-list-files.
22339         * build-aux/vc-list-files: In the replacement awk script, use
22340         substr with a second argument of 1, not zero.
22341         Report by Simon Josefsson.
22342
22343 2009-02-28  Bruno Haible  <bruno@clisp.org>
22344
22345         More support for FreeMiNT.
22346         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
22347         to FreeMiNT today.
22348         * lib/fwriting.c (fwriting): Likewise.
22349         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
22350
22351 2009-02-28  Bruno Haible  <bruno@clisp.org>
22352
22353         * tests/test-freadseek.c (main): Disable test beyond end of file on
22354         FreeMiNT.
22355         * tests/test-ftello.c (main): Likewise.
22356         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22357
22358 2009-02-28  Bruno Haible  <bruno@clisp.org>
22359
22360         Add tentative support for FreeMiNT.
22361         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
22362         * lib/fpurge.c (fpurge): Likewise.
22363         * lib/freadable.c (freadable): Likewise.
22364         * lib/freading.c (freading): Likewise.
22365         * lib/freadptr.c (freadptr): Likewise.
22366         * lib/freadseek.c (freadptrinc): Likewise.
22367         * lib/fseeko.c (rpl_fseeko): Likewise.
22368         * lib/fseterr.c (fseterr): Likewise.
22369         * lib/fwritable.c (fwritable): Likewise.
22370         * lib/fwriting.c (fwriting): Likewise.
22371         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
22372         Hourihane.
22373         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22374
22375 2009-02-28  Bruno Haible  <bruno@clisp.org>
22376
22377         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
22378         SIGCHLD.
22379         Reported by Jim Meyering.
22380
22381 2009-02-28  Bruno Haible  <bruno@clisp.org>
22382
22383         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
22384         Mention the results of these tests on various platforms.
22385         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
22386         order.
22387         * doc/posix-functions/printf.texi: Likewise.
22388         * doc/posix-functions/snprintf.texi: Likewise.
22389         * doc/posix-functions/sprintf.texi: Likewise.
22390         * doc/posix-functions/vfprintf.texi: Likewise.
22391         * doc/posix-functions/vprintf.texi: Likewise.
22392         * doc/posix-functions/vsnprintf.texi: Likewise.
22393         * doc/posix-functions/vsprintf.texi: Likewise.
22394         * doc/glibc-functions/obstack_printf.texi: Likewise.
22395         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22396
22397 2009-02-28  Bruno Haible  <bruno@clisp.org>
22398
22399         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
22400         Reported by Loïc Minier <lool@dooz.org>.
22401
22402 2009-02-27  Bruno Haible  <bruno@clisp.org>
22403
22404         * gnulib-tool (func_import): Make the sed expression used to create the
22405         sed script for updating the .gitignore file POSIX compliant.
22406         Reported by Eric Blake.
22407
22408 2009-02-27  Bruno Haible  <bruno@clisp.org>
22409
22410         * gnulib-tool (sed): Don't alias as "sed --posix".
22411         Reported by Eric Blake.
22412
22413 2009-02-27  Bruno Haible  <bruno@clisp.org>
22414
22415         Avoid test link errors.
22416         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
22417         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
22418         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
22419         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
22420         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22421
22422 2009-02-27  Bruno Haible  <bruno@clisp.org>
22423
22424         Avoid spurious "(cached)" in configure output.
22425         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
22426         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
22427         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22428         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22429         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22430         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22431         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22432         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22433         Reported by Eric Blake.
22434
22435 2009-02-27  Eric Blake  <ebb9@byu.net>
22436
22437         printf: fix regression in previous patch
22438         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
22439
22440 2009-02-27  Bruno Haible  <bruno@clisp.org>
22441
22442         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
22443         value.
22444         * lib/stdint.in.h: Likewise.
22445         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
22446
22447 2009-02-27  Eric Blake  <ebb9@byu.net>
22448
22449         doc: mention more functions added in cygwin 1.7.0
22450         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
22451         addition.
22452         * doc/posix-functions/open_wmemstream.texi: Likewise.
22453         * doc/posix-functions/wcsnlen.texi: Likewise.
22454         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22455         * doc/posix-functions/wcstod.texi: Likewise.
22456         * doc/posix-functions/wcstof.texi: Likewise.
22457         * doc/posix-functions/wcstoimax.texi: Likewise.
22458         * doc/posix-functions/wcstok.texi: Likewise.
22459         * doc/posix-functions/wcstoumax.texi: Likewise.
22460
22461         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
22462         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
22463         * doc/posix-functions/fprintf.texi: Update.
22464         * doc/posix-functions/printf.texi: Update.
22465         * doc/posix-functions/snprintf.texi: Update.
22466         * doc/posix-functions/sprintf.texi: Update.
22467         * doc/posix-functions/vfprintf.texi: Update.
22468         * doc/posix-functions/vprintf.texi: Update.
22469         * doc/posix-functions/vsnprintf.texi: Update.
22470         * doc/posix-functions/vsprintf.texi: Update.
22471         * doc/glibc-functions/obstack_printf.texi: Update.
22472         * doc/glibc-functions/obstack_vprintf.texi: Update.
22473
22474 2009-02-26  Eric Blake  <ebb9@byu.net>
22475
22476         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
22477         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
22478         compilation bug by using runtime conversion.
22479         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22480         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
22481         * modules/ceill-tests (Files): Use nan.h.
22482         * modules/floorl-tests (Files): Likewise.
22483         * modules/frexpl-tests (Files): Likewise.
22484         * modules/isnanl-tests (Files): Likewise.
22485         * modules/ldexpl-tests (Files): Likewise.
22486         * modules/roundl-tests (Files): Likewise.
22487         * modules/truncl-tests (Files): Likewise.
22488         * tests/test-ceill.c (main): Use a working NaN.
22489         * tests/test-floorl.c (main): Likewise.
22490         * tests/test-frexpl.c (main): Likewise.
22491         * tests/test-isnan.c (test_long_double): Likewise.
22492         * tests/test-isnanl.h (main): Likewise.
22493         * tests/test-ldexpl.h (main): Likewise.
22494         * tests/test-roundl.h (main): Likewise.
22495         * tests/test-truncl.h (main): Likewise.
22496         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
22497
22498 2009-02-26  Eric Blake  <ebb9@byu.net>
22499             Bruno Haible  <bruno@clisp.org>
22500
22501         Work around a *printf bug with %ls on Solaris.
22502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
22503         precision is specified, sprintf stops converting the wide string
22504         argument when the number of bytes that have been produced by this
22505         conversion equals or exceeds the precision.
22506         * doc/posix-functions/fprintf.texi: Update.
22507         * doc/posix-functions/printf.texi: Update.
22508         * doc/posix-functions/snprintf.texi: Update.
22509         * doc/posix-functions/sprintf.texi: Update.
22510         * doc/posix-functions/vfprintf.texi: Update.
22511         * doc/posix-functions/vprintf.texi: Update.
22512         * doc/posix-functions/vsnprintf.texi: Update.
22513         * doc/posix-functions/vsprintf.texi: Update.
22514         * doc/glibc-functions/obstack_printf.texi: Update.
22515         * doc/glibc-functions/obstack_vprintf.texi: Update.
22516
22517 2009-02-26  Eric Blake  <ebb9@byu.net>
22518
22519         stdlib: favor compiler check of random.h
22520         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
22521         to avoid an ObjC random.h installed by Swarm.
22522
22523 2009-02-26  Bruno Haible  <bruno@clisp.org>
22524
22525         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
22526         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
22527         Reported by Gary V. Vaughan <gary@gnu.org>.
22528
22529 2009-02-26  Bruno Haible  <bruno@clisp.org>
22530
22531         Fix *printf behaviour regarding the %ls directive.
22532         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
22533         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
22534         NEED_PRINTF_DIRECTIVE_LS.
22535         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
22536         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
22537         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22538         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
22539         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
22540         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
22541         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22542         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22543         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22544         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22545         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22546         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
22547         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22548         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22549         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22550         * doc/posix-functions/fprintf.texi: Update.
22551         * doc/posix-functions/printf.texi: Update.
22552         * doc/posix-functions/snprintf.texi: Update.
22553         * doc/posix-functions/sprintf.texi: Update.
22554         * doc/posix-functions/vfprintf.texi: Update.
22555         * doc/posix-functions/vprintf.texi: Update.
22556         * doc/posix-functions/vsnprintf.texi: Update.
22557         * doc/posix-functions/vsprintf.texi: Update.
22558         * doc/glibc-functions/obstack_printf.texi: Update.
22559         * doc/glibc-functions/obstack_vprintf.texi: Update.
22560         Reported by Eric Blake.
22561
22562 2009-02-25  Bruno Haible  <bruno@clisp.org>
22563
22564         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
22565         with known value.
22566         Reported by Gary V. Vaughan <gary@gnu.org>.
22567
22568 2009-02-25  Bruno Haible  <bruno@clisp.org>
22569
22570         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
22571         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
22572         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
22573         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
22574         Reported by Gary V. Vaughan <gary@gnu.org>.
22575
22576 2009-02-25  Bruno Haible  <bruno@clisp.org>
22577
22578         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
22579         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
22580         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
22581         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
22582         Reported by Gary V. Vaughan <gary@gnu.org>.
22583
22584 2009-02-25  Eric Blake  <ebb9@byu.net>
22585
22586         tests: skip fseek/ftell tests if ungetc is broken
22587         * m4/ungetc.m4: New file.
22588         * modules/fseek-tests: Split test, so ungetc dependency is
22589         separate from rest of test.
22590         * modules/fseeko-tests: Likewise.
22591         * modules/ftell-tests: Likewise.
22592         * modules/ftello-tests: Likewise.
22593         * tests/test-fseek.c (main): Isolate ungetc dependency.
22594         * tests/test-fseeko.c (main): Likewise.
22595         * tests/test-ftell.c (main): Likewise.
22596         * tests/test-ftello.c (main): Likewise.
22597         * tests/test-fseek2.sh: New file.
22598         * tests/test-fseeko2.sh: Likewise.
22599         * tests/test-ftell2.sh: Likewise.
22600         * tests/test-ftello2.sh: Likewise.
22601
22602 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
22603
22604         test-getaddrinfo: fix usage of skip return code 77
22605         * tests/test-gettaddrinfo.c: Return skip code 77 only
22606         for first occurance of skip (4x77 is not 77)
22607
22608 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
22609
22610         strtod: avoid C99 decl-after-statement
22611         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
22612
22613 2009-02-24  Eric Blake  <ebb9@byu.net>
22614
22615         strtod: detect HP-UX 11.31 bug
22616         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
22617         Reported by Gary V. Vaughan.
22618
22619 2009-02-23  Bruno Haible  <bruno@clisp.org>
22620
22621         Fix invalid read past end of memory block.
22622         * lib/vasnprintf.c (DCHAR_SET): Define.
22623         (local_wcslen): Define only when needed.
22624         (local_strnlen, local_wcsnlen): New functions.
22625         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
22626         directives that involve a conversion ourselves.
22627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
22628         wcsnlen, mbrtowc, wcrtomb.
22629         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
22630         * tests/test-vasprintf-posix.c (test_function): Likewise.
22631         * tests/test-snprintf-posix.h (test_function): Likewise.
22632         * tests/test-sprintf-posix.h (test_function): Likewise.
22633         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22634
22635 2009-02-22  Bruno Haible  <bruno@clisp.org>
22636
22637         Implement new clarified decomposition of Hangul syllables.
22638         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
22639         of type LTV, return only a pairwise decomposition.
22640         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
22641         Likewise.
22642         * tests/uninorm/test-decomposition.c (main): Updated expected result.
22643         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
22644         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
22645
22646 2009-02-22  Bruno Haible  <bruno@clisp.org>
22647
22648         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
22649         zero-length results and shrink excess allocated memory.
22650         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
22651         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
22652         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
22653         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
22654         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
22655         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
22656         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
22657         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
22658         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
22659         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
22660         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
22661         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
22662
22663 2009-02-21  Bruno Haible  <bruno@clisp.org>
22664
22665         * doc/gnulib.texi: Include safe-alloc.texi earlier.
22666         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
22667         spaces after a period. Put a space between a macro name and its
22668         argument list. Trivial rewordings.
22669         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
22670         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
22671         (main): Return 0 explicitly.
22672
22673 2009-02-21  Bruno Haible  <bruno@clisp.org>
22674
22675         Tests for module 'uninorm/filter'.
22676         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
22677         * modules/uninorm/filter-tests: New file.
22678
22679         New module 'uninorm/filter'.
22680         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
22681         uninorm_filter_flush, uninorm_filter_free): New declarations.
22682         * lib/uninorm/uninorm-filter.c: New file.
22683         * modules/uninorm/filter: New file.
22684
22685 2009-02-21  Bruno Haible  <bruno@clisp.org>
22686
22687         Tests for module 'uninorm/nfkc'.
22688         * tests/uninorm/test-nfkc.c: New file.
22689         * tests/uninorm/test-u8-nfkc.c: New file.
22690         * tests/uninorm/test-u16-nfkc.c: New file.
22691         * tests/uninorm/test-u32-nfkc.c: New file.
22692         * tests/uninorm/test-u32-nfkc-big.sh: New file.
22693         * tests/uninorm/test-u32-nfkc-big.c: New file.
22694         * modules/uninorm/nfkc-tests: New file.
22695
22696         New module 'uninorm/nfkc'.
22697         * lib/uninorm/nfkc.c: New file.
22698         * modules/uninorm/nfkc: New file.
22699
22700         Tests for module 'uninorm/nfkd'.
22701         * tests/uninorm/test-nfkd.c: New file.
22702         * tests/uninorm/test-u8-nfkd.c: New file.
22703         * tests/uninorm/test-u16-nfkd.c: New file.
22704         * tests/uninorm/test-u32-nfkd.c: New file.
22705         * tests/uninorm/test-u32-nfkd-big.sh: New file.
22706         * tests/uninorm/test-u32-nfkd-big.c: New file.
22707         * modules/uninorm/nfkd-tests: New file.
22708
22709         New module 'uninorm/nfkd'.
22710         * lib/uninorm/nfkd.c: New file.
22711         * modules/uninorm/nfkd: New file.
22712
22713         Tests for module 'uninorm/nfc'.
22714         * tests/uninorm/test-nfc.c: New file.
22715         * tests/uninorm/test-u8-nfc.c: New file.
22716         * tests/uninorm/test-u16-nfc.c: New file.
22717         * tests/uninorm/test-u32-nfc.c: New file.
22718         * tests/uninorm/test-u32-nfc-big.sh: New file.
22719         * tests/uninorm/test-u32-nfc-big.c: New file.
22720         * modules/uninorm/nfc-tests: New file.
22721
22722         New module 'uninorm/nfc'.
22723         * lib/uninorm/nfc.c: New file.
22724         * modules/uninorm/nfc: New file.
22725
22726         Tests for module 'uninorm/nfd'.
22727         * tests/uninorm/test-nfd.c: New file.
22728         * tests/uninorm/test-u8-nfd.c: New file.
22729         * tests/uninorm/test-u16-nfd.c: New file.
22730         * tests/uninorm/test-u32-nfd.c: New file.
22731         * tests/uninorm/test-u32-nfd-big.sh: New file.
22732         * tests/uninorm/test-u32-nfd-big.c: New file.
22733         * tests/uninorm/test-u32-normalize-big.h: New file.
22734         * tests/uninorm/test-u32-normalize-big.c: New file.
22735         * tests/uninorm/NormalizationTest.txt: New file, created from
22736         Unicode 5.1.0 NormalizationTest.txt.
22737         * modules/uninorm/nfd-tests: New file.
22738
22739         New module 'uninorm/nfd'.
22740         * lib/uninorm/nfd.c: New file.
22741         * modules/uninorm/nfd: New file.
22742
22743         New module 'uninorm/u32-normalize'.
22744         * lib/uninorm/u32-normalize.c: New file.
22745         * modules/uninorm/u32-normalize: New file.
22746
22747         New module 'uninorm/u16-normalize'.
22748         * lib/uninorm/u16-normalize.c: New file.
22749         * modules/uninorm/u16-normalize: New file.
22750
22751         New module 'uninorm/u8-normalize'.
22752         * lib/uninorm/u8-normalize.c: New file.
22753         * lib/uninorm/normalize-internal.h: New file.
22754         * lib/uninorm/u-normalize-internal.h: New file.
22755         * modules/uninorm/u8-normalize: New file.
22756
22757         New module 'uninorm/decompose-internal'.
22758         * lib/uninorm/decompose-internal.c: New file.
22759         * modules/uninorm/decompose-internal: New file.
22760
22761         Tests for module 'uninorm/composition'.
22762         * tests/uninorm/test-composition.c: New file.
22763         * modules/uninorm/composition-tests: New file.
22764
22765         New module 'uninorm/composition'.
22766         * lib/uninorm/composition.c: New file.
22767         * lib/uninorm/composition-table.gperf: New file, generated by
22768         gen-uni-tables.
22769         * modules/uninorm/composition: New file.
22770
22771         Tests for module 'uninorm/compat-decomposition'.
22772         * tests/uninorm/test-compat-decomposition.c: New file.
22773         * modules/uninorm/compat-decomposition-tests: New file.
22774
22775         New module 'uninorm/compat-decomposition'.
22776         * lib/uninorm/decompose-internal.h: New file.
22777         * lib/uninorm/compat-decomposition.c: New file.
22778         * modules/uninorm/compat-decomposition: New file.
22779
22780         Tests for module 'uninorm/canonical-decomposition'.
22781         * tests/uninorm/test-canonical-decomposition.c: New file.
22782         * modules/uninorm/canonical-decomposition-tests: New file.
22783
22784         New module 'uninorm/canonical-decomposition'.
22785         * lib/uninorm/canonical-decomposition.c: New file.
22786         * modules/uninorm/canonical-decomposition: New file.
22787
22788         Tests for module 'uninorm/decomposition'.
22789         * tests/uninorm/test-decomposition.c: New file.
22790         * modules/uninorm/decomposition-tests: New file.
22791
22792         New module 'uninorm/decomposition'.
22793         * lib/uninorm/decomposition.c: New file.
22794         * modules/uninorm/decomposition: New file.
22795
22796         New module 'uninorm/decomposition-table'.
22797         * lib/uninorm/decomposition-table.h: New file.
22798         * lib/uninorm/decomposition-table.c: New file.
22799         * lib/uninorm/decomposition-table1.h: New file, generated by
22800         gen-uni-tables.
22801         * lib/uninorm/decomposition-table2.h: New file, generated by
22802         gen-uni-tables.
22803         * modules/uninorm/decomposition-table: New file.
22804
22805         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
22806         (UC_DECOMP_*): New enumeration items.
22807         (get_decomposition): New function.
22808         (struct decomp_table): New type.
22809         (output_decomposition, output_decomposition_tables): New functions.
22810         (unicode_composition_exclusions): New variable.
22811         (fill_composition_exclusions, debug_output_composition_tables): New
22812         functions.
22813         (main): Accept one more argument. Invoke fill_composition_exclusions.
22814         Output decomposition and composition tables.
22815
22816         New module 'uninorm/base'.
22817         * lib/uninorm.h: New file.
22818         * lib/unictype.h: Update comment.
22819         * modules/uninorm/base: New file.
22820
22821 2009-02-21  David Lutterkort  <lutter@redhat.com>
22822
22823         Tests for module 'safe-alloc'.
22824         * tests/test-safe-alloc.c: New file.
22825         * modules/safe-alloc-tests: New file.
22826
22827         New module 'safe-alloc'.
22828         * lib/safe-alloc.h: New file.
22829         * lib/safe-alloc.c: New file.
22830         * m4/safe-alloc.m4: New file.
22831         * modules/safe-alloc: New file.
22832         * doc/safe-alloc.texi: New file.
22833         * doc/gnulib.texi: Include it.
22834         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22835         safe-alloc.
22836
22837 2009-02-18  Bruno Haible  <bruno@clisp.org>
22838
22839         Fix link error on non-glibc systems.
22840         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
22841         variable.
22842         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22843
22844 2009-02-18  Jim Meyering  <meyering@redhat.com>
22845
22846         fts: avoid used-uninitialized error due to recent change
22847         * lib/fts.c (fts_read): Guard uses of the new member,
22848         parent->fts_n_dirs_remaining, since it's not relevant for
22849         the parent of a directory specified on the command-line.
22850
22851 2009-02-17  James Youngman  <jay@gnu.org>
22852             Bruno Haible  <bruno@clisp.org>
22853
22854         * m4/include_next.m4: Reformulate comment.
22855
22856 2009-02-16  Jim Meyering  <meyering@redhat.com>
22857
22858         fts: add #if guards so that the fts_lgpl module still builds
22859         * lib/fts.c: Guard just-added hash-table-using parts with
22860         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
22861         Reported by Simon Josefsson.
22862
22863 2009-02-15  Bruno Haible  <bruno@clisp.org>
22864
22865         * modules/array-mergesort-tests: New file.
22866         * tests/test-array-mergesort.c: New file.
22867
22868         New module 'array-mergesort'.
22869         * modules/array-mergesort: New file.
22870         * lib/array-mergesort.h: New file.
22871
22872 2009-02-15  Bruno Haible  <bruno@clisp.org>
22873
22874         Fix 2009-02-07 commit.
22875         * lib/gen-uni-tables.c (output_predicate, output_category,
22876         output_combclass, output_bidi_category, output_decimal_digit,
22877         output_digit, output_numeric, output_mirror, output_scripts,
22878         output_ident_category, output_simple_mapping): Fix format directives.
22879         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
22880
22881 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
22882
22883         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
22884         fixes are available from IBM.
22885
22886 2009-02-13  Jim Meyering  <meyering@redhat.com>
22887
22888         fts: arrange not to stat non-directories in more cases
22889         This makes GNU find (when it doesn't need to stat each file)
22890         *much* more efficient at traversing reiserfs file systems.
22891         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
22892         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
22893         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
22894         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
22895         (leaf_optimization_applies): New function.
22896         (LCO_hash, LCO_compare): New helper functions.
22897         (link_count_optimize_ok): New function.
22898         (fts_stat): Initialize new member (if dir).
22899         (fts_read): Decrement parent's fts_n_dirs_remaining count if
22900         we've just stat'ed a directory.  Skip the stat call when possible.
22901         ---
22902         Note this AFS-related exchange:
22903         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
22904         and note find's pioctl call in find/fstype.c.
22905         But that is necessary only if you want to enable the
22906         optimization for AFS, and for now, I don't.
22907
22908         fts: move a function definition "up" (no semantic change)
22909         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
22910         "up" to precede upcoming use of a related function.
22911
22912 2009-02-11  Jim Meyering  <meyering@redhat.com>
22913
22914         fts: correct internal computation of nlinks (optimization-related)
22915         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
22916         whether the current entry is a directory, so don't test it.
22917
22918 2009-02-10  Bruno Haible  <bruno@clisp.org>
22919
22920         Tests for module 'uniwbrk/ulc-wordbreaks'.
22921         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
22922         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
22923         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
22924
22925         Tests for module 'uniwbrk/u32-wordbreaks'.
22926         * modules/uniwbrk/u32-wordbreaks-tests: New file.
22927         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
22928
22929         Tests for module 'uniwbrk/u16-wordbreaks'.
22930         * modules/uniwbrk/u16-wordbreaks-tests: New file.
22931         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
22932
22933         Tests for module 'uniwbrk/u8-wordbreaks'.
22934         * modules/uniwbrk/u8-wordbreaks-tests: New file.
22935         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
22936
22937 2009-02-10  Bruno Haible  <bruno@clisp.org>
22938
22939         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
22940         property.
22941         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
22942         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
22943         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
22944
22945 2009-02-10  Simon Josefsson  <simon@josefsson.org>
22946
22947         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
22948         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
22949
22950 2009-02-10  Bruno Haible  <bruno@clisp.org>
22951
22952         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
22953         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
22954         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
22955         * lib/unilbrk/u8-possible-linebreaks.c: Update.
22956         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
22957         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
22958
22959 2009-02-09  Simon Josefsson  <simon@josefsson.org>
22960
22961         * lib/sockets.h (gl_fd_to_handle): New function.
22962
22963         * tests/test-sockets.c: Call gl_fd_to_handle.
22964
22965 2009-02-09  Bruno Haible  <bruno@clisp.org>
22966
22967         * doc/havelib.texi: Document the conventions on bi-arch systems.
22968
22969 2009-02-08  Bruno Haible  <bruno@clisp.org>
22970
22971         Document the AC_LIB_LINKFLAGS macro.
22972         * doc/havelib.texi: New file, mostly written on 2005-05-24.
22973         * doc/gnulib.texi: Include it.
22974
22975 2009-02-08  Bruno Haible  <bruno@clisp.org>
22976
22977         Fix wrong order of sections, compared to TOC.
22978         * doc/gnulib.texi: Include relocatable-maint.texi after the
22979         "Regular expressions" node, not before.
22980
22981 2009-02-08  Bruno Haible  <bruno@clisp.org>
22982
22983         Tests for module 'unicase/totitle'.
22984         * modules/unicase/totitle-tests: New file.
22985
22986         Tests for module 'unicase/tolower'.
22987         * modules/unicase/tolower-tests: New file.
22988
22989         Tests for module 'unicase/toupper'.
22990         * modules/unicase/toupper-tests: New file.
22991         * tests/unicase/test-mapping-part1.h: New file.
22992         * tests/unicase/test-mapping-part2.h: New file.
22993
22994         New module 'unicase/totitle'.
22995         * modules/unicase/totitle: New file.
22996         * lib/unicase/totitle.c: New file.
22997
22998         New module 'unicase/tolower'.
22999         * modules/unicase/tolower: New file.
23000         * lib/unicase/tolower.c: New file.
23001
23002         New module 'unicase/toupper'.
23003         * modules/unicase/toupper: New file.
23004         * lib/unicase/toupper.c: New file.
23005         * lib/unicase/simple-mapping.h: New file.
23006
23007         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
23008         (mapping_table): New structure.
23009         (output_simple_mapping): New function.
23010         (main): Invoke output_simple_mapping_test and output_simple_mapping.
23011         * modules/gen-uni-tables (Description): Update.
23012         * lib/unicase/toupper.h: New file, automatically generated by
23013         gen-uni-tables.
23014         * lib/unicase/tolower.h: New file, automatically generated by
23015         gen-uni-tables.
23016         * lib/unicase/totitle.h: New file, automatically generated by
23017         gen-uni-tables.
23018         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
23019         gen-uni-tables.
23020         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
23021         gen-uni-tables.
23022         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
23023         gen-uni-tables.
23024
23025         New module 'unicase/base'.
23026         * modules/unicase/base: New file.
23027         * lib/unicase.h: New file.
23028
23029 2009-02-08  Bruno Haible  <bruno@clisp.org>
23030
23031         New module 'uniwbrk/ulc-wordbreaks'.
23032         * modules/uniwbrk/ulc-wordbreaks: New file.
23033         * lib/uniwbrk/ulc-wordbreaks.c: New file.
23034
23035         New module 'uniwbrk/u32-wordbreaks'.
23036         * modules/uniwbrk/u32-wordbreaks: New file.
23037         * lib/uniwbrk/u32-wordbreaks.c: New file.
23038
23039         New module 'uniwbrk/u16-wordbreaks'.
23040         * modules/uniwbrk/u16-wordbreaks: New file.
23041         * lib/uniwbrk/u16-wordbreaks.c: New file.
23042
23043         New module 'uniwbrk/u8-wordbreaks'.
23044         * modules/uniwbrk/u8-wordbreaks: New file.
23045         * lib/uniwbrk/u8-wordbreaks.c: New file.
23046         * lib/uniwbrk/u-wordbreaks.h: New file.
23047
23048         New module 'uniwbrk/table'.
23049         * modules/uniwbrk/table: New file.
23050         * lib/uniwbrk/wbrktable.h: New file.
23051         * lib/uniwbrk/wbrktable.c: New file.
23052
23053         New module 'uniwbrk/wordbreak-property'.
23054         * modules/uniwbrk/wordbreak-property: New file.
23055         * lib/uniwbrk/wordbreak-property.c: New file.
23056
23057         * lib/gen-uni-tables.c (WBP_*): New enum items.
23058         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
23059         (unicode_org_wbp): New variable.
23060         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
23061         New functions.
23062         (wbp_table): New structure.
23063         (output_wbp, output_wbrk_tables): New functions.
23064         (main): Accept additional argument. Invoke fill_org_wbp,
23065         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
23066         output_wbrk_tables.
23067         * modules/gen-uni-tables (Description): Update.
23068         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
23069         gen-uni-tables.
23070
23071         New module 'uniwbrk/base'.
23072         * modules/uniwbrk/base: New file.
23073         * lib/uniwbrk.h: New file.
23074
23075 2009-02-08  Bruno Haible  <bruno@clisp.org>
23076
23077         Update to Unicode 5.1.0.
23078         * lib/gen-uni-tables.c (is_property_alphabetic): Include
23079         U+2185..U+2188.
23080         (is_property_default_ignorable_code_point): Don't include characters
23081         of category Cc or Cs and not-a-characters.
23082         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
23083         U+0D79, U+109E, U+109F, U+A60C.
23084         * lib/unictype/bidi_of.h: Regenerated.
23085         * lib/unictype/blocks.h: Regenerated.
23086         * lib/unictype/categ_C.h: Regenerated.
23087         * lib/unictype/categ_Cf.h: Regenerated.
23088         * lib/unictype/categ_Cn.h: Regenerated.
23089         * lib/unictype/categ_L.h: Regenerated.
23090         * lib/unictype/categ_Ll.h: Regenerated.
23091         * lib/unictype/categ_Lm.h: Regenerated.
23092         * lib/unictype/categ_Lo.h: Regenerated.
23093         * lib/unictype/categ_Lu.h: Regenerated.
23094         * lib/unictype/categ_M.h: Regenerated.
23095         * lib/unictype/categ_Mc.h: Regenerated.
23096         * lib/unictype/categ_Me.h: Regenerated.
23097         * lib/unictype/categ_Mn.h: Regenerated.
23098         * lib/unictype/categ_N.h: Regenerated.
23099         * lib/unictype/categ_Nd.h: Regenerated.
23100         * lib/unictype/categ_Nl.h: Regenerated.
23101         * lib/unictype/categ_No.h: Regenerated.
23102         * lib/unictype/categ_P.h: Regenerated.
23103         * lib/unictype/categ_Pd.h: Regenerated.
23104         * lib/unictype/categ_Pe.h: Regenerated.
23105         * lib/unictype/categ_Pf.h: Regenerated.
23106         * lib/unictype/categ_Pi.h: Regenerated.
23107         * lib/unictype/categ_Po.h: Regenerated.
23108         * lib/unictype/categ_Ps.h: Regenerated.
23109         * lib/unictype/categ_S.h: Regenerated.
23110         * lib/unictype/categ_Sk.h: Regenerated.
23111         * lib/unictype/categ_Sm.h: Regenerated.
23112         * lib/unictype/categ_So.h: Regenerated.
23113         * lib/unictype/categ_of.h: Regenerated.
23114         * lib/unictype/combining.h: Regenerated.
23115         * lib/unictype/ctype_alnum.h: Regenerated.
23116         * lib/unictype/ctype_alpha.h: Regenerated.
23117         * lib/unictype/ctype_graph.h: Regenerated.
23118         * lib/unictype/ctype_lower.h: Regenerated.
23119         * lib/unictype/ctype_print.h: Regenerated.
23120         * lib/unictype/ctype_punct.h: Regenerated.
23121         * lib/unictype/ctype_upper.h: Regenerated.
23122         * lib/unictype/decdigit.h: Regenerated.
23123         * lib/unictype/digit.h: Regenerated.
23124         * lib/unictype/mirror.h: Regenerated.
23125         * lib/unictype/numeric.h: Regenerated.
23126         * lib/unictype/pr_alphabetic.h: Regenerated.
23127         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
23128         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
23129         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
23130         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
23131         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
23132         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
23133         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
23134         * lib/unictype/pr_combining.h: Regenerated.
23135         * lib/unictype/pr_dash.h: Regenerated.
23136         * lib/unictype/pr_decimal_digit.h: Regenerated.
23137         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
23138         * lib/unictype/pr_deprecated.h: Regenerated.
23139         * lib/unictype/pr_diacritic.h: Regenerated.
23140         * lib/unictype/pr_extender.h: Regenerated.
23141         * lib/unictype/pr_format_control.h: Regenerated.
23142         * lib/unictype/pr_grapheme_base.h: Regenerated.
23143         * lib/unictype/pr_grapheme_extend.h: Regenerated.
23144         * lib/unictype/pr_grapheme_link.h: Regenerated.
23145         * lib/unictype/pr_id_continue.h: Regenerated.
23146         * lib/unictype/pr_id_start.h: Regenerated.
23147         * lib/unictype/pr_ideographic.h: Regenerated.
23148         * lib/unictype/pr_ignorable_control.h: Regenerated.
23149         * lib/unictype/pr_lowercase.h: Regenerated.
23150         * lib/unictype/pr_math.h: Regenerated.
23151         * lib/unictype/pr_numeric.h: Regenerated.
23152         * lib/unictype/pr_other_alphabetic.h: Regenerated.
23153         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
23154         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
23155         * lib/unictype/pr_other_id_continue.h: Regenerated.
23156         * lib/unictype/pr_other_lowercase.h: Regenerated.
23157         * lib/unictype/pr_other_math.h: Regenerated.
23158         * lib/unictype/pr_punctuation.h: Regenerated.
23159         * lib/unictype/pr_sentence_terminal.h: Regenerated.
23160         * lib/unictype/pr_soft_dotted.h: Regenerated.
23161         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
23162         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
23163         * lib/unictype/pr_unified_ideograph.h: Regenerated.
23164         * lib/unictype/pr_uppercase.h: Regenerated.
23165         * lib/unictype/pr_xid_continue.h: Regenerated.
23166         * lib/unictype/pr_xid_start.h: Regenerated.
23167         * lib/unictype/pr_zero_width.h: Regenerated.
23168         * lib/unictype/scripts.h: Regenerated.
23169         * lib/unictype/scripts_byname.gperf: Regenerated.
23170         * lib/unictype/sy_java_ident.h: Regenerated.
23171         * lib/unilbrk/lbrkprop1.h: Regenerated.
23172         * lib/unilbrk/lbrkprop2.h: Regenerated.
23173         * tests/unictype/test-categ_C.c: Regenerated.
23174         * tests/unictype/test-categ_Cf.c: Regenerated.
23175         * tests/unictype/test-categ_Cn.c: Regenerated.
23176         * tests/unictype/test-categ_L.c: Regenerated.
23177         * tests/unictype/test-categ_Ll.c: Regenerated.
23178         * tests/unictype/test-categ_Lm.c: Regenerated.
23179         * tests/unictype/test-categ_Lo.c: Regenerated.
23180         * tests/unictype/test-categ_Lu.c: Regenerated.
23181         * tests/unictype/test-categ_M.c: Regenerated.
23182         * tests/unictype/test-categ_Mc.c: Regenerated.
23183         * tests/unictype/test-categ_Me.c: Regenerated.
23184         * tests/unictype/test-categ_Mn.c: Regenerated.
23185         * tests/unictype/test-categ_N.c: Regenerated.
23186         * tests/unictype/test-categ_Nd.c: Regenerated.
23187         * tests/unictype/test-categ_Nl.c: Regenerated.
23188         * tests/unictype/test-categ_No.c: Regenerated.
23189         * tests/unictype/test-categ_P.c: Regenerated.
23190         * tests/unictype/test-categ_Pd.c: Regenerated.
23191         * tests/unictype/test-categ_Pe.c: Regenerated.
23192         * tests/unictype/test-categ_Pf.c: Regenerated.
23193         * tests/unictype/test-categ_Pi.c: Regenerated.
23194         * tests/unictype/test-categ_Po.c: Regenerated.
23195         * tests/unictype/test-categ_Ps.c: Regenerated.
23196         * tests/unictype/test-categ_S.c: Regenerated.
23197         * tests/unictype/test-categ_Sk.c: Regenerated.
23198         * tests/unictype/test-categ_Sm.c: Regenerated.
23199         * tests/unictype/test-categ_So.c: Regenerated.
23200         * tests/unictype/test-ctype_alnum.c: Regenerated.
23201         * tests/unictype/test-ctype_alpha.c: Regenerated.
23202         * tests/unictype/test-ctype_graph.c: Regenerated.
23203         * tests/unictype/test-ctype_lower.c: Regenerated.
23204         * tests/unictype/test-ctype_print.c: Regenerated.
23205         * tests/unictype/test-ctype_punct.c: Regenerated.
23206         * tests/unictype/test-ctype_upper.c: Regenerated.
23207         * tests/unictype/test-decdigit.h: Regenerated.
23208         * tests/unictype/test-digit.h: Regenerated.
23209         * tests/unictype/test-numeric.h: Regenerated.
23210         * tests/unictype/test-pr_alphabetic.c: Regenerated.
23211         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
23212         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
23213         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
23214         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
23215         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
23216         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
23217         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
23218         * tests/unictype/test-pr_combining.c: Regenerated.
23219         * tests/unictype/test-pr_dash.c: Regenerated.
23220         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
23221         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
23222         * tests/unictype/test-pr_deprecated.c: Regenerated.
23223         * tests/unictype/test-pr_diacritic.c: Regenerated.
23224         * tests/unictype/test-pr_extender.c: Regenerated.
23225         * tests/unictype/test-pr_format_control.c: Regenerated.
23226         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
23227         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
23228         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
23229         * tests/unictype/test-pr_id_continue.c: Regenerated.
23230         * tests/unictype/test-pr_id_start.c: Regenerated.
23231         * tests/unictype/test-pr_ideographic.c: Regenerated.
23232         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
23233         * tests/unictype/test-pr_lowercase.c: Regenerated.
23234         * tests/unictype/test-pr_math.c: Regenerated.
23235         * tests/unictype/test-pr_numeric.c: Regenerated.
23236         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
23237         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
23238         Regenerated.
23239         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
23240         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
23241         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
23242         * tests/unictype/test-pr_other_math.c: Regenerated.
23243         * tests/unictype/test-pr_punctuation.c: Regenerated.
23244         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
23245         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
23246         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
23247         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
23248         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
23249         * tests/unictype/test-pr_uppercase.c: Regenerated.
23250         * tests/unictype/test-pr_xid_continue.c: Regenerated.
23251         * tests/unictype/test-pr_xid_start.c: Regenerated.
23252         * tests/unictype/test-pr_zero_width.c: Regenerated.
23253
23254         Update to Unicode 5.1.0.
23255         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
23256         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
23257         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
23258         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
23259         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
23260         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
23261         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
23262         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
23263         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
23264         (nonspacing_table_ind): Update.
23265         * tests/uniwidth/test-uc_width2.sh: Update expected result.
23266
23267         Update to Unicode 5.1.0.
23268         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
23269         code transform.
23270         * lib/uniname/uniname.c (unicode_character_name,
23271         unicode_name_character): Add the range 0x1Fxxx to the code transform.
23272         * lib/uniname/uninames.h: Regenerated.
23273         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
23274
23275 2009-02-07  Bruno Haible  <bruno@clisp.org>
23276
23277         Merge gen-ctype and gen-lbrk into a single program.
23278         * lib/gen-uni-tables.c: New file, incorporating
23279         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
23280         Add directory prefixes to the names of the generated files.
23281         * lib/unictype/gen-ctype.c: Remove file.
23282         * lib/unilbrk/gen-lbrk.c: Remove file.
23283         * modules/gen-uni-tables: New file.
23284         * modules/unictype/gen-ctype: Remove file.
23285         * modules/unilbrk/gen-lbrk: Remove file.
23286
23287 2009-02-07  Bruno Haible  <bruno@clisp.org>
23288
23289         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
23290
23291         New module 'unistr/u32-strcoll'.
23292         * modules/unistr/u32-strcoll: New file.
23293         * lib/unistr/u32-strcoll.c: New file.
23294
23295         New module 'unistr/u16-strcoll'.
23296         * modules/unistr/u16-strcoll: New file.
23297         * lib/unistr/u16-strcoll.c: New file.
23298
23299         New module 'unistr/u8-strcoll'.
23300         * modules/unistr/u8-strcoll: New file.
23301         * lib/unistr/u8-strcoll.c: New file.
23302         * lib/unistr/u-strcoll.h: New file.
23303
23304 2009-02-07  Bruno Haible  <bruno@clisp.org>
23305
23306         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
23307         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23308         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23309         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
23310         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
23311         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
23312
23313 2009-02-07  Bruno Haible  <bruno@clisp.org>
23314
23315         Make 64-bit clean.
23316         * lib/unictype/gen-ctype.c (output_predicate, output_category,
23317         output_combclass, output_bidi_category, output_decimal_digit,
23318         output_digit, output_numeric, output_mirror, output_scripts,
23319         output_ident_category): Use proper width specifier in format strings.
23320
23321 2009-02-07  Bruno Haible  <bruno@clisp.org>
23322
23323         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
23324         failure behaviour.
23325
23326 2009-02-07  Jim Meyering  <meyering@redhat.com>
23327
23328         regex: avoid compilation failure with upcoming gcc-4.4
23329         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
23330         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
23331         "... error: integer overflow in preprocessor expression".
23332
23333 2009-02-05  Ben Pfaff  <blp@gnu.org>
23334
23335         Fix link errors on Windows when close module is used.
23336         * modules/close: Add $(LIB_CLOSE) to Link section.
23337         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
23338         $(LIB_CLOSE) on Windows.
23339
23340 2009-02-05  Jim Meyering  <meyering@redhat.com>
23341
23342         still avoid unused-parameter warnings, but do it cleanly
23343         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
23344         (get_fs_usage): Cast to void instead.
23345         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
23346         (dev_from_mount_options, read_file_system_list): Cast to void.
23347         Prompted by Bruno Haible.
23348
23349 2009-02-04  Jim Meyering  <meyering@redhat.com>
23350
23351         fsusage.c: correct copyright year
23352         * lib/fsusage.c: Reflect year in which the change is pushed into
23353
23354         avoid misc. warnings
23355         * lib/fsusage.c (UNUSED_PARAM): Define.
23356         (get_fs_usage): Mark parameter "disk" as unused.
23357         * lib/getugroups.c (getgrent): Use "void" in prototype.
23358         * lib/mountlist.c: Mark unused parameters.
23359         (read_file_system_list): Declare a local with "const".
23360         * lib/nanosleep.c (getnow): Declare static.
23361         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
23362
23363         dirfd: set errno upon failure
23364         * lib/dirfd.c: Include <errno.h>.
23365         Set errno to ENOTSUP when returning -1.
23366         * modules/dirfd (Depends-on): Add errno.
23367         Suggested by John Kodis <kodis@comcast.net>.
23368
23369 2009-02-01  Bruno Haible  <bruno@clisp.org>
23370
23371         Don't assume sizeof (long) >= sizeof (void *).
23372         * lib/memcmp.c: Include stdint.h.
23373         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
23374         srcp2 to 'const byte *'.
23375         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
23376         types to uintptr_t.
23377         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
23378         * modules/memcmp (Depends-on): Add stdint.
23379         Reported by Ozkan Sezer <sezeroz@gmail.com>.
23380
23381 2009-01-30  Eric Blake  <ebb9@byu.net>
23382
23383         fix more require-before-expand issues
23384         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
23385         expand, AC_PROG_AWK.
23386         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
23387
23388 2009-01-28  Eric Blake  <ebb9@byu.net>
23389
23390         version-etc: use consistent URL formatting
23391         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
23392         Improve formatting.  Use fputs for string without %.
23393
23394 2009-01-28  Jim Meyering  <meyering@redhat.com>
23395
23396         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
23397         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
23398         "underquoted definition of NAME" from autoconf-2.59.
23399
23400 2009-01-28  Bruno Haible  <bruno@clisp.org>
23401
23402         * doc/gnulib.texi: Add "Obsolete modules" to index.
23403
23404 2009-01-28  Jim Meyering  <meyering@redhat.com>
23405
23406         useless-if-before-free: recognize more variants
23407         * build-aux/useless-if-before-free: Also recognize e.g.,
23408         if (NULL != p) free (p);
23409
23410 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
23411
23412         test-getaddrinfo: skip (don't fail) this test when there's no network
23413         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
23414         on the presumption that it means you lack network access.
23415
23416 2009-01-26  Jim Meyering  <meyering@redhat.com>
23417
23418         fflush: avoid warnings on modern systems
23419         * lib/fflush.c (rpl_fflush): Move declarations of locals,
23420         pos and result, into scopes where they're used.
23421
23422 2009-01-26  Eric Blake  <ebb9@byu.net>
23423
23424         Silence warning reintroduced by recent extensions patch.
23425         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
23426         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
23427         autoconf.
23428
23429         Backport improved autoconf semantics of AC_DEFUN_ONCE.
23430         * m4/00gnulib.m4: New file.
23431         * gnulib-tool (func_get_filelist): Always use it.
23432         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
23433         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
23434
23435 2009-01-25  Bruno Haible  <bruno@clisp.org>
23436
23437         Make test-quotearg work on MacOS X and AIX.
23438         * tests/test-quotearg.sh: New file.
23439         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
23440         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
23441         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
23442         include <libintl.h>.
23443         (fake_locale): Remove variable.
23444         (gettext, dgettext, dcgettext): Remove functions.
23445         (main): Instead of setting a fake locale, set a real locale. Call
23446         textdomain and bindtextdomain.
23447         * modules/quotearg-tests (Files): Add the new files.
23448         (Depends-on): Add gettext, setenv, unsetenv.
23449         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
23450         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
23451         Augment TESTS_ENVIRONMENT.
23452
23453 2009-01-25  Bruno Haible  <bruno@clisp.org>
23454
23455         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
23456         fr_FR.ISO8859-1 locale on MacOS X.
23457         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
23458         ja_JP.eucJP locale on MacOS X.
23459         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
23460         zh_CN.GB18030 locale on MacOS X.
23461
23462 2009-01-25  Bruno Haible  <bruno@clisp.org>
23463
23464         Avoid link errors on MacOS X 10.3.
23465         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
23466         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23467
23468 2009-01-25  Bruno Haible  <bruno@clisp.org>
23469
23470         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23471         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
23472         * modules/pipe (Files): Remove m4/posix_spawn.m4.
23473         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23474         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
23475         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23476         posix_spawnattr_init, posix_spawnattr_setsigmask,
23477         posix_spawnattr_setflags, posix_spawnattr_destroy.
23478
23479         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23480         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
23481         * modules/execute (Files): Remove m4/posix_spawn.m4.
23482         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23483         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23484         posix_spawnattr_init, posix_spawnattr_setsigmask,
23485         posix_spawnattr_setflags, posix_spawnattr_destroy.
23486
23487 2009-01-25  Bruno Haible  <bruno@clisp.org>
23488
23489         * lib/glthread/threadlib.c: Include <stdlib.h>.
23490
23491 2009-01-25  Bruno Haible  <bruno@clisp.org>
23492
23493         * lib/glthread/threadlib.c (dummy): New declaration.
23494
23495 2009-01-25  Bruno Haible  <bruno@clisp.org>
23496
23497         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
23498         multibyte characters also for the GB18030 encoding. Don't crash when
23499         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
23500
23501 2009-01-25  Bruno Haible  <bruno@clisp.org>
23502
23503         Avoid redefining 'struct random_data' on OSF/1 5.1.
23504         * lib/stdlib.in.h: Include <random.h> if it exists.
23505         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
23506         HAVE_RANDOM_H. Include <random.h> when testing whether
23507         'struct random_data' exists.
23508         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
23509
23510 2009-01-25  Bruno Haible  <bruno@clisp.org>
23511
23512         Don't install charset.alias on MacOS X >= 10.3.
23513         * lib/localcharset.c (DARWIN7): New macro.
23514         (get_charset_aliases): Hardcode the result for Darwin7.
23515         * modules/localcharset (install-exec-local): Don't install
23516         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
23517
23518 2009-01-25  Bruno Haible  <bruno@clisp.org>
23519
23520         Don't install charset.alias on mingw and Cygwin.
23521         * modules/localcharset (install-exec-local): Don't install
23522         charset.alias on mingw and Cygwin, if the file does not yet exist.
23523         The result for these platforms is hardcoded in localcharset.c.
23524
23525 2009-01-25  Bruno Haible  <bruno@clisp.org>
23526
23527         Make it possible again to use AC_GNU_SOURCE together with gnulib.
23528         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
23529         before requiring AC_USE_SYSTEM_EXTENSIONS.
23530
23531 2009-01-25  Jim Meyering  <meyering@redhat.com>
23532
23533         c-strtod: avoid warnings
23534         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
23535         "assignment discards qualifiers from pointer target type" warnings.
23536
23537 2009-01-24  Bruno Haible  <bruno@clisp.org>
23538
23539         Add support for non-UTF-8 locales on MacOS X.
23540         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
23541         canonical encodings. For Darwin 7 and newer, don't map traditional
23542         encodings to UTF-8.
23543         Reported by Vincent Lefevre <vincent@vinc17.org>
23544         at <http://savannah.gnu.org/bugs/?25235>.
23545
23546 2009-01-24  Bruno Haible  <bruno@clisp.org>
23547
23548         * doc/gnulib.texi (Obsolete modules): New section.
23549         Reported by Mike Frysinger <vapier@gentoo.org>.
23550
23551 2009-01-24  Bruno Haible  <bruno@clisp.org>
23552
23553         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
23554         (%.dvi): New rule.
23555
23556 2009-01-24  Bruno Haible  <bruno@clisp.org>
23557
23558         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
23559         Reported by Eric Blake.
23560
23561 2009-01-24  Bruno Haible  <bruno@clisp.org>
23562
23563         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
23564         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
23565         Reported by Gary V. Vaughan <gary@gnu.org>.
23566
23567 2009-01-24  Bruno Haible  <bruno@clisp.org>
23568
23569         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
23570
23571 2009-01-23  Bruno Haible  <bruno@clisp.org>
23572
23573         Make c-strtod, c-strtold usable in libraries.
23574         * lib/c-strtod.c: Include string.h instead of xalloc.h.
23575         (C_STRTOD): Call strdup instead of xstrdup.
23576         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
23577         * modules/c-strtold (Depends-on): Likewise.
23578         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
23579         * NEWS: Mention the change.
23580         Reported by Michael Gold <mgold@ncf.ca>.
23581
23582 2009-01-23  Jim Meyering  <meyering@redhat.com>
23583
23584         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
23585         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
23586         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
23587
23588 2009-01-23  Simon Josefsson  <simon@josefsson.org>
23589
23590         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
23591         GNU CoreUtils.
23592         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
23593         * modules/version-etc (Description): Update.
23594
23595 2009-01-22  Bruno Haible  <bruno@clisp.org>
23596
23597         Cache the C locale object.
23598         * lib/c-strtod.c (c_locale_cache): New variable.
23599         (c_locale): New function.
23600         (C_STRTOD): Use it, and don't call freelocale.
23601         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
23602         Suggested by Paolo Bonzini.
23603
23604 2009-01-21  Bruno Haible  <bruno@clisp.org>
23605
23606         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
23607         conditions other than overflow.
23608
23609 2009-01-21  Bruno Haible  <bruno@clisp.org>
23610
23611         * lib/c-strtod.c: Include errno.h.
23612         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
23613         value from STRTOD_L and STRTOD.
23614
23615 2009-01-21  Bruno Haible  <bruno@clisp.org>
23616         and Jim Meyering  <meyering@redhat.com>
23617
23618         nanosleep: skip configure test (fail it) for apple universal builds
23619         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
23620         universal builds, assume that nanosleep does not work.
23621         * modules/nanosleep (Depends-on): Add multiarch.
23622
23623         mktime: skip configure test (fail it) for apple universal builds
23624         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
23625         universal builds, assume that mktime does not work.
23626         * modules/mktime (Depends-on): Add multiarch.
23627
23628 2009-01-21  Eric Blake  <ebb9@byu.net>
23629
23630         multiarch: avoid expand-before-require warning
23631         * modules/multiarch (configure.ac): Require, rather than expand,
23632         gl_MULTIARCH.
23633         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
23634         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
23635         enforce that all clients require it.  Partial reversion of
23636         2008-12-29 patch.
23637
23638         error: avoid expand-before-require warning
23639         * modules/errno (configure.ac): Require, rather than expand,
23640         gl_HEADER_ERRNO_H.
23641         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
23642         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
23643         enforce that all clients require it.
23644
23645         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
23646         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
23647         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
23648         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
23649
23650 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
23651
23652         Revert:
23653         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23654
23655         regex: do not depend on obsolete modules.
23656         * modules/regex: Remove memcmp and memmove.
23657
23658 2009-01-20  Bruno Haible  <bruno@clisp.org>
23659
23660         Make the 'link' module link on Windows NT 4.
23661         * lib/link.c (_WIN32_WINNT): Don't define.
23662         (CreateHardLinkFuncType): New type.
23663         (CreateHardLinkFunc, initialized): New variables.
23664         (initialize): New function.
23665         (link): Invoke CreateHardLink indirectly through the function pointer.
23666
23667 2009-01-20  Bruno Haible  <bruno@clisp.org>
23668
23669         Fix compilation failure on mingw.
23670         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
23671
23672 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
23673
23674         * doc/c-strtod.texi: Mention a couple of restrictions.
23675
23676 2009-01-20  Jim Meyering  <meyering@redhat.com>
23677
23678         gettimeofday: move more declarations out of functions
23679         * lib/gettimeofday.c: Move extern declarations of tzset and
23680         gmtime out of containing functions.  Prompted by Bruno Haible.
23681
23682 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23683
23684         regex: do not depend on obsolete modules.
23685         * modules/regex: Remove memcmp and memmove.
23686
23687 2009-01-19  Bruno Haible  <bruno@clisp.org>
23688
23689         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23690         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
23691         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23692         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
23693         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
23694
23695 2009-01-19  Bruno Haible  <bruno@clisp.org>
23696
23697         * tests/test-link.c: Include <errno.h>.
23698         (main): Exit with code 77 when a hard link cannot be created due to
23699         the file system.
23700         * tests/test-link.sh: Skip test when a hard link cannot be created due
23701         to the file system.
23702         Suggested by Eric Blake.
23703
23704 2009-01-19  Martin Lambers  <marlam@marlam.de>
23705
23706         * modules/link-tests: New file.
23707         * tests/test-link.sh: New file.
23708         * tests/test-link.c: New file.
23709
23710 2009-01-19  Eric Blake  <ebb9@byu.net>
23711
23712         doc: mention another function added in cygwin 1.7.0
23713         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
23714         Another new function in cygwin 1.7.
23715
23716 2009-01-19  Bruno Haible  <bruno@clisp.org>
23717
23718         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23719         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
23720         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
23721         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23722         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23723         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23724         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23725         * m4/md4.m4 (gl_MD4): Likewise.
23726         * m4/md5.m4 (gl_MD5): Likewise.
23727         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
23728         * m4/sha1.m4 (gl_SHA1): Likewise.
23729         * m4/sha256.m4 (gl_SHA256): Likewise.
23730         * m4/sha512.m4 (gl_SHA512): Likewise.
23731
23732 2009-01-19  Bruno Haible  <bruno@clisp.org>
23733
23734         * modules/uniname/uniname-tests (Depends-on): Add progname.
23735         * tests/uniname/test-uninames.c: Include progname.h.
23736         (main): Call set_program_name.
23737
23738         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
23739         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
23740         (main): Call set_program_name.
23741
23742         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
23743         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
23744         (main): Call set_program_name.
23745
23746         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
23747         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
23748         (main): Call set_program_name.
23749
23750         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
23751         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
23752         (main): Call set_program_name.
23753
23754         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
23755         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
23756         (main): Call set_program_name.
23757
23758         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
23759         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
23760         (main): Call set_program_name.
23761
23762         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
23763         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
23764         (main): Call set_program_name.
23765
23766         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
23767         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
23768         (main): Call set_program_name.
23769
23770 2009-01-19  Eric Blake  <ebb9@byu.net>
23771
23772         test-unistd: test previous patch
23773         * tests/test-unistd.c: Test *_FILENO macros.
23774
23775         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
23776         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23777         Guarantee a definition.
23778         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
23779         * modules/unistd-safer (Depends-on): Add dependency on unistd.
23780         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
23781         * lib/dup-safer.c (STDERR_FILENO): Likewise.
23782         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23783         Likewise.
23784         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
23785         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
23786         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23787         Likewise.
23788         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
23789         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
23790         (STDERR_FILENO): Likewise.
23791         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
23792         (STDERR_FILENO): Likewise.
23793         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
23794         (STDERR_FILENO): Likewise.
23795         Reported by Elbert Pol.
23796
23797 2009-01-19  Eric Blake  <ebb9@byu.net>
23798
23799         doc: mention more functions added in cygwin 1.7.0
23800         * doc/posix-functions/abort.texi (abort): Update wording related
23801         to cygwin.
23802         * doc/posix-functions/daylight.texi (daylight): Likewise.
23803         * doc/posix-functions/optarg.texi (optarg): Likewise.
23804         * doc/posix-functions/optarg.texi (opterr): Likewise.
23805         * doc/posix-functions/optarg.texi (optind): Likewise.
23806         * doc/posix-functions/optarg.texi (optopt): Likewise.
23807         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
23808         worked in 1.5.x, and was withdrawn in 1.7.
23809         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
23810         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
23811         cygwin versions.
23812         * doc/posix-functions/perror.texi (perror): Likewise.
23813         * doc/posix-functions/printf.texi (printf): Likewise.
23814         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
23815         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
23816         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
23817         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
23818         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23819         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
23820         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23821         Likewise.
23822         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23823         Likewise.
23824         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
23825         this function.
23826         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
23827         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
23828         Likewise.
23829         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
23830         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
23831         * doc/posix-functions/confstr.texi (confstr): Likewise.
23832         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
23833         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
23834         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
23835         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
23836         * doc/posix-functions/fputws.texi (fputws): Likewise.
23837         * doc/posix-functions/fwide.texi (fwide): Likewise.
23838         * doc/posix-functions/getwc.texi (getwc): Likewise.
23839         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
23840         * doc/posix-functions/putwc.texi (putwc): Likewise.
23841         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
23842         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
23843         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
23844         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
23845         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
23846         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
23847         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
23848         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
23849         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
23850         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
23851         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
23852
23853 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23854
23855         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
23856         * lib/ioctl.c: Include <sys/ioctl.h>.
23857
23858 2009-01-19  Simon Josefsson  <simon@josefsson.org>
23859
23860         * modules/getdate-tests (Depends-on): Add progname.
23861         * tests/test-getdate.c: Use progname module, to avoid link errors
23862         on non-glibc systems.
23863
23864 2009-01-18  Simon Josefsson  <simon@josefsson.org>
23865
23866         * modules/filenamecat-tests (Depends-on): Add progname.
23867         * modules/fstrcmp-tests (Depends-on): Likewise.
23868
23869         * tests/test-filenamecat.c: Use progname module, to avoid link
23870         errors on non-glibc systems.
23871         * tests/test-fstrcmp.c: Likewise.
23872
23873 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23874
23875         gettimeofday: avoid warning: nested extern declaration of 'localtime'
23876         * lib/gettimeofday.c: Move extern declaration out of function.
23877
23878 2009-01-18  Bruno Haible  <bruno@clisp.org>
23879
23880         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
23881         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
23882         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
23883
23884 2009-01-18  Bruno Haible  <bruno@clisp.org>
23885
23886         * lib/strftime.c (MEMPCPY): Remove unused macro.
23887         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
23888
23889 2009-01-18  Martin Lambers  <marlam@marlam.de>
23890
23891         New module 'link'.
23892         * lib/unistd.in.h (link): New declaration.
23893         * lib/link.c: New file.
23894         * m4/link.m4: New file.
23895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
23896         HAVE_LINK.
23897         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
23898         * modules/link: New file.
23899         * doc/posix-functions/link.texi: Mention the new module.
23900
23901 2009-01-18  Bruno Haible  <bruno@clisp.org>
23902
23903         * tests/test-avltree_list.c (main): Call set_program_name.
23904         * tests/test-avltree_oset.c (main): Likewise.
23905         * tests/test-obstack-printf.c: Include progname.h.
23906         (main): Call set_program_name.
23907         * tests/test-quotearg.c: Include progname.h.
23908         (main): Call set_program_name.
23909         * tests/test-xmemdup0.c: Include progname.h.
23910         (main): Call set_program_name.
23911
23912 2009-01-18  Bruno Haible  <bruno@clisp.org>
23913
23914         New module 'alphasort'.
23915         * lib/dirent.in.h (alphasort): New declaration.
23916         * lib/alphasort.c: New file, from glibc with modifications.
23917         * m4/alphasort.m4: New file.
23918         * modules/alphasort: New file.
23919         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
23920         HAVE_ALPHASORT.
23921         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
23922         HAVE_ALPHASORT.
23923         * doc/posix-functions/alphasort.texi: Mention the new module and the
23924         portability problems.
23925
23926 2009-01-18  Bruno Haible  <bruno@clisp.org>
23927
23928         New module 'scandir'.
23929         * lib/dirent.in.h (scandir): New declaration.
23930         * lib/scandir.c: New file, from glibc with modifications.
23931         * m4/scandir.m4: New file.
23932         * modules/scandir: New file.
23933         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
23934         HAVE_SCANDIR.
23935         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
23936         HAVE_SCANDIR.
23937         * doc/posix-functions/scandir.texi: Mention the new module and the
23938         portability problems.
23939
23940 2009-01-17  Bruno Haible  <bruno@clisp.org>
23941
23942         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
23943         Update documentation.
23944         (func_remove_suffix): Escape all dots in the suffix. Update
23945         documentation.
23946         (func_filter_filelist): Update documentation.
23947         Reported by Ralf Wildenhues.
23948
23949 2009-01-17  Bruno Haible  <bruno@clisp.org>
23950
23951         * modules/dprintf-posix-tests: New file.
23952         * tests/test-dprintf-posix.sh: New file.
23953         * tests/test-dprintf-posix.c: New file.
23954
23955         New modules 'dprintf', 'dprintf-posix'.
23956         * lib/stdio.in.h (dprintf): New declaration.
23957         * lib/dprintf.c: New file.
23958         * m4/dprintf.m4: New file.
23959         * m4/dprintf-posix.m4: New file.
23960         * modules/dprintf: New file.
23961         * modules/dprintf-posix: New file.
23962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
23963         HAVE_DPRINTF, REPLACE_DPRINTF.
23964         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
23965         HAVE_DPRINTF, REPLACE_DPRINTF.
23966         * doc/posix-functions/dprintf.texi: Mention the new modules.
23967
23968 2009-01-17  Bruno Haible  <bruno@clisp.org>
23969
23970         * modules/vdprintf-posix-tests: New file.
23971         * tests/test-vdprintf-posix.sh: New file.
23972         * tests/test-vdprintf-posix.c: New file.
23973
23974         New modules 'vdprintf', 'vdprintf-posix'.
23975         * lib/stdio.in.h (vdprintf): New declaration.
23976         * lib/vdprintf.c: New file.
23977         * m4/vdprintf.m4: New file.
23978         * m4/vdprintf-posix.m4: New file.
23979         * modules/vdprintf: New file.
23980         * modules/vdprintf-posix: New file.
23981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
23982         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23983         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
23984         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23985         * doc/posix-functions/vdprintf.texi: Mention the new modules.
23986
23987 2009-01-17  Bruno Haible  <bruno@clisp.org>
23988
23989         Fix replacement of fopen on mingw.
23990         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
23991         mingw.
23992
23993 2009-01-17  Bruno Haible  <bruno@clisp.org>
23994
23995         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
23996         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
23997
23998 2009-01-17  Bruno Haible  <bruno@clisp.org>
23999
24000         Avoid test-fflush2.sh failure on mingw.
24001         * tests/test-fflush2.c: Include binary-io.h.
24002         (main): Put standard input into binary mode.
24003         * modules/fflush-tests (Depends-on): Add binary-io.
24004
24005 2009-01-17  Bruno Haible  <bruno@clisp.org>
24006
24007         * lib/wchar.in.h: In another particular situation, include only the
24008         system's <wchar.h> file.
24009         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
24010         Reported by Albert Chin-A-Young <china@thewrittenword.com>
24011         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
24012
24013 2009-01-17  Bruno Haible  <bruno@clisp.org>
24014
24015         Support for stripping executables in --enable-relocatable.
24016         * build-aux/install-reloc: Expect one more argument, or an environment
24017         variable RELOC_STRIP_PROG. If set, strip the destination program and
24018         its wrapper.
24019         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
24020         RELOC_STRIP_PROG.
24021         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
24022         to set RELOCATABLE_STRIP.
24023         * NEWS: Mention the new Makefile requirement.
24024
24025 2009-01-17  Bruno Haible  <bruno@clisp.org>
24026
24027         * build-aux/install-reloc: Remove debugging information left over by
24028         C compiler on MacOS X.
24029
24030 2009-01-17  Bruno Haible  <bruno@clisp.org>
24031
24032         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
24033         * lib/progreloc.c (find_executable): Fix type of pointer passed to
24034         _NSGetExecutablePath.
24035
24036 2009-01-16  Jim Meyering  <meyering@redhat.com>
24037
24038         strerror: avoid warnings about discarding "const"
24039         * lib/strerror.c (rpl_strerror): Instead of returning a const
24040         string from each and every "case", use a variable, and add a single
24041         cast after the switch.
24042
24043 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
24044
24045         * lib/arpa_inet.in.h: Add extern "C" block for C++.
24046
24047 2009-01-16  Bruno Haible  <bruno@clisp.org>
24048
24049         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
24050         array initializer syntax that also works in C++ mode.
24051         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24052
24053 2009-01-16  Jim Meyering  <meyering@redhat.com>
24054
24055         poll: suppress a warning
24056         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
24057         to ignore "...unsigned expression < 0 is always false" warnings.
24058
24059 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
24060
24061         poll: remove declarations of unused variables
24062         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
24063         sockbuf and optlen.
24064
24065 2009-01-15  Bruno Haible  <bruno@clisp.org>
24066
24067         Make fflush-after-ungetc POSIX compliant on BSD systems.
24068         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
24069         (clear_ungetc_buffer): Implement also for other systems.
24070         (rpl_fflush): On glibc systems, invoke
24071         clear_ungetc_buffer_preserving_position. Otherwise, invoke
24072         clear_ungetc_buffer after fetching the stream's position, not before.
24073
24074 2009-01-15  Bruno Haible  <bruno@clisp.org>
24075
24076         Make fflush-after-ungetc POSIX compliant on glibc systems.
24077         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
24078         after ungetc.
24079         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
24080         (rpl_fflush): On glibc systems, simply call the system's fflush
24081         function after clearing the ungetc buffer.
24082         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
24083         Instead, lseek only to the end of file, then use the system's fseeko
24084         for the rest. On glibc systems, reset the EOF indicator bit.
24085
24086 2009-01-15  Jim Meyering  <meyering@redhat.com>
24087
24088         openmp.m4: revert quote-adding change, for portability to older autoconf
24089         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
24090         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
24091         Simon Josefsson noticed the problem when using autoconf-2.61.
24092
24093 2009-01-15  Bruno Haible  <bruno@clisp.org>
24094
24095         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
24096         * tests/test-fflush2.c (ASSERT): Always fail.
24097         (main): Add two tests for fflush() after ungetc(), taking into account
24098         the Austin Group's clarification.
24099         Suggested by Eric Blake.
24100
24101 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
24102
24103         mktime.m4: remove K&R-style function prototypes
24104         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
24105         for the Sun C++ compiler.
24106
24107 2009-01-14  Bruno Haible  <bruno@clisp.org>
24108
24109         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
24110         while including <wchar.h>.
24111         * lib/wchar.in.h: In two particular situations on HP-UX, include only
24112         the system's <wchar.h> file.
24113         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24114
24115 2009-01-14  Bruno Haible  <bruno@clisp.org>
24116
24117         * m4/csharp.m4: Don't mention gettext on the serial number line.
24118         * m4/csharpexec.m4: Likewise.
24119         * m4/eaccess.m4: Likewise.
24120         * m4/javaexec.m4: Likewise.
24121         * m4/sig_atomic_t.m4: Likewise.
24122         * m4/tmpdir.m4: Likewise.
24123         * m4/intldir.m4: Bump gettext version.
24124         * m4/lib-ld.m4: Likewise.
24125
24126 2009-01-14  Bruno Haible  <bruno@clisp.org>
24127
24128         * lib/progname.c (set_program_name): Add more comments.
24129         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24130
24131 2009-01-14  Simon Josefsson  <simon@josefsson.org>
24132
24133         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
24134         were sys/stat.h does not define it.
24135
24136 2009-01-14  Jim Meyering  <meyering@redhat.com>
24137
24138         many *.m4 files: improve m4 quoting
24139         99% of this change was performed by running the following commands:
24140         git ls-files | grep '\.m4$' | xargs perl -pi \
24141           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
24142           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
24143           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
24144           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
24145         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
24146         The remainder were to add Copyright dates, increment serial numbers,
24147         undo some changes in comments, exclude m4/intl.m4, and add quotes
24148         around the "1" in ",1" where the unusual spacing prohibited the
24149         above regexps from doing the job.  For more details, see
24150         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
24151         * m4/acl.m4: Modified.
24152         * m4/afs.m4: Likewise.
24153         * m4/alloca.m4: Likewise.
24154         * m4/argp.m4: Likewise.
24155         * m4/argz.m4: Likewise.
24156         * m4/atexit.m4: Likewise.
24157         * m4/bison-i18n.m4: Likewise.
24158         * m4/bison.m4: Likewise.
24159         * m4/byteswap.m4: Likewise.
24160         * m4/c-stack.m4: Likewise.
24161         * m4/c-strtod.m4: Likewise.
24162         * m4/calloc.m4: Likewise.
24163         * m4/canonicalize-lgpl.m4: Likewise.
24164         * m4/chown.m4: Likewise.
24165         * m4/clock_time.m4: Likewise.
24166         * m4/codeset.m4: Likewise.
24167         * m4/copy-file.m4: Likewise.
24168         * m4/csharp.m4: Likewise.
24169         * m4/csharpcomp.m4: Likewise.
24170         * m4/csharpexec.m4: Likewise.
24171         * m4/d-ino.m4: Likewise.
24172         * m4/d-type.m4: Likewise.
24173         * m4/dirfd.m4: Likewise.
24174         * m4/double-slash-root.m4: Likewise.
24175         * m4/eaccess.m4: Likewise.
24176         * m4/eealloc.m4: Likewise.
24177         * m4/environ.m4: Likewise.
24178         * m4/errno_h.m4: Likewise.
24179         * m4/euidaccess.m4: Likewise.
24180         * m4/execute.m4: Likewise.
24181         * m4/fatal-signal.m4: Likewise.
24182         * m4/fchdir.m4: Likewise.
24183         * m4/fcntl_h.m4: Likewise.
24184         * m4/fileblocks.m4: Likewise.
24185         * m4/filenamecat.m4: Likewise.
24186         * m4/findprog.m4: Likewise.
24187         * m4/flexmember.m4: Likewise.
24188         * m4/fnmatch.m4: Likewise.
24189         * m4/fopen.m4: Likewise.
24190         * m4/fpending.m4: Likewise.
24191         * m4/fprintf-posix.m4: Likewise.
24192         * m4/free.m4: Likewise.
24193         * m4/frexp.m4: Likewise.
24194         * m4/frexpl.m4: Likewise.
24195         * m4/fsusage.m4: Likewise.
24196         * m4/ftruncate.m4: Likewise.
24197         * m4/gc-camellia.m4: Likewise.
24198         * m4/gc-random.m4: Likewise.
24199         * m4/gc.m4: Likewise.
24200         * m4/getaddrinfo.m4: Likewise.
24201         * m4/getcwd-abort-bug.m4: Likewise.
24202         * m4/getcwd-path-max.m4: Likewise.
24203         * m4/getdate.m4: Likewise.
24204         * m4/getdomainname.m4: Likewise.
24205         * m4/getgroups.m4: Likewise.
24206         * m4/gethostname.m4: Likewise.
24207         * m4/gethrxtime.m4: Likewise.
24208         * m4/getline.m4: Likewise.
24209         * m4/getloadavg.m4: Likewise.
24210         * m4/getndelim2.m4: Likewise.
24211         * m4/getpass.m4: Likewise.
24212         * m4/gettext.m4: Likewise.
24213         * m4/gettime.m4: Likewise.
24214         * m4/gettimeofday.m4: Likewise.
24215         * m4/gnulib-common.m4: Likewise.
24216         * m4/group-member.m4: Likewise.
24217         * m4/host-os.m4: Likewise.
24218         * m4/iconv.m4: Likewise.
24219         * m4/iconv_open.m4: Likewise.
24220         * m4/inet_ntop.m4: Likewise.
24221         * m4/inet_pton.m4: Likewise.
24222         * m4/inline.m4: Likewise.
24223         * m4/intldir.m4: Likewise.
24224         * m4/intlmacosx.m4: Likewise.
24225         * m4/intmax.m4: Likewise.
24226         * m4/intmax_t.m4: Likewise.
24227         * m4/inttypes.m4: Likewise.
24228         * m4/inttypes_h.m4: Likewise.
24229         * m4/inttypes-pri.m4: Likewise.
24230         * m4/isapipe.m4: Likewise.
24231         * m4/isnand.m4: Likewise.
24232         * m4/isnanf.m4: Likewise.
24233         * m4/isnanl.m4: Likewise.
24234         * m4/javacomp.m4: Likewise.
24235         * m4/javaexec.m4: Likewise.
24236         * m4/jm-winsz1.m4: Likewise.
24237         * m4/jm-winsz2.m4: Likewise.
24238         * m4/lchown.m4: Likewise.
24239         * m4/lcmessage.m4: Likewise.
24240         * m4/ldexpl.m4: Likewise.
24241         * m4/lib-ld.m4: Likewise.
24242         * m4/lib-link.m4: Likewise.
24243         * m4/libsigsegv.m4: Likewise.
24244         * m4/link-follow.m4: Likewise.
24245         * m4/localcharset.m4: Likewise.
24246         * m4/locale-fr.m4: Likewise.
24247         * m4/locale-ja.m4: Likewise.
24248         * m4/locale-tr.m4: Likewise.
24249         * m4/locale-zh.m4: Likewise.
24250         * m4/lock.m4: Likewise.
24251         * m4/longlong.m4: Likewise.
24252         * m4/ls-mntd-fs.m4: Likewise.
24253         * m4/lstat.m4: Likewise.
24254         * m4/malloc.m4: Likewise.
24255         * m4/mathl.m4: Likewise.
24256         * m4/mbrtowc.m4: Likewise.
24257         * m4/mbstate_t.m4: Likewise.
24258         * m4/mbswidth.m4: Likewise.
24259         * m4/memchr.m4: Likewise.
24260         * m4/memcmp.m4: Likewise.
24261         * m4/memcpy.m4: Likewise.
24262         * m4/memmem.m4: Likewise.
24263         * m4/memmove.m4: Likewise.
24264         * m4/mempcpy.m4: Likewise.
24265         * m4/memrchr.m4: Likewise.
24266         * m4/memset.m4: Likewise.
24267         * m4/minmax.m4: Likewise.
24268         * m4/mkdir-slash.m4: Likewise.
24269         * m4/mkdtemp.m4: Likewise.
24270         * m4/mktime.m4: Likewise.
24271         * m4/mmap-anon.m4: Likewise.
24272         * m4/mountlist.m4: Likewise.
24273         * m4/nanosleep.m4: Likewise.
24274         * m4/nls.m4: Likewise.
24275         * m4/nocrash.m4: Likewise.
24276         * m4/open.m4: Likewise.
24277         * m4/openat.m4: Likewise.
24278         * m4/openmp.m4: Likewise.
24279         * m4/pathmax.m4: Likewise.
24280         * m4/perl.m4: Likewise.
24281         * m4/physmem.m4: Likewise.
24282         * m4/pipe.m4: Likewise.
24283         * m4/po.m4: Likewise.
24284         * m4/poll.m4: Likewise.
24285         * m4/posixtm.m4: Likewise.
24286         * m4/posixver.m4: Likewise.
24287         * m4/printf-frexp.m4: Likewise.
24288         * m4/printf-frexpl.m4: Likewise.
24289         * m4/printf-posix.m4: Likewise.
24290         * m4/printf-posix-rpl.m4: Likewise.
24291         * m4/printf.m4: Likewise.
24292         * m4/progtest.m4: Likewise.
24293         * m4/putenv.m4: Likewise.
24294         * m4/readline.m4: Likewise.
24295         * m4/readlink.m4: Likewise.
24296         * m4/readutmp.m4: Likewise.
24297         * m4/realloc.m4: Likewise.
24298         * m4/regex.m4: Likewise.
24299         * m4/relocatable.m4: Likewise.
24300         * m4/relocatable-lib.m4: Likewise.
24301         * m4/rename-dest-slash.m4: Likewise.
24302         * m4/rename.m4: Likewise.
24303         * m4/rmdir-errno.m4: Likewise.
24304         * m4/rmdir.m4: Likewise.
24305         * m4/roundf.m4: Likewise.
24306         * m4/roundl.m4: Likewise.
24307         * m4/rpmatch.m4: Likewise.
24308         * m4/save-cwd.m4: Likewise.
24309         * m4/selinux-selinux-h.m4: Likewise.
24310         * m4/setenv.m4: Likewise.
24311         * m4/settime.m4: Likewise.
24312         * m4/sig2str.m4: Likewise.
24313         * m4/sig_atomic_t.m4: Likewise.
24314         * m4/signalblocking.m4: Likewise.
24315         * m4/signbit.m4: Likewise.
24316         * m4/sigpipe.m4: Likewise.
24317         * m4/sockets.m4: Likewise.
24318         * m4/sockpfaf.m4: Likewise.
24319         * m4/st_dm_mode.m4: Likewise.
24320         * m4/stat-time.m4: Likewise.
24321         * m4/stdbool.m4: Likewise.
24322         * m4/stdint.m4: Likewise.
24323         * m4/stdint_h.m4: Likewise.
24324         * m4/stpcpy.m4: Likewise.
24325         * m4/stpncpy.m4: Likewise.
24326         * m4/strcase.m4: Likewise.
24327         * m4/strchrnul.m4: Likewise.
24328         * m4/strcspn.m4: Likewise.
24329         * m4/strdup.m4: Likewise.
24330         * m4/strftime.m4: Likewise.
24331         * m4/strndup.m4: Likewise.
24332         * m4/strnlen.m4: Likewise.
24333         * m4/strpbrk.m4: Likewise.
24334         * m4/strptime.m4: Likewise.
24335         * m4/strsep.m4: Likewise.
24336         * m4/strtod.m4: Likewise.
24337         * m4/strtoimax.m4: Likewise.
24338         * m4/strtok_r.m4: Likewise.
24339         * m4/strtol.m4: Likewise.
24340         * m4/strtoll.m4: Likewise.
24341         * m4/strtoul.m4: Likewise.
24342         * m4/strtoull.m4: Likewise.
24343         * m4/strtoumax.m4: Likewise.
24344         * m4/strverscmp.m4: Likewise.
24345         * m4/threadlib.m4: Likewise.
24346         * m4/timegm.m4: Likewise.
24347         * m4/tm_gmtoff.m4: Likewise.
24348         * m4/tmpdir.m4: Likewise.
24349         * m4/tmpfile.m4: Likewise.
24350         * m4/tzset.m4: Likewise.
24351         * m4/uintmax_t.m4: Likewise.
24352         * m4/unlinkdir.m4: Likewise.
24353         * m4/unlocked-io.m4: Likewise.
24354         * m4/uptime.m4: Likewise.
24355         * m4/userspec.m4: Likewise.
24356         * m4/utimbuf.m4: Likewise.
24357         * m4/utime.m4: Likewise.
24358         * m4/utimes-null.m4: Likewise.
24359         * m4/utimes.m4: Likewise.
24360         * m4/vararrays.m4: Likewise.
24361         * m4/vasnprintf.m4: Likewise.
24362         * m4/vfprintf-posix.m4: Likewise.
24363         * m4/vprintf-posix.m4: Likewise.
24364         * m4/wait-process.m4: Likewise.
24365         * m4/wchar_t.m4: Likewise.
24366         * m4/wint_t.m4: Likewise.
24367         * m4/write-any-file.m4: Likewise.
24368         * m4/yield.m4: Likewise.
24369
24370 2009-01-13  Bruno Haible  <bruno@clisp.org>
24371
24372         Avoid test-copy-file.sh failures when ACL support insufficient.
24373         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
24374         TESTS_ENVIRONMENT.
24375         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
24376         Reported by Jim Meyering.
24377
24378 2009-01-13  Bruno Haible  <bruno@clisp.org>
24379
24380         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
24381         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
24382         * modules/unistdio/u8-printf-parse (Files): Likewise.
24383         * modules/unistdio/u32-printf-parse (Files): Likewise.
24384         * modules/unistdio/ulc-printf-parse (Files): Likewise.
24385
24386 2009-01-13  Simon Josefsson  <simon@josefsson.org>
24387
24388         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
24389         and m4/inttypes_h.m4 too.
24390
24391 2009-01-12  Eric Blake  <ebb9@byu.net>
24392
24393         tests: IRIX 6.2 cc can't compile -0.0 into .data
24394         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
24395         rather than at compile-time.
24396         * tests/test-floorl.c (minus_zero): Likewise.
24397         * tests/test-frexpl.c (minus_zero): Likewise.
24398         * tests/test-isnan.c (minus_zerol): Likewise.
24399         * tests/test-isnanl.h (minus_zero): Likewise.
24400         * tests/test-ldexpl.c (minus_zero): Likewise.
24401         * tests/test-roundl.c (minus_zero): Likewise.
24402         * tests/test-signbit.c (minus_zerol): Likewise.
24403         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24404         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24405         * tests/test-truncl.c (minus_zero): Likewise.
24406         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24407         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24408         Reported by Tom G. Christensen and Nelson H. F. Beebe.
24409
24410 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24411
24412         regex: fix glibc bug 9697
24413         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
24414         handling.
24415
24416 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24417
24418         regex: fix glibc bug 697
24419         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
24420         being NULL also if there are no backreferences.
24421
24422 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24423
24424         regex: merge glibc changes
24425         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
24426         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
24427         re_string_skip_chars, re_string_reconstruct): Likewise.
24428         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
24429
24430 2009-01-07  Jim Meyering  <meyering@redhat.com>
24431
24432         poll: filter through cppi
24433         * lib/poll.c: Indent cpp directives to reflect nesting.
24434
24435 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
24436
24437         poll: don't return uninitialized
24438         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
24439
24440 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
24441
24442         avoid compile failure on AIX 6.1
24443         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
24444         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
24445
24446 2009-01-04  Jim Meyering  <meyering@redhat.com>
24447
24448         remove duplicate inclusion of <stdio.h>
24449         * tests/test-fprintf-posix.c: Likewise.
24450         * tests/test-printf-posix.c: Likewise.
24451         * tests/test-snprintf-posix.c: Likewise.
24452         * tests/test-sprintf-posix.c: Likewise.
24453         * tests/test-vasprintf-posix.c: Likewise.
24454         * tests/test-vfprintf-posix.c: Likewise.
24455         * tests/test-vprintf-posix.c: Likewise.
24456         * tests/test-vsnprintf-posix.c: Likewise.
24457         * tests/test-vsprintf-posix.c: Likewise.
24458
24459 2009-01-03  Jim Meyering  <meyering@redhat.com>
24460
24461         gnulib-tool: fix sed-based filtering
24462         * gnulib-tool (func_filter_filelist): Remove extra backslash
24463         in sed_fff_filter definition.
24464
24465 2009-01-02  Jim Meyering  <meyering@redhat.com>
24466
24467         strftime: avoid compilation failure on Solaris 2.6
24468         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
24469         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
24470         Don't #define mbrlen or mbsinit, since now they're guaranteed to
24471         be available.  Reported by Tom G. Christensen.  Details in
24472         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
24473
24474 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24475             Bruno Haible  <bruno@clisp.org>
24476
24477         Speed up gnulib-tool by doing more string processing through shell
24478         built-ins.
24479         * gnulib-tool (fast_func_append): New variable.
24480         (func_remove_prefix, func_remove_suffix): New functions.
24481         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
24482         (func_filter_filelist): New function.
24483         (func_get_dependencies): Use func_remove_suffix instead of sed.
24484         (func_get_automake_snippet): Use func_filter_filelist instead of a
24485         subshell and sed invocation.
24486
24487 2009-01-01  Bruno Haible  <bruno@clisp.org>
24488
24489         Fix a security bug.
24490         * gnulib-tool (func_import, import, update): Don't allow the characters
24491         '"', '$', '`', '\' in macro arguments that become part of commands that
24492         are evaluated.
24493
24494 2009-01-01  Bruno Haible  <bruno@clisp.org>
24495
24496         * gnulib-tool (func_reset_sigpipe): Add more comments.
24497
24498 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24499
24500         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
24501         func_emit_tests_Makefile_am, func_import): Abort loops early if we
24502         already know the answer.
24503
24504 2009-01-01  Jim Meyering  <meyering@redhat.com>
24505
24506         * lib/version-etc.c (version_etc_va): Update copyright year.
24507
24508 2008-12-30  Bruno Haible  <bruno@clisp.org>
24509
24510         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
24511         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
24512         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
24513
24514 2008-12-29  Eric Blake  <ebb9@byu.net>
24515
24516         multiarch: avoid autoconf AC_REQUIRE bug
24517         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
24518         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
24519         2.63 and older.
24520         Reported by Bruno Haible, and analyzed in
24521         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
24522
24523 2008-12-29  Bruno Haible  <bruno@clisp.org>
24524
24525         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
24526         files in subdirectories correctly.
24527         Reported by Ralf Wildenhues.
24528
24529 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24530
24531         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
24532         rather than 'join FILE -', for Solaris join.
24533
24534 2008-12-29  Bruno Haible  <bruno@clisp.org>
24535
24536         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
24537         quoting.
24538         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24539         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24540         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24541         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
24542         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24543         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
24544         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
24545         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
24546         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24547         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
24548         * m4/nls.m4 (AM_NLS): Likewise.
24549         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
24550         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
24551         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24552         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
24553         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
24554         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24555         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
24556         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
24557         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
24558         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
24559         * m4/xsize.m4 (gl_XSIZE): Likewise.
24560         Suggested by Jim Meyering.
24561
24562 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24563
24564         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
24565         * lib/parse-duration.c: use a switch instead of cascading if's.
24566
24567 2008-12-29  Eric Blake  <ebb9@byu.net>
24568
24569         wchar.h: supply WEOF on Irix 5.3
24570         * lib/wchar.in.h (wint_t): Also supply WEOF.
24571         * lib/wctype.in.h (wint_t): Likewise.
24572         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
24573         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
24574         Reported by Tom G. Christensen.
24575
24576 2008-12-26  Bruno Haible  <bruno@clisp.org>
24577
24578         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
24579         i486, i586, i686.
24580
24581 2008-12-26  Bruno Haible  <bruno@clisp.org>
24582
24583         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
24584
24585 2008-12-26  Bruno Haible  <bruno@clisp.org>
24586
24587         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
24588         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
24589         not __STDC_CONSTANT_MACROS.
24590         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24591
24592 2008-12-25  Bruno Haible  <bruno@clisp.org>
24593
24594         Add support for universal builds to vasnprintf.
24595         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
24596         universal builds, guess no.
24597         * modules/vasnprintf-posix (Depends-on): Add multiarch.
24598         * modules/vasprintf-posix (Depends-on): Likewise.
24599         * modules/fprintf-posix (Depends-on): Likewise.
24600         * modules/vfprintf-posix (Depends-on): Likewise.
24601         * modules/snprintf-posix (Depends-on): Likewise.
24602         * modules/vsnprintf-posix (Depends-on): Likewise.
24603         * modules/sprintf-posix (Depends-on): Likewise.
24604         * modules/vsprintf-posix (Depends-on): Likewise.
24605         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24606         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24607         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24608         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24609         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24610         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24611         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24612
24613         Add support for universal builds to <inttypes.h>.
24614         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
24615         _SCNu64_PREFIX): In Apple
24616         universal builds, define directly, using _LP64.
24617         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
24618         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
24619         * modules/inttypes (Depends-on): Add multiarch.
24620         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24621
24622         Add support for universal builds to <stdint.h>.
24623         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
24624         universal builds, define directly, using _LP64.
24625         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
24626         Apple universal builds, don't test for the size and suffix of ptrdiff_t
24627         and size_t.
24628         * modules/stdint (Depends-on): Add multiarch.
24629         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24630
24631         New module 'multiarch'.
24632         * modules/multiarch: New file.
24633         * m4/multiarch.m4: New file.
24634
24635 2008-12-25  Bruno Haible  <bruno@clisp.org>
24636
24637         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
24638
24639 2008-12-25  Bruno Haible  <bruno@clisp.org>
24640
24641         * modules/btowc (License): Relicense under LGPLv2+.
24642         * modules/mbsinit (License): Likewise.
24643         * modules/mbrtowc (License): Likewise.
24644         * modules/wcrtomb (License): Likewise.
24645         * modules/streq (License): Likewise.
24646         Reported by David Lutterkort <lutter@redhat.com>.
24647
24648 2008-12-23  Bruno Haible  <bruno@clisp.org>
24649
24650         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
24651
24652 2008-12-23  Bruno Haible  <bruno@clisp.org>
24653
24654         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
24655         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
24656         GETADDRINFO_LIB, not in LIBS.
24657         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
24658         * modules/canon-host (Link): Likewise.
24659         * NEWS: Mention the change.
24660         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
24661         GETADDRINFO_LIB.
24662
24663 2008-12-22  Bruno Haible  <bruno@clisp.org>
24664
24665         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
24666         * doc/posix-functions/iswalpha_l.texi: Likewise.
24667         * doc/posix-functions/iswblank_l.texi: Likewise.
24668         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24669         * doc/posix-functions/iswctype_l.texi: Likewise.
24670         * doc/posix-functions/iswdigit_l.texi: Likewise.
24671         * doc/posix-functions/iswgraph_l.texi: Likewise.
24672         * doc/posix-functions/iswlower_l.texi: Likewise.
24673         * doc/posix-functions/iswprint_l.texi: Likewise.
24674         * doc/posix-functions/iswpunct_l.texi: Likewise.
24675         * doc/posix-functions/iswspace_l.texi: Likewise.
24676         * doc/posix-functions/iswupper_l.texi: Likewise.
24677         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24678         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
24679         * doc/posix-functions/open_wmemstream.texi: Likewise.
24680         * doc/posix-functions/swscanf.texi: Likewise.
24681         * doc/posix-functions/towctrans_l.texi: Likewise.
24682         * doc/posix-functions/towlower.texi: Likewise.
24683         * doc/posix-functions/towlower_l.texi: Likewise.
24684         * doc/posix-functions/towupper.texi: Likewise.
24685         * doc/posix-functions/towupper_l.texi: Likewise.
24686         * doc/posix-functions/vfwprintf.texi: Likewise.
24687         * doc/posix-functions/vfwscanf.texi: Likewise.
24688         * doc/posix-functions/vswscanf.texi: Likewise.
24689         * doc/posix-functions/vwprintf.texi: Likewise.
24690         * doc/posix-functions/vwscanf.texi: Likewise.
24691         * doc/posix-functions/wcpcpy.texi: Likewise.
24692         * doc/posix-functions/wcpncpy.texi: Likewise.
24693         * doc/posix-functions/wcscasecmp.texi: Likewise.
24694         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
24695         * doc/posix-functions/wcscoll_l.texi: Likewise.
24696         * doc/posix-functions/wcsdup.texi: Likewise.
24697         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24698         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
24699         * doc/posix-functions/wcsnlen.texi: Likewise.
24700         * doc/posix-functions/wcsnrtombs.texi: Likewise.
24701         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24702         * doc/posix-functions/wctrans_l.texi: Likewise.
24703         * doc/posix-functions/wctype_l.texi: Likewise.
24704         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
24705         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
24706         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
24707         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
24708         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
24709         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
24710         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
24711         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
24712         * doc/glibc-functions/wcschrnul.texi: Likewise.
24713         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24714         * doc/glibc-functions/wcstod_l.texi: Likewise.
24715         * doc/glibc-functions/wcstof_l.texi: Likewise.
24716         * doc/glibc-functions/wcstol_l.texi: Likewise.
24717         * doc/glibc-functions/wcstold_l.texi: Likewise.
24718         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24719         * doc/glibc-functions/wcstoq.texi: Likewise.
24720         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24721         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24722         * doc/glibc-functions/wcstouq.texi: Likewise.
24723         * doc/glibc-functions/wmempcpy.texi: Likewise.
24724
24725 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
24726             Eric Blake  <ebb9@byu.net>
24727             Paolo Bonzini  <bonzini@gnu.org>
24728             Bruno Haible  <bruno@clisp.org>
24729
24730         Make c-stack work on Haiku.
24731         * lib/c-stack.c (SA_ONSTACK): Define fallback.
24732         (c_stack_action): Use SA_ONSTACK flag.
24733
24734 2008-12-22  Bruno Haible  <bruno@clisp.org>
24735
24736         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
24737
24738 2008-12-22  Bruno Haible  <bruno@clisp.org>
24739
24740         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
24741         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
24742         being overridden.
24743         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
24744         New macros.
24745         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
24746         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
24747         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
24748         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
24749
24750 2008-12-22  Bruno Haible  <bruno@clisp.org>
24751
24752         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
24753         from test code.
24754
24755 2008-12-22  Eric Blake  <ebb9@byu.net>
24756
24757         Avoid gcc warnings on cygwin.
24758         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
24759         Avoid unused variable.
24760         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
24761         Likewise.
24762
24763 2008-12-22  Bruno Haible  <bruno@clisp.org>
24764
24765         Remove HAVE_MBRTOWC conditionals.
24766         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
24767         (mbscasecmp): Assume mbrtowc function.
24768         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
24769         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
24770         * lib/mbschr.c: Include mbuiter.h unconditionally.
24771         (mbschr): Assume mbrtowc function.
24772         * lib/mbscspn.c: Include mbuiter.h unconditionally.
24773         (mbscspn): Assume mbrtowc function.
24774         * lib/mbslen.c: Include mbuiter.h unconditionally.
24775         (mbslen): Assume mbrtowc function.
24776         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
24777         (mbsncasecmp): Assume mbrtowc function.
24778         * lib/mbsnlen.c: Include mbiter.h unconditionally.
24779         (mbsnlen): Assume mbrtowc function.
24780         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
24781         (mbspbrk): Assume mbrtowc function.
24782         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
24783         (mbspcasecmp): Assume mbrtowc function.
24784         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
24785         (mbsrchr): Assume mbrtowc function.
24786         * lib/mbssep.c: Include mbuiter.h unconditionally.
24787         (mbssep): Assume mbrtowc function.
24788         * lib/mbsspn.c: Include mbuiter.h unconditionally.
24789         (mbsspn): Assume mbrtowc function.
24790         * lib/mbsstr.c: Include mbuiter.h unconditionally.
24791         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
24792         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
24793         (mbstok_r): Assume mbrtowc function.
24794         * lib/propername.c: Include mbuiter.h unconditionally.
24795         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
24796         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
24797         (trim2): Assume mbrtowc function.
24798         * lib/mbswidth.c (mbsinit): Remove fallback definition.
24799         (mbsnwidth): Assume mbrtowc function.
24800         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
24801         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
24802         fallback definitions.
24803         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
24804
24805 2008-12-22  Bruno Haible  <bruno@clisp.org>
24806
24807         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
24808
24809 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
24810
24811         * modules/regex: Request emulations for the mb*/wc* functions we need.
24812         * m4/regex.m4: Don't look for those functions here.
24813         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
24814
24815 2008-12-22  Bruno Haible  <bruno@clisp.org>
24816
24817         * modules/fnmatch (Depends-on): Remove duplicated dependency.
24818
24819 2008-12-21  Bruno Haible  <bruno@clisp.org>
24820
24821         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
24822         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
24823         (Include): Remove conditionalization.
24824         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
24825         (Include): Remove conditionalization.
24826         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
24827         (Include): Remove conditionalization.
24828         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
24829         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24830         * NEWS: Mention the change.
24831         Reported by Alan Hourihane <alanh@fairlite.co.uk>
24832         via Sergey Poznyakoff <gray@gnu.org.ua>.
24833
24834 2008-12-21  Bruno Haible  <bruno@clisp.org>
24835
24836         * MODULES.html.sh (Extended multibyte and wide character utilities
24837         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
24838         wcrtomb, wcsrtombs.
24839         (Support for systems lacking POSIX:2008): Add accept, bind, close,
24840         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
24841         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
24842         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
24843
24844 2008-12-21  Bruno Haible  <bruno@clisp.org>
24845
24846         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
24847
24848 2008-12-21  Bruno Haible  <bruno@clisp.org>
24849
24850         * modules/wcsnrtombs-tests: New file.
24851         * tests/test-wcsnrtombs1.sh: New file.
24852         * tests/test-wcsnrtombs2.sh: New file.
24853         * tests/test-wcsnrtombs3.sh: New file.
24854         * tests/test-wcsnrtombs4.sh: New file.
24855         * tests/test-wcsnrtombs.c: New file.
24856
24857         New module 'wcsnrtombs'.
24858         * lib/wchar.in.h (wcsnrtombs): New declaration.
24859         * lib/wcsnrtombs.c: New file.
24860         * lib/wcsrtombs-state.c: New file.
24861         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
24862         (internal_state): Remove variable.
24863         * m4/wcsnrtombs.m4: New file.
24864         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
24865         compilation units.
24866         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
24867         HAVE_WCSNRTOMBS.
24868         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
24869         HAVE_WCSNRTOMBS.
24870         * modules/wcsnrtombs: New file.
24871         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
24872         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
24873
24874 2008-12-21  Bruno Haible  <bruno@clisp.org>
24875
24876         * modules/wcsrtombs-tests: New file.
24877         * tests/test-wcsrtombs1.sh: New file.
24878         * tests/test-wcsrtombs2.sh: New file.
24879         * tests/test-wcsrtombs3.sh: New file.
24880         * tests/test-wcsrtombs4.sh: New file.
24881         * tests/test-wcsrtombs.c: New file.
24882
24883         New module 'wcsrtombs'.
24884         * lib/wchar.in.h (wcsrtombs): New declaration.
24885         * lib/wcsrtombs.c: New file.
24886         * m4/wcsrtombs.m4: New file.
24887         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
24888         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24889         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
24890         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24891         * modules/wcsrtombs: New file.
24892         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
24893         bugs.
24894
24895 2008-12-21  Bruno Haible  <bruno@clisp.org>
24896
24897         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
24898         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
24899         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
24900         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
24901         if not correct.
24902         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
24903         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
24904         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24905         m4/locale-zh.m4, m4/codeset.m4.
24906         * doc/posix-functions/wcrtomb.texi: Document the bug.
24907
24908 2008-12-21  Bruno Haible  <bruno@clisp.org>
24909
24910         Work around a btowc() bug on IRIX 6.5.
24911         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
24912         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
24913         REPLACE_WTOBC if not.
24914         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
24915         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
24916         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
24917
24918 2008-12-21  Bruno Haible  <bruno@clisp.org>
24919
24920         * modules/wcrtomb-tests: New file.
24921         * tests/test-wcrtomb.sh: New file.
24922         * tests/test-wcrtomb.c: New file.
24923
24924         New module 'wcrtomb'.
24925         * lib/wchar.in.h (wcrtomb): New declaration.
24926         * lib/wcrtomb.c: New file.
24927         * m4/wcrtomb.m4: New file.
24928         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
24929         HAVE_WCRTOMB.
24930         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
24931         HAVE_WCRTOMB.
24932         * modules/wcrtomb: New file.
24933         * doc/posix-functions/wcrtomb.texi: Mention the new module.
24934
24935 2008-12-21  Bruno Haible  <bruno@clisp.org>
24936
24937         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
24938         * modules/mbsrtowcs (Files): Likewise.
24939         * modules/wctob (Files): Likewise.
24940         * modules/c-strcase-tests (Files): Likewise.
24941         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24942         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24943         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24944         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24945         * modules/vasnprintf-posix-tests (Files): Likewise.
24946
24947 2008-12-21  William Pursell  <bill.pursell@gmail.com>
24948
24949         gitlog-to-changelog: pass all command-line arguments to git-log
24950         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
24951         it is sometimes convenient to filter the commits in various ways.
24952         gitlog-to-changelog only allows --since to specify a start date,
24953         but git-log itself supports many other filtering mechanisms.
24954         At the moment, I want to filter by branch name.  Rather than
24955         adding a --branch option to gitlog-to-changelog, it seems more
24956         flexible to simply pass all options directly to git-log and let
24957         git do the work.  Notice that this effectively makes --since a
24958         redundant option for gitlog-to-changelog, but removing it would
24959         require current usage to change since calls would then require
24960         an additional '--'.
24961
24962 2008-12-21  Bruno Haible  <bruno@clisp.org>
24963
24964         * modules/mbsnrtowcs-tests: New file.
24965         * tests/test-mbsnrtowcs1.sh: New file.
24966         * tests/test-mbsnrtowcs2.sh: New file.
24967         * tests/test-mbsnrtowcs3.sh: New file.
24968         * tests/test-mbsnrtowcs4.sh: New file.
24969         * tests/test-mbsnrtowcs.c: New file.
24970
24971         New module 'mbsnrtowcs'.
24972         * lib/wchar.in.h (mbsnrtowcs): New declaration.
24973         * lib/mbsnrtowcs.c: New file.
24974         * lib/mbsrtowcs-state.c: New file.
24975         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
24976         (internal_state): Remove variable.
24977         * m4/mbsnrtowcs.m4: New file.
24978         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
24979         compilation units.
24980         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
24981         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24982         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
24983         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24984         * modules/mbsnrtowcs: New file.
24985         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
24986         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
24987         portability problem.
24988
24989 2008-12-21  Bruno Haible  <bruno@clisp.org>
24990
24991         Work around mbsrtowcs bug.
24992         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
24993         (gl_FUNC_MBSRTOWCS): Invoke it.
24994         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24995         m4/locale-zh.m4.
24996         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
24997
24998 2008-12-21  Bruno Haible  <bruno@clisp.org>
24999
25000         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
25001
25002 2008-12-21  Bruno Haible  <bruno@clisp.org>
25003
25004         Update doc for AIX.
25005         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
25006         16-bit wchar_t type.
25007         * doc/posix-functions/btowc.texi: Likewise.
25008         * doc/posix-functions/fgetwc.texi: Likewise.
25009         * doc/posix-functions/fgetws.texi: Likewise.
25010         * doc/posix-functions/fputwc.texi: Likewise.
25011         * doc/posix-functions/fputws.texi: Likewise.
25012         * doc/posix-functions/fwide.texi: Likewise.
25013         * doc/posix-functions/fwprintf.texi: Likewise.
25014         * doc/posix-functions/fwscanf.texi: Likewise.
25015         * doc/posix-functions/getwchar.texi: Likewise.
25016         * doc/posix-functions/getwc.texi: Likewise.
25017         * doc/posix-functions/iswalnum.texi: Likewise.
25018         * doc/posix-functions/iswalpha.texi: Likewise.
25019         * doc/posix-functions/iswblank.texi: Likewise.
25020         * doc/posix-functions/iswcntrl.texi: Likewise.
25021         * doc/posix-functions/iswctype.texi: Likewise.
25022         * doc/posix-functions/iswdigit.texi: Likewise.
25023         * doc/posix-functions/iswgraph.texi: Likewise.
25024         * doc/posix-functions/iswlower.texi: Likewise.
25025         * doc/posix-functions/iswprint.texi: Likewise.
25026         * doc/posix-functions/iswpunct.texi: Likewise.
25027         * doc/posix-functions/iswspace.texi: Likewise.
25028         * doc/posix-functions/iswupper.texi: Likewise.
25029         * doc/posix-functions/iswxdigit.texi: Likewise.
25030         * doc/posix-functions/mbrtowc.texi: Likewise.
25031         * doc/posix-functions/mbsrtowcs.texi: Likewise.
25032         * doc/posix-functions/mbstowcs.texi: Likewise.
25033         * doc/posix-functions/mbtowc.texi: Likewise.
25034         * doc/posix-functions/putwchar.texi: Likewise.
25035         * doc/posix-functions/putwc.texi: Likewise.
25036         * doc/posix-functions/swprintf.texi: Likewise.
25037         * doc/posix-functions/tolower.texi: Likewise.
25038         * doc/posix-functions/toupper.texi: Likewise.
25039         * doc/posix-functions/towctrans.texi: Likewise.
25040         * doc/posix-functions/ungetwc.texi: Likewise.
25041         * doc/posix-functions/vswprintf.texi: Likewise.
25042         * doc/posix-functions/wcrtomb.texi: Likewise.
25043         * doc/posix-functions/wcscat.texi: Likewise.
25044         * doc/posix-functions/wcschr.texi: Likewise.
25045         * doc/posix-functions/wcscmp.texi: Likewise.
25046         * doc/posix-functions/wcscoll.texi: Likewise.
25047         * doc/posix-functions/wcscpy.texi: Likewise.
25048         * doc/posix-functions/wcscspn.texi: Likewise.
25049         * doc/posix-functions/wcsftime.texi: Likewise.
25050         * doc/posix-functions/wcslen.texi: Likewise.
25051         * doc/posix-functions/wcsncat.texi: Likewise.
25052         * doc/posix-functions/wcsncmp.texi: Likewise.
25053         * doc/posix-functions/wcsncpy.texi: Likewise.
25054         * doc/posix-functions/wcspbrk.texi: Likewise.
25055         * doc/posix-functions/wcsrchr.texi: Likewise.
25056         * doc/posix-functions/wcsrtombs.texi: Likewise.
25057         * doc/posix-functions/wcsspn.texi: Likewise.
25058         * doc/posix-functions/wcsstr.texi: Likewise.
25059         * doc/posix-functions/wcstod.texi: Likewise.
25060         * doc/posix-functions/wcstof.texi: Likewise.
25061         * doc/posix-functions/wcstoimax.texi: Likewise.
25062         * doc/posix-functions/wcstok.texi: Likewise.
25063         * doc/posix-functions/wcstold.texi: Likewise.
25064         * doc/posix-functions/wcstoll.texi: Likewise.
25065         * doc/posix-functions/wcstol.texi: Likewise.
25066         * doc/posix-functions/wcstombs.texi: Likewise.
25067         * doc/posix-functions/wcstoull.texi: Likewise.
25068         * doc/posix-functions/wcstoul.texi: Likewise.
25069         * doc/posix-functions/wcstoumax.texi: Likewise.
25070         * doc/posix-functions/wcswidth.texi: Likewise.
25071         * doc/posix-functions/wcsxfrm.texi: Likewise.
25072         * doc/posix-functions/wctob.texi: Likewise.
25073         * doc/posix-functions/wctomb.texi: Likewise.
25074         * doc/posix-functions/wctrans.texi: Likewise.
25075         * doc/posix-functions/wctype.texi: Likewise.
25076         * doc/posix-functions/wcwidth.texi: Likewise.
25077         * doc/posix-functions/wmemchr.texi: Likewise.
25078         * doc/posix-functions/wmemcmp.texi: Likewise.
25079         * doc/posix-functions/wmemcpy.texi: Likewise.
25080         * doc/posix-functions/wmemmove.texi: Likewise.
25081         * doc/posix-functions/wmemset.texi: Likewise.
25082         * doc/posix-functions/wprintf.texi: Likewise.
25083         * doc/posix-functions/wscanf.texi: Likewise.
25084
25085 2008-12-21  Bruno Haible  <bruno@clisp.org>
25086
25087         Update doc for HP-UX 11.11.
25088         * doc/posix-functions/btowc.texi: Clarify that the function is missing
25089         in HP-UX version 11.00, not in all versions of HP-UX 11.
25090         * doc/posix-functions/fwide.texi: Likewise.
25091         * doc/posix-functions/fwprintf.texi: Likewise.
25092         * doc/posix-functions/fwscanf.texi: Likewise.
25093         * doc/posix-functions/inet_ntop.texi: Likewise.
25094         * doc/posix-functions/inet_pton.texi: Likewise.
25095         * doc/posix-functions/mbrlen.texi: Likewise.
25096         * doc/posix-functions/mbrtowc.texi: Likewise.
25097         * doc/posix-functions/mbsinit.texi: Likewise.
25098         * doc/posix-functions/mbsrtowcs.texi: Likewise.
25099         * doc/posix-functions/swprintf.texi: Likewise.
25100         * doc/posix-functions/swscanf.texi: Likewise.
25101         * doc/posix-functions/towctrans.texi: Likewise.
25102         * doc/posix-functions/vfwprintf.texi: Likewise.
25103         * doc/posix-functions/vswprintf.texi: Likewise.
25104         * doc/posix-functions/vwprintf.texi: Likewise.
25105         * doc/posix-functions/wcrtomb.texi: Likewise.
25106         * doc/posix-functions/wcsrtombs.texi: Likewise.
25107         * doc/posix-functions/wcsstr.texi: Likewise.
25108         * doc/posix-functions/wctob.texi: Likewise.
25109         * doc/posix-functions/wctrans.texi: Likewise.
25110         * doc/posix-functions/wmemchr.texi: Likewise.
25111         * doc/posix-functions/wmemcmp.texi: Likewise.
25112         * doc/posix-functions/wmemcpy.texi: Likewise.
25113         * doc/posix-functions/wmemmove.texi: Likewise.
25114         * doc/posix-functions/wmemset.texi: Likewise.
25115         * doc/posix-functions/wprintf.texi: Likewise.
25116         * doc/posix-functions/wscanf.texi: Likewise.
25117
25118 2008-12-21  Bruno Haible  <bruno@clisp.org>
25119
25120         Work around a portability problem.
25121         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
25122         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
25123
25124 2008-12-20  Bruno Haible  <bruno@clisp.org>
25125
25126         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
25127         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
25128         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
25129         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
25130         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
25131
25132         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
25133         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
25134         set.
25135         (GNULIB_defined_mbstate_t): New macro.
25136         (mbsinit): Redefine if REPLACE_MBSINIT is set.
25137         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
25138         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
25139         reuses the system's mbrtowc function but works around the bugs.
25140         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
25141         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
25142         macros.
25143         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
25144         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
25145         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
25146         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
25147         REPLACE_MBSINIT if mbsinit needs to be overridden.
25148         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
25149         REPLACE_MBSINIT, REPLACE_MBRTOWC.
25150         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
25151         REPLACE_MBSINIT, REPLACE_MBRTOWC.
25152         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25153         m4/locale-zh.m4.
25154         (Depends): Add mbsinit.
25155         * modules/mbsinit (Depends): Add mbrtowc.
25156         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
25157
25158 2008-12-20  Bruno Haible  <bruno@clisp.org>
25159
25160         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
25161         so that there are no conversion errors on AIX.
25162         * tests/test-mbsrtowcs.c (main): LIkewise.
25163
25164 2008-12-20  Bruno Haible  <bruno@clisp.org>
25165
25166         Work around wctob bug on Solaris <= 9.
25167         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
25168         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
25169         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
25170         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
25171         * modules/wctob (Files): Add m4/locale-fr.m4.
25172         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
25173
25174 2008-12-20  Bruno Haible  <bruno@clisp.org>
25175
25176         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
25177         /dev/null.
25178         * tests/test-select-in.sh: Likewise.
25179         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25180
25181 2008-12-20  Bruno Haible  <bruno@clisp.org>
25182
25183         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
25184         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
25185         Cygwin 1.5.x.
25186
25187 2008-12-20  Bruno Haible  <bruno@clisp.org>
25188
25189         Ensure mbstate_t is defined on HP-UX 11.11.
25190         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
25191         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
25192         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
25193         AC_USE_SYSTEM_EXTENSIONS.
25194         * modules/fnmatch (Depends-on): Add extensions.
25195         * modules/mbrlen (Depends-on): Likewise.
25196         * modules/mbrtowc (Depends-on): Likewise.
25197         * modules/mbsinit (Depends-on): Likewise.
25198         * modules/mbsrtowcs (Depends-on): Likewise.
25199         * modules/mbswidth (Depends-on): Likewise.
25200         * modules/quotearg (Depends-on): Likewise.
25201         * modules/strftime (Depends-on): Likewise.
25202
25203 2008-12-20  Bruno Haible  <bruno@clisp.org>
25204
25205         Ensure wctob is declared on IRIX 6.5.
25206         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
25207         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
25208         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
25209         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
25210         of HAVE_WCTOB.
25211         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
25212         HAVE_WCTOB.
25213         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
25214
25215 2008-12-19  Bruno Haible  <bruno@clisp.org>
25216
25217         * modules/mbsrtowcs-tests: New file.
25218         * tests/test-mbsrtowcs1.sh: New file.
25219         * tests/test-mbsrtowcs2.sh: New file.
25220         * tests/test-mbsrtowcs3.sh: New file.
25221         * tests/test-mbsrtowcs4.sh: New file.
25222         * tests/test-mbsrtowcs.c: New file.
25223
25224         New module 'mbsrtowcs'.
25225         * lib/wchar.in.h (mbsrtowcs): New declaration.
25226         * lib/mbsrtowcs.c: New file.
25227         * m4/mbsrtowcs.m4: New file.
25228         * modules/mbsrtowcs: New file.
25229         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
25230         HAVE_MBSRTOWCS.
25231         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
25232         HAVE_MBSRTOWCS.
25233         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
25234
25235 2008-12-19  Bruno Haible  <bruno@clisp.org>
25236
25237         New module 'mbrlen'.
25238         * lib/wchar.in.h (mbrlen): New declaration.
25239         * lib/mbrlen.c: New file.
25240         * m4/mbrlen.m4: New file.
25241         * modules/mbrlen: New file.
25242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
25243         HAVE_MBRLEN.
25244         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
25245         HAVE_MBRLEN.
25246         * doc/posix-functions/mbrlen.texi: Document the new module.
25247
25248 2008-12-19  Bruno Haible  <bruno@clisp.org>
25249
25250         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
25251         * modules/mbrtowc (Depends-on): Add verify.
25252         Suggested by Paul Eggert.
25253
25254 2008-12-18  Bruno Haible  <bruno@clisp.org>
25255
25256         * modules/mbsinit-tests: New file.
25257         * tests/test-mbsinit.sh: New file.
25258         * tests/test-mbsinit.c: New file.
25259
25260 2008-12-18  Bruno Haible  <bruno@clisp.org>
25261
25262         * modules/mbrtowc-tests: New file.
25263         * tests/test-mbrtowc1.sh: New file.
25264         * tests/test-mbrtowc2.sh: New file.
25265         * tests/test-mbrtowc3.sh: New file.
25266         * tests/test-mbrtowc4.sh: New file.
25267         * tests/test-mbrtowc.c: New file.
25268
25269         New module 'mbrtowc'.
25270         * lib/wchar.in.h (mbstate_t): Override when the system does not have
25271         mbsinit and mbrtowc.
25272         (mbrtowc): New declaration.
25273         * lib/mbrtowc.c: New file.
25274         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
25275         * modules/mbrtowc: New file.
25276         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
25277         HAVE_MBRTOWC.
25278         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
25279         HAVE_MBRTOWC.
25280         * doc/posix-functions/mbrtowc.texi: Document the new module.
25281
25282 2008-12-18  Bruno Haible  <bruno@clisp.org>
25283
25284         New module 'wctob'.
25285         * lib/wchar.in.h (wctob): New declaration.
25286         * lib/wctob.c: New file.
25287         * m4/wctob.m4: New file.
25288         * modules/wctob: New file.
25289         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
25290         HAVE_WCTOB.
25291         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
25292         * doc/posix-functions/wctob.texi: Document the new module.
25293
25294 2008-12-18  Bruno Haible  <bruno@clisp.org>
25295
25296         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
25297         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
25298
25299 2008-12-18  Simon Josefsson  <simon@josefsson.org>
25300
25301         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
25302         G. Christensen" <tgc@jupiterrise.com>.
25303
25304         * lib/flock.c: Need to include errno.h.  Reported by "Tom
25305         G. Christensen" <tgc@jupiterrise.com>.
25306
25307         * lib/flock.c: Need to include string.h.  Reported by "Tom
25308         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
25309         <ebb9@byu.net>.
25310
25311 2008-12-18  Bruno Haible  <bruno@clisp.org>
25312
25313         * m4/locale-ja.m4: New file, from GNU gettext.
25314
25315 2008-12-17  Bruno Haible  <bruno@clisp.org>
25316
25317         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
25318         Suggested by Eric Blake.
25319
25320 2008-12-17  Bruno Haible  <bruno@clisp.org>
25321
25322         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
25323
25324 2008-12-17  Bruno Haible  <bruno@clisp.org>
25325
25326         * lib/mbsinit.c: Include verify.h. Verify an assumption.
25327         * modules/mbsinit (Depends-on): Add verify.
25328         Suggested by Paul Eggert.
25329
25330 2008-12-17  Bruno Haible  <bruno@clisp.org>
25331
25332         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
25333         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
25334         gl_FUNC_MBRTOWC.
25335         * m4/mbiter.m4 (gl_MBITER): LIkewise.
25336         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
25337         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
25338         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
25339         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
25340         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
25341         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
25342         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
25343         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
25344         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
25345         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
25346         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
25347         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
25348         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
25349         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
25350         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25351         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
25352         * modules/trim (configure.ac): Likewise.
25353
25354 2008-12-17  Bruno Haible  <bruno@clisp.org>
25355
25356         * modules/btowc-tests: New file.
25357         * tests/test-btowc1.sh: New file.
25358         * tests/test-btowc2.sh: New file.
25359         * tests/test-btowc.c: New file.
25360
25361         New module 'btowc'.
25362         * lib/wchar.in.h (btowc): New declaration.
25363         * lib/btowc.c: New file.
25364         * m4/btowc.m4: New file.
25365         * modules/btowc: New file.
25366         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
25367         HAVE_BTOWC.
25368         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
25369         * doc/posix-functions/btowc.texi: Document the new module.
25370
25371 2008-12-17  Bruno Haible  <bruno@clisp.org>
25372
25373         New module 'mbsinit'.
25374         * lib/wchar.in.h (mbsinit): New declaration.
25375         * lib/mbsinit.c: New file.
25376         * m4/mbsinit.m4: New file.
25377         * modules/mbsinit: New file.
25378         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
25379         HAVE_MBSINIT.
25380         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
25381         HAVE_MBSINIT.
25382         * doc/posix-functions/mbsinit.texi: Document the new module.
25383
25384 2008-12-16  Bruno Haible  <bruno@clisp.org>
25385
25386         * lib/unistd.in.h: Add comment.
25387         * tests/test-environ.c: Don't include <stdlib.h>.
25388
25389 2008-12-16  Bruno Haible  <bruno@clisp.org>
25390
25391         * lib/parse-duration.h (parse_duration): Document return value
25392         convention.
25393         * lib/parse-duration.c: Include specification header first. Add
25394         comments.
25395         (_): Remove macro.
25396         (parse_year_month_day, parse_hour_minute_second): Move side effects
25397         outside of strchr call.
25398         (parse_non_iso8601): Move side effects outside of isspace call.
25399         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
25400         call.
25401
25402 2008-12-16  Bruno Haible  <bruno@clisp.org>
25403
25404         * tests/test-parse-duration.sh: Produce no output when the test
25405         succeeds.
25406
25407 2008-12-16  Bruno Haible  <bruno@clisp.org>
25408
25409         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
25410         expressions.
25411
25412 2008-12-15  Bruno Haible  <bruno@clisp.org>
25413
25414         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
25415         * doc/glibc-functions/flistxattr.texi: Likewise.
25416         * doc/glibc-functions/fopencookie.texi: Likewise.
25417         * doc/glibc-functions/fremovexattr.texi: Likewise.
25418         * doc/glibc-functions/fsetxattr.texi: Likewise.
25419         * doc/glibc-functions/getxattr.texi: Likewise.
25420         * doc/glibc-functions/lgetxattr.texi: Likewise.
25421         * doc/glibc-functions/listxattr.texi: Likewise.
25422         * doc/glibc-functions/llistxattr.texi: Likewise.
25423         * doc/glibc-functions/lremovexattr.texi: Likewise.
25424         * doc/glibc-functions/lsetxattr.texi: Likewise.
25425         * doc/glibc-functions/removexattr.texi: Likewise.
25426         * doc/glibc-functions/setxattr.texi: Likewise.
25427         * doc/posix-functions/open_memstream.texi: Likewise.
25428
25429 2008-12-15  Eric Blake  <ebb9@byu.net>
25430
25431         Update doc for cygwin 1.7.
25432         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
25433         functions.
25434         * doc/posix-functions/fchmodat.texi: Likewise.
25435         * doc/posix-functions/fchownat.texi: Likewise.
25436         * doc/posix-functions/fdopendir.texi: Likewise.
25437         * doc/posix-functions/fmemopen.texi: Likewise.
25438         * doc/posix-functions/freeaddrinfo.texi: Likewise.
25439         * doc/posix-functions/fstatat.texi: Likewise.
25440         * doc/posix-functions/futimens.texi: Likewise.
25441         * doc/posix-functions/gai_strerror.texi: Likewise.
25442         * doc/posix-functions/getaddrinfo.texi: Likewise.
25443         * doc/posix-functions/getnameinfo.texi: Likewise.
25444         * doc/posix-functions/if_freenameindex.texi: Likewise.
25445         * doc/posix-functions/if_indextoname.texi: Likewise.
25446         * doc/posix-functions/if_nameindex.texi: Likewise.
25447         * doc/posix-functions/if_nametoindex.texi: Likewise.
25448         * doc/posix-functions/insque.texi: Likewise.
25449         * doc/posix-functions/linkat.texi: Likewise.
25450         * doc/posix-functions/llrint.texi: Likewise.
25451         * doc/posix-functions/llrintf.texi: Likewise.
25452         * doc/posix-functions/llrintl.texi: Likewise.
25453         * doc/posix-functions/lockf.texi: Likewise.
25454         * doc/posix-functions/lrintl.texi: Likewise.
25455         * doc/posix-functions/mkdirat.texi: Likewise.
25456         * doc/posix-functions/mkfifoat.texi: Likewise.
25457         * doc/posix-functions/mknodat.texi: Likewise.
25458         * doc/posix-functions/mq_close.texi: Likewise.
25459         * doc/posix-functions/mq_getattr.texi: Likewise.
25460         * doc/posix-functions/mq_notify.texi: Likewise.
25461         * doc/posix-functions/mq_open.texi: Likewise.
25462         * doc/posix-functions/mq_receive.texi: Likewise.
25463         * doc/posix-functions/mq_send.texi: Likewise.
25464         * doc/posix-functions/mq_setattr.texi: Likewise.
25465         * doc/posix-functions/mq_timedreceive.texi: Likewise.
25466         * doc/posix-functions/mq_timedsend.texi: Likewise.
25467         * doc/posix-functions/mq_unlink.texi: Likewise.
25468         * doc/posix-functions/open_memstream.texi: Likewise.
25469         * doc/posix-functions/openat.texi: Likewise.
25470         * doc/posix-functions/posix_fadvise.texi: Likewise.
25471         * doc/posix-functions/posix_fallocate.texi: Likewise.
25472         * doc/posix-functions/posix_madvise.texi: Likewise.
25473         * doc/posix-functions/posix_memalign.texi: Likewise.
25474         * doc/posix-functions/posix_openpt.texi: Likewise.
25475         * doc/posix-functions/readlinkat.texi: Likewise.
25476         * doc/posix-functions/remque.texi: Likewise.
25477         * doc/posix-functions/renameat.texi: Likewise.
25478         * doc/posix-functions/rintl.texi: Likewise.
25479         * doc/posix-functions/sem_unlink.texi: Likewise.
25480         * doc/posix-functions/shm_open.texi: Likewise.
25481         * doc/posix-functions/shm_unlink.texi: Likewise.
25482         * doc/posix-functions/signgam.texi: Likewise.
25483         * doc/posix-functions/sigset.texi: Likewise.
25484         * doc/posix-functions/stpcpy.texi: Likewise.
25485         * doc/posix-functions/stpncpy.texi: Likewise.
25486         * doc/posix-functions/strerror.texi: Likewise.
25487         * doc/posix-functions/strtod.texi: Likewise.
25488         * doc/posix-functions/symlinkat.texi: Likewise.
25489         * doc/posix-functions/unlinkat.texi: Likewise.
25490         * doc/posix-functions/utimensat.texi: Likewise.
25491         * doc/glibc-functions/bindresvport.texi: Likewise.
25492         * doc/glibc-functions/dn_expand.texi: Likewise.
25493         * doc/glibc-functions/exp10.texi: Likewise.
25494         * doc/glibc-functions/exp10f.texi: Likewise.
25495         * doc/glibc-functions/fgetxattr.texi: Likewise.
25496         * doc/glibc-functions/flistxattr.texi: Likewise.
25497         * doc/glibc-functions/fopencookie.texi: Likewise.
25498         * doc/glibc-functions/freeifaddrs.texi: Likewise.
25499         * doc/glibc-functions/fremovexattr.texi: Likewise.
25500         * doc/glibc-functions/fsetxattr.texi: Likewise.
25501         * doc/glibc-functions/getifaddrs.texi: Likewise.
25502         * doc/glibc-functions/getxattr.texi: Likewise.
25503         * doc/glibc-functions/lgetxattr.texi: Likewise.
25504         * doc/glibc-functions/listxattr.texi: Likewise.
25505         * doc/glibc-functions/llistxattr.texi: Likewise.
25506         * doc/glibc-functions/lremovexattr.texi: Likewise.
25507         * doc/glibc-functions/lsetxattr.texi: Likewise.
25508         * doc/glibc-functions/pow10.texi: Likewise.
25509         * doc/glibc-functions/pow10f.texi: Likewise.
25510         * doc/glibc-functions/rcmd_af.texi: Likewise.
25511         * doc/glibc-functions/removexattr.texi: Likewise.
25512         * doc/glibc-functions/res_init.texi: Likewise.
25513         * doc/glibc-functions/res_mkquery.texi: Likewise.
25514         * doc/glibc-functions/res_query.texi: Likewise.
25515         * doc/glibc-functions/res_querydomain.texi: Likewise.
25516         * doc/glibc-functions/res_send.texi: Likewise.
25517         * doc/glibc-functions/rresvport_af.texi: Likewise.
25518         * doc/glibc-functions/setxattr.texi: Likewise.
25519         * doc/glibc-functions/strcasestr.texi: Likewise.
25520
25521 2008-12-15  Bruno Haible  <bruno@clisp.org>
25522
25523         Fix compilation error on OSF/1 4.0.
25524         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
25525         <sys/time.h>, simply delegate to the system header.
25526         Reported by Daniel Richard G. <oss@teragram.com>.
25527
25528 2008-12-15  Bruno Haible  <bruno@clisp.org>
25529
25530         * doc/posix-functions/openat.texi: Mention the 'openat' module.
25531         * doc/posix-functions/fchmodat.texi: Likewise.
25532         * doc/posix-functions/fchownat.texi: Likewise.
25533         * doc/posix-functions/fdopendir.texi: Likewise.
25534         * doc/posix-functions/fstatat.texi: Likewise.
25535         * doc/posix-functions/mkdirat.texi: Likewise.
25536         * doc/posix-functions/unlinkat.texi: Likewise.
25537
25538 2008-12-14  Bruno Haible  <bruno@clisp.org>
25539
25540         Update doc for POSIX:2008.
25541         * doc/posix-functions/faccessat.texi: New file.
25542         * doc/posix-functions/fchmodat.texi: New file.
25543         * doc/posix-functions/fchownat.texi: New file.
25544         * doc/posix-functions/fdopendir.texi: New file.
25545         * doc/posix-functions/fstatat.texi: New file.
25546         * doc/posix-functions/futimens.texi: New file.
25547         * doc/posix-functions/linkat.texi: New file.
25548         * doc/posix-functions/mkdirat.texi: New file.
25549         * doc/posix-functions/mkfifoat.texi: New file.
25550         * doc/posix-functions/mknodat.texi: New file.
25551         * doc/posix-functions/open_wmemstream.texi: New file.
25552         * doc/posix-functions/openat.texi: New file.
25553         * doc/posix-functions/psiginfo.texi: New file.
25554         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
25555         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
25556         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
25557         * doc/posix-functions/readlinkat.texi: New file.
25558         * doc/posix-functions/renameat.texi: New file.
25559         * doc/posix-functions/strerror_l.texi: New file.
25560         * doc/posix-functions/symlinkat.texi: New file.
25561         * doc/posix-functions/unlinkat.texi: New file.
25562         * doc/posix-functions/utimensat.texi: New file.
25563         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25564
25565 2008-12-14  Bruno Haible  <bruno@clisp.org>
25566
25567         Update doc for POSIX:2008.
25568         * doc/posix-functions/alphasort.texi: Renamed from
25569         doc/glibc-functions/alphasort.texi.
25570         * doc/posix-functions/dirfd.texi: Renamed from
25571         doc/glibc-functions/dirfd.texi.
25572         * doc/posix-functions/dprintf.texi: Renamed from
25573         doc/glibc-functions/dprintf.texi.
25574         * doc/posix-functions/duplocale.texi: Renamed from
25575         doc/glibc-functions/duplocale.texi.
25576         * doc/posix-functions/fexecve.texi: Renamed from
25577         doc/glibc-functions/fexecve.texi.
25578         * doc/posix-functions/fmemopen.texi: Renamed from
25579         doc/glibc-functions/fmemopen.texi.
25580         * doc/posix-functions/freelocale.texi: Renamed from
25581         doc/glibc-functions/freelocale.texi.
25582         * doc/posix-functions/getdate_err.texi: Renamed from
25583         doc/glibc-functions/getdate_err.texi.
25584         * doc/posix-functions/isalnum_l.texi: Renamed from
25585         doc/glibc-functions/isalnum_l.texi.
25586         * doc/posix-functions/isalpha_l.texi: Renamed from
25587         doc/glibc-functions/isalpha_l.texi.
25588         * doc/posix-functions/isblank_l.texi: Renamed from
25589         doc/glibc-functions/isblank_l.texi.
25590         * doc/posix-functions/iscntrl_l.texi: Renamed from
25591         doc/glibc-functions/iscntrl_l.texi.
25592         * doc/posix-functions/isdigit_l.texi: Renamed from
25593         doc/glibc-functions/isdigit_l.texi.
25594         * doc/posix-functions/isgraph_l.texi: Renamed from
25595         doc/glibc-functions/isgraph_l.texi.
25596         * doc/posix-functions/islower_l.texi: Renamed from
25597         doc/glibc-functions/islower_l.texi.
25598         * doc/posix-functions/isprint_l.texi: Renamed from
25599         doc/glibc-functions/isprint_l.texi.
25600         * doc/posix-functions/ispunct_l.texi: Renamed from
25601         doc/glibc-functions/ispunct_l.texi.
25602         * doc/posix-functions/isspace_l.texi: Renamed from
25603         doc/glibc-functions/isspace_l.texi.
25604         * doc/posix-functions/isupper_l.texi: Renamed from
25605         doc/glibc-functions/isupper_l.texi.
25606         * doc/posix-functions/iswalnum_l.texi: Renamed from
25607         doc/glibc-functions/iswalnum_l.texi.
25608         * doc/posix-functions/iswalpha_l.texi: Renamed from
25609         doc/glibc-functions/iswalpha_l.texi.
25610         * doc/posix-functions/iswblank_l.texi: Renamed from
25611         doc/glibc-functions/iswblank_l.texi.
25612         * doc/posix-functions/iswcntrl_l.texi: Renamed from
25613         doc/glibc-functions/iswcntrl_l.texi.
25614         * doc/posix-functions/iswctype_l.texi: Renamed from
25615         doc/glibc-functions/iswctype_l.texi.
25616         * doc/posix-functions/iswdigit_l.texi: Renamed from
25617         doc/glibc-functions/iswdigit_l.texi.
25618         * doc/posix-functions/iswgraph_l.texi: Renamed from
25619         doc/glibc-functions/iswgraph_l.texi.
25620         * doc/posix-functions/iswlower_l.texi: Renamed from
25621         doc/glibc-functions/iswlower_l.texi.
25622         * doc/posix-functions/iswprint_l.texi: Renamed from
25623         doc/glibc-functions/iswprint_l.texi.
25624         * doc/posix-functions/iswpunct_l.texi: Renamed from
25625         doc/glibc-functions/iswpunct_l.texi.
25626         * doc/posix-functions/iswspace_l.texi: Renamed from
25627         doc/glibc-functions/iswspace_l.texi.
25628         * doc/posix-functions/iswupper_l.texi: Renamed from
25629         doc/glibc-functions/iswupper_l.texi.
25630         * doc/posix-functions/iswxdigit_l.texi: Renamed from
25631         doc/glibc-functions/iswxdigit_l.texi.
25632         * doc/posix-functions/isxdigit_l.texi: Renamed from
25633         doc/glibc-functions/isxdigit_l.texi.
25634         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
25635         doc/glibc-functions/mbsnrtowcs.texi.
25636         * doc/posix-functions/mkdtemp.texi: Renamed from
25637         doc/glibc-functions/mkdtemp.texi.
25638         * doc/posix-functions/newlocale.texi: Renamed from
25639         doc/glibc-functions/newlocale.texi.
25640         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
25641         doc/glibc-functions/nl_langinfo_l.texi.
25642         * doc/posix-functions/open_memstream.texi: Renamed from
25643         doc/glibc-functions/open_memstream.texi.
25644         * doc/posix-functions/opterr.texi: Renamed from
25645         doc/glibc-functions/opterr.texi.
25646         * doc/posix-functions/optind.texi: Renamed from
25647         doc/glibc-functions/optind.texi.
25648         * doc/posix-functions/optopt.texi: Renamed from
25649         doc/glibc-functions/optopt.texi.
25650         * doc/posix-functions/psignal.texi: Renamed from
25651         doc/glibc-functions/psignal.texi.
25652         * doc/posix-functions/scandir.texi: Renamed from
25653         doc/glibc-functions/scandir.texi.
25654         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
25655         doc/glibc-functions/sched_get_priority_min.texi.
25656         * doc/posix-functions/signgam.texi: Renamed from
25657         doc/glibc-functions/signgam.texi.
25658         * doc/posix-functions/stpcpy.texi: Renamed from
25659         doc/glibc-functions/stpcpy.texi.
25660         * doc/posix-functions/stpncpy.texi: Renamed from
25661         doc/glibc-functions/stpncpy.texi.
25662         * doc/posix-functions/strcasecmp_l.texi: Renamed from
25663         doc/glibc-functions/strcasecmp_l.texi.
25664         * doc/posix-functions/strcoll_l.texi: Renamed from
25665         doc/glibc-functions/strcoll_l.texi.
25666         * doc/posix-functions/strfmon_l.texi: Renamed from
25667         doc/glibc-functions/strfmon_l.texi.
25668         * doc/posix-functions/strftime_l.texi: Renamed from
25669         doc/glibc-functions/strftime_l.texi.
25670         * doc/posix-functions/strncasecmp_l.texi: Renamed from
25671         doc/glibc-functions/strncasecmp_l.texi.
25672         * doc/posix-functions/strndup.texi: Renamed from
25673         doc/glibc-functions/strndup.texi.
25674         * doc/posix-functions/strnlen.texi: Renamed from
25675         doc/glibc-functions/strnlen.texi.
25676         * doc/posix-functions/strsignal.texi: Renamed from
25677         doc/glibc-functions/strsignal.texi.
25678         * doc/posix-functions/strxfrm_l.texi: Renamed from
25679         doc/glibc-functions/strxfrm_l.texi.
25680         * doc/posix-functions/timer_gettime.texi: Renamed from
25681         doc/glibc-functions/timer_gettime.texi.
25682         * doc/posix-functions/tolower_l.texi: Renamed from
25683         doc/glibc-functions/tolower_l.texi.
25684         * doc/posix-functions/toupper_l.texi: Renamed from
25685         doc/glibc-functions/toupper_l.texi.
25686         * doc/posix-functions/towctrans_l.texi: Renamed from
25687         doc/glibc-functions/towctrans_l.texi.
25688         * doc/posix-functions/towlower_l.texi: Renamed from
25689         doc/glibc-functions/towlower_l.texi.
25690         * doc/posix-functions/towupper_l.texi: Renamed from
25691         doc/glibc-functions/towupper_l.texi.
25692         * doc/posix-functions/uselocale.texi: Renamed from
25693         doc/glibc-functions/uselocale.texi.
25694         * doc/posix-functions/vdprintf.texi: Renamed from
25695         doc/glibc-functions/vdprintf.texi.
25696         * doc/posix-functions/wcpcpy.texi:
25697         Renamed from doc/glibc-functions/wcpcpy.texi.
25698         * doc/posix-functions/wcpncpy.texi: Renamed from
25699         doc/glibc-functions/wcpncpy.texi.
25700         * doc/posix-functions/wcscasecmp.texi: Renamed from
25701         doc/glibc-functions/wcscasecmp.texi.
25702         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
25703         doc/glibc-functions/wcscasecmp_l.texi.
25704         * doc/posix-functions/wcscoll_l.texi: Renamed from
25705         doc/glibc-functions/wcscoll_l.texi.
25706         * doc/posix-functions/wcsdup.texi: Renamed from
25707         doc/glibc-functions/wcsdup.texi.
25708         * doc/posix-functions/wcsncasecmp.texi: Renamed from
25709         doc/glibc-functions/wcsncasecmp.texi.
25710         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
25711         doc/glibc-functions/wcsncasecmp_l.texi.
25712         * doc/posix-functions/wcsnlen.texi: Renamed from
25713         doc/glibc-functions/wcsnlen.texi.
25714         * doc/posix-functions/wcsnrtombs.texi: Renamed from
25715         doc/glibc-functions/wcsnrtombs.texi.
25716         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
25717         doc/glibc-functions/wcsxfrm_l.texi.
25718         * doc/posix-functions/wctrans_l.texi: Renamed from
25719         doc/glibc-functions/wctrans_l.texi.
25720         * doc/posix-functions/wctype_l.texi: Renamed from
25721         doc/glibc-functions/wctype_l.texi.
25722         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25723         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
25724         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
25725         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
25726         these subsections.
25727         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
25728         Remove sections.
25729
25730 2008-12-14  Bruno Haible  <bruno@clisp.org>
25731
25732         Update doc for POSIX:2008.
25733         * doc/posix-functions/*.texi: Update URL of POSIX specification.
25734
25735 2008-12-14  Bruno Haible  <bruno@clisp.org>
25736
25737         Update doc for POSIX:2008.
25738         * doc/pastposix-functions/bcmp.texi: Renamed from
25739         doc/posix-functions/bcmp.texi.
25740         * doc/pastposix-functions/bcopy.texi: Renamed from
25741         doc/posix-functions/bcopy.texi.
25742         * doc/pastposix-functions/bsd_signal.texi: Renamed from
25743         doc/posix-functions/bsd_signal.texi.
25744         * doc/pastposix-functions/bzero.texi: Renamed from
25745         doc/posix-functions/bzero.texi.
25746         * doc/pastposix-functions/ecvt.texi: Renamed from
25747         doc/posix-functions/ecvt.texi.
25748         * doc/pastposix-functions/fcvt.texi: Renamed from
25749         doc/posix-functions/fcvt.texi.
25750         * doc/pastposix-functions/ftime.texi: Renamed from
25751         doc/posix-functions/ftime.texi.
25752         * doc/pastposix-functions/gcvt.texi: Renamed from
25753         doc/posix-functions/gcvt.texi.
25754         * doc/pastposix-functions/getcontext.texi: Renamed from
25755         doc/posix-functions/getcontext.texi.
25756         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
25757         doc/posix-functions/gethostbyaddr.texi.
25758         * doc/pastposix-functions/gethostbyname.texi: Renamed from
25759         doc/posix-functions/gethostbyname.texi.
25760         * doc/pastposix-functions/getwd.texi: Renamed from
25761         doc/posix-functions/getwd.texi.
25762         * doc/pastposix-functions/h_errno.texi: Renamed from
25763         doc/posix-functions/h_errno.texi.
25764         * doc/pastposix-functions/index.texi: Renamed from
25765         doc/posix-functions/index.texi.
25766         * doc/pastposix-functions/makecontext.texi: Renamed from
25767         doc/posix-functions/makecontext.texi.
25768         * doc/pastposix-functions/mktemp.texi: Renamed from
25769         doc/posix-functions/mktemp.texi.
25770         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
25771         doc/posix-functions/pthread_attr_getstackaddr.texi.
25772         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
25773         doc/posix-functions/pthread_attr_setstackaddr.texi.
25774         * doc/pastposix-functions/rindex.texi: Renamed from
25775         doc/posix-functions/rindex.texi.
25776         * doc/pastposix-functions/scalb.texi: Renamed from
25777         doc/posix-functions/scalb.texi.
25778         * doc/pastposix-functions/setcontext.texi: Renamed from
25779         doc/posix-functions/setcontext.texi.
25780         * doc/pastposix-functions/swapcontext.texi: Renamed from
25781         doc/posix-functions/swapcontext.texi.
25782         * doc/pastposix-functions/ualarm.texi: Renamed from
25783         doc/posix-functions/ualarm.texi.
25784         * doc/pastposix-functions/usleep.texi: Renamed from
25785         doc/posix-functions/usleep.texi.
25786         * doc/pastposix-functions/vfork.texi: Renamed from
25787         doc/posix-functions/vfork.texi.
25788         * doc/pastposix-functions/wcswcs.texi: Renamed from
25789         doc/posix-functions/wcswcs.texi.
25790         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
25791         (Function Substitutes): Update.
25792
25793 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25794
25795         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
25796         m4/strerror.m4.
25797
25798 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25799             Bruno Haible  <bruno@clisp.org>
25800
25801         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
25802
25803 2008-12-13  Bruno Haible  <bruno@clisp.org>
25804
25805         * modules/strtoull (Depends-on): Remove unistd.
25806
25807 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25808
25809         * modules/strtoull (Depends-on): Add stdlib.
25810
25811 2008-12-11  Simon Josefsson  <simon@josefsson.org>
25812
25813         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
25814
25815 2008-12-10  Jim Meyering  <meyering@redhat.com>
25816
25817         gl_ASSERT: don't say assertions are disabled when they're not
25818         * m4/assert.m4 (gl_ASSERT): Do not make configure report
25819         "checking whether to enable assertions... no", when they are in
25820         fact enabled.  This is solely a bug in the output of configure.
25821         In spite of saying "no", NDEBUG was not defined in that case.
25822         Also, as noted by Eric Blake, leave assertions enabled upon
25823         --enable-assert=INVALID.
25824
25825 2008-12-10  Bruno Haible  <bruno@clisp.org>
25826
25827         Change MODULES.html to refer to POSIX:2008 where possible.
25828         * MODULES.html.sh (POSIX2008_URL): New variable.
25829         (posix_headers): Remove sys/timeb, ucontext.
25830         (posix2001_headers): New variable.
25831         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
25832         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
25833         index, makecontext, mktemp, pthread_attr_getstackaddr,
25834         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
25835         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
25836         (posix2001_functions): New variable.
25837         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
25838         otherwise.
25839
25840 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25841
25842         add missing include to parse-duration.c
25843         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
25844         * modules/parse-duration (Depends-on): Add xalloc.
25845
25846         fix sed script reading maint.mk
25847         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
25848         (syntax-check-rules): Use it.
25849
25850 2008-12-09  Bruno Haible  <bruno@clisp.org>
25851
25852         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
25853         MacOS X 10.4/PowerPC.
25854         Reported by Simon Josefsson.
25855
25856 2008-12-08  Jim Meyering  <meyering@redhat.com>
25857
25858         work around mingw's lack of some S_IF definitions
25859         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
25860         Reported by Simon Josefsson.
25861
25862 2008-12-08  Bruno Haible  <bruno@clisp.org>
25863
25864         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
25865         applied to variables. Needed on MacOS X 10.4/PowerPC.
25866         Reported by Simon Josefsson.
25867
25868 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
25869         and Eric Blake  <ebb9@byu.net>
25870
25871         assert: honor --enable-assert
25872         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
25873         order to honor --enable-assert, rather than treating it as a
25874         synonym for --disable-assert.
25875
25876 2008-12-08  Jim Meyering  <meyering@redhat.com>
25877
25878         * lib/posixtm.c: Remove now-useless declaration of mktime.
25879
25880         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
25881
25882 2008-12-07  Bruno Haible  <bruno@clisp.org>
25883
25884         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
25885         test_once): Mark functions as static.
25886         * tests/test-tls.c (test_tls): Likewise.
25887
25888 2008-12-07  Bruno Haible  <bruno@clisp.org>
25889
25890         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
25891         iconv_register_autodetect.
25892
25893 2008-12-07  Jim Meyering  <meyering@redhat.com>
25894
25895         posixtm.c: avoid a warning
25896         * lib/posixtm.c (posixtime): Don't initialize tm0.
25897         It's no longer needed to placate gcc4's -Wuninitialized,
25898         and the attempt to placate would elicit a new warning.
25899
25900         unicodeio.c: mark unused parameters
25901         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25902         (fallback_failure_callback): Likewise.
25903
25904 2008-12-07  Bruno Haible  <bruno@clisp.org>
25905
25906         * gnulib-tool (func_create_testdir): When building the tests
25907         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
25908         Reported by Simon Josefsson.
25909
25910 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25911
25912         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
25913
25914 2008-12-06  Bruno Haible  <bruno@clisp.org>
25915
25916         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
25917         Suggested by Eric Blake.
25918
25919 2008-12-06  Bruno Haible  <bruno@clisp.org>
25920
25921         Fix a c-stack test failure on MacOS X.
25922         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
25923         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
25924         handler for SIGBUS as well.
25925         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
25926         install a signal handler for SIGBUS as well.
25927         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
25928
25929 2008-12-06  Bruno Haible  <bruno@clisp.org>
25930
25931         Advocacy documentation.
25932         * doc/gnulib-intro.texi (Benefits): New section.
25933         * doc/gnulib.texi: Update.
25934
25935 2008-12-06  Bruno Haible  <bruno@clisp.org>
25936
25937         Document the 'manywarnings' module.
25938         * doc/manywarnings.texi: New file.
25939         * doc/gnulib.texi: Include it.
25940
25941 2008-12-05  Eric Blake  <ebb9@byu.net>
25942
25943         tests: silence some gcc warnings
25944         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
25945         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
25946         type mismatches.
25947
25948 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25949             Bruno Haible  <bruno@clisp.org>
25950
25951         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
25952
25953 2008-11-29  Jim Meyering  <meyering@redhat.com>
25954
25955         unicodeio.c: mark unused parameters
25956         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25957         (fallback_failure_callback): Likewise.
25958
25959         fts: fix a thinko
25960         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
25961         (set_stat_type): Return S_IF*-valued "type" directly.
25962         Prompted by James Youngman's spotting a related bug.
25963         Confirmed by further testing through find.
25964
25965         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
25966         * lib/fts.c (D_TYPE): Define.
25967         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
25968         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
25969         (s_ifmt_shift_bits): New function.
25970         (set_stat_type): New function.
25971         (fts_build): When not calling fts_stat, call set_stat_type
25972         to propagate dirent.d_type info to fts_read caller.
25973         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
25974         fts_statp->st_mode type information may be valid.
25975
25976 2008-11-28  Simon Josefsson  <simon@josefsson.org>
25977
25978         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
25979         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
25980         <sds@gnu.org>.
25981
25982 2008-11-20  Bruno Haible  <bruno@clisp.org>
25983
25984         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
25985         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
25986         INCLUDE_NEXT.
25987         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
25988         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
25989         * modules/math (Makefile.am): Substitute
25990         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
25991         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25992
25993 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
25994             Bruno Haible  <bruno@clisp.org>
25995
25996         * lib/stdint.in.h: Define all type macros so that their expansion is
25997         a single typedef'ed token. Fixes a compilation failure in Boost which
25998         does "using ::int8_t;".
25999
26000 2008-11-18  Simon Josefsson  <simon@josefsson.org>
26001
26002         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
26003         gl_MANYWARN_ALL_GCC.
26004         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
26005         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
26006         * modules/manywarnings: New file.
26007         * MODULES.html.sh: Mention manywarnings module.
26008
26009 2008-11-18  Bruno Haible  <bruno@clisp.org>
26010
26011         * doc/gnulib-tool.texi (Unit tests): New section.
26012
26013 2008-11-18  Simon Josefsson  <simon@josefsson.org>
26014
26015         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
26016         paths like 'lib/po/foo.po'.
26017
26018 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26019
26020         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
26021         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
26022
26023 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26024
26025         * m4/warnings.m4: Use CPPFLAGS to really check whether the
26026         parameter works.
26027
26028 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26029
26030         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
26031
26032 2008-11-17  Bruce Korb  <bkorb@gnu.org>
26033
26034         * modules/parse-duration-tests: New file.
26035         * tests/test-parse-duration.sh: New file.
26036         * tests/test-parse-duration.c: New file.
26037
26038         New module 'parse-duration'.
26039         * lib/parse-duration.h: New file.
26040         * lib/parse-duration.c: New file.
26041         * modules/parse-duration: New file.
26042
26043 2008-11-17  Bruno Haible  <bruno@clisp.org>
26044
26045         * tests/test-select-out.sh: Comment out the first pipe test.
26046         Reported by Simon Josefsson.
26047
26048 2008-11-17  Bruno Haible  <bruno@clisp.org>
26049
26050         * modules/getaddrinfo (Depends-on): Add servent, hostent.
26051         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
26052         gl_HOSTENT.
26053
26054 2008-11-17  Bruno Haible  <bruno@clisp.org>
26055
26056         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
26057         -lnetwork and -lnet. Needed for Haiku and BeOS.
26058
26059 2008-11-16  Bruno Haible  <bruno@clisp.org>
26060
26061         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
26062
26063 2008-11-16  Bruno Haible  <bruno@clisp.org>
26064
26065         Avoid test failure on Haiku.
26066         * tests/test-fsync.c: Include <errno.h>.
26067         (main): Don't require that fsync (0) fails.
26068
26069 2008-11-15  Bruno Haible  <bruno@clisp.org>
26070
26071         New module 'hostent'.
26072         * modules/hostent: New file.
26073         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
26074
26075 2008-11-15  Bruno Haible  <bruno@clisp.org>
26076
26077         New module 'servent'.
26078         * modules/servent: New file.
26079         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
26080
26081 2008-11-15  Bruno Haible  <bruno@clisp.org>
26082
26083         Avoid generating same test program with two different rules.
26084         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
26085         test-frexp to test-frexp-nolibm.
26086         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
26087         test-frexpl to test-frexpl-nolibm.
26088
26089 2008-11-15  Bruno Haible  <bruno@clisp.org>
26090
26091         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
26092         $(FREXPL_LIBM).
26093
26094 2008-11-15  Bruno Haible  <bruno@clisp.org>
26095
26096         * lib/netdb.in.h: Activate the definitions also when the system's
26097         <netdb.h> has 'struct addrinfo'.
26098         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
26099         EAI_OVERFLOW or AI_NUMERICSERV.
26100         * doc/posix-headers/netdb.texi: Document the problem.
26101
26102 2008-11-15  Bruno Haible  <bruno@clisp.org>
26103
26104         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
26105
26106         Make the 'sched' module work on platforms where <sched.h> exists but
26107         is incomplete (such as Haiku).
26108         * lib/sched.in.h; Include the system's <sched.h> if it exists.
26109         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
26110         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
26111         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
26112         HAVE_STRUCT_SCHED_PARAM.
26113         * modules/sched (Depends-on): Add include_next.
26114         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
26115         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
26116         * doc/posix-headers/sched.texi: Document the issue.
26117
26118 2008-11-13  Jim Meyering  <meyering@redhat.com>
26119
26120         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
26121         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
26122         test would fail due to the difference in the Report bugs to ...
26123         line.  The expected address is empty, "<>", while the actual
26124         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
26125
26126 2008-11-12  Bruno Haible  <bruno@clisp.org>
26127
26128         lstat: don't compile lstat.c on systems lacking lstat
26129         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
26130         which don't have lstat; this is handled by lib/sys_stat.in.h already.
26131         Reported by Daniel P. Berrange via Jim Meyering.
26132
26133 2008-11-12  Jim Meyering  <meyering@redhat.com>
26134
26135         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
26136
26137 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26138
26139         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
26140         instead.
26141
26142 2008-11-12  Bruno Haible  <bruno@clisp.org>
26143
26144         * lib/unicodeio.c: Include unistr.h.
26145         (utf8_wctomb): Remove function.
26146         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
26147
26148 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26149
26150         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
26151         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
26152         <bruno@clisp.org>.
26153         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
26154
26155 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26156
26157         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
26158         * doc/gnulib.texi: Add section for warnings.
26159
26160 2008-11-11  Bruno Haible  <bruno@clisp.org>
26161
26162         * lib/sockets.h: Add a comment.
26163
26164 2008-11-11  Karl Berry  <karl@gnu.org>
26165
26166         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
26167
26168 2008-11-11  Eric Blake  <ebb9@byu.net>
26169
26170         fdl.texi: avoid git symlinks
26171         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
26172
26173 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26174
26175         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
26176
26177 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26178
26179         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
26180         (gl_WARN_ADD): Substitute $2 if literal.
26181
26182 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26183
26184         * m4/warning.m4: Remove.
26185
26186 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26187
26188         * m4/warnings.m4: Almost complete rewrite. :-)
26189
26190 2008-11-10  Simon Josefsson  <simon@josefsson.org>
26191
26192         * modules/warnings: New module.
26193         * m4/warnings.m4: New file.
26194         * MODULES.html.sh: Mention warnings module.
26195         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
26196         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26197
26198 2008-11-10  Eric Blake  <ebb9@byu.net>
26199
26200         fdl.texi: make a symlink to the latest version
26201         * doc/standards.texi: Revert today's earlier change.
26202         * doc/fdl-1.2.texi: Rename from old fdl.texi...
26203         * doc/fdl.texi: ...and replace this with a symlink to the newer
26204         fdl-1.3.texi.
26205
26206 2008-11-10  Bruno Haible  <bruno@clisp.org>
26207
26208         * tests/test-select-fd.c (main): Accept the result file name as fourth
26209         argument.
26210         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
26211         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
26212
26213 2008-11-10  Bruno Haible  <bruno@clisp.org>
26214
26215         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
26216         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
26217         as autoconf-substituted macros.
26218         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
26219         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
26220         gl_NETDB_H_DEFAULTS. Set these variables.
26221         * modules/netdb (Makefile.am): Substitute these variables.
26222
26223 2008-11-10  Eric Blake  <ebb9@byu.net>
26224
26225         standards.texi: include correct file for FDL 1.3
26226         * doc/standards.texi (GNU Free Documentation License): Change
26227         include file to pull in FDL 1.3, not 1.2.
26228
26229         fdl.texi: revert accidental change to license
26230         * doc/fdl.texi: This is FDL 1.2, not 1.3.
26231
26232 2008-11-10  Bruno Haible  <bruno@clisp.org>
26233
26234         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
26235         cross-compiling guesses also when the native compile gives no result.
26236
26237 2008-11-10  Bruno Haible  <bruno@clisp.org>
26238
26239         * lib/spawni.c (__spawni): Force variable into the stack.
26240
26241 2008-11-10  Bruno Haible  <bruno@clisp.org>
26242
26243         Add support for Haiku.
26244         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
26245         glibc and BeOS, but also on Haiku.
26246         * lib/fpurge.c (fpurge): Likewise.
26247         * lib/freadable.c (freadable): Likewise.
26248         * lib/freadahead.c (freadahead): Likewise.
26249         * lib/freading.c (freading): Likewise.
26250         * lib/freadptr.c (freadptr): Likewise.
26251         * lib/freadseek.c (freadptrinc): Likewise.
26252         * lib/fseeko.c (rpl_fseeko): Likewise.
26253         * lib/fseterr.c (fseterr): Likewise.
26254         * lib/fwritable.c (fwritable): Likewise.
26255         * lib/fwriting.c (fwriting): Likewise.
26256         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
26257
26258 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26259
26260         * lib/config.charset: Treat Haiku like BeOS.
26261
26262 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26263
26264         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
26265         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
26266
26267 2008-11-08  Bruno Haible  <bruno@clisp.org>
26268
26269         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
26270         AC_CACHE_CHECK.
26271
26272 2008-11-08  Bruno Haible  <bruno@clisp.org>
26273
26274         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
26275
26276 2008-11-08  Bruno Haible  <bruno@clisp.org>
26277
26278         * tests/test-select-fd.c: New file.
26279         * tests/test-select-in.sh: New file.
26280         * tests/test-select-out.sh: New file.
26281         * tests/test-select-stdin.c: New file.
26282         * modules/select-tests (Files): Add the new files.
26283         (Depends-on): Add gettimeofday.
26284         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
26285         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
26286         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
26287
26288 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
26289             Bruno Haible  <bruno@clisp.org>
26290
26291         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
26292
26293 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
26294
26295         * build-aux/pmccabe2html: Added support for C++ source files.
26296
26297 2008-11-05  Ben Pfaff  <blp@gnu.org>
26298
26299         Fix lib/close.c build on Windows.
26300         * modules/close (Files): Add lib/w32sock.h.
26301
26302 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
26303
26304         Accept Bison's NEWS format.
26305         * build-aux/announce-gen (print_news_deltas): Tweak
26306         $re_prefix.
26307
26308 2008-11-04  Bruno Haible  <bruno@clisp.org>
26309
26310         * modules/random_r (Maintainer): Add glibc.
26311
26312 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26313
26314         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
26315         by karl@freefriends.org (Karl Berry).
26316         * doc/alloca.texi: Likewise.
26317         * doc/c-ctype.texi: Likewise.
26318         * doc/c-strcase.texi: Likewise.
26319         * doc/c-strcaseeq.texi: Likewise.
26320         * doc/c-strcasestr.texi: Likewise.
26321         * doc/c-strstr.texi: Likewise.
26322         * doc/c-strtod.texi: Likewise.
26323         * doc/c-strtold.texi: Likewise.
26324         * doc/ctime.texi: Likewise.
26325         * doc/error.texi: Likewise.
26326         * doc/fdl.texi: Likewise.
26327         * doc/gcd.texi: Likewise.
26328         * doc/getdate.texi: Likewise.
26329         * doc/gnulib-intro.texi: Likewise.
26330         * doc/gnulib-tool.texi: Likewise.
26331         * doc/gnulib.texi: Likewise.
26332         * doc/inet_ntoa.texi: Likewise.
26333         * doc/maintain.texi: Likewise.
26334         * doc/make-stds.texi: Likewise.
26335         * doc/quote.texi: Likewise.
26336         * doc/regexprops-generic.texi: Likewise.
26337         * doc/standards.texi: Likewise.
26338         * doc/verify.texi: Likewise.
26339         * doc/visibility.texi: Likewise.
26340         * doc/gnulib.texi (GNU Free Documentation License): Include
26341         fdl-1.3.texi instead of fdl.texi.
26342
26343 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26344
26345         * doc/fdl-1.3.texi: New file, from
26346         <http://www.gnu.org/licenses/fdl-1.3.texi>.
26347         * modules/fdl-1.3: Add.
26348         * MODULES.html.sh: Add fdl-1.3.
26349
26350 2008-11-03  Bruno Haible  <bruno@clisp.org>
26351
26352         Make determination of absolute name of header file work with AIX xlc.
26353         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
26354         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
26355         preprocessing.
26356         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26357         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
26358
26359 2008-11-03  Simon Josefsson  <simon@josefsson.org>
26360
26361         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
26362         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
26363         <ludo@gnu.org>.
26364
26365 2008-11-02  Bruno Haible  <bruno@clisp.org>
26366
26367         Mark 'strpbrk' obsolete.
26368         * modules/strpbrk (Status, Notice): New sections.
26369         * modules/strtok_r (Depends-on): Add strpbrk.
26370
26371 2008-11-02  Bruno Haible  <bruno@clisp.org>
26372
26373         Mark 'strdup' obsolete.
26374         * modules/strdup (Status, Notice): New sections.
26375         * modules/findprog (Depends-on): Add strdup.
26376         * modules/getaddrinfo (Depends-on): Likewise.
26377         * modules/localename (Depends-on): Likewise.
26378         * modules/relocatable-lib (Depends-on): Likewise.
26379         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
26380         * modules/relocatable-prog (Depends-on): Likewise.
26381         * modules/trim (Depends-on): Likewise.
26382         * modules/unictype/gen-ctype (Depends-on): Likewise.
26383         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26384
26385 2008-11-02  Bruno Haible  <bruno@clisp.org>
26386
26387         Mark 'strcspn' obsolete.
26388         * modules/strcspn (Status, Notice): New sections.
26389
26390 2008-11-02  Bruno Haible  <bruno@clisp.org>
26391
26392         Mark 'rmdir' obsolete.
26393         * modules/rmdir (Status, Notice): New sections.
26394         * modules/clean-temp (Depends-on): Add rmdir.
26395         * modules/openat (Depends-on): Likewise.
26396
26397 2008-11-02  Bruno Haible  <bruno@clisp.org>
26398
26399         Mark 'raise' obsolete.
26400         * modules/raise (Status, Notice): New sections.
26401         (Include): Specify <signal.h>.
26402         * modules/stdio (Depends-on): Add raise.
26403         * modules/write (Depends-on): Likewise.
26404
26405 2008-11-02  Bruno Haible  <bruno@clisp.org>
26406
26407         Mark 'memset' obsolete.
26408         * modules/memset (Status, Notice): New sections.
26409
26410 2008-11-02  Bruno Haible  <bruno@clisp.org>
26411
26412         Mark 'memmove' obsolete.
26413         * modules/memmove (Status, Notice): New sections.
26414         * modules/argp (Depends-on): Add memmove.
26415         * modules/argz (Depends-on): Likewise.
26416         * modules/canonicalize (Depends-on): Likewise.
26417         * modules/canonicalize-lgpl (Depends-on): Likewise.
26418         * modules/fts (Depends-on): Likewise.
26419         * modules/getcwd (Depends-on): Likewise.
26420         * modules/human (Depends-on): Likewise.
26421         * modules/regex (Depends-on): Likewise.
26422         * modules/striconveh (Depends-on): Likewise.
26423         * modules/trim (Depends-on): Likewise.
26424         * modules/unistr/u8-move (Depends-on): Likewise.
26425         * modules/unistr/u16-move (Depends-on): Likewise.
26426         * modules/unistr/u32-move (Depends-on): Likewise.
26427
26428 2008-11-02  Bruno Haible  <bruno@clisp.org>
26429
26430         Mark 'memcpy' obsolete.
26431         * modules/memcpy (Status, Notice): New sections.
26432
26433 2008-11-02  Bruno Haible  <bruno@clisp.org>
26434
26435         Mark 'memcmp' obsolete.
26436         * modules/memcmp (Status, Notice): New sections.
26437         * modules/argmatch (Depends-on): Add memchr.
26438         * modules/backupfile (Depends-on): Likewise.
26439         * modules/c-strcasestr (Depends-on): Likewise.
26440         * modules/crypto/des (Depends-on): Likewise.
26441         * modules/csharpcomp (Depends-on): Likewise.
26442         * modules/fnmatch (Depends-on): Likewise.
26443         * modules/git-merge-changelog (Depends-on): Likewise.
26444         * modules/isnand (Depends-on): Likewise.
26445         * modules/isnand-nolibm (Depends-on): Likewise.
26446         * modules/isnanf (Depends-on): Likewise.
26447         * modules/isnanf-nolibm (Depends-on): Likewise.
26448         * modules/isnanl (Depends-on): Likewise.
26449         * modules/isnanl-nolibm (Depends-on): Likewise.
26450         * modules/mbchar (Depends-on): Likewise.
26451         * modules/memcoll (Depends-on): Likewise.
26452         * modules/quotearg (Depends-on): Likewise.
26453         * modules/regex (Depends-on): Likewise.
26454         * modules/relocatable-prog (Depends-on): Likewise.
26455         * modules/same (Depends-on): Likewise.
26456         * modules/signbit (Depends-on): Likewise.
26457         * modules/strcasestr-simple (Depends-on): Likewise.
26458         * modules/unictype/gen-ctype (Depends-on): Likewise.
26459         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26460         * modules/uniname/uniname (Depends-on): Likewise.
26461         * modules/unistr/u8-cmp (Depends-on): Likewise.
26462
26463 2008-11-02  Bruno Haible  <bruno@clisp.org>
26464
26465         Mark 'memchr' obsolete.
26466         * modules/memchr (Status, Notice): New sections.
26467         * modules/argp (Depends-on): Add memchr.
26468         * modules/base64 (Depends-on): Likewise.
26469         * modules/c-strcasestr (Depends-on): Likewise.
26470         * modules/chdir-long (Depends-on): Likewise.
26471         * modules/fnmatch (Depends-on): Likewise.
26472         * modules/getsubopt (Depends-on): Likewise.
26473         * modules/git-merge-changelog (Depends-on): Likewise.
26474         * modules/glob (Depends-on): Likewise.
26475         * modules/strcasestr-simple (Depends-on): Likewise.
26476         * modules/strnlen (Depends-on): Likewise.
26477
26478 2008-11-02  Bruno Haible  <bruno@clisp.org>
26479
26480         Mark 'atexit' obsolete.
26481         * modules/atexit (Status, Notice): New sections.
26482         * modules/chdir-long (Depends-on): Add atexit.
26483         * modules/wait-process (Depends-on): Likewise.
26484
26485 2008-11-02  Bruno Haible  <bruno@clisp.org>
26486
26487         * gnulib-tool: New option --with-obsolete.
26488         (func_usage): Document it.
26489         (func_modules_transitive_closure): Drop obsolete dependencies if
26490         incobsolete is not true.
26491         (func_import): Read and save the incobsolete variable to the cache.
26492
26493 2008-11-02  Bruno Haible  <bruno@clisp.org>
26494
26495         * modules/TEMPLATE-EXTENDED: New field 'Status'.
26496         * gnulib-tool: New option --extract-status.
26497         (func_usage): Document it.
26498         (sed_extract_prog): Recognize it.
26499         (func_get_status): New function.
26500
26501 2008-10-30  Simon Josefsson  <simon@josefsson.org>
26502
26503         * modules/sockets (License): Change from LGPL to LGPLv2+.
26504
26505 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26506
26507         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
26508
26509 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26510
26511         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26512         Mention times and sys_times.
26513         * modules/sys_times, modules/sys_times-tests: New modules.
26514         * modules/times, modules/times-tests: Likewise
26515         * m4/sys_times_h.m4: New file.
26516         * lib/sys_times.in.h: Likewise
26517         * lib/times.c: Likewise.
26518         * tests/test-sys_times.c: Likewise.
26519         * tests/test-times.c: Likewise.
26520         * doc/posix-headers/sys_times.texi: Update.
26521         * doc/posix-functions/times.texi: Update.
26522
26523 2008-10-28  Jim Meyering  <meyering@redhat.com>
26524
26525         * modules/tempname (Depends-on): Add lstat.
26526
26527         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
26528
26529 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26530
26531         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
26532         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
26533         using idiom used elsewhere in gnulib.
26534
26535 2008-10-27  Jim Meyering  <meyering@redhat.com>
26536
26537         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
26538
26539 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26540
26541         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
26542         TESTS_ENVIRONMENT, for shell scripts that needs to call built
26543         programs.
26544         * tests/test-argp-2.sh: Use $EXEEXT when needed.
26545
26546 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26547
26548         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
26549
26550 2008-10-27  Bruno Haible  <bruno@clisp.org>
26551
26552         * tests/test-lstat.c: Include <stdio.h>.
26553
26554 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26555
26556         * modules/lstat-tests: New module.
26557         * tests/test-lstat.c: New file.
26558
26559 2008-10-26  Jim Meyering  <meyering@redhat.com>
26560
26561         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
26562
26563 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26564             Bruno Haible  <bruno@clisp.org>
26565
26566         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
26567         * modules/configmake (Include): Add a note that the include must come
26568         after all system headers.
26569         * lib/javaversion.c: Include configmake.h after all other includes.
26570
26571 2008-10-26  Bruno Haible  <bruno@clisp.org>
26572
26573         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
26574         HAVE_STRUCT_RANDOM_DATA to 1.
26575         (gl_STDLIB_H): Simplify.
26576
26577 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26578
26579         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
26580         substitute HAVE_STRUCT_RANDOM_DATA.
26581         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
26582         random_data.
26583         * modules/stdlib (Makefile.am): Substitute
26584         HAVE_STRUCT_RANDOM_DATA.
26585
26586 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26587
26588         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
26589         * doc/gnulib-intro.texi (Copyright): Likewise.
26590
26591 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26592
26593         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
26594         findings.
26595
26596 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
26597             Bruno Haible  <bruno@clisp.org>
26598
26599         * lib/unistd.in.h: Include <winsock2.h>.
26600         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
26601         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
26602         Provide dummy declarations.
26603         (gethostname): Override.
26604         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
26605         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
26606         gl_PREREQ_SYS_H_WINSOCK2.
26607         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
26608         * doc/posix-functions/gethostname.texi: More details.
26609
26610 2008-10-25  Bruno Haible  <bruno@clisp.org>
26611
26612         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
26613         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
26614         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
26615
26616         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
26617         here ...
26618         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
26619         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
26620         gl_UNISTD_H_DEFAULTS.
26621
26622 2008-10-25  Eric Blake  <ebb9@byu.net>
26623
26624         signbit: avoid spurious compiler failure
26625         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
26626         declarations inside function.
26627
26628 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26629             Bruno Haible  <bruno@clisp.org>
26630
26631         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
26632         * modules/random_r (Depends-on): Add stdint.
26633
26634 2008-10-24  Bruno Haible  <bruno@clisp.org>
26635
26636         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
26637         Eggert.
26638         * modules/strerror (License): Likewise.
26639
26640 2008-10-24  Jim Meyering  <meyering@redhat.com>
26641
26642         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
26643         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
26644
26645 2008-10-24  Eric Blake  <ebb9@byu.net>
26646
26647         getgroups: fix compilation when getgroups is available
26648         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
26649         but with <config.h> override of getgroups disabled.
26650
26651 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26652
26653         * doc/gnulib.texi (Header files): Add note about C++ problems.
26654         Explained by Bruno Haible <bruno@clisp.org>.
26655
26656 2008-10-23  Bruno Haible  <bruno@clisp.org>
26657
26658         Define a dummy SA_NODEFER macro on Interix.
26659         * lib/signal.in.h (SA_NODEFER): Define fallback.
26660         Reported by Aleksey Cheusov <cheusov@tut.by> via
26661         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
26662
26663 2008-10-23  Bruno Haible  <bruno@clisp.org>
26664
26665         * modules/freadahead (License): Change to LGPLv2+.
26666         Suggested by Simon Josefsson.
26667
26668 2008-10-23  Jim Meyering  <meyering@redhat.com>
26669
26670         random_r: new module
26671         * modules/random_r: New file.
26672         * m4/random_r.m4: New file.
26673         * lib/random_r.c: New file, from glibc.
26674         * modules/random_r-tests: New file.
26675         * tests/test-random_r.c: New file.
26676         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
26677          Declare.
26678         (RAND_MAX): Define.
26679         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
26680         * modules/stdlib: Substitute them, too.
26681         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
26682         * doc/glibc-functions/initstate_r.texi: Mention the new module.
26683         * doc/glibc-functions/random_r.texi: Likewise.
26684         * doc/glibc-functions/setstate_r.texi: Likewise.
26685         * doc/glibc-functions/srandom_r.texi: Likewise.
26686         * config/srclist.txt: Mention it.
26687
26688 2008-10-23  David Lutterkort  <lutter@redhat.com>
26689
26690         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
26691         link requirement
26692
26693 2008-10-23  Jim Meyering  <meyering@redhat.com>
26694
26695         selinux-h: mark parameters of stub functions as intentionally unused
26696         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
26697         * lib/se-context.in.h: Likewise.
26698
26699 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26700
26701         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
26702
26703 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26704
26705         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
26706
26707 2008-10-22  Eric Blake  <ebb9@byu.net>
26708
26709         glthread/thread: avoid compiler warning
26710         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
26711         Add unreachable abort to silence compiler.
26712
26713 2008-10-22  Eric Blake  <ebb9@byu.net>
26714
26715         netdb: also supply struct addrinfo for cygwin 1.5.x
26716         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
26717         older cygwin.
26718         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
26719         cygwin.
26720         * doc/posix-headers/netdb.texi (netdb.h): Document this.
26721
26722 2008-10-22  Bruno Haible  <bruno@clisp.org>
26723
26724         * users.txt: Update entry about pspp.
26725
26726 2008-10-21  Bruno Haible  <bruno@clisp.org>
26727
26728         Simplification.
26729         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
26730         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
26731
26732         Simplification.
26733         * lib/ioctl.c (ioctl): Don't undefine.
26734         * lib/socket.c (socket): Don't undefine.
26735
26736         Remove unused module indicator macros.
26737         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
26738         GNULIB_$1 as a C macro.
26739
26740         * doc/posix-functions/close.texi: Undo last change.
26741         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
26742         Windows platforms.
26743
26744 2008-10-21  Bruno Haible  <bruno@clisp.org>
26745
26746         Add gethostname() declaration to <unistd.h>.
26747         * lib/unistd.in.h (gethostname): New declaration.
26748         * lib/gethostname.c: Include <unistd.h>.
26749         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
26750         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
26751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
26752         and HAVE_GETHOSTNAME.
26753         * modules/gethostname (Depends-on): Add unistd.
26754         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26755         (Include): Specify <unistd.h>.
26756         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
26757         HAVE_GETHOSTNAME.
26758         * tests/test-gethostname.c: Include <unistd.h> first.
26759
26760 2008-10-21  Bruno Haible  <bruno@clisp.org>
26761
26762         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
26763         * modules/select-tests (Depends-on): Likewise.
26764         Reported by Simon Josefsson.
26765
26766 2008-10-21  Simon Josefsson  <simon@josefsson.org>
26767
26768         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
26769         * lib/accept.c: New file, based on winsock.c.
26770         * lib/bind.c: New file, based on winsock.c.
26771         * lib/connect.c: New file, based on winsock.c.
26772         * lib/getpeername.c: New file, based on winsock.c.
26773         * lib/getsockname.c: New file, based on winsock.c.
26774         * lib/getsockopt.c: New file, based on winsock.c.
26775         * lib/ioctl.c: New file, based on winsock.c.
26776         * lib/listen.c: New file, based on winsock.c.
26777         * lib/recv.c: New file, based on winsock.c.
26778         * lib/recvfrom.c: New file, based on winsock.c.
26779         * lib/send.c: New file, based on winsock.c.
26780         * lib/sendto.c: New file, based on winsock.c.
26781         * lib/setsockopt.c: New file, based on winsock.c.
26782         * lib/shutdown.c: New file, based on winsock.c.
26783         * lib/socket.c: New file, based on winsock.c.
26784         * lib/w32sock.h: New file, based on winsock.c.
26785         * lib/winsock.c: Remove file.
26786         * modules/accept: Likewise.
26787         * modules/bind: Likewise.
26788         * modules/connect: Likewise.
26789         * modules/getpeername: Likewise.
26790         * modules/getsockname: Likewise.
26791         * modules/getsockopt: Likewise.
26792         * modules/ioctl: Likewise.
26793         * modules/listen: Likewise.
26794         * modules/recv: Likewise.
26795         * modules/recvfrom: Likewise.
26796         * modules/send: Likewise.
26797         * modules/sendto: Likewise.
26798         * modules/setsockopt: Likewise.
26799         * modules/shutdown: Likewise.
26800         * modules/socket: Use socket.c instead of winsock.c.
26801         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
26802         * doc/posix-functions/accept.texi: Doc fix.
26803         * doc/posix-functions/bind.texi: Doc fix.
26804         * doc/posix-functions/close.texi: Doc fix.
26805         * doc/posix-functions/connect.texi: Doc fix.
26806         * doc/posix-functions/getpeername.texi: Doc fix.
26807         * doc/posix-functions/getsockname.texi: Doc fix.
26808         * doc/posix-functions/getsockopt.texi: Doc fix.
26809         * doc/posix-functions/ioctl.texi: Doc fix.
26810         * doc/posix-functions/listen.texi: Doc fix.
26811         * doc/posix-functions/recv.texi: Doc fix.
26812         * doc/posix-functions/recvfrom.texi: Doc fix.
26813         * doc/posix-functions/send.texi: Doc fix.
26814         * doc/posix-functions/sendto.texi: Doc fix.
26815         * doc/posix-functions/setsockopt.texi: Doc fix.
26816         * doc/posix-functions/shutdown.texi: Doc fix.
26817         * doc/posix-functions/socket.texi: Doc fix.
26818
26819 2008-10-20  Bruno Haible  <bruno@clisp.org>
26820
26821         Take into account the role of SIGABRT_COMPAT on Windows 2008.
26822         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
26823         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
26824         as an alias for SIGABRT.
26825         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
26826         (sigaction): Map it to SIGABRT.
26827         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
26828
26829 2008-10-20  Bruno Haible  <bruno@clisp.org>
26830
26831         * lib/fts.c: Don't include lstat.h.
26832         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
26833
26834         Move the lstat() declaration to <sys/stat.h>.
26835         * lib/lstat.h: Remove file.
26836         * lib/sys_stat.in.h: Add special invocation convention.
26837         (lstat): New declaration.
26838         * lib/lstat.c (orig_lstat): New function.
26839         (rpl_lstat): Use orig_lstat instead of lstat.
26840         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
26841         AC_C_INLINE. Set REPLACE_LSTAT.
26842         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
26843         and REPLACE_LSTAT.
26844         * modules/lstat (Files): Remove lib/lstat.h.
26845         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26846         (Include): Specify <sys/stat.h> instead of lstat.h.
26847         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
26848         REPLACE_LSTAT.
26849         * NEWS: Mention the change.
26850
26851 2008-10-20  Bruno Haible  <bruno@clisp.org>
26852
26853         * modules/posix_spawn-tests: New file.
26854         * tests/test-posix_spawn3.c: New file.
26855
26856 2008-10-20  Bruno Haible  <bruno@clisp.org>
26857
26858         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
26859         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26860         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
26861         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26862         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
26863
26864 2008-10-20  Bruno Haible  <bruno@clisp.org>
26865
26866         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
26867         of posix_spawn on AIX 5.3.
26868
26869 2008-10-20  Bruno Haible  <bruno@clisp.org>
26870
26871         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
26872
26873 2008-10-20  Bruno Haible  <bruno@clisp.org>
26874
26875         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
26876         of AC_LANG_PROGRAM.
26877
26878 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26879
26880         * lib/netdb.in.h: Don't define GNU specific constants until they
26881         are supported or needed.  Reported by Bruno Haible
26882         <bruno@clisp.org>.
26883
26884 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26885
26886         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
26887
26888 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26889
26890         * lib/getaddrinfo.h: Remove file.
26891         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
26892         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
26893         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
26894         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
26895         * modules/netdb: Substitute GNULIB_GETADDRINFO.
26896         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
26897         * tests/test-getaddrinfo.c: Likewise.
26898         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
26899         * NEWS: Mention change.
26900
26901 2008-10-19  Bruno Haible  <bruno@clisp.org>
26902
26903         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
26904
26905 2008-10-19  Bruno Haible  <bruno@clisp.org>
26906
26907         * lib/wait-process.c: Include simply <sys/wait.h>.
26908         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
26909         WIFSTOPPED): Remove fallback definitions.
26910         * modules/wait-process (Depends-on): Add sys_wait.
26911
26912         New module 'sys_wait'.
26913         * modules/sys_wait: New file.
26914         * lib/sys_wait.in.h: New file, partially copied from
26915         lib/wait-process.c.
26916         * m4/sys_wait_h.m4: New file.
26917         * doc/posix-headers/sys_wait.texi: Mention the new module.
26918
26919 2008-10-19  Bruno Haible  <bruno@clisp.org>
26920
26921         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
26922
26923 2008-10-19  Bruno Haible  <bruno@clisp.org>
26924
26925         Assume that waitpid() fills an 'int' status, not a 'union wait'.
26926         * lib/wait-process.c (WAIT_T): Remove type.
26927         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
26928         (wait_subprocess): Update.
26929
26930 2008-10-19  Bruno Haible  <bruno@clisp.org>
26931
26932         New module 'atoll'.
26933         * modules/atoll: New file.
26934         * lib/stdlib.in.h (atoll): New declaration.
26935         * lib/atoll.c: New file, from glibc with modifications.
26936         * m4/atoll.m4: New file.
26937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
26938         HAVE_ATOLL.
26939         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
26940         * doc/posix-functions/atoll.texi: Mention the new module.
26941
26942 2008-10-19  Bruno Haible  <bruno@clisp.org>
26943
26944         Add strtoull() declaration to <stdlib.h>.
26945         * lib/stdlib.in.h (strtoull): New declaration.
26946         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26947         Set HAVE_STRTOULL.
26948         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
26949         HAVE_STRTOULL.
26950         * modules/strtoull (Depends-on): Add stdlib.
26951         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26952         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
26953         HAVE_STRTOULL.
26954
26955 2008-10-19  Bruno Haible  <bruno@clisp.org>
26956
26957         Add strtoll() declaration to <stdlib.h>.
26958         * lib/stdlib.in.h (strtoll): New declaration.
26959         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26960         Set HAVE_STRTOLL.
26961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
26962         HAVE_STRTOLL.
26963         * modules/strtoll (Depends-on): Add stdlib.
26964         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26965         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
26966
26967 2008-10-19  Bruno Haible  <bruno@clisp.org>
26968
26969         * modules/bcopy (Depends-on): Add strings.
26970         (Include): Specify <strings.h>.
26971
26972 2008-10-19  Bruno Haible  <bruno@clisp.org>
26973
26974         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
26975
26976 2008-10-19  Bruno Haible  <bruno@clisp.org>
26977
26978         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
26979         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
26980         mingw.
26981
26982 2008-10-19  Bruno Haible  <bruno@clisp.org>
26983
26984         * lib/atanl.c: Don't include isnanl.h.
26985         * lib/cosl.c: Likewise.
26986         * lib/ldexpl.c: Likewise.
26987         * lib/logl.c: Likewise.
26988         * lib/sinl.c: Likewise.
26989         * lib/sqrtl.c: Likewise.
26990         * lib/tanl.c: Likewise.
26991
26992         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
26993         * lib/isnanf.h: Remove file.
26994         * lib/isnand.h: Remove file.
26995         * lib/isnanl.h: Remove file.
26996         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
26997         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
26998         macros.
26999         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
27000         HAVE_ISNANF, don't define it as a C macro.
27001         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
27002         HAVE_ISNAND, don't define it as a C macro.
27003         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
27004         HAVE_ISNANL, don't define it as a C macro.
27005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
27006         HAVE_ISNAN[FDL].
27007         * modules/isnanf (Files): Remove lib/isnanf.h.
27008         (Depends-on): Add math.
27009         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27010         (Include): Specify <math.h> instead of isnanf.h.
27011         * modules/isnand (Files): Remove lib/isnand.h.
27012         (Depends-on): Add math.
27013         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27014         (Include): Specify <math.h> instead of isnand.h.
27015         * modules/isnanl (Files): Remove lib/isnanl.h.
27016         (Depends-on): Add math.
27017         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27018         (Include): Specify <math.h> instead of isnanl.h.
27019         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
27020         HAVE_ISNAN[FDL].
27021         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
27022         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
27023         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
27024         * NEWS: Mention the change.
27025
27026 2008-10-18  Bruno Haible  <bruno@clisp.org>
27027
27028         Add getusershell(), setusershell(), endusershell() declarations to
27029         <unistd.h>.
27030         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
27031         declarations.
27032         * lib/getusershell.c: Include unistd.h.
27033         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
27034         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
27035         HAVE_GETUSERSHELL.
27036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
27037         and HAVE_GETUSERSHELL.
27038         * modules/getusershell (Depends-on): Add unistd, extensions.
27039         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27040         (Include): Specify <unistd.h>.
27041         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
27042         HAVE_GETUSERSHELL.
27043
27044 2008-10-18  Bruno Haible  <bruno@clisp.org>
27045
27046         Add a getloadavg() declaration to <stdlib.h>.
27047         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
27048         getloadavg declaration.
27049         (getloadavg): New declaration.
27050         * lib/getloadavg.c: Include <stdlib.h> first.
27051         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
27052         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
27053         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
27054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
27055         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
27056         * modules/getloadavg (Depends-on): Add stdlib, extensions.
27057         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27058         (Include): Specify <stdlib.h>.
27059         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
27060         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
27061
27062 2008-10-18  Bruno Haible  <bruno@clisp.org>
27063
27064         * lib/dirchownmod.c: Don't include lchmod.h.
27065
27066         Move the lchmod() declaration to <sys/stat.h>.
27067         * lib/lchmod.h: Remove file.
27068         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
27069         (lchmod): New declaration, moved here from lib/lchown.h.
27070         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
27071         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
27072         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
27073         and HAVE_LCHMOD.
27074         * modules/lchmod (Files): Remove lib/lchmod.h.
27075         (Depends-on): Add sys_stat, extensions.
27076         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
27077         (Include): Specify <sys/stat.h> instead of lchmod.h.
27078         * modules/sys_stat (Depends-on): Add link-warning.
27079         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
27080         definition of GL_LINK_WARNING.
27081         * NEWS: Mention the change.
27082
27083 2008-10-18  Bruno Haible  <bruno@clisp.org>
27084
27085         * lib/fchdir.c: Don't include dirfd.h.
27086         * lib/fts.c: Likewise.
27087         * lib/getcwd.c: Likewise.
27088         * lib/glob.c: Likewise.
27089
27090         Move the dirfd() declaration to <dirent.h>.
27091         * lib/dirfd.h: Remove file.
27092         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
27093         (dirfd): New declaration.
27094         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
27095         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
27096         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
27097         HAVE_DECL_DIRFD.
27098         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
27099         HAVE_DECL_DIRFD.
27100         * modules/dirfd (Files): Remove lib/dirfd.h.
27101         (Depends-on): Add dirent, extensions.
27102         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
27103         (Include): Specify <dirent.h> instead of dirfd.h.
27104         * modules/dirent (Depends-on): Add link-warning.
27105         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
27106         definition of GL_LINK_WARNING.
27107         * NEWS: Mention the change.
27108
27109 2008-10-18  Bruno Haible  <bruno@clisp.org>
27110
27111         Move the euidaccess() declaration to <unistd.h>.
27112         * lib/euidaccess.h: Remove file.
27113         * lib/unistd.in.h (euidaccess): New declaration.
27114         * lib/euidaccess.c: Don't include euidaccess.h.
27115         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
27116         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
27117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
27118         and HAVE_EUIDACCESS.
27119         * modules/euidaccess (Files): Remove lib/euidaccess.h.
27120         (Depends-on): Add unistd.
27121         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27122         (Include): Specify <unistd.h> instead of euidaccess.h.
27123         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
27124         HAVE_EUIDACCESS.
27125         * NEWS: Mention the change.
27126
27127 2008-10-18  Bruno Haible  <bruno@clisp.org>
27128
27129         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
27130
27131         Move the getdomainname() declaration to <unistd.h>.
27132         * lib/getdomainname.h: Remove file.
27133         * lib/unistd.in.h (getdomainname): New declaration.
27134         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
27135         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27136         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
27137         HAVE_GETDOMAINNAME.
27138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27139         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
27140         * modules/getdomainname (Files): Remove lib/getdomainname.h.
27141         (Depends-on): Add unistd, extensions.
27142         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27143         (Includes): Specify <unistd.h> instead of getdomainname.h.
27144         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
27145         HAVE_GETDOMAINNAME.
27146         * NEWS: Mention the change.
27147
27148 2008-10-18  Bruno Haible  <bruno@clisp.org>
27149
27150         * modules/dirent: New file.
27151         * m4/dirent_h.m4: New file.
27152         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
27153         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
27154         * modules/fchdir (Files): Remove lib/dirent.in.h.
27155         (Depends-on): Add dirent.
27156         (Makefile.am): Move rules to modules/dirent.
27157         * doc/posix-headers/dirent.texi: Mention the new module.
27158
27159 2008-10-18  Bruno Haible  <bruno@clisp.org>
27160
27161         Avoid -Wunused-parameter warnings in public gnulib header files.
27162         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
27163         macro.
27164         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
27165
27166 2008-10-18  Bruno Haible  <bruno@clisp.org>
27167
27168         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
27169         * doc/glibc-functions/error.texi: Mention the module 'error'.
27170         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
27171         * doc/glibc-functions/getdomainname.texi: Mention the module
27172         'getdomainname'.
27173         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
27174         * doc/glibc-functions/getpagesize.texi: Mention the module
27175         'getpagesize'.
27176         * doc/glibc-functions/getusershell.texi: Mention the module
27177         'getusershell'.
27178         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
27179         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
27180         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
27181         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
27182         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
27183         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
27184         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
27185         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
27186         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
27187         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
27188         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
27189         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
27190         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
27191         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
27192
27193 2008-10-17  Bruno Haible  <bruno@clisp.org>
27194
27195         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
27196         HP-UX and IRIX, use -0.0L.
27197         * tests/test-ceill.c (minus_zero): Likewise.
27198         * tests/test-floorl.c (minus_zero): Likewise.
27199         * tests/test-frexpl.c (minus_zero): Likewise.
27200         * tests/test-isnan.c (minus_zerol): Likewise.
27201         * tests/test-isnanl.h (minus_zero): Likewise.
27202         * tests/test-ldexpl.c (minus_zero): Likewise.
27203         * tests/test-roundl.c (minus_zero): Likewise.
27204         * tests/test-signbit.c (minus_zerol): Likewise.
27205         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27206         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27207         * tests/test-truncl.c (minus_zero): Likewise.
27208         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27209         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27210         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
27211         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27212
27213 2008-10-17  Bruno Haible  <bruno@clisp.org>
27214
27215         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
27216         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
27217         that it gets activated only for gcc >= 3.0.
27218         * lib/dirent.in.h: Likewise.
27219         * lib/errno.in.h: Likewise.
27220         * lib/fcntl.in.h: Likewise.
27221         * lib/float.in.h: Likewise.
27222         * lib/iconv.in.h: Likewise.
27223         * lib/inttypes.in.h: Likewise.
27224         * lib/locale.in.h: Likewise.
27225         * lib/math.in.h: Likewise.
27226         * lib/netdb.in.h: Likewise.
27227         * lib/netinet_in.in.h: Likewise.
27228         * lib/search.in.h: Likewise.
27229         * lib/signal.in.h: Likewise.
27230         * lib/spawn.in.h: Likewise.
27231         * lib/stdarg.in.h: Likewise.
27232         * lib/stdint.in.h: Likewise.
27233         * lib/stdio.in.h: Likewise.
27234         * lib/stdlib.in.h: Likewise.
27235         * lib/string.in.h: Likewise.
27236         * lib/strings.in.h: Likewise.
27237         * lib/sys_file.in.h: Likewise.
27238         * lib/sys_ioctl.in.h: Likewise.
27239         * lib/sys_select.in.h: Likewise.
27240         * lib/sys_socket.in.h: Likewise.
27241         * lib/sys_stat.in.h: Likewise.
27242         * lib/sys_time.in.h: Likewise.
27243         * lib/sysexits.in.h: Likewise.
27244         * lib/time.in.h: Likewise.
27245         * lib/unistd.in.h: Likewise.
27246         * lib/wchar.in.h: Likewise.
27247         * lib/wctype.in.h: Likewise.
27248         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27249
27250 2008-10-17  Jim Meyering  <meyering@redhat.com>
27251
27252         ignore-value: don't depend on inline module
27253         * modules/ignore-value (Depends-on): Remove 'inline'.
27254         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
27255         Suggestion from Bruno Haible.
27256
27257 2008-10-17  Bruno Haible  <bruno@clisp.org>
27258
27259         New implementation of condition variables for Win32.
27260         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
27261         (gl_linked_waitqueue_t): New type.
27262         (gl_cond_t): Use it.
27263         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
27264         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
27265         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
27266         (glthread_cond_init_func, glthread_cond_wait_func,
27267         glthread_cond_timedwait_func, glthread_cond_signal_func,
27268         glthread_cond_broadcast_func, glthread_cond_destroy_func):
27269         Reimplemented on the basis of gl_linked_waitqueue_t.
27270         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
27271         gl_waitqueue_t.
27272         (gl_rwlock_t): Update.
27273         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
27274
27275 2008-10-17  Simon Josefsson  <simon@josefsson.org>
27276
27277         * modules/recvfrom (Depends-on): Add dependency on getpeername.
27278         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27279
27280 2008-10-17  Jim Meyering  <meyering@redhat.com>
27281
27282         ignore-value: new module
27283         * modules/ignore-value: New file.
27284         * lib/ignore-value.h: New file.
27285         * MODULES.html.sh (Compiler warning management): New section,
27286         just for this module.  More to come.
27287
27288 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27289
27290         open-safer.c: avoid 'signed and unsigned in conditional...' warning
27291         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
27292         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
27293
27294 2008-10-16  Jim Meyering  <meyering@redhat.com>
27295
27296         openat-die.c: avoid 'no previous prototype' warning
27297         * lib/openat-die.c: Include "openat.h".
27298         Reported by Reuben Thomas <rrt@sc3d.org>.
27299
27300 2008-10-16  Simon Josefsson  <simon@josefsson.org>
27301
27302         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
27303         * lib/netdb.in.h: Fix typo.
27304         Reported by Bruno Haible  <bruno@clisp.org>
27305
27306         * lib/netdb.in.h: Include sys/socket.h for platforms without
27307         netdb.h, to get structures like hostent on MinGW.
27308         * modules/netdb (Depends-on): Add sys_socket.
27309
27310 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27311
27312         * modules/netdb, modules/netdb-tests: New file.
27313         * m4/netdb_h.m4: New file.
27314         * lib/netdb.in.h: Add, currently just an empty file pending
27315         definitions.
27316         * tests/test-netdb.c: New file.
27317         * doc/posix-headers/netdb.texi: Mention that we replace it if
27318         needed.
27319         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27320         netdb.
27321
27322 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27323
27324         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
27325         with code.
27326
27327 2008-10-13  Bruno Haible  <bruno@clisp.org>
27328
27329         * lib/glthread/cond.c (glthread_cond_wait_func,
27330         glthread_cond_timedwait_func): Add a comment.
27331
27332 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27333
27334         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
27335         * tests/test-select.c: Likewise,
27336
27337 2008-10-13  Bruno Haible  <bruno@clisp.org>
27338
27339         * lib/glthread/cond.c (glthread_cond_wait_func,
27340         glthread_cond_timedwait_func): Fix variable name.
27341         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27342
27343 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
27344
27345         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
27346         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
27347         struct sockaddr.sa_len.
27348         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
27349
27350 2008-10-13  Simon Josefsson  <simon@josefsson.org>
27351
27352         * build-aux/pmccabe2html: Add css and css_url parameters.
27353
27354 2008-10-12  Bruno Haible  <bruno@clisp.org>
27355
27356         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
27357         calling aclx_get.
27358         Reported by Rainer Tammer <tammer@tammer.net>.
27359
27360 2008-10-12  Bruno Haible  <bruno@clisp.org>
27361
27362         Use msvcrt aware primitives for creation/termination of Win32 threads.
27363         * lib/glthread/thread.c: Include <process.h>.
27364         (glthread_create_func): Use _beginthreadex instead of CreateThread.
27365         (wrapper_func): Update signature.
27366         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
27367
27368 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27369             Bruno Haible  <bruno@clisp.org>
27370
27371         Provide a Win32 implementation of the 'cond' module.
27372         * lib/glthread/cond.h [USE_WIN32]: New implementation.
27373         * lib/glthread/cond.c (glthread_cond_init_func,
27374         glthread_cond_wait_func, glthread_cond_timedwait_func,
27375         glthread_cond_signal_func, glthread_cond_broadcast_func,
27376         glthread_cond_destroy_func) [USE_WIN32]: New functions.
27377         * modules/cond (Dependencies): Add gettimeofday.
27378
27379 2008-10-11  Bruno Haible  <bruno@clisp.org>
27380
27381         Make sleep work on older versions of mingw.
27382         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
27383         only whether it exists.
27384         * doc/posix-functions/sleep.texi: Mention the problem with older
27385         versions of mingw.
27386
27387 2008-10-11  Bruno Haible  <bruno@clisp.org>
27388
27389         New module 'shutdown'.
27390         * modules/shutdown: New file.
27391         * lib/sys_socket.in.h (shutdown): New declaration.
27392         * lib/winsock.c (shutdown): New function.
27393         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27394         GNULIB_SHUTDOWN.
27395         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
27396         * doc/posix-functions/shutdown.texi: Document the new module.
27397
27398 2008-10-11  Jim Meyering  <meyering@redhat.com>
27399
27400         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
27401
27402 2008-10-11  Bruno Haible  <bruno@clisp.org>
27403
27404         New module 'fclose'.
27405         * modules/fclose: New file.
27406         * lib/stdio.in.h (fclose): New declaration.
27407         * lib/fclose.c: New file.
27408         * m4/fclose.m4: New file.
27409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
27410         REPLACE_FCLOSE.
27411         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
27412         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
27413         REPLACE_FCLOSE.
27414         * modules/close (Depends-on): fclose.
27415         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
27416
27417 2008-10-11  Bruno Haible  <bruno@clisp.org>
27418
27419         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
27420         set errno and don't call _close.
27421
27422 2008-10-10  Bruno Haible  <bruno@clisp.org>
27423
27424         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
27425         ACL, not afterwards. Fixes test failure on Cygwin.
27426
27427 2008-10-09  Ben Pfaff  <blp@gnu.org>
27428
27429         * build-aux/announce-gen: Fix gnulib version related part of usage
27430         message.  Die with a useful error message if no tarballs are
27431         found.
27432
27433 2008-10-10  Jim Meyering  <meyering@redhat.com>
27434
27435         bootstrap: use git's --depth=N option only if it's supported
27436         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
27437         recognize the --depth option.  Reported by Pádraig Brady.
27438
27439 2008-10-09  Bruno Haible  <bruno@clisp.org>
27440
27441         New module 'ioctl'.
27442         * modules/ioctl: New file.
27443         * lib/sys_socket.in.h (ioctl): Remove declaration.
27444         * lib/winsock.c: Include <sys/ioctl.h>.
27445         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
27446         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27447         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
27448         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
27449         * doc/posix-functions/ioctl.texi: Mention the new module.
27450
27451 2008-10-09  Bruno Haible  <bruno@clisp.org>
27452
27453         New module 'sys_ioctl'.
27454         * lib/sys_ioctl.in.h: New file.
27455         * m4/sys_ioctl_h.m4: New file.
27456         * modules/sys_ioctl: New file.
27457         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
27458
27459 2008-10-09  Bruno Haible  <bruno@clisp.org>
27460
27461         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
27462         * lib/winsock.c: Include <stdarg.h>.
27463         (rpl_ioctl): Change to second argument 'int' and then varargs.
27464
27465 2008-10-09  Bruno Haible  <bruno@clisp.org>
27466
27467         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
27468         when the sys_socket module is present and the system has <winsock2.h>.
27469
27470 2008-10-09  Bruno Haible  <bruno@clisp.org>
27471
27472         * doc/posix-functions/close.texi: Mention module 'close' instead of
27473         module 'sys_socket'.
27474
27475 2008-10-09  Bruno Haible  <bruno@clisp.org>
27476
27477         * doc/glibc-headers/sys_ioctl.texi: New file.
27478         * doc/gnulib.texi: Include it.
27479
27480 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27481             Bruno Haible  <bruno@clisp.org>
27482
27483         Combine the two replacements of 'close'.
27484         * lib/sys_socket.in.h (close): Define to a reminder to include
27485         <unistd.h>.
27486         (_gl_close_fd_maybe_socket): New declaration.
27487         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
27488         * lib/winsock.c (close): Remove undefinition.
27489         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
27490         needed for the gnulib module 'close'.
27491         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
27492         define to an error symbol or to a warning, if suitable.
27493         * lib/close.c: Include <sys/socket.h>.
27494         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
27495         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
27496         UNISTD_H_HAVE_WINSOCK2_H.
27497         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
27498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27499         UNISTD_H_HAVE_WINSOCK2_H.
27500         * modules/sys_socket (Files): Add m4/unistd_h.m4.
27501         (configure.ac): Set a module indicator.
27502         (Makefile.am): Substitute GNULIB_CLOSE.
27503         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
27504         * modules/poll-tests (Depends-on): Add close.
27505         * modules/select-tests (Depends-on): Likewise.
27506
27507 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27508             Bruno Haible  <bruno@clisp.org>
27509
27510         New module 'close'.
27511         * modules/close: New file.
27512         * lib/unistd.in.h (close): Move declaration out of the
27513         FCHDIR_REPLACEMENT scope.
27514         (_gl_unregister_fd): New declaration.
27515         * lib/close.c: New file.
27516         * lib/fchdir.c (rpl_close): Remove function.
27517         * m4/close.m4: New file.
27518         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27519         close.
27520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
27521         REPLACE_CLOSE.
27522         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
27523         REPLACE_CLOSE.
27524         * modules/fchdir (Depends-on): Add close.
27525
27526 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27527             Bruno Haible  <bruno@clisp.org>
27528
27529         * lib/fcntl.in.h (open): Simplify conditionals.
27530         (_gl_register_fd): New declaration.
27531         * lib/fchdir.c (rpl_open): Remove function.
27532         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
27533         also.
27534         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
27535         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27536         open.
27537
27538 2008-10-09  Jim Meyering  <meyering@redhat.com>
27539
27540         GNUmakefile: use the more name-space-friendly "_version"
27541         * top/GNUmakefile (_dummy): Update.
27542         (_version): Rename from "version".
27543
27544 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27545             Bruno Haible  <bruno@clisp.org>
27546
27547         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
27548         rpl_close.
27549         (_gl_register_fd): New function, extracted from rpl_open.
27550         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
27551         (rpl_open, rpl_opendir): Use _gl_register_fd.
27552
27553 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27554
27555         Fix organization of 'open' replacement.
27556         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
27557         (gl_FUNC_OPEN): Use it.
27558         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
27559
27560 2008-10-08  Bruno Haible  <bruno@clisp.org>
27561
27562         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
27563
27564 2008-10-08  Simon Josefsson  <simon@josefsson.org>
27565
27566         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
27567         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
27568         listen).
27569
27570 2008-10-08  Eric Blake  <ebb9@byu.net>
27571
27572         GNUmakefile: add 'make version' target
27573         * top/GNUmakefile (_curr-ver): Split version update rules...
27574         (version): ...into a target.
27575
27576 2008-10-07  Bruno Haible  <bruno@clisp.org>
27577
27578         Use a more portable replacement expression for -0.0L.
27579         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
27580         instead of -0.0L. Fix m4 quotation.
27581
27582         * tests/test-signbit.c: Include <float.h>.
27583         (minus_zero): New variable.
27584         (test_signbitl): Use minus_zero instead of -zero.
27585         * modules/signbit-tests (Depends-on): Add float.
27586
27587         * tests/test-ceill.c: Include <float.h>.
27588         (zero): Remove variable.
27589         (minus_zero): New variable.
27590         (main): Use minus_zero instead of -zero.
27591         * modules/ceill-tests (Depends-on): Add float.
27592
27593         * tests/test-floorl.c: Include <float.h>.
27594         (zero): Remove variable.
27595         (minus_zero): New variable.
27596         (main): Use minus_zero instead of -zero.
27597         * modules/floorl-tests (Depends-on): Add float.
27598
27599         * tests/test-roundl.c: Include <float.h>.
27600         (zero): Remove variable.
27601         (minus_zero): New variable.
27602         (main): Use minus_zero instead of -zero.
27603         * modules/roundl-tests (Depends-on): Add float.
27604
27605         * tests/test-truncl.c: Include <float.h>.
27606         (zero): Remove variable.
27607         (minus_zero): New variable.
27608         (main): Use minus_zero instead of -zero.
27609         * modules/truncl-tests (Depends-on): Add float.
27610
27611         * tests/test-frexpl.c (zero): Remove variable.
27612         (minus_zero): New variable.
27613         (main): Use minus_zero instead of -zero.
27614         * modules/frexpl-tests (Depends-on): Add float.
27615
27616         * tests/test-isnan.c (zerol): Remove variable.
27617         (minus_zerol): New variable.
27618         (test_long_double): Use minus_zerol instead of -zerol.
27619         * modules/isnan-tests (Depends-on): Add float.
27620
27621         * tests/test-isnanl.h (zero): Remove variable.
27622         (minus_zero): New variable.
27623         (main): Use minus_zero instead of -zero.
27624         * modules/isnanl-nolibm-tests (Depends-on): Add float.
27625         * modules/isnanl-tests (Depends-on): Add float.
27626
27627         * tests/test-ldexpl.c (zero): Remove variable.
27628         (minus_zero): New variable.
27629         (main): Use minus_zero instead of -zero.
27630         * modules/ldexpl-tests (Depends-on): Add float.
27631
27632         * tests/test-snprintf-posix.h (zerol): Remove variable.
27633         (minus_zerol): New variable.
27634         (test_function): Use minus_zerol instead of -zerol.
27635         * modules/snprintf-posix-tests (Depends-on): Add float.
27636         * modules/vsnprintf-posix-tests (Depends-on): Add float.
27637
27638         * tests/test-sprintf-posix.h (zerol): Remove variable.
27639         (minus_zerol): New variable.
27640         (test_function): Use minus_zerol instead of -zerol.
27641         * modules/sprintf-posix-tests (Depends-on): Add float.
27642         * modules/vsprintf-posix-tests (Depends-on): Add float.
27643
27644         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
27645         (minus_zerol): New variable.
27646         (test_function): Use minus_zerol instead of -zerol.
27647         * modules/vasnprintf-posix-tests (Depends-on): Add float.
27648
27649         * tests/test-vasprintf-posix.c (zerol): Remove variable.
27650         (minus_zerol): New variable.
27651         (test_function): Use minus_zerol instead of -zerol.
27652         * modules/vasprintf-posix-tests (Depends-on): Add float.
27653
27654 2008-10-07  Simon Josefsson  <simon@josefsson.org>
27655
27656         * MODULES.html.sh (Support for building documentation): Mention
27657         pmccabe2html.  Sort entries.
27658
27659         Add pmccabe2html module, from gnupdf.
27660         * build-aux/pmccabe.css: New file.
27661         * build-aux/pmccabe2html: New file.
27662         * m4/pmccabe2html.m4: New file.
27663         * modules/pmccabe2html: New file.
27664
27665 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
27666
27667         flock: new module
27668         * MODULES.html.sh: Add to list of modules.
27669         * lib/flock.c: flock implementation for Windows and Unix systems
27670         which have fcntl.
27671         * doc/glibc-functions/flock.texi: Update documentation.
27672         * lib/sys_file.in.h: <sys/file.h> header file.
27673         * m4/flock.m4: M4 macros.
27674         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
27675         * modules/flock: flock module.
27676         * modules/flock-tests: flock tests module.
27677         * modules/sys_file: sys/file.h module.
27678         * tests/test-flock.c: test suite for flock.
27679
27680 2008-10-06  Jim Meyering  <meyering@redhat.com>
27681
27682         bootstrap: check for LT_INIT more portably still ;-)
27683         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
27684         Spotted by Bruno Haible.
27685
27686 2008-10-06  Eric Blake  <ebb9@byu.net>
27687
27688         test-signbit: avoid tripping Irix cc bug on -0.0L
27689         * tests/test-signbit.c (minus_zerol): Delete, and replace with
27690         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
27691         entire testsuite consistent and avoids an Irix 6.2 bug.
27692
27693 2008-10-05  Bruno Haible  <bruno@clisp.org>
27694             Jim Meyering  <jim@meyering.net>
27695
27696         Add an option for ignoring EPIPE during close_stdout.
27697         * lib/closeout.h: Include <stdbool.h>.
27698         (close_stdout_set_ignore_EPIPE): New declaration.
27699         * lib/closeout.c: Include <stdbool.h>.
27700         (ignore_EPIPE): New variable.
27701         (close_stdout_set_ignore_EPIPE): New function.
27702         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
27703         * lib/close-stream.c (close_stream): Mention the possible EPIPE
27704         failure.
27705         * modules/closeout (Depends-on): Add stdbool.
27706
27707 2008-10-05  Bruno Haible  <bruno@clisp.org>
27708
27709         * modules/accept: New file.
27710         * modules/bind: New file.
27711         * modules/connect: New file.
27712         * modules/getpeername: New file.
27713         * modules/getsockname: New file.
27714         * modules/getsockopt: New file.
27715         * modules/listen: New file.
27716         * modules/recv: New file.
27717         * modules/recvfrom: New file.
27718         * modules/send: New file.
27719         * modules/sendto: New file.
27720         * modules/setsockopt: New file.
27721         * modules/socket: New file.
27722         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
27723         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27724         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
27725         the particular module is requested. Add a link warning when the
27726         particular module is not requested.
27727         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
27728         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
27729         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
27730         the particular module is requested.
27731         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
27732         gl_SYS_SOCKET_H_DEFAULTS): New macros.
27733         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
27734         * modules/sys_socket (Depends-on): Add link-warning.
27735         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
27736         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
27737         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
27738         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
27739         GL_LINK_WARNING.
27740         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
27741         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
27742         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
27743         * doc/posix-functions/getpeername.texi: Mention the new module
27744         'getpeername'.
27745         * doc/posix-functions/getsockname.texi: Mention the new module
27746         'getsockname'.
27747         * doc/posix-functions/getsockopt.texi: Mention the new module
27748         'getsockopt'.
27749         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
27750         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
27751         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
27752         * doc/posix-functions/send.texi: Mention the new module 'send'.
27753         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
27754         * doc/posix-functions/setsockopt.texi: Mention the new module
27755         'setsockopt'.
27756         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
27757         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
27758         listen, connect, accept.
27759         * modules/select-tests (Depends-on): Likewise.
27760
27761 2008-10-05  Bruno Haible  <bruno@clisp.org>
27762
27763         * lib/winsock.c (strerror): Remove unused #undef.
27764         (rpl_close): Remove unused local variable.
27765
27766         * modules/sys_socket (Depends-on); Add errno.
27767
27768 2008-10-05  Bruno Haible  <bruno@clisp.org>
27769
27770         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
27771         (select): Add a link warning when the 'select' module is not used.
27772         * modules/sys_select (Depends-on): Add link-warning.
27773         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
27774         Suggested by Paolo Bonzini.
27775
27776 2008-10-05  Jim Meyering  <meyering@redhat.com>
27777
27778         bootstrap: check for LT_INIT more portably
27779         * build-aux/bootstrap: Avoid using grep -E, since it's not
27780         portable enough.  Suggestion from Bruno Haible.
27781
27782 2008-10-05  Bruno Haible  <bruno@clisp.org>
27783
27784         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
27785         as being fixed by gnulib.
27786
27787 2008-10-05  Bruno Haible  <bruno@clisp.org>
27788
27789         * modules/select-tests: New file, mostly copied from
27790         modules/sys_select-tests.
27791         * tests/test-select.c: New file, mostly copied from
27792         tests/test-sys_select.c.
27793         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
27794         * modules/sys_select-tests (Depends-on): Remove all dependencies.
27795         (Makefile.am): Remove test_sys_select_LDADD.
27796
27797         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
27798         to an undefined symbol, for an error message.
27799         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
27800         (gl_SYS_SELECT_H_DEFAULTS): New macro.
27801         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
27802         winsock-select.c here.
27803         * modules/sys_select (Files): Remove lib/winsock-select.c.
27804         (Depends-on): Remove alloca.
27805         (Makefile.am): Substitute GNULIB_SELECT.
27806         * modules/select: New file.
27807         * doc/posix-functions/select.texi: Update.
27808
27809 2008-10-05  Bruno Haible  <bruno@clisp.org>
27810
27811         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
27812         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
27813         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
27814         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
27815         getdtablesize.
27816         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
27817         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
27818
27819 2008-10-05  Bruno Haible  <bruno@clisp.org>
27820
27821         * modules/getdtablesize-tests: New file.
27822         * tests/test-getdtablesize.c: New file.
27823
27824         New module 'getdtablesize'.
27825         * lib/unistd.in.h (getdtablesize): New declaration.
27826         * lib/getdtablesize.c: New file.
27827         * m4/getdtablesize.m4: New file.
27828         * modules/getdtablesize: New file.
27829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27830         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
27831         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
27832         HAVE_GETDTABLESIZE.
27833         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
27834
27835 2008-10-05  Bruno Haible  <bruno@clisp.org>
27836
27837         * modules/sched (Makefile.am): Fix typo.
27838         Reported by Simon Josefsson.
27839
27840 2008-10-05  Jim Meyering  <meyering@redhat.com>
27841
27842         bootstrap: check for LT_INIT, too
27843         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
27844         are deprecated.  Suggestion from Ralf Wildenhues.
27845
27846 2008-10-05  Bruno Haible  <bruno@clisp.org>
27847
27848         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
27849         overriding them by ours.
27850         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
27851
27852 2008-10-05  Jim Meyering  <meyering@redhat.com>
27853
27854         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
27855         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
27856         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
27857
27858 2008-10-04  Bruno Haible  <bruno@clisp.org>
27859
27860         * modules/dup2 (License): Change to LGPLv2+.
27861         * modules/sleep (License): Likewise.
27862         * modules/perror (License): Likewise.
27863         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
27864         Blake.
27865         * modules/signal (License): Likewise.
27866         * modules/sigprocmask (License): Likewise.
27867         * modules/raise (License): Change to LGPLv2+, with approval by Jim
27868         Meyering.
27869
27870 2008-10-04  Bruno Haible  <bruno@clisp.org>
27871
27872         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
27873         Reported by Rainer Tammer <tammer@tammer.net>.
27874
27875 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
27876             Bruno Haible  <bruno@clisp.org>
27877
27878         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
27879         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
27880         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
27881
27882 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
27883
27884         filevercmp: new module
27885         * lib/filevercmp.h: New function filevercmp comparing version strings.
27886         * lib/filevercmp.c: Implementation of filevercmp function.
27887         * modules/filevercmp: Module metadata.
27888         * tests/test-filevercmp.c: Unit test for new module.
27889         * modules/filevercmp-tests: Unit test metadata.
27890         * MODULES.html.sh: Add filevercmp module.
27891
27892 2008-10-03  Bruno Haible  <bruno@clisp.org>
27893
27894         * lib/c-ctype.h: Add comment.
27895         Reported by Jim Meyering.
27896
27897 2008-10-02  Bruno Haible  <bruno@clisp.org>
27898
27899         * modules/posix_spawn-internal (Depends-on): Add 'open'.
27900
27901 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27902
27903         * build-aux/bootstrap: Allow renaming bootstrap, and change the
27904         name of bootstrap.conf accordingly.
27905
27906 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27907
27908         * build-aux/bootstrap: Install git-merge-changelog configuration
27909         items into .gitconfig if needed.
27910
27911 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27912
27913         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
27914         git repository, and initialize/update it accordingly.
27915
27916 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
27917
27918         * modules/fsync-tests: New file.
27919         * tests/test-fsync.c: New file.
27920
27921         New module 'fsync'.
27922         * lib/fsync.c: New file.
27923         * m4/fsync.m4: New file.
27924         * modules/fsync: New file.
27925         * lib/unistd.in.h (fsync): New declaration.
27926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
27927         GNULIB_FSYNC and HAVE_FSYNC.
27928         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
27929         * MODULES.html.sh (posix_functions): Add fsync.
27930         * doc/posix-functions/fsync.texi: Mention the new module.
27931
27932 2008-10-02  Jim Meyering  <meyering@redhat.com>
27933
27934         fts.c: sync with similar code from coreutils' remove.c
27935         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
27936         Guard also with "#if defined __linux__", since for now at least,
27937         this code is Linux-kernel-specific.
27938
27939 2008-10-02  Jim Meyering  <meyering@redhat.com>
27940
27941         fts: bug fixes
27942         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
27943         Include <sys/vfs.h>, not <sys/statfs.h>.
27944
27945         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
27946         Include <sys/vfs.h>, not <sys/statfs.h>.
27947
27948 2008-10-01  Bruno Haible  <bruno@clisp.org>
27949
27950         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
27951         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
27952         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
27953         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
27954         * doc/posix-functions/posix_spawnp.texi: Likewise.
27955         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
27956         whether posix_spawn actually works.
27957         * m4/pipe.m4 (gl_PIPE): Likewise.
27958         * modules/execute (Files): Add m4/posix_spawn.m4.
27959         * modules/pipe (Files): Add m4/posix_spawn.m4.
27960         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
27961
27962 2008-10-01  Jim Meyering  <meyering@redhat.com>
27963
27964         remove trailing spaces
27965         * NEWS: Likewise.
27966         * lib/poll.c (poll): Likewise.
27967         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
27968         * lib/winsock.c (rpl_close): Likewise.
27969         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
27970         * modules/yield: Likewise.
27971         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
27972         * tests/test-sys_select.c (connect_to_socket): Likewise.
27973
27974         fts.c: adjust a new interface to be more generally useful
27975         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
27976         (fts_build): Adjust caller.
27977
27978 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27979
27980         * modules/cond-tests: New file.
27981         * tests/test-cond.c: New file.
27982
27983 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27984             Bruno Haible  <bruno@clisp.org>
27985
27986         * modules/cond (Dependencies): Add errno, time.
27987         * lib/glthread/cond.h: Include <time.h>.
27988         (gl_cond_define, gl_cond_define_initialized): Use the same definition
27989         across platforms.
27990
27991 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27992             Bruno Haible  <bruno@clisp.org>
27993
27994         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
27995
27996 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27997             Bruno Haible  <bruno@clisp.org>
27998
27999         * modules/tls-tests (Depends-on): Add thread, yield.
28000         (configure.ac): Remove all checks.
28001         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
28002         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
28003         gl_thread_self): Remove definitions. Include glthread/thread.h and
28004         glthread/yield.h instead.
28005         (test_tls): Pass an additional NULL argument to gl_thread_join.
28006
28007 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28008             Bruno Haible  <bruno@clisp.org>
28009
28010         * modules/lock-tests (Depends-on): Add thread, yield.
28011         (configure.ac): Remove all checks.
28012         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
28013         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
28014         gl_thread_self): Remove definitions. Include glthread/thread.h and
28015         glthread/yield.h instead.
28016         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
28017         additional NULL argument to gl_thread_join.
28018
28019 2008-09-30  Bruno Haible  <bruno@clisp.org>
28020
28021         Fix the Win32 implementation of the 'thread' module.
28022         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
28023         pointer type.
28024         (gl_thread_self): Invoke gl_thread_self_func.
28025         (gl_thread_self_func): New declaration.
28026         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
28027         (do_init_self_key, init_self_key): New functions.
28028         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
28029         Remove some fields.
28030         (running_threads, running_lock): Remove variables.
28031         (get_current_thread_handle): New function.
28032         (gl_thread_self_func, wrapper_func, glthread_create_func,
28033         glthread_join_func, gl_thread_exit_func): Largely rewritten and
28034         simplified.
28035
28036 2008-09-30  Bruno Haible  <bruno@clisp.org>
28037
28038         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
28039         files.
28040
28041 2008-09-30  Jim Meyering  <meyering@redhat.com>
28042
28043         fts.m4: correct the test for statfs.f_type
28044         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
28045         when checking for statfs.f_type.
28046
28047 2008-09-15  Simon Josefsson  <simon@josefsson.org>
28048
28049         tests: avoid some compiler warnings
28050         * tests/test-memchr.c (main): Pass NULL indirectly.
28051         * tests/test-getdate.c (main): Remove unused variable 'ret'.
28052
28053 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
28054
28055         getdate.y: disallow countable dayshifts like "4 yesterday ago"
28056         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
28057         exactly specified dayshifts.
28058         (dayshift): New rule.
28059         (rel): Add dayshift.
28060         (relative_time_table) [tomorrow, yesterday, today, now]:
28061         Use tDAY_SHIFT in place of tDAY_UNIT.
28062         * tests/test-getdate.c: Add tests for now-disallowed countable
28063         dayshifts, e.g., "4 yesterday ago".
28064
28065 2008-09-29  Bruno Haible  <bruno@clisp.org>
28066
28067         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
28068         * tests/test-posix_spawn1.in.sh: Renamed from
28069         tests/test-posix_spawn.in.sh.
28070         * tests/test-posix_spawn2.c: New file.
28071         * tests/test-posix_spawn2.in.sh: New file.
28072         * modules/posix_spawnp-tests (Files): Update.
28073         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
28074
28075 2008-09-29  Bruno Haible  <bruno@clisp.org>
28076
28077         Propagate effects of putenv/setenv/unsetenv to child processes.
28078         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
28079         * lib/pipe.c (create_pipe): Likewise.
28080
28081 2008-09-29  Bruno Haible  <bruno@clisp.org>
28082
28083         Enable use of shell scripts as executables in mingw.
28084         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
28085         run the program as a shell script.
28086         * lib/pipe.c (create_pipe): Likewise.
28087         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
28088         resulting array.
28089
28090 2008-09-29  Eric Blake  <ebb9@byu.net>
28091
28092         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
28093
28094 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
28095
28096         * doc/posix-functions/accept.texi: Update mingw problems.
28097         * doc/posix-functions/bind.texi: Update mingw problems.
28098         * doc/posix-functions/close.texi: Update mingw problems.
28099         * doc/posix-functions/connect.texi: Update mingw problems.
28100         * doc/posix-functions/getpeername.texi: Update mingw problems.
28101         * doc/posix-functions/getsockname.texi: Update mingw problems.
28102         * doc/posix-functions/getsockopt.texi: Update mingw problems.
28103         * doc/posix-functions/ioctl.texi: Update mingw problems.
28104         * doc/posix-functions/listen.texi: Update mingw problems.
28105         * doc/posix-functions/recv.texi: Update mingw problems.
28106         * doc/posix-functions/recvfrom.texi: Update mingw problems.
28107         * doc/posix-functions/select.texi: Update mingw problems.
28108         * doc/posix-functions/send.texi: Update mingw problems.
28109         * doc/posix-functions/sendto.texi: Update mingw problems.
28110         * doc/posix-functions/setsockopt.texi: Update mingw problems.
28111         * doc/posix-functions/socket.texi: Update mingw problems.
28112
28113 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
28114             Bruno Haible  <bruno@clisp.org>
28115
28116         * lib/sys_select.in.h: Include sys/time.h.
28117         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
28118         * modules/sys_select: Depend on sys_time.
28119         * tests/test-sys_select.c: Test that sys/select.h defines struct
28120         timeval fully.
28121
28122 2008-09-29  Bruno Haible  <bruno@clisp.org>
28123
28124         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
28125         * lib/sys_select.in.h: Likewise.
28126
28127 2008-09-29  Bruno Haible  <bruno@clisp.org>
28128
28129         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
28130
28131 2008-09-29  Bruno Haible  <bruno@clisp.org>
28132
28133         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
28134         Set LIBSOCKET instead of augmenting LIBS.
28135         * modules/sockets (Link): New section.
28136         * modules/sockets-tests (test_sockets_LDADD): New variable.
28137         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
28138         * modules/poll-tests (test_poll_LDADD): New variable.
28139         * NEWS: Document the change.
28140
28141 2008-09-29  Bruno Haible  <bruno@clisp.org>
28142
28143         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
28144         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
28145         ARPA_INET_H directly.
28146         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28147
28148 2008-09-28  Bruno Haible  <bruno@clisp.org>
28149
28150         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
28151         from gl_HEADER_SYS_SOCKET.
28152         (gl_HEADER_SYS_SOCKET): Invoke it.
28153         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28154
28155 2008-09-28  Bruno Haible  <bruno@clisp.org>
28156
28157         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
28158         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
28159         Needed on OSF/1 4.0.
28160
28161 2008-09-28  Bruno Haible  <bruno@clisp.org>
28162
28163         Override open more carefully.
28164         * lib/open.c (orig_open): New function.
28165         (rpl_open): Use orig_open instead of open.
28166         * lib/fcntl.in.h: Add special invocation convention.
28167         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
28168         (gl_FUNC_OPEN): Invoke it.
28169
28170         Override freopen more carefully.
28171         * lib/freopen.c (orig_freopen): New function.
28172         (rpl_freopen): Use orig_freopen instead of freopen.
28173         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
28174         (gl_FUNC_FREOPEN): Invoke it.
28175
28176         Override fopen more carefully.
28177         * lib/fopen.c (orig_fopen): New function.
28178         (rpl_fopen): Use orig_fopen instead of fopen.
28179         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
28180         (gl_FUNC_FOPEN): Invoke it.
28181         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
28182
28183 2008-09-28  Bruno Haible  <bruno@clisp.org>
28184
28185         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
28186         SIGPIPE.
28187
28188 2008-09-28  Bruno Haible  <bruno@clisp.org>
28189
28190         * tests/test-sigaction.c (handler, main): Disable the check whether
28191         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
28192         glibc systems with LinuxThreads.
28193
28194 2008-09-28  Bruno Haible  <bruno@clisp.org>
28195
28196         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
28197
28198         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
28199         with AIX xlc.
28200         * lib/fcntl.in.h (open): Likewise.
28201         Reported by Rainer Tammer <tammer@tammer.net>.
28202
28203 2008-09-28  Bruno Haible  <bruno@clisp.org>
28204
28205         * modules/posix_spawnp-tests: New file.
28206         * tests/test-posix_spawn.c: New file.
28207         * tests/test-posix_spawn.in.sh: New file.
28208
28209         New module 'posix_spawnp'.
28210         * modules/posix_spawnp: New file.
28211         * lib/spawnp.c: New file, from GNU libc with modifications.
28212         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
28213
28214         New module 'posix_spawn'.
28215         * modules/posix_spawn: New file.
28216         * lib/spawn.c: New file, from GNU libc with modifications.
28217         * doc/posix-functions/posix_spawn.texi: Mention the new module.
28218
28219         New module 'posix_spawnattr_destroy'.
28220         * modules/posix_spawnattr_destroy: New file.
28221         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
28222         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
28223         module.
28224
28225         New module 'posix_spawnattr_setsigmask'.
28226         * modules/posix_spawnattr_setsigmask: New file.
28227         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
28228         modifications.
28229         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
28230         new module.
28231
28232         New module 'posix_spawnattr_getsigmask'.
28233         * modules/posix_spawnattr_getsigmask: New file.
28234         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
28235         modifications.
28236         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
28237         new module.
28238
28239         New module 'posix_spawnattr_setsigdefault'.
28240         * modules/posix_spawnattr_setsigdefault: New file.
28241         * lib/spawnattr_setdefault.c: New file, from GNU libc with
28242         modifications.
28243         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
28244         new module.
28245
28246         New module 'posix_spawnattr_getsigdefault'.
28247         * modules/posix_spawnattr_getsigdefault: New file.
28248         * lib/spawnattr_getdefault.c: New file, from GNU libc with
28249         modifications.
28250         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
28251         new module.
28252
28253         New module 'posix_spawnattr_setschedpolicy'.
28254         * modules/posix_spawnattr_setschedpolicy: New file.
28255         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
28256         modifications.
28257         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
28258         new module.
28259
28260         New module 'posix_spawnattr_getschedpolicy'.
28261         * modules/posix_spawnattr_getschedpolicy: New file.
28262         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
28263         modifications.
28264         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
28265         new module.
28266
28267         New module 'posix_spawnattr_setschedparam'.
28268         * modules/posix_spawnattr_setschedparam: New file.
28269         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
28270         modifications.
28271         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
28272         new module.
28273
28274         New module 'posix_spawnattr_getschedparam'.
28275         * modules/posix_spawnattr_getschedparam: New file.
28276         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
28277         modifications.
28278         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
28279         new module.
28280
28281         New module 'posix_spawnattr_setpgroup'.
28282         * modules/posix_spawnattr_setpgroup: New file.
28283         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
28284         modifications.
28285         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
28286         module.
28287
28288         New module 'posix_spawnattr_getpgroup'.
28289         * modules/posix_spawnattr_getpgroup: New file.
28290         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
28291         modifications.
28292         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
28293         module.
28294
28295         New module 'posix_spawnattr_setflags'.
28296         * modules/posix_spawnattr_setflags: New file.
28297         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
28298         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
28299         module.
28300
28301         New module 'posix_spawnattr_getflags'.
28302         * modules/posix_spawnattr_getflags: New file.
28303         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
28304         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
28305         module.
28306
28307         New module 'posix_spawnattr_init'.
28308         * modules/posix_spawnattr_init: New file.
28309         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
28310         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
28311         module.
28312
28313         New module 'posix_spawn_file_actions_destroy'.
28314         * modules/posix_spawn_file_actions_destroy: New file.
28315         * lib/spawn_faction_destroy.c: New file, from GNU libc with
28316         modifications.
28317         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
28318         the new module.
28319
28320         New module 'posix_spawn_file_actions_addopen'.
28321         * modules/posix_spawn_file_actions_addopen: New file.
28322         * lib/spawn_faction_addopen.c: New file, from GNU libc with
28323         modifications.
28324         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
28325         the new module.
28326
28327         New module 'posix_spawn_file_actions_adddup2'.
28328         * modules/posix_spawn_file_actions_adddup2: New file.
28329         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
28330         modifications.
28331         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
28332         the new module.
28333
28334         New module 'posix_spawn_file_actions_addclose'.
28335         * modules/posix_spawn_file_actions_addclose: New file.
28336         * lib/spawn_faction_addclose.c: New file, from GNU libc with
28337         modifications.
28338         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
28339         the new module.
28340
28341         New module 'posix_spawn_file_actions_init'.
28342         * modules/posix_spawn_file_actions_init: New file.
28343         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
28344         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
28345         new module.
28346
28347         New module 'posix_spawn-internal'.
28348         * modules/posix_spawn-internal: New file.
28349         * lib/spawn_int.h: New file, from GNU libc with modifications.
28350         * lib/spawni.c: New file, from GNU libc with modifications.
28351         * m4/posix_spawn.m4: New file.
28352
28353         New module 'spawn'.
28354         * modules/spawn: New file.
28355         * lib/spawn.in.h: New file, from GNU libc with modifications.
28356         * m4/spawn_h.m4: New file.
28357         * doc/posix-headers/spawn.texi: Mention the new module.
28358
28359 2008-09-28  Bruno Haible  <bruno@clisp.org>
28360
28361         * modules/sched-tests: New file.
28362         * tests/test-sched.c: New file.
28363
28364         New module 'sched'.
28365         * modules/sched: New file.
28366         * lib/sched.in.h: New file.
28367         * m4/sched_h.m4: New file.
28368         * doc/posix-headers/sched.texi: Mention the new module.
28369
28370 2008-09-27  Eric Blake  <ebb9@byu.net>
28371
28372         Fix previous patch, and tweak references to $0.
28373         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
28374         (func_version, func_gnulib_dir): Don't call this program
28375         gnulib-tool.
28376         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
28377         with using $0 in function.
28378         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
28379         (func_fatal_error): Reuse the name the user invoked us with.
28380
28381 2008-09-27  Bruno Haible  <bruno@clisp.org>
28382
28383         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
28384         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
28385         (gl_ICONV_H): Not here.
28386         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28387         instead of assigning ICONV_H directly.
28388
28389         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
28390         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
28391         WCHAR_H directly.
28392
28393 2008-09-27  Bruno Haible  <bruno@clisp.org>
28394
28395         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
28396         * modules/arpa_inet (Depends-on): Add link-warning.
28397         (Makefile.am): Insert the definition of GL_LINK-WARNING.
28398         * modules/unistd (Makefile.am): Likewise.
28399
28400 2008-09-26  Bruno Haible  <bruno@clisp.org>
28401
28402         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
28403         variables.
28404         (func_version): Essentially copied from gnulib-tool.
28405         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
28406         func_readlink): Copied from gnulib-tool.
28407
28408 2008-09-26  Bruno Haible  <bruno@clisp.org>
28409
28410         * gnulib-tool (func_version): Change directory to $gnulib_dir before
28411         invoking git-version-gen.
28412
28413 2008-09-26  Bruno Haible  <bruno@clisp.org>
28414
28415         * posix-modules: Update to directory names changed on 2008-01-19.
28416         Remove commas in output before splitting into words. No more need to
28417         avoid 'ftruncate' since 2007-02-19.
28418
28419 2008-09-26  Bruno Haible  <bruno@clisp.org>
28420
28421         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
28422
28423 2008-09-26  Bruno Haible  <bruno@clisp.org>
28424
28425         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
28426         * modules/fwriteerror (Depends-on): Add errno.
28427
28428 2008-09-26  Bruno Haible  <bruno@clisp.org>
28429
28430         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
28431         * tests/test-vc-list-files-cvs.sh: Likewise.
28432
28433 2008-09-26  Bruno Haible  <bruno@clisp.org>
28434
28435         * doc/posix-headers/sys_resource.texi: Reorder items.
28436
28437 2008-09-26  Jim Meyering  <meyering@redhat.com>
28438
28439         fts: tweak inode comparison function
28440         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
28441         inode numbers, as documented.
28442
28443         fts: sort dirent entries on inode number before traversing
28444         This avoids a quadratic, seek-related performance penalty when
28445         operating on a directory containing many entries (measurable at 10k;
28446         3.5 hours at 2 million entries with a cold cache) on certain types
28447         of file systems, including ext3 and ext4, but not tmpfs.
28448         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
28449         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
28450         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
28451         (fs_handles_readdir_ordered_dirents_efficiently): New function.
28452         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
28453         (fts_build): Set the stat.st_ino member from D_INO.
28454         If it is likely to be useful, sort dirent entries on inode number.
28455
28456         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
28457         and the struct statfs.f_type member.
28458         * modules/fts (Depends-on): Add d-ino.
28459
28460 2008-09-26  Bruno Haible  <bruno@clisp.org>
28461
28462         * modules/sigpipe-die (Depends-on): Add sigpipe.
28463
28464         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
28465         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
28466         and GNULIB_STDIO_H_SIGPIPE are set.
28467         * lib/stdio-write.c: New file.
28468         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
28469         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28470         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28471         REPLACE_STDIO_WRITE_FUNCS.
28472         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
28473         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28474         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28475         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28476         * modules/stdio (Files): Add lib/stdio-write.c.
28477         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
28478         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28479         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28480         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28481         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
28482         REPLACE_FPRINTF_POSIX.
28483         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
28484         REPLACE_PRINTF_POSIX.
28485         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
28486         REPLACE_VFPRINTF_POSIX.
28487         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
28488         REPLACE_VPRINTF_POSIX.
28489         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
28490         SIGPIPE issue.
28491         * doc/posix-functions/fputc.texi: Likewise.
28492         * doc/posix-functions/fputs.texi: Likewise.
28493         * doc/posix-functions/fwrite.texi: Likewise.
28494         * doc/posix-functions/printf.texi: Likewise.
28495         * doc/posix-functions/putc.texi: Likewise.
28496         * doc/posix-functions/putchar.texi: Likewise.
28497         * doc/posix-functions/puts.texi: Likewise.
28498         * doc/posix-functions/vfprintf.texi: Likewise.
28499         * doc/posix-functions/vprintf.texi: Likewise.
28500
28501         * modules/safe-write (Depends-on): Add write.
28502
28503         * modules/sigpipe-tests: New file.
28504         * tests/test-sigpipe.c: New file.
28505         * tests/test-sigpipe.sh: New file.
28506
28507         * modules/write: New file.
28508         * lib/unistd.in.h: Include <sys/types.h>.
28509         (write): New declaration.
28510         * lib/write.c: New file.
28511         * m4/write.m4: New file.
28512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28513         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
28514         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
28515         GNULIB_WRITE, REPLACE_WRITE.
28516         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
28517         and the SIGPIPE issue.
28518
28519         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
28520         (raise): New declaration.
28521         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
28522         (ext_signal): New function.
28523         (rpl_raise): New function.
28524         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
28525         GNULIB_SIGNAL_H_SIGPIPE.
28526         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
28527         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
28528
28529         * modules/sigpipe: New file.
28530         * m4/sigpipe.m4: New file.
28531
28532 2008-09-25  Derek Price  <derek@ximbiot.com>
28533             Bruno Haible  <bruno@clisp.org>
28534
28535         * gnulib-tool (func_import): Report all license incompatibilities, not
28536         just the first one.
28537
28538 2008-09-25  Bruno Haible  <bruno@clisp.org>
28539
28540         * gnulib-tool (func_import): When computing the edits, consider not
28541         only the Makefile.ams that exist but also those that will be generated.
28542
28543 2008-09-25  Simon Josefsson  <simon@josefsson.org>
28544
28545         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
28546         fixes gnulib-tool --test warning about duplicate dependency.
28547
28548 2008-09-25  Bruno Haible  <bruno@clisp.org>
28549
28550         * gnulib-tool: Don't ask the user to perform edits in the generated
28551         Makefile.ams.
28552         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
28553         apply to the Makefile.am being generated.
28554         (func_emit_tests_Makefile_am): Execute edits that apply to the
28555         Makefile.am being generated.
28556         (func_import): Setup list of Makefile.am edits before emitting the
28557         Makefile.ams, not at the end.
28558         (func_create_testdir): Update.
28559         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28560
28561 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28562
28563         * gnulib-tool (func_import): Store the --tests-base option in the
28564         comment in gnulib-cache.m4.
28565
28566 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
28567
28568         * NEWS: Document increased portability that sys_select now provides.
28569
28570         * lib/sys_select.in.h: Install select wrapper.
28571         * lib/sys_socket.in.h: Use more descriptive name when there is no
28572         select wrapper.
28573         * lib/winsock-select.c: New.
28574         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
28575         Require gl_HEADER_SYS_SOCKET.
28576         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
28577         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
28578         * tests/test-sys_select.c: Add functional tests.
28579
28580 2008-09-24  Eric Blake  <ebb9@byu.net>
28581
28582         open, fopen: close fd leak in last patch
28583         * lib/open.c (rpl_open): Close fd before returning error.
28584         * lib/fopen.c (rpl_fopen): Close fd before returning error.
28585         * doc/posix-functions/open.texi (open): Document that Irix also
28586         has the bug.
28587         * doc/posix-functions/fopen.texi (fopen): Likewise.
28588         Reported by Paolo Bonzini.
28589
28590 2008-09-24  Bruno Haible  <bruno@clisp.org>
28591
28592         Ensure that a filename ending in a slash cannot be used to access a
28593         non-directory.
28594         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
28595         to check whether it's really a directory.
28596         * lib/fopen.c: Include fcntl.h, unistd.h.
28597         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
28598         and fdopen().
28599         * modules/fopen (Depends-on): Add unistd.
28600         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
28601         * tests/test-fopen.c (main): Likewise.
28602         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
28603         * doc/posix-functions/fopen.texi: Likewise.
28604         Reported by Eric Blake.
28605
28606 2008-09-23  Eric Blake  <ebb9@byu.net>
28607
28608         c-stack: avoid compiler optimizations when provoking overflow
28609         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
28610         recursion harder to optimize, to ensure a stack overflow occurs.
28611         * tests/test-c-stack.c (recurse): Likewise.
28612         Borrowed from libsigsegv.
28613
28614         c-stack: work around Irix sigaltstack bug
28615         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
28616         whether sigaltstack uses wrong end of stack_t (copied in part from
28617         libsigsegv).
28618         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
28619         Irix bug, without requiring an over-allocation.
28620         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
28621         bug.
28622
28623         fopen: document mingw bug on directories
28624         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
28625         not allowing a stream visiting a directory, even though reading
28626         from such a stream is not portable.
28627
28628 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28629
28630         * lib/poll.c: Rewrite.
28631         * modules/poll: Depend on alloca.
28632
28633 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28634
28635         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
28636         instead define prototypes for a full set of wrappers.  Ensure
28637         that Cygwin does not use the compatibility code, which is only
28638         for MinGW.
28639         * lib/winsock.c: New.
28640         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
28641         * modules/sys_socket: Add lib/winsock.c.
28642
28643         * modules/poll-tests: Add errno and perror.
28644         * tests/test-poll.c: Use ioctl, not ioctlsocket.
28645
28646 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28647
28648         * tests/test-poll.c: Downgrade minimum needed Winsock version.
28649
28650 2008-09-23  Bruno Haible  <bruno@clisp.org>
28651
28652         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
28653         * doc/glibc-functions/*: Likewise.
28654
28655 2008-09-23  Simon Josefsson  <simon@josefsson.org>
28656
28657         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
28658         success.
28659
28660 2008-09-22  Eric Blake  <ebb9@byu.net>
28661             Bruno Haible  <bruno@clisp.org>
28662
28663         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
28664         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
28665         supply %A but mishandle pseudo-NaN.
28666         Reported by Simon Josefsson.
28667
28668 2008-09-21  Bruno Haible  <bruno@clisp.org>
28669
28670         * tests/test-lock.c (main): Tweak skip message.
28671         * tests/test-tls.c (main): Likewise.
28672
28673 2008-09-21  Bruno Haible  <bruno@clisp.org>
28674
28675         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
28676         whether 'struct sigaction' has sa_sigaction here...
28677         (gl_PREREQ_SIG_HANDLER_H): ... not here.
28678         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
28679
28680 2008-09-21  Bruno Haible  <bruno@clisp.org>
28681
28682         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
28683         section.
28684         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
28685         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
28686         the new section.
28687         (Support for obsolete systems lacking POSIX:2001): New section.
28688         (String handling <string.h>): Move strdup to the new section.
28689         Suggested by Simon Josefsson and Paolo Bonzini.
28690
28691 2008-09-21  Bruno Haible  <bruno@clisp.org>
28692
28693         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
28694         exponents in %e and %g results on 'long double'. Needed for mingw's
28695         improved *printf functions.
28696         * tests/test-vasprintf-posix.c (test_function): Likewise.
28697         * tests/test-snprintf-posix.h (test_function): Likewise.
28698         * tests/test-sprintf-posix.h (test_function): Likewise.
28699         Reported by Eric Blake.
28700
28701 2008-09-21  Bruno Haible  <bruno@clisp.org>
28702
28703         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
28704         * tests/test-sprintf-posix.h (test_function): Likewise.
28705
28706 2008-09-21  Bruno Haible  <bruno@clisp.org>
28707
28708         * modules/getpass (Depends-on): Add strdup-posix.
28709
28710         New module 'strdup-posix'.
28711         * modules/strdup-posix: New file.
28712         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
28713         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
28714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28715         REPLACE_STRDUP.
28716         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
28717         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
28718         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28719         strdup-posix.
28720
28721         * modules/strdup (Depends-on): Remove malloc-posix.
28722
28723 2008-09-20  Bruno Haible  <bruno@clisp.org>
28724
28725         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
28726         Wildenhues.
28727
28728 2008-09-20  Bruno Haible  <bruno@clisp.org>
28729
28730         Ensure that wint_t gets defined on IRIX 5.3.
28731         * lib/wchar.in.h (wint_t): Define if not defined by the system.
28732         * lib/wctype.in.h (wint_t): Likewise.
28733         (__wctype_wint_t): Remove type.
28734         (isw*): Use wint_t instead of __wctype_wint_t.
28735         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
28736         * modules/wchar (Files): Add m4/wint_t.m4.
28737         (Makefile.am): Substitute HAVE_WINT_T.
28738         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
28739         * tests/test-wctype.c: Check that wint_t is defined.
28740         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
28741         * doc/posix-headers/wctype.texi: Likewise.
28742         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28743
28744 2008-09-18  Bruno Haible  <bruno@clisp.org>
28745
28746         * gnulib-tool (func_exit): Update comment.
28747
28748 2008-09-18  Simon Josefsson  <simon@josefsson.org>
28749
28750         * modules/getaddrinfo (Depends-on): Remove strdup, this module
28751         assumes strdup exists and does not depend on strdup to return
28752         ENOMEM on out of memory conditions.
28753
28754 2008-09-18  Bruno Haible  <bruno@clisp.org>
28755
28756         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
28757         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
28758         digits for the exponent.
28759
28760 2008-09-18  Jim Meyering  <meyering@redhat.com>
28761             Bruno Haible  <bruno@clisp.org>
28762
28763         * lib/vasnprintf.c (decimal_point_char): Define also if
28764         NEED_PRINTF_INFINITE_LONG_DOUBLE.
28765
28766 2008-09-16  Bruno Haible  <bruno@clisp.org>
28767         and Eric Blake  <ebb9@byu.net>
28768
28769         vasnprintf: support Irix 5.3
28770         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
28771         that mishandle long double infinity.
28772         Reported by Tom G. Christensen.
28773
28774 2008-09-16  Bruno Haible  <bruno@clisp.org>
28775
28776         * doc/glibc-functions/scandir.texi: Mention the function is missing on
28777         Solaris 9.
28778         * doc/glibc-functions/alphasort.texi: Likewise.
28779         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
28780
28781 2008-09-16  Jim Meyering  <meyering@redhat.com>
28782
28783         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
28784         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
28785         a umask modification leak out of a subshell.  Otherwise, the
28786         opensolaris /bin/sh would be accepted and thus cause unwarranted
28787         failures in the coreutils test suite.
28788
28789 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
28790
28791         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
28792         to succeed.
28793
28794 2008-09-16  Jim Meyering  <meyering@redhat.com>
28795
28796         avoid spurious test failure when library is built without ACL support
28797         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
28798         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
28799         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
28800         * tests/test-copy-acl.sh: Likewise.
28801
28802 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28803
28804         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
28805         based on character occurrence counts.
28806
28807 2008-09-15  Eric Blake  <ebb9@byu.net>
28808
28809         tests: avoid some compiler warnings
28810         * tests/test-memchr.c (main): Pass NULL indirectly.
28811         * tests/test-closein.c (main): Avoid unused variable.
28812
28813 2008-09-15  Bruno Haible  <bruno@clisp.org>
28814
28815         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
28816         are missing on OpenBSD 4.0 individually.
28817         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28818
28819 2008-09-15  Bruno Haible  <bruno@clisp.org>
28820
28821         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
28822         * doc/posix-functions/strerror.texi: Mention also Cygwin.
28823         * doc/posix-functions/perror.texi: Likewise.
28824         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
28825         is missing.
28826         Reported by Eric Blake.
28827
28828         * lib/errno.in.h: Use replacement values >= 2000.
28829         Reported by Eric Blake.
28830
28831 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28832
28833         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
28834         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
28835         limit.
28836         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
28837         compareseq was aborted.
28838
28839 2008-09-14  Bruno Haible  <bruno@clisp.org>
28840
28841         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
28842         yvec_edit_count.
28843         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
28844         (fstrcmp_bounded): Simplify result computation accordingly.
28845
28846 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28847
28848         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
28849         (fstrcmp): Define in terms of fstrcmp_bounded.
28850         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
28851         lower_bound argument.
28852         Return quickly if the result is certainly < lower_bound.
28853         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
28854
28855 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28856
28857         * lib/diffseq.h (EARLY_ABORT): New macro.
28858         (compareseq): Change return type to bool. Return true when EARLY_ABORT
28859         evaluates to true.
28860
28861 2008-09-14  Bruno Haible  <bruno@clisp.org>
28862
28863         * modules/perror-tests: New file.
28864         * tests/test-perror.sh: New file.
28865         * tests/test-perror.c: New file.
28866
28867         New module 'perror'.
28868         * lib/stdio.in.h (perror): New declaration.
28869         * lib/perror.c: New file.
28870         * m4/perror.m4: New file.
28871         * modules/perror: New file.
28872         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
28873         * doc/posix-functions/perror.texi: Mention the perror module.
28874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
28875         REPLACE_PERROR.
28876         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
28877         REPLACE_PERROR.
28878
28879 2008-09-14  Bruno Haible  <bruno@clisp.org>
28880
28881         * modules/stdio (Makefile.am): Reorder to match the order in
28882         lib/stdio.in.h.
28883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28884
28885 2008-09-13  Bruno Haible  <bruno@clisp.org>
28886
28887         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
28888
28889 2008-09-13  Bruno Haible  <bruno@clisp.org>
28890
28891         Extend strerror to cover the added errno values.
28892         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
28893         (rpl_strerror): Provide error messages for the added errno values and
28894         for the WSA* values.
28895         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
28896         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
28897         strerror.
28898         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
28899         * modules/strerror (Depends-on): Add errno.
28900         * doc/posix-functions/strerror.texi: Document the change.
28901         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
28902         and EOVERFLOW.
28903
28904 2008-09-13  Bruno Haible  <bruno@clisp.org>
28905
28906         * modules/EOVERFLOW: Remove file.
28907         * m4/eoverflow.m4: Remove file.
28908         * modules/EOVERFLOW-tests: Remove file.
28909         * tests/test-EOVERFLOW.c: Remove file.
28910         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
28911         * modules/ftell (Depends-on): Likewise.
28912         * modules/getdelim (Depends-on): Likewise.
28913         * modules/getugroups (Depends-on): Likewise.
28914         * modules/poll (Depends-on): Likewise.
28915         * modules/snprintf (Depends-on): Likewise.
28916         * modules/sprintf-posix (Depends-on): Likewise.
28917         * modules/vasnprintf (Depends-on): Likewise.
28918         * modules/vasprintf (Depends-on): Likewise.
28919         * modules/vfprintf-posix (Depends-on): Likewise.
28920         * modules/vsnprintf (Depends-on): Likewise.
28921         * modules/vsprintf-posix (Depends-on): Likewise.
28922         * modules/xvasprintf (Depends-on): Likewise.
28923         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28924         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
28925         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
28926         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
28927         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28928         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
28929         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
28930         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
28931         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28932         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
28933         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
28934         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
28935         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28936         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
28937         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
28938         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
28939         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28940         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
28941         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
28942         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
28943         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28944         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
28945         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
28946         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
28947         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
28948         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28949         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
28950         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
28951         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
28952         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
28953         * MODULES.html.sh: Remove EOVERFLOW.
28954         * NEWS: Mention the change.
28955
28956 2008-09-13  Bruno Haible  <bruno@clisp.org>
28957
28958         * modules/errno-tests: New file.
28959         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
28960
28961         * lib/errno.in.h: New file.
28962         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
28963         * modules/errno: New file.
28964         * doc/posix-headers/errno.texi: Update documentation.
28965         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
28966
28967 2008-09-13  Bruno Haible  <bruno@clisp.org>
28968
28969         * tests/test-poll.c: Use #if for native Windows, rather than testing
28970         __MSVCRT__.
28971
28972 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28973             Bruno Haible  <bruno@clisp.org>
28974
28975         * lib/glob.c: Don't include <pwd.h> on native Windows.
28976         (WINDOWS32): New macro.
28977         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
28978
28979 2008-09-13  Bruno Haible  <bruno@clisp.org>
28980
28981         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
28982         (ETIMEDOUT): Remove macro.
28983         (glthread_cond_timedwait_multithreaded): New declaration.
28984         (glthread_cond_timedwait): Use it.
28985         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
28986         (glthread_cond_timedwait_multithreaded): New function.
28987
28988 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28989
28990         * modules/poll-tests: Do not check for io.h.
28991         * tests/test-poll.c: Check for __MSVCRT__ instead.
28992
28993 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28994
28995         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
28996         * modules/poll-tests: Add inet_pton, stdbool, sockets.
28997         * tests/test-poll.c: Use them.  Use _pipe on Windows.
28998
28999 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29000
29001         * modules/poll-tests: New.
29002         * tests/test-poll.c: New.
29003
29004 2008-09-12  Eric Blake  <ebb9@byu.net>
29005
29006         frexp: test for NetBSD failure on -0.0
29007         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
29008         not all, bugs from NetBSD 3.0 have been fixed.
29009         * doc/posix-functions/frexp.texi (frexp): Document bug.
29010         Reported by Thomas Klausner.
29011
29012         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
29013         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
29014         literal -0.0.
29015         Reported by Jonathan C. Patschke <jp@centtech.com>.
29016
29017 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29018
29019         * lib/glthread/cond.h: Use dummy implementation also if
29020         USE_WIN32_THREADS.
29021
29022 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29023
29024         * modules/fnmatch-posix (License): Change to LGPLv2+.
29025         * modules/fnmatch-gnu (License): Likewise.
29026
29027 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29028
29029         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
29030
29031 2008-09-11  Jim Meyering  <meyering@redhat.com>
29032
29033         * users.txt: Add gtk-vnc.
29034
29035 2008-09-08  Simon Josefsson  <simon@josefsson.org>
29036
29037         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
29038         rotate amounts.
29039
29040         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
29041         required for 16-bit and 8-bit rotates.
29042         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
29043         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
29044         UINT8_MAX instead of hard-coded constants.
29045         Suggested by Paul Eggert.
29046
29047 2008-09-07  Bruno Haible  <bruno@clisp.org>
29048
29049         * tests/test-striconveh.c (main): Check behaviour when converting from
29050         UTF-7.
29051
29052         Make striconveh work better with stateful encodings.
29053         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
29054         that iconv does not increment the inptr when returning -1/EINVAL.
29055
29056 2008-09-07  Bruno Haible  <bruno@clisp.org>
29057
29058         * build-aux/config.rpath: Update according to libtool-2.2.6.
29059         * build-aux/config.libpath: Likewise.
29060
29061 2008-09-06  Bruno Haible  <bruno@clisp.org>
29062
29063         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
29064         * lib/freadptr.c (freadptr): Likewise.
29065         * lib/freadseek.c (freadptrinc): Likewise.
29066         Reported by Simon Josefsson.
29067
29068 2008-09-06  Bruno Haible  <bruno@clisp.org>
29069
29070         * modules/freadptr (License): Change to LGPLv2+.
29071         * modules/freadseek (License): Likewise.
29072         Suggested by Eric Blake.
29073
29074         * modules/memchr2 (License): Change to LGPLv2+.
29075         Approved by Eric Blake.
29076
29077 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29078             Bruno Haible  <bruno@clisp.org>
29079
29080         Make gnulib-tool work with native 'sed' on AIX.
29081         * gnulib-tool (sed_noop): New variable.
29082         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
29083         func_add_or_update, func_create_testdir): Use it to initialize sed
29084         script variables.
29085         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29086
29087 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
29088             Bruno Haible  <bruno@clisp.org>
29089
29090         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
29091         also works after #include directives.
29092
29093 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
29094
29095         getdate.y: reject an out-of-range timezone value
29096         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
29097         the range [-24...+24].  When specified with only one or two digits,
29098         * tests/test-getdate.c: Tests for the fix.
29099         * doc/getdate.texi: Document this change.
29100
29101 2008-09-03  Bruno Haible  <bruno@clisp.org>
29102
29103         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
29104
29105 2008-09-02  Simon Josefsson  <simon@josefsson.org>
29106
29107         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
29108         <bruce.korb@gmail.com> with ideas from Ben Pfaff
29109         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
29110         Blake <ebb9@byu.net>.
29111
29112         * tests/test-bitrotate.c: Add more test vectors.
29113
29114 2008-09-02  Eric Blake  <ebb9@byu.net>
29115
29116         vasnprintf-posix: handle large precision via %.*d
29117         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
29118         when handling it ourselves.
29119         * tests/test-vasnprintf-posix.c (test_function): Add test.
29120         * tests/test-snprintf-posix.h (test_function): Likewise.
29121         * tests/test-sprintf-posix.h (test_function): Likewise.
29122         * tests/test-vasprintf-posix.c (test_function): Likewise.
29123         Reported by Alain Guibert.
29124
29125 2008-09-01  Eric Blake  <ebb9@byu.net>
29126
29127         c-stack: make configure-time check more robust
29128         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
29129         successful sigaction call.
29130         Reported by Tom G. Christensen.
29131
29132 2008-09-01  Bruno Haible  <bruno@clisp.org>
29133
29134         New module 'findprog-lgpl'.
29135         * modules/findprog-lgpl: New file.
29136         * lib/findprog-lgpl.c: New file.
29137         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
29138         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
29139         to decide whether to use strdup or xstrdup, concatenated_filename or
29140         xconcatenated_filename.
29141
29142 2008-09-01  Bruno Haible  <bruno@clisp.org>
29143
29144         Split module 'concat-filename' into 'concat-filename' (LGPL) and
29145         'xconcat-filename' (GPL).
29146         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
29147         (License): Change to LGPLv2+.
29148         * modules/xconcat-filename: New file.
29149         * lib/concat-filename.h (concatenated_filename): Change specification.
29150         (xconcatenated_filename): New declaration.
29151         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
29152         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
29153         memory situations.
29154         * lib/xconcat-filename.c: New file.
29155         * NEWS: Mention the change.
29156         * lib/findprog.c: Include concat-filename.h, not filename.h.
29157         (find_in_path): Use xconcatenated_filename instead of
29158         concatenated_filename.
29159         * lib/javacomp.c: Include concat-filename.h, not filename.h.
29160         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
29161         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
29162         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
29163         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
29164         instead of concatenated_filename.
29165         * lib/javaexec.c: Include concat-filename.h, not filename.h.
29166         (execute_java_class): Use xconcatenated_filename instead of
29167         concatenated_filename.
29168         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
29169         * modules/javacomp (Depends-on): Likewise.
29170         * modules/javaexec (Depends-on): Likewise.
29171
29172 2008-09-01  Bruno Haible  <bruno@clisp.org>
29173
29174         Split module 'filename' into 'filename' and 'concat-filename'.
29175         * modules/filename: Keep only lib/filename.h.
29176         (License): Change to LGPLv2+.
29177         * modules/concat-filename: New file, extracted from modules/filename.
29178         * lib/filename.h (concatenated_filename): Remove declaration.
29179         * lib/concat-filename.h: New file, extracted from lib/filename.h.
29180         * lib/concat-filename.c: Include concat-filename.h.
29181         * NEWS: Mention the change.
29182
29183 2008-09-01  Simon Josefsson  <simon@josefsson.org>
29184
29185         * lib/bitrotate.h (rotl8, rotr8): Add.
29186
29187         * modules/bitrotate (configure.ac): Need
29188         AC_REQUIRE([AC_C_INLINE]).
29189         (Description): Mention stdint.h.  Reported by Bruno Haible
29190         <bruno@clisp.org>.
29191
29192         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
29193         Paolo Bonzini <bonzini@gnu.org>.
29194
29195 2008-08-31  Bruno Haible  <bruno@clisp.org>
29196
29197         Assume Solaris specific bi-arch conventions on Solaris systems.
29198         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
29199         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
29200         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
29201         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
29202         like acl_libdirstem.
29203         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
29204         acl_libdirstem.
29205         * NEWS: Mention the change.
29206         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
29207
29208 2008-08-31  Jim Meyering  <meyering@redhat.com>
29209
29210         * lib/strftime.h: Add comments describing the two added arguments.
29211
29212         remove duplicate #include directives
29213         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
29214         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
29215
29216 2008-08-31  Bruno Haible  <bruno@clisp.org>
29217
29218         New module 'sigpipe-die'.
29219         * modules/sigpipe-die: New file.
29220         * lib/sigpipe-die.h: New file.
29221         * lib/sigpipe-die.c: New file.
29222         * MODULES.html.sh (Signal handling): Add sigpipe-die.
29223
29224 2008-08-31  Bruno Haible  <bruno@clisp.org>
29225
29226         Don't override previously installed signal handlers.
29227         * lib/fatal-signal.c (saved_sigactions): New variable.
29228         (uninstall_handlers): Reset the signal to the saved handler, not
29229         to SIG_DFL (except when ignored).
29230         (install_handlers): Save the previous handlers.
29231
29232 2008-08-30  Bruno Haible  <bruno@clisp.org>
29233
29234         * gnulib-tool (func_reset_sigpipe): New function.
29235         (func_get_automake_snippet, func_modules_transitive_closure,
29236         func_import): Invoke it before a join command that reads from stdin,
29237         to avoid "echo: write error: Broken pipe" error messages on stderr.
29238         Reported by Sam Steingold <sds@gnu.org>.
29239
29240 2008-08-30  Bruno Haible  <bruno@clisp.org>
29241
29242         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
29243         Code copied from m4/open.m4.
29244         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
29245         access and the filename ends in a slash. Code copied from lib/open.c.
29246         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
29247         * tests/test-fopen.c (main): Check against bug with trailing slash.
29248
29249 2008-08-29  Bruno Haible  <bruno@clisp.org>
29250
29251         Avoid some "gcc -pedantic" warnings.
29252         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
29253         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
29254         * lib/dirent.in.h: Likewise.
29255         * lib/fcntl.in.h: Likewise.
29256         * lib/float.in.h: Likewise.
29257         * lib/iconv.in.h: Likewise.
29258         * lib/inttypes.in.h: Likewise.
29259         * lib/locale.in.h: Likewise.
29260         * lib/math.in.h: Likewise.
29261         * lib/netinet_in.in.h: Likewise.
29262         * lib/search.in.h: Likewise.
29263         * lib/signal.in.h: Likewise.
29264         * lib/stdarg.in.h: Likewise.
29265         * lib/stdint.in.h: Likewise.
29266         * lib/stdio.in.h: Likewise.
29267         * lib/stdlib.in.h: Likewise.
29268         * lib/string.in.h: Likewise.
29269         * lib/strings.in.h: Likewise.
29270         * lib/sys_select.in.h: Likewise.
29271         * lib/sys_socket.in.h: Likewise.
29272         * lib/sys_stat.in.h: Likewise.
29273         * lib/sys_time.in.h: Likewise.
29274         * lib/sysexits.in.h: Likewise.
29275         * lib/time.in.h: Likewise.
29276         * lib/unistd.in.h: Likewise.
29277         * lib/wchar.in.h: Likewise.
29278         * lib/wctype.in.h: Likewise.
29279         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
29280         * modules/fchdir (Makefile.am): Likewise.
29281         * modules/fcntl (Makefile.am): Likewise.
29282         * modules/float (Makefile.am): Likewise.
29283         * modules/iconv_open (Makefile.am): Likewise.
29284         * modules/inttypes (Makefile.am): Likewise.
29285         * modules/locale (Makefile.am): Likewise.
29286         * modules/math (Makefile.am): Likewise.
29287         * modules/netinet_in (Makefile.am): Likewise.
29288         * modules/search (Makefile.am): Likewise.
29289         * modules/signal (Makefile.am): Likewise.
29290         * modules/stdarg (Makefile.am): Likewise.
29291         * modules/stdint (Makefile.am): Likewise.
29292         * modules/stdio (Makefile.am): Likewise.
29293         * modules/stdlib (Makefile.am): Likewise.
29294         * modules/string (Makefile.am): Likewise.
29295         * modules/strings (Makefile.am): Likewise.
29296         * modules/sys_select (Makefile.am): Likewise.
29297         * modules/sys_socket (Makefile.am): Likewise.
29298         * modules/sys_stat (Makefile.am): Likewise.
29299         * modules/sys_time (Makefile.am): Likewise.
29300         * modules/sysexits (Makefile.am): Likewise.
29301         * modules/time (Makefile.am): Likewise.
29302         * modules/unistd (Makefile.am): Likewise.
29303         * modules/wchar (Makefile.am): Likewise.
29304         * modules/wctype (Makefile.am): Likewise.
29305         Reported by Reuben Thomas <rrt@sc3d.org>.
29306
29307 2008-08-29  Bruno Haible  <bruno@clisp.org>
29308
29309         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
29310         any more.
29311
29312 2008-08-29  Simon Josefsson  <simon@josefsson.org>
29313
29314         * MODULES.html.sh (Misc): Add bitrotate.
29315
29316         * modules/bitrotate: New file.
29317
29318         * lib/bitrotate.h: New file.
29319
29320         * modules/bitrotate-tests: New file.
29321
29322         * tests/test-bitrotate.c: New file.
29323
29324         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
29325         on the bitrotate module.
29326
29327         * lib/arctwo.c: Use new bitrotate module.
29328
29329 2008-08-29  Jim Meyering  <meyering@redhat.com>
29330
29331         bootstrap: merge changes from coreutils
29332         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
29333         of copied files.  Remove a kludge, now that this is fixed.
29334         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
29335         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
29336         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
29337
29338 2008-08-29  Bruno Haible  <bruno@clisp.org>
29339
29340         * MODULES.html.sh: Remove --cvs-urls option.
29341
29342 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
29343
29344         maint.mk: adjust to file name change
29345         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
29346
29347 2008-08-28  Jim Meyering  <meyering@redhat.com>
29348
29349         * modules/getndelim2 (License): Relicense to LGPLv2+.
29350         Approved by Richard Stallman for the version of 1995, and by
29351         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
29352
29353 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
29354
29355         * lib/getdelim.c (flockfile, funlockfile): Make all of them
29356         dummy if one is not available.  Do not touch them if
29357         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
29358         (getc_maybe_unlocked): New.
29359         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
29360
29361 2008-08-26  Eric Blake  <ebb9@byu.net>
29362
29363         doc/INSTALL: resync from autoconf
29364         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
29365         (INSTALL_PRELUDE): Delete; this is done more efficiently by
29366         moving...
29367         * install.texi [!autoconf]: ...here.  Resync from autoconf.
29368         * INSTALL: Regenerate.
29369         * INSTALL.ISO: New file.
29370         * INSTALL.UTF-8: Likewise.
29371
29372 2008-08-26  Jim Meyering  <meyering@redhat.com>
29373
29374         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
29375         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
29376         these definitions conditional, so that they may be overridden, too.
29377
29378 2008-08-26  Bruno Haible  <bruno@clisp.org>
29379
29380         Generate INSTALL file variants with prettier quotes.
29381         * doc/Makefile (INSTALL_PRELUDE): New macro.
29382         (INSTALL): Use it.
29383         (INSTALL.ISO, INSTALL.UTF-8): New rules.
29384
29385 2008-08-26  Bruno Haible  <bruno@clisp.org>
29386
29387         Run makeinfo in an English locale.
29388         * doc/Makefile (MAKEINFO): New variable.
29389
29390 2008-08-26  Bruno Haible  <bruno@clisp.org>
29391
29392         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
29393         Suggested by Eric Blake.
29394
29395 2008-08-25  Bruno Haible  <bruno@clisp.org>
29396
29397         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
29398
29399 2008-08-25  Eric Blake  <ebb9@byu.net>
29400
29401         c-stack: test that stack overflow can be caught
29402         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
29403         that platform allows handling stack overflow; at least OS/2 EMX
29404         has sigaltstack, but crashes before transferring control to
29405         handler on stack overflow.
29406         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
29407         check for HAVE_STACK_OVERFLOW_HANDLING.
29408         Reported by Elbert Pol.
29409
29410 2008-08-25  Bruno Haible  <bruno@clisp.org>
29411
29412         * doc/posix-functions/strftime.texi: Fix description of strftime
29413         module.
29414
29415 2008-08-24  Bruno Haible  <bruno@clisp.org>
29416
29417         * tests/uniwidth/test-uc_width2.c: New file.
29418         * tests/uniwidth/test-uc_width2.sh: New file.
29419         * modules/uniwidth/width-tests (Files): Add the new files.
29420         (TESTS): Add uniwidth/test-uc_width2.sh.
29421         (TESTS_ENVIRONMENT): New variable.
29422         (check_PROGRAMS): Add test-uc_width2.
29423         (test_uc_width2_SOURCES): New variable.
29424
29425         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
29426         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
29427         not 0x00AB.
29428         Reported by Alexander V. Lukyanov <lav@netis.ru>.
29429
29430 2008-08-22  Eric Blake  <ebb9@byu.net>
29431
29432         test-lock, test-tls: mention why a test is skipped
29433         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
29434         skipped.
29435         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
29436
29437         count-one-bits: relax license
29438         * modules/count-one-bits (License): Relicense to LGPLv2+.
29439         Suggested by Ludovic Courtès, approved by Ben Pfaff.
29440
29441 2008-08-22  Andreas Schwab  <schwab@suse.de>
29442
29443         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29444         Remove spurious space in assignment.
29445
29446 2008-08-21  Simon Josefsson  <simon@josefsson.org>
29447
29448         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
29449         Paul Eggert <eggert@CS.UCLA.EDU>.
29450
29451 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
29452
29453         * modules/gettext: Add m4/threadlib.m4.
29454
29455 2008-08-19  Eric Blake  <ebb9@byu.net>
29456
29457         test-c-stack: fix compilation failure on FreeBSD 5.0
29458         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
29459         headers before <sys/resource.h>.
29460         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
29461         the bug.
29462         Reported by Nelson H. F. Beebe.
29463
29464         strverscmp: migrate from "strverscmp.h" to <string.h>
29465         * modules/string (Makefile.am): Add new hooks.
29466         * modules/strverscmp (Files): Remove strverscmp.h.
29467         (Depends-on): Add string.
29468         (configure.ac): Add indicator.
29469         (Include): Mention new header.
29470         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
29471         defaults.
29472         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
29473         results.
29474         * lib/strverscmp.h: Delete.
29475         * lib/string.in.h (strverscmp): Provide declaration, when needed.
29476         * tests/test-strverscmp.c (includes): Adjust client.
29477         * lib/check-version.c (includes): Likewise.
29478         * NEWS: Document the change.
29479
29480         strverscmp: add unit test
29481         * modules/strverscmp-tests: New file.
29482         * tests/test-strverscmp.c: Likewise.
29483
29484 2008-08-19  Simon Josefsson  <simon@josefsson.org>
29485
29486         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
29487         regarding Windows crypto stuff, from Mono.
29488
29489 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
29490
29491         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
29492         if present, for intel RND.  Return error on failures.
29493
29494 2008-08-18  Ben Pfaff  <blp@gnu.org>
29495
29496         gitlog-to-changelog: give better diagnostic for failed pipe-open
29497         * build-aux/gitlog-to-changelog: Improve error message: suggest
29498         that the version of Git may be too old.
29499
29500 2008-08-18  Simon Josefsson  <simon@josefsson.org>
29501
29502         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
29503         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
29504
29505 2008-08-18  Bruno Haible  <bruno@clisp.org>
29506
29507         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
29508         pthread_in_use().
29509
29510 2008-08-18  Bruno Haible  <bruno@clisp.org>
29511
29512         * lib/glthread/threadlib.c: Include <pthread.h>.
29513
29514 2008-08-18  Bruno Haible  <bruno@clisp.org>
29515
29516         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
29517         glthread_recursive_lock_* macros.
29518         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
29519         Fix syntax error.
29520
29521 2008-08-18  Bruno Haible  <bruno@clisp.org>
29522
29523         * lib/glthread/thread.c: Avoid forcing a context switch right after
29524         thread creation.
29525
29526 2008-08-17  Bruno Haible  <bruno@clisp.org>
29527
29528         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
29529         * lib/glthread/thread.h: Provide Win32 specific implementation.
29530         * modules/thread (Files): Add lib/glthread/thread.c.
29531         (Depends-on): Add lock.
29532         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
29533
29534 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29535
29536         New module 'yield'.
29537         * modules/yield: New file.
29538         * lib/glthread/yield.h: New file.
29539         * m4/yield.m4: New file.
29540         * MODULES.html.sh (Multithreading): Add yield.
29541
29542 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29543
29544         New module 'thread'.
29545         * modules/thread: New file.
29546         * lib/glthread/thread.h: New file.
29547         * m4/thread.m4: New file.
29548         * MODULES.html.sh (Multithreading): Add thread.
29549
29550 2008-08-17  Bruno Haible  <bruno@clisp.org>
29551
29552         * lib/glthread/lock.h: Include <stdlib.h> always.
29553         * lib/glthread/tls.h: Likewise.
29554         * lib/glthread/cond.h: Likewise.
29555
29556 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29557
29558         New module 'cond'.
29559         * modules/cond: New file.
29560         * lib/glthread/cond.h: New file.
29561         * lib/glthread/cond.c: New file.
29562         * m4/cond.m4: New file.
29563         * MODULES.html.sh (Multithreading): Add cond.
29564
29565 2008-08-16  Eric Blake  <ebb9@byu.net>
29566
29567         c-stack: fix regression on Irix 5.3 from 2008-06-21
29568         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
29569         sa_sigaction...
29570         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
29571         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
29572         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
29573         * modules/signal (Makefile.am): Use the value.
29574         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
29575         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
29576         * doc/posix-headers/signal.texi (signal.h): Document this
29577         portability issue.
29578         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
29579         Reported by Tom G. Christensen.
29580
29581 2008-08-17  Bruno Haible  <bruno@clisp.org>
29582
29583         New module 'threadlib'.
29584         * modules/threadlib: New file.
29585         * lib/glthread/threadlib.c: New file, extracted from
29586         lib/glthread/lock.c.
29587         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
29588         functions.
29589         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
29590         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
29591         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
29592         macros.
29593         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
29594         (gl_DISABLE_THREADS): Remove macro.
29595         * modules/lock (Files): Remove build-aux/config.rpath.
29596         (Depends-on): Remove havelib. Add threadlib.
29597         (configure.ac-early): Remove section.
29598         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
29599         * modules/tls (Depends-on): Remove lock. Add threadlib.
29600         (Link): New section, copied from threadlib.
29601         * MODULES.html.sh (Multithreading): Add threadlib.
29602
29603 2008-08-14  Bruno Haible  <bruno@clisp.org>
29604
29605         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
29606         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
29607         glthread_rwlock_unlock, glthread_rwlock_destroy,
29608         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
29609         glthread_recursive_lock_destroy): Define as macros always.
29610         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
29611         glthread_lock_lock.
29612         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
29613         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
29614         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
29615         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
29616         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
29617         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
29618         (glthread_recursive_lock_lock_func): Renamed from
29619         glthread_recursive_lock_lock.
29620         (glthread_recursive_lock_unlock_func): Renamed from
29621         glthread_recursive_lock_unlock.
29622         (glthread_recursive_lock_destroy_func): Renamed from
29623         glthread_recursive_lock_destroy.
29624
29625 2008-08-14  Bruno Haible  <bruno@clisp.org>
29626
29627         * lib/glthread/lock.h: Renamed from lib/lock.h.
29628         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
29629         * lib/glthread/tls.h: Renamed from lib/tls.h.
29630         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
29631         * lib/fstrcmp.c: Update includes.
29632         * lib/strsignal.c: Update includes.
29633         * modules/lock (Files, Makefile.am): Update.
29634         (Include): Change to "glthread/lock.h".
29635         * modules/tls (Files, Makefile.am): Update.
29636         (Include): Change to "glthread/tls.h".
29637         * tests/test-lock.c: Update includes.
29638         * tests/test-tls.c: Update includes.
29639         * NEWS: Mention the renamed header files.
29640
29641 2008-08-11  Jim Meyering  <meyering@redhat.com>
29642
29643         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
29644
29645 2008-08-11  Eric Blake  <ebb9@byu.net>
29646
29647         test-c-stack: avoid C99-ism
29648         * tests/test-c-stack.c (main): Fix whitespace, move declaration
29649         before statement.
29650         Reported by Alain Guibert.
29651
29652 2008-08-10  Jim Meyering  <meyering@redhat.com>
29653
29654         ensure that return value of uinttostr et al are not ignored
29655         * lib/inttostr.h (__GNUC_PREREQ): Define.
29656         (__attribute_warn_unused_result__): Define.
29657         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
29658
29659 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
29660
29661         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
29662         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
29663
29664 2008-08-07  Jim Meyering  <meyering@redhat.com>
29665
29666         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
29667
29668         * modules/mkstemp (License): Relicense under LGPLv2+.
29669         * modules/tempname (License): Likewise.
29670
29671 2008-08-06  Bruno Haible  <bruno@clisp.org>
29672
29673         * lib/poll.c (poll): Further micro-optimization.
29674
29675 2008-08-06  Jim Meyering  <meyering@redhat.com>
29676
29677         inet_pton.c: use locale-independent tolower
29678         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
29679         (inet_pton6): Use c_tolower rather than tolower.
29680         * modules/inet_pton (Depends-on): Add c-ctype.
29681
29682 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
29683
29684         * lib/poll.c (poll): Avoid division when timeout is 0, cache
29685         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
29686
29687 2008-08-06  Jim Meyering  <meyering@redhat.com>
29688
29689         * modules/inet_pton (License): Relicense under LGPLv2+.
29690
29691 2008-08-03  Bruno Haible  <bruno@clisp.org>
29692
29693         Additional non-aborting API for lock and tls.
29694         * lib/lock.h: Include <errno.h>.
29695         (glthread_lock_init): New macro/function.
29696         (gl_lock_init): Define as wrapper around glthread_lock_init.
29697         (glthread_lock_lock): New macro/function.
29698         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
29699         (glthread_lock_unlock): New macro/function.
29700         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
29701         (glthread_lock_destroy): New macro/function.
29702         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
29703         (glthread_rwlock_init): New macro/function.
29704         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
29705         (glthread_rwlock_rdlock): New macro/function.
29706         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
29707         (glthread_rwlock_wrlock): New macro/function.
29708         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
29709         (glthread_rwlock_unlock): New macro/function.
29710         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
29711         (glthread_rwlock_destroy): New macro/function.
29712         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
29713         (glthread_recursive_lock_init): New macro/function.
29714         (gl_recursive_lock_init): Define as wrapper around
29715         glthread_recursive_lock_init.
29716         (glthread_recursive_lock_lock): New macro/function.
29717         (gl_recursive_lock_lock): Define as wrapper around
29718         glthread_recursive_lock_lock.
29719         (glthread_recursive_lock_unlock): New macro/function.
29720         (gl_recursive_lock_unlock): Define as wrapper around
29721         glthread_recursive_lock_unlock.
29722         (glthread_recursive_lock_destroy): New macro/function.
29723         (gl_recursive_lock_destroy): Define as wrapper around
29724         glthread_recursive_lock_destroy.
29725         (glthread_once): New macro/function.
29726         (gl_once): Define as wrapper around glthread_once.
29727         Update function declarations.
29728         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
29729         glthread_rwlock_init. Return error code.
29730         (glthread_rwlock_rdlock_multithreaded): Renamed from
29731         glthread_rwlock_rdlock. Return error code.
29732         (glthread_rwlock_wrlock_multithreaded): Renamed from
29733         glthread_rwlock_wrlock. Return error code.
29734         (glthread_rwlock_unlock_multithreaded): Renamed from
29735         glthread_rwlock_unlock. Return error code.
29736         (glthread_rwlock_destroy_multithreaded): Renamed from
29737         glthread_rwlock_destroy. Return error code.
29738         (glthread_recursive_lock_init_multithreaded): Renamed from
29739         glthread_recursive_lock_init. Return error code.
29740         (glthread_recursive_lock_lock_multithreaded): Renamed from
29741         glthread_recursive_lock_lock. Return error code.
29742         (glthread_recursive_lock_unlock_multithreaded): Renamed from
29743         glthread_recursive_lock_unlock. Return error code.
29744         (glthread_recursive_lock_destroy_multithreaded): Renamed from
29745         glthread_recursive_lock_destroy. Return error code.
29746         (glthread_once_call): Make static.
29747         (glthread_once_multithreaded): Renamed from glthread_once.
29748         * lib/tls.h: Include <errno.h>.
29749         (glthread_tls_key_init): New macro/function.
29750         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
29751         (glthread_tls_set): New macro/function.
29752         (gl_tls_set): Define as wrapper around glthread_tls_set.
29753         (glthread_tls_key_destroy): New macro/function.
29754         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
29755         Update function declarations.
29756         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
29757         glthread_tls_get.
29758         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29759
29760 2008-08-04  Eric Blake  <ebb9@byu.net>
29761
29762         gnumakefile: use space, not TAB, outside of targets
29763         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
29764
29765 2008-08-02  Jim Meyering  <meyering@redhat.com>
29766
29767         getdate.y: avoid locale-dependent date parsing failure
29768         In Turkish locales, getdate would fail to recognize keywords
29769         containing a lowercase "i".  The solution is not to rely on
29770         locale-sensitive case-conversion.
29771         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
29772         (lookup_word): Use c_toupper in place of toupper.
29773         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
29774         Reported by Vefa Bicakci <bicave@superonline.com> in
29775         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
29776         * modules/getdate (Depends-on): Add c-ctype.
29777
29778 2008-08-02  Bruno Haible  <bruno@clisp.org>
29779
29780         * gnulib-tool (func_import): When updating or creating a .gitignore
29781         file, prepend each added line with a slash, and ignore leading slashes
29782         from the existing lines.
29783         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29784
29785 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29786
29787         Portability fix for GNU make 3.79.1.
29788         * top/GNUmakefile: Avoid 'else COND', which older GNU make
29789         versions do not understand.
29790
29791 2008-08-01  Bruno Haible  <bruno@clisp.org>
29792
29793         Work around bug of HP-UX 10.20 cc with -0.0 literal.
29794         * tests/test-isnanf.h (zero): New variable.
29795         (main): Avoid literal -0.0f.
29796         * tests/test-isnand.h (zero): New variable.
29797         (main): Avoid literal -0.0.
29798         * tests/test-isnanl.h (zero): New variable.
29799         (main): Avoid literal -0.0L.
29800         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
29801         (test_float, test_double, test_long_double): Avoid literals -0.0f,
29802         -0.0, -0.0L.
29803         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
29804         (test_signbitd): Avoid literal -0.0.
29805         (test_signbitl): Avoid literal -0.0L.
29806         * tests/test-ceilf1.c (zero): New variable.
29807         (main): Avoid literal -0.0f.
29808         * tests/test-ceill.c (zero): New variable.
29809         (main): Avoid literal -0.0L.
29810         * tests/test-floorf1.c (zero): New variable.
29811         (main): Avoid literal -0.0f.
29812         * tests/test-floorl.c (zero): New variable.
29813         (main): Avoid literal -0.0L.
29814         * tests/test-roundf1.c (zero): New variable.
29815         (main): Avoid literal -0.0f.
29816         * tests/test-round1.c (zero): New variable.
29817         (main): Avoid literal -0.0.
29818         * tests/test-roundl.c (zero): New variable.
29819         (main): Avoid literal -0.0L.
29820         * tests/test-truncf1.c (zero): New variable.
29821         (main): Avoid literal -0.0f.
29822         * tests/test-trunc1.c (zero): New variable.
29823         (main): Avoid literal -0.0.
29824         * tests/test-truncl.c (zero): New variable.
29825         (main): Avoid literal -0.0L.
29826         * tests/test-frexp.c (zero): New variable.
29827         (main): Avoid literal -0.0.
29828         * tests/test-frexpl.c (zero): New variable.
29829         (main): Avoid literal -0.0L.
29830         * tests/test-ldexpl.c (zero): New variable.
29831         (main): Avoid literal -0.0L.
29832         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29833         (zerod, zerol): New variables.
29834         (test_function): Avoid literals -0.0, -0.0L.
29835         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29836         (zerod, zerol): New variables.
29837         (test_function): Avoid literals -0.0, -0.0L.
29838         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29839         (zerod, zerol): New variables.
29840         (test_function): Avoid literals -0.0, -0.0L.
29841         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29842         (zerod, zerol): New variables.
29843         (test_function): Avoid literals -0.0, -0.0L.
29844         * tests/test-strtod.c (zero): New variable.
29845         (main): Avoid literal -0.0.
29846         Reported by Jonathan C. Patschke <jp@centtech.com>.
29847
29848 2008-07-31  Jim Meyering  <meyering@redhat.com>
29849
29850         sha256.h: correct definition of SHA224_DIGEST_SIZE
29851         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
29852         Reported by Paulie Pena IV <paulie4@gmail.com>.
29853         Define as 224 / 8, rather than as a literal.
29854         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
29855         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
29856         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
29857
29858 2008-07-31  Bruno Haible  <bruno@clisp.org>
29859
29860         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
29861         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
29862         Reported by Jonathan Patschke <jp@centtech.com>.
29863
29864 2008-07-31  Bruno Haible  <bruno@clisp.org>
29865
29866         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
29867         Reported by Paolo Bonzini <bonzini@gnu.org>.
29868
29869 2008-07-30  Eric Blake  <ebb9@byu.net>
29870
29871         test-strtod: allow compilation without -lm
29872         * tests/test-strtod.c (main): Avoid link dependence on fabs.
29873         Reported by Dennis Clarke <blastwave@gmail.com>.
29874
29875 2008-07-28  Jim Meyering  <meyering@redhat.com>
29876
29877         bootstrap: work also when there are no .po files in po/
29878         * build-aux/bootstrap (update_po_files): Complete the change
29879         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
29880
29881 2008-07-27  Jim Meyering  <meyering@redhat.com>
29882
29883         * users.txt: Add zile.
29884
29885 2008-07-26  Ben Pfaff  <blp@gnu.org>
29886
29887         Add missing dependencies on new m4/exponent[fdl].m4 files.
29888         * modules/isnanf-nolibm: Add m4/exponentf.m4.
29889         * modules/isnand-nolibm: Add m4/exponentd.m4.
29890         * modules/isnanl-nolibm: Add m4/exponentl.m4.
29891         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
29892         m4/isnan[fdl].m4, because the macros actually used moved.
29893         Reported by Jim Meyering.
29894
29895 2008-07-14  Ben Pfaff  <blp@gnu.org>
29896
29897         Add isinf module.
29898         * lib/isinf.c: New file.
29899         * lib/math.in.h: Define isinf macro if we have decided to replace
29900         it.
29901         * m4/isinf.m4: New file.
29902         * m4/math_h.m4: Initialize and substitute variables for isinf
29903         module.
29904         * modules/isinf: New file.
29905         * modules/isinf-tests: New file.
29906         * modules/math: Add substitutions for new module.
29907         * tests/test-isinf.c: New file.
29908         * doc/posix-functions/isinf.texi: Mention new module.
29909         * MODULES.html.sh: Mention new module.
29910
29911 2008-07-14  Ben Pfaff  <blp@gnu.org>
29912
29913         Factor out some macros for use by additional modules.
29914         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
29915         exponentf.m4.
29916         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
29917         exponentd.m4.
29918         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
29919         file exponentl.m4.
29920         * m4/exponentf.m4: New file.
29921         * m4/exponentd.m4: New file.
29922         * m4/exponentl.m4: New file.
29923         * modules/isnanf: Use new file m4/exponentf.m4.
29924         * modules/isnand: Use new file m4/exponentd.m4.
29925         * modules/isnanl: Use new file m4/exponentl.m4.
29926
29927 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
29928
29929         mktime.c: normalize tp->tm_isdst value to -1/0/1.
29930         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
29931         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
29932         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
29933
29934         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
29935         readlink on platforms without PATH_MAX.
29936
29937 2008-07-21  Eric Blake  <ebb9@byu.net>
29938
29939         Warn, not fail, on stale version.
29940         * top/GNUmakefile (_curr-ver): Tone down previous patch.
29941
29942         Don't allow installation with stale devel version number.
29943         * top/GNUmakefile (_is-install-target): New macro.
29944         (_curr-ver): Forbid installation with stale version number.
29945
29946 2008-07-20  Bruno Haible  <bruno@clisp.org>
29947
29948         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
29949         TESTS_ENVIRONMENT.
29950         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
29951
29952 2008-07-20  Bruno Haible  <bruno@clisp.org>
29953
29954         * lib/c-stack.h (c_stack_action): Add documentation.
29955         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
29956
29957 2008-07-20  Bruno Haible  <bruno@clisp.org>
29958
29959         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
29960         * modules/readlink (License): Likewise.
29961
29962 2008-07-17  Eric Blake  <ebb9@byu.net>
29963
29964         * modules/c-stack (Link): Fix typo.
29965
29966         Make c-stack use libsigsegv, when available.
29967         * modules/c-stack (Depends-on): Add libsigsegv.
29968         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
29969         needed.
29970         * lib/c-stack.c (SIGSTKSZ): Define fallback.
29971         (segv_handler, overflow_handler, c_stack_action)
29972         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
29973         implementation when libsigsegv is available, but only when using
29974         the library is necessary.
29975         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
29976         comment, explaining why XSI check fails on Linux.
29977         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
29978         * tests/test-c-stack2.sh: Tweak skip message.
29979         * NEWS: Document new link-time requirements.
29980
29981 2008-07-16  Eric Blake  <ebb9@byu.net>
29982
29983         c-stack: Expose false positives when not using libsigsegv.
29984         * modules/c-stack-tests (Files): Expand test.
29985         * tests/test-c-stack.c (main): Add means to conditionally trigger
29986         non-overflow SIGSEGV.
29987         * tests/test-c-stack2.sh: New file.
29988
29989 2008-07-14  Bruno Haible  <bruno@clisp.org>
29990
29991         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
29992         Reported by Eric Blake.
29993
29994 2008-07-14  Sam Steingold  <sds@gnu.org>
29995             Bruno Haible  <bruno@clisp.org>
29996
29997         New module libsigsegv.
29998         * modules/libsigsegv: New file.
29999         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
30000         modifications.
30001         * MODULES.html.sh (Signal handling): New section.
30002
30003 2008-07-14  Bruno Haible  <bruno@clisp.org>
30004
30005         * modules/unictype/ctype-* (Description): Add the word "function".
30006         Improves the resulting doc in MODULES.html.
30007
30008 2008-07-12  Ben Pfaff  <blp@gnu.org>
30009
30010         Add longlong module.
30011         * modules/longlong: New file.
30012
30013 2008-07-12  Bruno Haible  <bruno@clisp.org>
30014
30015         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
30016         to empty.
30017
30018 2008-07-10  Ben Pfaff  <blp@gnu.org>
30019
30020         Add isnan module.
30021         * doc/posix-functions/isnan.texi: Mention new module.
30022         * lib/math.in.h: Define isnan macro if we have decided to replace
30023         it.
30024         * m4/isnan.m4: New file.
30025         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
30026         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
30027         also.
30028         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
30029         redundancy.
30030         * m4/math_h.m4: Initialize and substitute variables for isnan
30031         module.
30032         * modules/isnan: New file.
30033         * modules/isnan-tests: New file.
30034         * modules/math: Add substitutions for new module.
30035         * tests/test-isnan.c: New file.
30036         * MODULES.html.sh: Mention new module.
30037
30038 2008-07-10  Ben Pfaff  <blp@gnu.org>
30039
30040         Add isnanf module.
30041         * lib/isnanf.m4: New file.
30042         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
30043         (gl_HAVE_ISNANF_IN_LIBM): New macro.
30044         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
30045         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
30046         * modules/isnanf: New file.
30047         * modules/isnanf-tests: New file.
30048         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
30049         files.
30050         * tests/test-isnanf-nolibm.c: factored most of its contents into
30051         new file tests/test-isnanf.h.
30052         * tests/test-isnanf.h: New file.
30053         * tests/test-isnanf.c: New file.
30054         * MODULES.html.sh: Mention new module.
30055         * doc/glibc-functions/isnanf.texi: Mention new module.
30056
30057 2008-07-10  Ben Pfaff  <blp@gnu.org>
30058
30059         Add isnand module.
30060         * lib/isnand.h: New file.
30061         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
30062         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
30063         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
30064         functionality also.
30065         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
30066         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
30067         (gl_HAVE_ISNAND_IN_LIBM): New macro.
30068         * modules/isnand: New file.
30069         * modules/isnand-tests: New file.
30070         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
30071         files.
30072         * tests/test-isnand-nolibm.c: factored most of its contents into
30073         new file tests/test-isnand.h.
30074         * tests/test-isnand.h: New file.
30075         * tests/test-isnand.c: New file.
30076         * MODULES.html.sh: Mention new module.
30077
30078 2008-07-10  Ben Pfaff  <blp@gnu.org>
30079
30080         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
30081         * lib/isnand.h: Rename lib/isnand-nolibm.h.
30082         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
30083         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
30084         * modules/isnanf-nolibm: Update references to renamed files.
30085         * modules/isnand-nolibm: Likewise.
30086         * modules/isnanf-nolibm-tests: Likewise.
30087         * modules/isnand-nolibm-tests: Likewise.
30088         * lib/frexp.c: Likewise.
30089         * lib/isfinite.c: Likewise.
30090         * lib/signbitd.c: Likewise.
30091         * lib/signbitf.c: Likewise.
30092         * lib/vasnprintf.c: Likewise.
30093         * tests/test-ceilf1.c: Likewise.
30094         * tests/test-ceilf2.c: Likewise.
30095         * tests/test-floorf1.c: Likewise.
30096         * tests/test-floorf2.c: Likewise.
30097         * tests/test-frexp.c: Likewise.
30098         * tests/test-round1.c: Likewise.
30099         * tests/test-round2.c: Likewise.
30100         * tests/test-roundf1.c: Likewise.
30101         * tests/test-strtod.c: Likewise.
30102         * tests/test-trunc1.c: Likewise.
30103         * tests/test-trunc2.c: Likewise.
30104         * tests/test-truncf1.c: Likewise.
30105         * tests/test-truncf2.c: Likewise.
30106         * NEWS: Mention the renamed header files.
30107
30108 2008-07-11  Jim Meyering  <meyering@redhat.com>
30109
30110         vc-list-files: make the last-resort awk code more portable
30111         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
30112         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
30113         does not support it.
30114
30115 2008-07-10  Eric Blake  <ebb9@byu.net>
30116
30117         Work with tar's bootstrap.
30118         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
30119         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
30120         an m4 comment.
30121
30122 2008-07-09  Jim Meyering  <meyering@redhat.com>
30123
30124         posix-shell.m4: fix typo that made this test malfunction
30125         * m4/posix-shell.m4: Remove capitalization in variable name.
30126
30127 2008-07-08  Bruno Haible  <bruno@clisp.org>
30128
30129         * m4/onceonly.m4: Update comments.
30130         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30131
30132 2008-07-04  Jim Meyering  <meyering@redhat.com>
30133
30134         * users.txt: Add vc-dwim.
30135         (bison, coreutils): Use the gitweb URL.
30136
30137 2008-07-03  Jim Meyering  <meyering@redhat.com>
30138
30139         * users.txt: Add libffcall.  From Sam Steingold.
30140
30141 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
30142
30143         getdate.y: do not ignore TZ with relative day, month or year offset
30144         * lib/getdate.y (get_date): Move the tz-handling block to follow the
30145         relative-date-handling, since otherwise, the latter would clobber the
30146         sole output (an updated Start value) of the tz-handling block.
30147         * tests/test-getdate.c: Tests for the fix
30148
30149 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30150
30151         Recognize 'foo_LIBRARIES += libgnu.a'.
30152         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
30153         makefile snippet has already specified an installation location,
30154         also using '+='.
30155
30156 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
30157
30158         getdate.y: factor out common actions
30159         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
30160         Use them in place of open-coded actions.
30161
30162 2008-07-01  Simon Josefsson  <simon@josefsson.org>
30163
30164         Add self-test for getdate module.
30165         * modules/getdate-tests: New file.
30166         * tests/test-getdate.c: New file.
30167
30168 2008-06-29  Bruno Haible  <bruno@clisp.org>
30169
30170         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
30171         .gitignore.
30172         Reported by Sylvain Beucler <beuc@beuc.net>.
30173
30174 2008-06-29  Bruno Haible  <bruno@clisp.org>
30175
30176         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
30177         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
30178
30179 2008-06-29  Bruno Haible  <bruno@clisp.org>
30180
30181         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
30182         EXTRA_DIST.
30183         Reported by Sylvain Beucler <beuc@beuc.net>.
30184
30185 2008-06-26  Jim Meyering  <meyering@redhat.com>
30186
30187         make several modules depend on the "open" module
30188         This provides slightly increased consistency when opening-for-write
30189         the name of a non-directory spelled with a trailing slash.
30190         * modules/chdir-safer: Likewise.
30191         * modules/chown: Likewise.
30192         * modules/clean-temp: Likewise.
30193         * modules/copy-file: Likewise.
30194         * modules/fchdir: Likewise.
30195         * modules/fcntl-safer: Likewise.
30196         * modules/pipe: Likewise.
30197         * modules/utime: Likewise.
30198         Prompted by Eric Blake and Bruno Haible.
30199
30200 2008-06-24  Andreas Schwab  <schwab@suse.de>
30201
30202         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
30203         literals can be used as initializers for global variables.
30204
30205 2008-06-23  Eric Blake  <ebb9@byu.net>
30206
30207         Make gnulib-cache.m4 easier to diff.
30208         * gnulib-tool (func_import): Allow newlines when reading cached
30209         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
30210
30211 2008-06-23  Bruno Haible  <bruno@clisp.org>
30212
30213         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
30214         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
30215         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
30216         m4/signalblocking.m4.
30217         (gl_PREREQ_SIGACTION): Don't invoke it.
30218         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
30219         gl_PREREQ_SIG_HANDLER_H.
30220         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30221         Don't check for sigaction here.
30222
30223 2008-06-23  Bruno Haible  <bruno@clisp.org>
30224
30225         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
30226         (install_handlers): Don't set the SA_RESETHAND flag.
30227
30228 2008-06-23  Bruno Haible  <bruno@clisp.org>
30229
30230         * m4/sigaction.m4: Comment fixes.
30231         * lib/signal.in.h: Likewise.
30232
30233 2008-06-23  Eric Blake  <ebb9@byu.net>
30234
30235         Fix typo.
30236         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
30237
30238         Avoid SA_ namespace.
30239         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
30240         Reported by Ralf Wildenhues.
30241
30242         Avoid test failure due to SA_RESTORER.
30243         * tests/test-sigaction.c (SA_MASK): New macro.
30244         (main): Avoid failing due to extension flags being set.
30245         Reported by Jim Meyering.
30246
30247         Revert use of sig-handler.h in sigprocmask.c.
30248         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
30249         it requires the existence of struct sigaction.
30250         * lib/sigprocmask.c (handler_t): Restore typedef.
30251         (rpl_signal, old_handlers): Use local type.
30252
30253 2008-06-22  Bruno Haible  <bruno@clisp.org>
30254
30255         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
30256         conditionally.
30257         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30258
30259 2008-06-22  Bruno Haible  <bruno@clisp.org>
30260
30261         * doc/posix-functions/siginterrupt.texi: Move note.
30262
30263         * lib/signal.in.h (SA_RESTART): New macro.
30264         * lib/sigaction.c: Update comment.
30265
30266         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
30267
30268         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
30269         (gl_PREREQ_SIGPROCMASK): Invoke it.
30270         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
30271
30272         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
30273
30274         * lib/sigprocmask.c: Update a comment.
30275
30276 2008-06-21  Eric Blake  <ebb9@byu.net>
30277
30278         Use sigaction module rather than signal().
30279         * modules/c-stack (Depends-on): Add sigaction.
30280         * modules/fatal-signal (Depends-on): Likewise.
30281         * modules/nanosleep (Depends-on): Likewise.
30282         * modules/sigprocmask (Files): Add sig-handler.h.
30283         * modules/sigaction (Files): Likewise.
30284         * lib/sig-handler.h (get_handler): New file, suggested by Paul
30285         Eggert.
30286         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
30287         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
30288         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
30289         (init_fatal_signals): Likewise.
30290         * lib/nanosleep.c (rpl_nanosleep): Likewise.
30291         (siginterrupt): Delete fallback.
30292         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
30293         instead.
30294         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
30295         siginterrupt.
30296
30297         New module sigaction, for mingw.
30298         * modules/sigaction: New module...
30299         * modules/sigaction-tests: ...and its test.
30300         * m4/sigaction.m4: New file.
30301         * lib/sigaction.c: Likewise.
30302         * tests/test-sigaction.c: Likewise.
30303         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
30304         * modules/signal (Makefile.am): Likewise.
30305         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
30306         needed.
30307         * doc/posix-headers/signal.texi (signal.h): Mention provided
30308         types.
30309         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
30310         that sigaction is preferable.
30311         * doc/posix-functions/sigaction.texi (sigaction): Mention new
30312         module.
30313         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30314         sigaction.
30315
30316         Improve robustness of sigprocmask by overriding signal.
30317         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
30318         is in use.
30319         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
30320         (SIGKILL, SIGSTOP): Provide fallbacks.
30321         (rpl_signal): Implement.
30322         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
30323         signal can be called inside handlers.
30324
30325         Fix nanosleep module on mingw.
30326         * modules/nanosleep (Depends-on): Add sys_select.
30327         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
30328
30329         Fix licensing of sigprocmask.
30330         * modules/raise (License): Relicense as LGPL.
30331
30332 2008-06-21  Bruno Haible  <bruno@clisp.org>
30333
30334         * lib/propername.c (proper_name_utf8): Don't use the transliterated
30335         result if it contains question marks.
30336         Reported by Michael Geng <linux@michaelgeng.de>.
30337
30338 2008-06-19  Bruno Haible  <bruno@clisp.org>
30339
30340         Fix CVS-ism.
30341         * doc/gnulib.texi: Include updated-stamp.texi.
30342         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
30343         (updated-stamp.texi): New rule.
30344         (gnulib.info): Depend on it.
30345         * doc/.gitignore: Add updated-stamp.texi.
30346         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
30347
30348 2008-06-19  Bruno Haible  <bruno@clisp.org>
30349
30350         * doc/Makefile (gnulib.info): Update and simplify dependencies.
30351         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30352
30353 2008-06-19  Eric Blake  <ebb9@byu.net>
30354
30355         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
30356         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
30357         Reported by Stepan Kasal.
30358
30359 2008-06-18  Bruno Haible  <bruno@clisp.org>
30360
30361         * lib/fatal-signal.c (init_fatal_signals): Add comment.
30362         Reported by Eric Blake.
30363
30364 2008-06-18  Eric Blake  <ebb9@byu.net>
30365
30366         Work around cygwin 1.5.25 strsignal bug.
30367         * tests/test-strsignal.c: Allow for const char *.
30368         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
30369
30370 2008-06-18  Simon Josefsson  <simon@josefsson.org>
30371
30372         * users.txt: Update URL to article and add author/date
30373         information.
30374
30375 2008-06-17  Bruno Haible  <bruno@clisp.org>
30376
30377         New macro gl_DISABLE_THREADS.
30378         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
30379         if the user did not pass --enable-threads or --disable-threads option.
30380         (gl_DISABLE_THREADS): New macro.
30381         Reported by Eric Blake <ebb9@byu.net>.
30382
30383 2008-06-17  Bruno Haible  <bruno@clisp.org>
30384
30385         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
30386         when the macro ignores it.
30387         Based on a patch by Eric Blake <ebb9@byu.net>.
30388
30389 2008-06-17  Bruno Haible  <bruno@clisp.org>
30390
30391         * modules/tls (License): Change to LGPLv2+.
30392         Reported by Eric Blake.
30393
30394 2008-06-17  Eric Blake  <ebb9@byu.net>
30395
30396         Simplify c-stack prerequisites.
30397         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
30398         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
30399         no longer requires <ucontext.h> to exist.  Optimize setrlimit
30400         check.
30401         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
30402         <sys/resource.h>.
30403
30404         Move c-stack test into testsuite.
30405         * modules/c-stack-tests: New file.
30406         * lib/c-stack.c [DEBUG]: Move test program...
30407         * tests/test-c-stack.c: ...into this new file.  Skip rather than
30408         fail test if sigaltstack is lacking.
30409         * tests/test-c-stack.sh: New driver file.
30410
30411 2008-06-16  Eric Blake  <ebb9@byu.net>
30412
30413         Use raise module consistently.
30414         * modules/fatal-signal (Depends-on): Add raise.
30415         * modules/sigprocmask (Depends-on): Likewise.
30416         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
30417         * lib/sigprocmask.c (sigprocmask): Likewise.
30418         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30419         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
30420
30421         Fix compliance bug in sigpending.
30422         * lib/sigprocmask.c (sigpending): Return pending array via
30423         parameter, not return value.
30424
30425 2008-06-14  Eric Blake  <ebb9@byu.net>
30426
30427         Improve obstack-printf test code.
30428         * tests/test-obstack-printf.c (test_function): Fix comment, and
30429         simplify usage of obstack_* in macros.  Add a test for coverage.
30430         Reported by Bruno Haible.
30431
30432 2008-06-14  Bruno Haible  <bruno@clisp.org>
30433
30434         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
30435         array size as a constant, not as a const variable.
30436         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
30437         AC_USE_SYSTEM_EXTENSIONS.
30438         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30439         Test whether the obstack_printf function actually exists.
30440         * modules/obstack-printf (Depends-on): Add extensions.
30441         (Include): Remove obstack.h.
30442         * modules/obstack-printf-posix (Depends-on): Add extensions.
30443         (Include): Remove obstack.h.
30444
30445 2008-06-13  Eric Blake  <ebb9@byu.net>
30446
30447         Add obstack-printf and obstack-printf-posix modules.
30448         * modules/obstack-printf: New file.
30449         * modules/obstack-printf-posix: Likewise.
30450         * MODULES.html.sh (Misc): Mention them.
30451         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30452         Likewise.
30453         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30454         Likewise.
30455         * modules/stdio (Makefile.am): Accomodate new modules.
30456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30457         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
30458         Declare.
30459         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
30460         functions.
30461         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
30462         (gl_REPLACE_OBSTACK_PRINTF): New macros
30463         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
30464         * tests/test-obstack-printf.c: New file.
30465         * modules/obstack-printf-tests: Likewise.
30466         * modules/obstack-printf-posix-tests: Likewise.
30467
30468 2008-06-11  Bruno Haible  <bruno@clisp.org>
30469
30470         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
30471         * lib/open.c: Include errno.h.
30472         (open): Fail when attempting to write to a file that has a trailing
30473         slash.
30474         * tests/test-open.c (main): Test against trailing slash bug.
30475         * doc/posix-functions/open.texi: Mention the trailing slash bug.
30476
30477 2008-06-10  Bruno Haible  <bruno@clisp.org>
30478
30479         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
30480         for $? to work inside the trap command, with various /bin/sh-s.
30481         * tests/test-vc-list-files-cvs.sh: Likewise.
30482
30483 2008-06-10  Bruno Haible  <bruno@clisp.org>
30484
30485         * lib/acl-internal.h: Don't include gettext.h here.
30486         * lib/set-mode-acl.c: Include gettext.h here.
30487         * lib/copy-acl.c: Likewise.
30488
30489 2008-06-10  Bruno Haible  <bruno@clisp.org>
30490
30491         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
30492         * lib/wait-process.c (wait_subprocess): Likewise.
30493         * lib/execute.h (execute): Add termsigp argument.
30494         * lib/execute.c (execute): Likewise.
30495         * lib/csharpcomp.c (compile_csharp_using_pnet,
30496         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
30497         * lib/csharpexec.c (execute_csharp_using_pnet,
30498         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
30499         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
30500         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
30501         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
30502         is_jikes_present): Update.
30503         * lib/javaexec.c (execute_java_class): Update.
30504         * lib/javaversion.c (execute_and_read_line): Update.
30505         * NEWS: Document the changes.
30506         Reported by Eric Blake.
30507
30508 2008-06-10  Eric Blake  <ebb9@byu.net>
30509
30510         Add missing include.
30511         * tests/test-strstr.c (includes): Add <signal.h>.
30512         * tests/test-strcasestr.c (includes): Likewise.
30513         * tests/test-memmem.c (includes): Likewise.
30514
30515 2008-06-10  Bruno Haible  <bruno@clisp.org>
30516
30517         * lib/wait-process.c (wait_subprocess): Add an assertion.
30518
30519 2008-06-10  Bruno Haible  <bruno@clisp.org>
30520
30521         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
30522
30523 2008-06-10  Bruno Haible  <bruno@clisp.org>
30524
30525         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
30526         using alarm().
30527         * tests/test-strcasestr.c (main): Likewise.
30528         * tests/test-strstr.c (main): Likewise.
30529
30530 2008-06-09  Bruno Haible  <bruno@clisp.org>
30531
30532         Work around the Solaris 10 ACE ACLs ABI change.
30533         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
30534         declare if ACL_NO_TRIVIAL is present.
30535         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
30536         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
30537         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
30538         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
30539         define if ACL_NO_TRIVIAL is present.
30540         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
30541         and use the current ABI.
30542         (file_has_acl): Use same #if condition as elsewhere.
30543         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
30544         in use, and use the current ABI.
30545         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
30546         Reported by Jim Meyering.
30547
30548 2008-06-09  Eric Blake  <ebb9@byu.net>
30549
30550         Work around environments that (stupidly) ignore SIGALRM.
30551         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
30552         before using alarm().
30553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30554         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30555         Reported by Ian Beckwith <ianb@erislabs.net>.
30556
30557         Produce autobuild blurb earlier in log.
30558         * modules/autobuild (configure.ac-early): Move AB_INIT here.
30559
30560 2008-06-09  Jim Meyering  <meyering@redhat.com>
30561         and OndÅ™ej Vašík  <ovasik@redhat.com>
30562
30563         utimens.c: correct kernel bug work-around
30564         OndÅ™ej Vašík found that the invalid return value of 280 indicates
30565         failure, not success, and the kernel bug we're trying to work
30566         around affects not just the utimensat call, but also the fallback
30567         futimens call.
30568         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
30569         not success.
30570         [HAVE_FUTIMENS]: Use the same work-around, here.
30571
30572 2008-06-09  Jim Meyering  <meyering@redhat.com>
30573
30574         add more guards around definition of ACE_-related code
30575         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
30576         ALLOW and ACE_OWNER are also defined.
30577
30578 2008-06-08  Bruno Haible  <bruno@clisp.org>
30579
30580         * lib/acl-internal.h: Add me as co-author.
30581         * lib/file-has-acl.c: Likewise.
30582         * lib/set-mode-acl.c: Likewise.
30583         * lib/copy-acl.c: Likewise.
30584
30585 2008-06-08  Bruno Haible  <bruno@clisp.org>
30586
30587         Add support for AIX ACLs.
30588         * lib/acl-internal.h (acl_nontrivial): New declaration.
30589         * lib/file-has-acl.c (acl_nontrivial): New function.
30590         (file_has_acl): Add implementation using AIX 4 ACL API.
30591         * lib/set-mode-acl.c (qset_acl): Likewise.
30592         * lib/copy-acl.c (qcopy_acl): Likewise.
30593
30594 2008-06-08  Bruno Haible  <bruno@clisp.org>
30595
30596         Add support for HP-UX ACLs.
30597         * lib/acl-internal.h (acl_nontrivial): New declaration.
30598         * lib/file-has-acl.c (acl_nontrivial): New function.
30599         (file_has_acl): Add implementation using HP-UX 11 ACL API.
30600         * lib/set-mode-acl.c (qset_acl): Likewise.
30601         * lib/copy-acl.c (qcopy_acl): Likewise.
30602
30603 2008-06-08  Bruno Haible  <bruno@clisp.org>
30604
30605         Add support for Cygwin ACLs.
30606         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
30607         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
30608         the chmod_or_fchmod call.
30609         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
30610
30611 2008-06-08  Bruno Haible  <bruno@clisp.org>
30612
30613         Fix bug with setuid modes in Solaris 10+ code.
30614         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
30615         succeeded, when the mode contains some special bits.
30616
30617 2008-06-08  Bruno Haible  <bruno@clisp.org>
30618
30619         Add support for Solaris 7..10 ACLs.
30620         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
30621         declarations.
30622         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
30623         functions.
30624         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
30625         * lib/set-mode-acl.c (qset_acl): Likewise.
30626         * lib/copy-acl.c (qcopy_acl): Likewise.
30627
30628 2008-06-08  Bruno Haible  <bruno@clisp.org>
30629
30630         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
30631         declaration.
30632         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
30633         (acl_access_nontrivial): Remove MacOS X case.
30634         (file_has_acl): Use acl_extended_nontrivial.
30635         * lib/copy-acl.c (qcopy_acl): Likewise.
30636
30637 2008-06-08  Bruno Haible  <bruno@clisp.org>
30638
30639         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
30640
30641 2008-06-08  Jim Meyering  <meyering@redhat.com>
30642
30643         * modules/acl (Maintainer): Add Bruno Haible.
30644
30645 2008-06-07  Bruno Haible  <bruno@clisp.org>
30646
30647         Improve support for Tru64 ACLs.
30648         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
30649         ACL on OSF/1.
30650
30651 2008-06-07  Bruno Haible  <bruno@clisp.org>
30652
30653         Add support for MacOS X ACLs.
30654         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
30655         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
30656         * lib/set-mode-acl.c (qset_acl): Likewise.
30657         * lib/copy-acl.c (qcopy_acl): Likewise.
30658
30659 2008-06-07  Bruno Haible  <bruno@clisp.org>
30660
30661         Fix memory leak introduced on 2008-05-22.
30662         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
30663         use.
30664
30665 2008-06-07  Bruno Haible  <bruno@clisp.org>
30666
30667         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
30668         to construct an empty ACL.
30669
30670 2008-06-07  Bruno Haible  <bruno@clisp.org>
30671
30672         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
30673         precisely.
30674         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
30675
30676 2008-06-07  Bruno Haible  <bruno@clisp.org>
30677
30678         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
30679         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
30680
30681 2008-06-07  Bruno Haible  <bruno@clisp.org>
30682
30683         * doc/posix-functions/_setjmp.texi: Explain the use of this function
30684         regardless of POSIX.
30685         * doc/posix-functions/_longjmp.texi: Likewise.
30686         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
30687         SystemV platform in this case.
30688
30689 2008-06-06  Eric Blake  <ebb9@byu.net>
30690
30691         Document abort() bugs.
30692         * doc/posix-functions/abort.texi (abort): Mention anomalies.
30693
30694         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
30695         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
30696         sigsetjmp.
30697         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
30698         siglongjmp, but only as a macro.
30699         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
30700         is obsolete.
30701         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
30702
30703         Tweak documentation to cover cygwin argz bugs.
30704         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
30705         argz bug fix; no code change needed since no cygwin releases
30706         occurred between the last fix and the bug being tested.
30707         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
30708         module and recently fixed cygwin bugs.
30709         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
30710         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
30711         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
30712         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
30713         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
30714         Likewise.
30715         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
30716         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
30717         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
30718         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
30719         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
30720         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
30721         Likewise.
30722
30723         Avoid gcc warning on cygwin.
30724         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
30725         !ACL_NO_TRIVIAL]: Avoid unused variable.
30726
30727 2008-06-05  Eric Blake  <ebb9@byu.net>
30728
30729         Be tolerant of UNKNOWN version in gnulib-tool test dir.
30730         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
30731         git-version-gen fails to come up with a version.
30732         Reported by Simon Josefsson.
30733
30734 2008-06-05  Jim Meyering  <meyering@redhat.com>
30735             Paul Eggert  <eggert@cs.ucla.edu>
30736
30737         utimens.c: work around a probable Linux kernel bug
30738         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
30739         appears to be a kernel bug that causes utimensat to return 280
30740         instead of 0, indicating success.
30741
30742 2008-06-04  Bruno Haible  <bruno@clisp.org>
30743
30744         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
30745         2008-06-01 commit.
30746
30747 2008-06-04  Bruno Haible  <bruno@clisp.org>
30748
30749         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
30750         * lib/file-has-acl.c (acl_access_nontrivial): New function.
30751         (file_has_acl): Use it. Save errno afterwards.
30752         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
30753
30754 2008-06-03  Bruno Haible  <bruno@clisp.org>
30755
30756         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
30757         draft code. Simplify #ifs.
30758         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
30759         Put Solaris code after POSIX-draft code. Fix comments regarding
30760         Solaris 10, HP-UX. Mention Cygwin.
30761         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
30762
30763 2008-06-03  Eric Blake  <ebb9@byu.net>
30764
30765         Provide fallback for older kernels.
30766         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
30767         Provide runtime fallback if kernel lacks support.
30768         Reported by Mike Frysinger.
30769
30770 2008-06-02  Bruno Haible  <bruno@clisp.org>
30771
30772         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
30773         it exists.
30774
30775 2008-06-02  Bruno Haible  <bruno@clisp.org>
30776
30777         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
30778         * lib/copy-acl.c (qcopy_acl): Update comment.
30779
30780 2008-06-02  Bruno Haible  <bruno@clisp.org>
30781
30782         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
30783         like ACL APIs.
30784
30785 2008-06-02  Bruno Haible  <bruno@clisp.org>
30786
30787         * tests/test-file-has-acl.sh: Use different code for Cygwin.
30788         * tests/test-set-mode-acl.sh: Likewise.
30789         * tests/test-copy-acl.sh: Likewise.
30790         * tests/test-copy-file.sh: Likewise.
30791
30792 2008-06-02  Bruno Haible  <bruno@clisp.org>
30793
30794         * tests/test-file-has-acl.sh: Remove unused code.
30795
30796 2008-06-01  Bruno Haible  <bruno@clisp.org>
30797
30798         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
30799         (copy_acl): Just a wrapper around qcopy_acl that emits the error
30800         messages.
30801         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
30802
30803 2008-06-01  Bruno Haible  <bruno@clisp.org>
30804
30805         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
30806         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
30807         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
30808         APIs.
30809         * modules/acl-tests (configure.ac): Remove tests now contained in
30810         m4/acl.m4.
30811
30812 2008-06-02  Jim Meyering  <meyering@redhat.com>
30813
30814         announce-gen: use a better key-server host name
30815         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
30816         it may be more consistently reliable.  Suggested by Werner Koch
30817         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
30818
30819 2008-06-01  Bruno Haible  <bruno@clisp.org>
30820
30821         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
30822         Reported by Voroskoi Andras <voroskoi@gmail.com>.
30823
30824 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
30825
30826         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
30827
30828 2008-06-01  Bruno Haible  <bruno@clisp.org>
30829
30830         New ACL tests.
30831         * tests/test-file-has-acl.sh: New file.
30832         * tests/test-file-has-acl.c: New file.
30833         * tests/test-set-mode-acl.sh: New file.
30834         * tests/test-set-mode-acl.c: New file.
30835         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
30836         * tests/test-copy-acl.c: New file.
30837         * modules/acl-tests: New file, based on modules/copy-file-tests.
30838         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
30839         (Depends-on): Add acl-tests.
30840         (configure.ac): Remove checks.
30841         (Makefile.am): Don't create test-sameacls program here any more.
30842
30843 2008-06-01  Bruno Haible  <bruno@clisp.org>
30844
30845         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
30846         * tests/test-sameacls.c: Include progname.h.
30847         (main): Invoke set_program_name. Portability fixes for MacOS X,
30848         Solaris, HP-UX.
30849
30850 2008-06-01  Bruno Haible  <bruno@clisp.org>
30851
30852         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
30853         function.
30854         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
30855
30856 2008-06-01  Bruno Haible  <bruno@clisp.org>
30857
30858         * modules/rpmatch (Depends-on): Add strdup.
30859
30860 2008-06-01  Bruno Haible  <bruno@clisp.org>
30861
30862         * lib/pipe.c: Include unistd-safer.h.
30863         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
30864         * modules/pipe (Depends-on): Add unistd-safer.
30865
30866 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30867
30868         * modules/autobuild (configure.ac): Call AB_INIT.
30869
30870 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30871
30872         * tests/test-getaddrinfo.c: Don't print debug messages by default.
30873         Suggested by Bruno Haible <bruno@clisp.org>.
30874
30875 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30876
30877         * tests/test-base64.c: Cast size_t to unsigned long when invoking
30878         printf.  Use %lu instead of %d.  Reported by Bruno Haible
30879         <bruno@clisp.org>.
30880
30881 2008-05-29  Eric Blake  <ebb9@byu.net>
30882
30883         Prefer new POSIX 200x interfaces over futimesat.
30884         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
30885         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
30886         when available.
30887         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
30888
30889 2008-05-28  Bruno Haible  <bruno@clisp.org>
30890
30891         * modules/stpcpy (License): Change to LGPLv2+.
30892         Requested by David Lutterkort <dlutter@redhat.com>.
30893
30894 2008-05-27  Bruno Haible  <bruno@clisp.org>
30895
30896         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
30897         current mingw.
30898         Reported by Jose E. Marchesi <jemarch@gnu.org>.
30899
30900 2008-05-27  Bruno Haible  <bruno@clisp.org>
30901
30902         * modules/iconv_open (Link): New section, from module 'iconv'.
30903         * modules/striconv (Link): Likewise.
30904         * modules/striconveh (Link): Likewise.
30905         * modules/xstriconv (Link): Likewise.
30906         * modules/unicodeio (Link): Likewise.
30907         * modules/propername (Link): Likewise.
30908         Reported by Jim Meyering.
30909
30910 2008-05-26  Jim Meyering  <meyering@redhat.com>
30911
30912         sha256: do not artificially restrict buffer length to be < 2^32
30913         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
30914         uint32_t to size_t.
30915         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
30916         to match.
30917
30918         avoid unaligned access errors, e.g., on sparc
30919         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
30920         direct access through a possibly-unaligned uint64* pointer.
30921         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
30922         direct access through a possibly-unaligned uint32* pointer.
30923         Prompted by this patch from Tom "spot" Callaway:
30924         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
30925
30926         sha512.c: fix typo in comment
30927         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
30928
30929 2008-05-25  Bruno Haible  <bruno@clisp.org>
30930
30931         * lib/set-mode-acl.c: Renamed from lib/acl.c.
30932         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
30933         (Makefile.am): Update lib_SOURCES.
30934
30935 2008-05-25  Bruno Haible  <bruno@clisp.org>
30936
30937         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
30938
30939 2008-05-25  Jim Meyering  <meyering@redhat.com>
30940
30941         useless-if-before-free: freed expr may have white-space differences
30942         * build-aux/useless-if-before-free: Recognize cases in which the
30943         freed expression differs from the tested one in embedded white
30944         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
30945         $1 was used, so we can't make any regexp shy.  Improved tests now
30946         detect this.
30947
30948         useless-if-before-free: accept white space in the expression.
30949         * build-aux/useless-if-before-free: For now, any white space
30950         in the expression must be identical in the free argument.
30951
30952         useless-if-before-free: efficiency tweak
30953         * build-aux/useless-if-before-free: Make the expression-matching
30954         regexp "shy".
30955         Make the *outer* regexp shy, not the expr-matching one.
30956
30957         update code-in-comment to accept cast of free arg
30958         * build-aux/useless-if-before-free: Update regexp.
30959
30960 2008-05-25  Bruno Haible  <bruno@clisp.org>
30961
30962         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
30963         * modules/copy-file-tests (Files, Makefile.am): Update.
30964         * tests/test-copy-file.c (func_test_copy): Update.
30965
30966 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
30967
30968         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
30969
30970 2008-05-23  Bruno Haible  <bruno@clisp.org>
30971
30972         Improve support for ACLs on OSF/1.
30973         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
30974         Remove fallback for unknown flavors of ACLs.
30975
30976 2008-05-22  Bruno Haible  <bruno@clisp.org>
30977
30978         Add support for ACLs on OSF/1.
30979         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
30980         replacements.
30981         (acl_free_text): New macro fallback.
30982         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
30983         acl_free.
30984         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
30985         acl_free_text function. Require AC_C_INLINE.
30986
30987 2008-05-22  Bruno Haible  <bruno@clisp.org>
30988
30989         Make copy_acl work on MacOS X 10.5.
30990         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
30991         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
30992         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
30993         If MODE_INSIDE_ACL, don't assume that every system has the same text
30994         representation for ACLs as FreeBSD.
30995         * lib/copy-acl.c (copy_acl): Add support for platforms with
30996         !MODE_INSIDE_ACL.
30997         * lib/file-has-acl.c (file_has_acl): Likewise.
30998         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
30999         FreeBSD, MacOS X, or IRIX, respectively.
31000
31001 2008-05-22  Bruno Haible  <bruno@clisp.org>
31002
31003         * lib/acl.h: Don't include <sys/acl.h>.
31004         (GETACLCNT): Move fallback to lib/acl-internal.h.
31005         * lib/acl-internal.h: Include <sys/acl.h> here.
31006         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
31007
31008 2008-05-22  Bruno Haible  <bruno@clisp.org>
31009
31010         Split off copy_acl function to separate file.
31011         * lib/copy-acl.c: New file, extracted from lib/acl.c.
31012         * lib/acl.c (copy_acl): Moved function to separate file.
31013         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
31014         * modules/acl (Files): Add lib/copy-acl.c.
31015         (Makefiles.am): Augment lib_SOURCES.
31016
31017 2008-05-22  Bruno Haible  <bruno@clisp.org>
31018
31019         * modules/copy-file-tests: New file.
31020         * tests/test-copy-file.sh: New file.
31021         * tests/test-copy-file.c: New file.
31022         * tests/test-copy-file-sameacls.c: New file.
31023
31024 2008-05-22  Eric Blake  <ebb9@byu.net>
31025
31026         Avoid gcc warning.
31027         * tests/test-memcmp.c (main): Pass NULL indirectly.
31028
31029 2008-05-21  Bruno Haible  <bruno@clisp.org>
31030
31031         Add reference doc about ACLs.
31032         * doc/acl-resources.txt: New file.
31033         * doc/acl-cygwin.txt: New file.
31034
31035 2008-05-21  Bruno Haible  <bruno@clisp.org>
31036
31037         Avoid one more warning from gcc.
31038         * lib/vasnprintf.c (IF_LINT): Update comments.
31039         (VASNPRINTF): Use it also for the 'prefix' array initializer.
31040
31041 2008-05-21  Jim Meyering  <meyering@redhat.com>
31042
31043         avoid a warning from gcc
31044         * lib/vasnprintf.c (IF_LINT): Define.
31045         (scale10_round_decimal_long_double):
31046         Use it to avoid a "may be used uninitialized" warning.
31047         (scale10_round_decimal_double): Likewise.
31048
31049 2008-05-21  Simon Josefsson  <simon@josefsson.org>
31050
31051         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
31052         declared.
31053
31054 2008-05-20  Bruno Haible  <bruno@clisp.org>
31055
31056         * tests/test-memcmp.c (main): Test also the sign of the result. Test
31057         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
31058
31059 2008-05-20  Simon Josefsson  <simon@josefsson.org>
31060
31061         * modules/memcmp-tests: New file.
31062         * tests/test-memcmp.c: New file.
31063
31064 2008-05-19  Bruno Haible  <bruno@clisp.org>
31065
31066         * modules/propername (Notice, configure.ac): Put quoted "..." into
31067         --keyword option.
31068         * lib/propername.h: Update comments accordingly.
31069         Reported by Eric Blake.
31070
31071 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
31072
31073         * modules/getpass-gnu (Depends-on): Add fseeko.
31074
31075 2008-05-19  Simon Josefsson  <simon@josefsson.org>
31076
31077         * modules/base64-tests: New file.
31078
31079 2008-05-19  Bo Borgerson <gigabo@gmail.com>
31080
31081         * lib/base64.c (base64_decode_ctx): If a decode context structure
31082         was passed in use it to ignore newlines.  If a context structure
31083         was _not_ passed in, continue to treat newlines as garbage (this
31084         is the historical behavior).  Formerly base64_decode.
31085         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
31086         takes a decode context structure.
31087         * lib/base64.h (base64_decode): Macro for four-argument calls.
31088         (base64_decode_alloc): Likewise.
31089         * lib/base64.c (base64_decode_ctx): If a decode context structure
31090         was passed in use it to ignore newlines.  If a context structure
31091         was _not_ passed in, continue to treat newlines as garbage (this
31092         is the historical behavior).  Formerly base64_decode.
31093         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
31094         takes a decode context structure.
31095         * lib/base64.h (base64_decode): Macro for four-argument calls.
31096         (base64_decode_alloc): Likewise.
31097
31098 2008-05-19  Jim Meyering  <meyering@redhat.com>
31099
31100         avoid a warning from gcc
31101         * lib/trim.c (IF_LINT): Define.
31102         (trim2): Use it to avoid a "may be used uninitialized" warning.
31103
31104         Fix doc typo.
31105         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
31106
31107 2008-05-19  Bruno Haible  <bruno@clisp.org>
31108
31109         * doc/glibc-functions/getpass.texi: Document limits of other
31110         implementations.
31111
31112 2008-05-19  Simon Josefsson  <simon@josefsson.org>
31113             Bruno Haible <bruno@clisp.org>
31114
31115         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
31116
31117 2008-05-18  Bruno Haible  <bruno@clisp.org>
31118
31119         * modules/propername: New file, from GNU gettext.
31120         * lib/propername.h: New file, from GNU gettext.
31121         * lib/propername.c: New file, from GNU gettext.
31122         * MODULES.html.sh (Internationalization functions): Add propername.
31123
31124 2008-05-16  Jim Meyering  <meyering@redhat.com>
31125             Bruno Haible  <bruno@clisp.org>
31126
31127         Avoid some warnings from "gcc -Wshadow".
31128         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
31129
31130 2008-05-15  Eric Blake  <ebb9@byu.net>
31131
31132         Extend previous patch to cygwin 1.7.0.
31133         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
31134         fast implementation in cygwin >= 1.7.0.
31135         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31136         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31137
31138 2008-05-15  Bruno Haible  <bruno@clisp.org>
31139
31140         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
31141         implementation in glibc >= 2.9.
31142         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31143         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31144
31145 2008-05-15  Bruno Haible  <bruno@clisp.org>
31146
31147         * MODULES.html.sh (Internationalization functions): Remove linebreak.
31148         (Unicode string functions): Add unilbrk/*.
31149         Reported by Karl Berry.
31150
31151 2008-05-15  Eric Blake  <ebb9@byu.net>
31152
31153         Fix violation of <stdbool.h> replacement in regex.
31154         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
31155         * lib/regexec.c (re_search_internal): Likewise.
31156         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
31157
31158 2008-05-15  Jim Meyering  <meyering@redhat.com>
31159
31160         avoid distracting test output when git or cvs is not found
31161         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
31162         * tests/test-vc-list-files-git.sh: Likewise.
31163
31164 2008-05-15  Eric Blake  <ebb9@byu.net>
31165
31166         Glibc finally accepted the memmem speedup code, bugzilla #5514.
31167         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
31168         glibc version.
31169         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31170         * doc/posix-functions/strstr.texi (strstr): Likewise.
31171         * lib/str-two-way.h (MAX): Sychronize with glibc.
31172
31173 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
31174
31175         * lib/regcomp.c (optimize_utf8): Add a note on why we test
31176         opr.ctx_type.
31177         (calc_first): Initialize constraint field.
31178         (duplicate_node_closure): Use it instead of special casing ANCHORS.
31179         Fix grammar.
31180         (duplicate_node): Merge constraint field for all node types.
31181         (calc_eclosure_iter): Look at constraint field for all node types.
31182         * lib/regex_internal.c (create_cd_newstate): Don't look at
31183         opr.ctx_type.
31184
31185 2008-05-14  Bruno Haible  <bruno@clisp.org>
31186
31187         Help GCC to do better code generation.
31188         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
31189         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
31190         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
31191         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
31192         Declare with attribute 'malloc' if supported.
31193
31194 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
31195
31196         use "echo STR|wc -c" rather than unportable "expr length STR"
31197         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
31198         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
31199
31200 2008-05-14  Jim Meyering  <meyering@redhat.com>
31201
31202         use dd ibs=$n count=1 ... rather than less-portable head -c$n
31203         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
31204         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
31205         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
31206         via Collin Lasse.
31207
31208 2008-05-14  Eric Blake  <ebb9@byu.net>
31209
31210         Avoid quadratic growth in gl_LIBSOURCES.
31211         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
31212         Suggested by Bruno Haible.
31213
31214         Test xmemdup0.
31215         * modules/xmemdup0-tests: New file.
31216         * tests/test-xmemdup0.c: Likewise.
31217
31218 2008-05-13  Eric Blake  <ebb9@byu.net>
31219
31220         Split xmemdup0 into its own module.
31221         * modules/xmemdup0: New file.
31222         * lib/xmemdup0.h: Likewise.
31223         * lib/xmemdup0.c: Likewise.
31224         * MODULES.html.sh (Memory management functions): Add xmemdup0.
31225         * lib/xalloc.h (xmemdup0): Remove.
31226         * lib/xmalloc.c (xmemdup0): Likewise.
31227
31228 2008-05-13  Eric Blake  <ebb9@byu.net>
31229             Bruno Haible  <bruno@clisp.org>
31230
31231         Reduce number of forks required during autoconf.
31232         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
31233         and gl_LIBSOURCES_DIR.
31234         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
31235         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
31236         m4_syscmd per file.
31237         <m4_foreach_w>: Move...
31238         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
31239
31240 2008-05-13  Eric Blake  <ebb9@byu.net>
31241
31242         * gnulib-tool: Fix various comment typos.
31243
31244 2008-05-12  Bruno Haible  <bruno@clisp.org>
31245
31246         Tailor the linebreaking algorithm.
31247         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
31248
31249 2008-05-12  Bruno Haible  <bruno@clisp.org>
31250
31251         Update to Unicode 5.0.0.
31252         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31253         LBP_JV, LBP_JT. Redistribute values.
31254         (unilbrk_table): Change size.
31255         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
31256         Unicode TR#14 rev. 22.
31257         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31258         LBP_JV, LBP_JT. Redistribute values.
31259         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
31260         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
31261         Update.
31262         * lib/unilbrk/lbrkprop1.h: Regenerated.
31263         * lib/unilbrk/lbrkprop2.h: Regenerated.
31264         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
31265         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
31266         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
31267         Likewise.
31268         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
31269         Likewise.
31270         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
31271         result.
31272         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
31273         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
31274         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
31275         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
31276         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
31277         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
31278
31279 2008-05-11  Bruno Haible  <bruno@clisp.org>
31280
31281         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
31282
31283 2008-05-11  Bruno Haible  <bruno@clisp.org>
31284
31285         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
31286         * modules/unilbrk/gen-lbrk: New file.
31287
31288 2008-05-11  Bruno Haible  <bruno@clisp.org>
31289
31290         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
31291         * m4/sha512.m4 (gl_SHA512): Likewise.
31292
31293 2008-05-11  Jim Meyering  <meyering@redhat.com>
31294
31295         New modules: crypto/sha256, crypto/sha512 (from coreutils)
31296         * modules/crypto/sha256: New file.
31297         * modules/crypto/sha512: Likewise.
31298         * lib/sha256.c: Likewise.
31299         * lib/sha256.h: Likewise.
31300         * lib/sha512.c: Likewise.
31301         * lib/sha512.h: Likewise.
31302         * lib/u64.h: Likewise.
31303         * m4/sha256.m4: Likewise.
31304         * m4/sha512.m4: Likewise.
31305         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
31306
31307 2008-05-10  Bruno Haible  <bruno@clisp.org>
31308
31309         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
31310         (Input/Output <stdio.h>): Add xprintf.
31311         (Signal handling <signal.h>): Add strsignal.
31312         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
31313         (Core language properties): Add func.
31314         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
31315         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
31316         strings.
31317         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
31318         (Input/output): New section.
31319         (File system functions): Add openat-die, stat-macros.
31320         (Networking functions): Add sockets.
31321         (Unicode string functions): Add unictype/*.
31322         (Support for building libraries and executables): Add gperf.
31323         (Support for building documentation): Add agpl-3.0.
31324         (Misc): Add nocrash.
31325
31326 2008-05-10  Bruno Haible  <bruno@clisp.org>
31327
31328         * modules/unictype/gen-ctype: New file.
31329
31330 2008-05-10  Jim Meyering  <meyering@redhat.com>
31331
31332         Make chdir-safer.c more efficient on a system with no symlinks.
31333         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
31334         also if ELOOP is zero.  Suggested by Bruno Haible.
31335
31336         Make chdir-safer.c slightly safer.
31337         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
31338         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
31339
31340         Avoid compile failure on systems without ELOOP (like mingw).
31341         * lib/chdir-safer.c (ELOOP): Define if not already defined.
31342         Reported by Bruno Haible.
31343
31344 2008-05-10  Bruno Haible  <bruno@clisp.org>
31345
31346         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
31347         (is_utf8_encoding): Use a case-insensitive comparison.
31348         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
31349         streq.
31350
31351 2008-05-10  Bruno Haible  <bruno@clisp.org>
31352
31353         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
31354         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
31355         * lib/unilbrk/ulc-common.h (iconv_string_length,
31356         iconv_string_keeping_offsets): Remove declarations.
31357         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
31358         Don't include <iconv.h>, streq.h, xsize.h.
31359         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
31360         conversion.
31361         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
31362         <iconv.h>, streq.h, xsize.h.
31363         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
31364         conversion.
31365         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
31366         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
31367         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
31368         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
31369
31370 2008-05-10  Bruno Haible  <bruno@clisp.org>
31371
31372         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
31373         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
31374
31375         * modules/unilbrk/u32-width-linebreaks-tests: New file.
31376         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
31377
31378         * modules/unilbrk/u16-width-linebreaks-tests: New file.
31379         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
31380
31381         * modules/unilbrk/u8-width-linebreaks-tests: New file.
31382         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
31383
31384         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
31385         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
31386
31387         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
31388         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
31389
31390         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
31391         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
31392
31393         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
31394         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
31395
31396 2008-05-10  Bruno Haible  <bruno@clisp.org>
31397
31398         Split up 'linebreak' module.
31399         * lib/unilbrk.h: New file, based on lib/linebreak.h.
31400         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
31401         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
31402         modifications.
31403         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
31404         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
31405         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
31406         lib/linebreak.c.
31407         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
31408         lib/linebreak.c.
31409         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
31410         lib/linebreak.c.
31411         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
31412         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
31413         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
31414         lib/linebreak.c.
31415         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
31416         lib/linebreak.c.
31417         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
31418         lib/linebreak.c.
31419         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
31420         lib/linebreak.c.
31421         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
31422         lib/linebreak.c.
31423         * modules/unilbrk/base: New file.
31424         * modules/unilbrk/tables: New file.
31425         * modules/unilbrk/u8-possible-linebreaks: New file.
31426         * modules/unilbrk/u16-possible-linebreaks: New file.
31427         * modules/unilbrk/u32-possible-linebreaks: New file.
31428         * modules/unilbrk/ulc-common: New file.
31429         * modules/unilbrk/ulc-possible-linebreaks: New file.
31430         * modules/unilbrk/u8-width-linebreaks: New file.
31431         * modules/unilbrk/u16-width-linebreaks: New file.
31432         * modules/unilbrk/u32-width-linebreaks: New file.
31433         * modules/unilbrk/ulc-width-linebreaks: New file.
31434         * lib/linebreak.h: Remove file.
31435         * lib/linebreak.c: Remove file.
31436         * m4/linebreak.m4: Remove file.
31437         * modules/linebreak: Remove file.
31438         * NEWS: Mention the changes.
31439
31440 2008-05-09  Eric Blake  <ebb9@byu.net>
31441
31442         Add xmemdup0.
31443         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
31444         implementation.
31445         * lib/xmalloc.c (xmemdup0): New C implementation.
31446
31447 2008-05-08  Bruno Haible  <bruno@clisp.org>
31448
31449         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
31450
31451 2008-05-07  Eric Blake  <ebb9@byu.net>
31452
31453         Support cross-compilation of <wctype.h>.
31454         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
31455         AC_CACHE_CHECK.
31456
31457 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
31458
31459         * build-aux/vc-list-files: Add support for bzr.
31460
31461 2008-05-03  Jim Meyering  <meyering@redhat.com>
31462
31463         avoid failed assertion with tight malloc
31464         * tests/test-getndelim2.c: Correct an off-by-one assertion.
31465
31466 2008-05-03  Simon Josefsson  <simon@josefsson.org>
31467
31468         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
31469         are needed from arpa/inet.h.
31470         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
31471         Reported by Bruno Haible.
31472
31473 2008-05-02  Jim Meyering  <meyering@redhat.com>
31474
31475         avoid compilation error on FreeBSD 6
31476         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
31477
31478 2008-05-01  Jim Meyering  <meyering@redhat.com>
31479
31480         useless-if-before-free: correct --help's exit status description
31481         * build-aux/useless-if-before-free (usage): Like grep, exit 0
31482         for one or more matches, etc.  Reported by Bruno Haible.
31483
31484         vc-list-files: make the stand-alone gnulib test work
31485         * modules/vc-list-files-tests (configure.ac):
31486         Define and AC_SUBST abs_aux_dir.
31487         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
31488         $(abs_top_srcdir) to each script and having each of them
31489         duplicate the work of setting PATH, set PATH here, using
31490         the new variable, abs_aux_dir instead.
31491         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
31492         * tests/test-vc-list-files-git.sh: Likewise.
31493         Reported by Bruno Haible.
31494
31495 2008-05-01  Bruno Haible  <bruno@clisp.org>
31496
31497         * lib/getndelim2.c (getndelim2): Fix newsize computation during
31498         reallocation. Rename 'done' to 'found_delimiter'.
31499
31500 2008-05-01  Jim Meyering  <meyering@redhat.com>
31501
31502         vc-list-files: accommodate /bin/sh like the one from Solaris 10
31503         * build-aux/vc-list-files: Use `...`, not $(...).
31504
31505 2008-04-30  Jim Meyering  <meyering@redhat.com>
31506
31507         add tests for vc-list-files
31508         * modules/vc-list-files-tests: New module.
31509         * tests/test-vc-list-files-cvs.sh: New file.
31510         * tests/test-vc-list-files-git.sh: New file.
31511
31512         avoid a warning from gcc
31513         * lib/getndelim2.c (IF_LINT): Define.
31514         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
31515
31516         vc-list-files: work properly with build-aux/cvsu, too
31517         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
31518         to all cvs-based clauses.
31519
31520         vc-list-files: work properly in the CVS+awk case, too
31521         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
31522
31523         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
31524         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
31525         take more than one file argument, so .  Add quotes, just in case $dir
31526         ever contains a shell meta-character.  Prompted by Soren Hansen in
31527         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
31528
31529 2008-04-29  Eric Blake  <ebb9@byu.net>
31530
31531         Optimize getndelim2 to use block operations when possible.
31532         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
31533         freadseek, and memchr2.
31534         * lib/getndelim2.c (getndelim2): Use them for block reads.
31535
31536 2008-04-29  Bruno Haible  <bruno@clisp.org>
31537
31538         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
31539         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31540         * modules/inet_ntop (Depends-on): Add extensions.
31541         * modules/inet_pton (Depends-on): Likewise.
31542         Reported by Simon Josefsson.
31543
31544 2008-04-29  Jim Meyering  <meyering@redhat.com>
31545
31546         When the is more than one match in a block, match all of them.
31547         * build-aux/useless-if-before-free: Iterate through each block
31548         until there are no more matches.
31549
31550         Fix broken useless-if-before-free script.
31551         * build-aux/useless-if-before-free: Fix typo: missing "?" after
31552         the expression to match cast of argument to free-like function.
31553
31554 2008-04-29  Eric Blake  <ebb9@byu.net>
31555
31556         Use new header.
31557         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
31558
31559 2008-04-29  Jim Meyering  <meyering@redhat.com>
31560
31561         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
31562         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
31563         by gnulib to exist and to declare e.g., inet_ntop.
31564         Don't include "inet_ntop.h", now removed.
31565
31566         * m4/arpa_inet_h.m4: Remove trailing blanks.
31567
31568 2008-04-29  Eric Blake  <ebb9@byu.net>
31569
31570         Silence valgrind on safe reads beyond potential array bounds.
31571         * lib/rawmemchr.valgrind: New file.
31572         * lib/strchrnul.valgrind: Likewise.
31573         * modules/rawmemchr (Files): Distribute new file.
31574         * modules/strchrnul (Files): Likewise.
31575         Suggested by Bruno Haible.
31576
31577 2008-04-29  Bruno Haible  <bruno@clisp.org>
31578
31579         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
31580         (inet_ntop, inet_pton): Change portability warning's wording.
31581         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
31582         Invoke gl_CHECK_NEXT_HEADERS.
31583         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
31584         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
31585         set ARPA_INET_H.
31586         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31587         * modules/arpa_inet (Description): No longer only for systems that
31588         lack it.
31589         (Depends-on): Add include_next.
31590         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
31591         HAVE_ARPA_INET_H.
31592
31593 2008-04-29  Jim Meyering  <meyering@redhat.com>
31594
31595         * modules/mkdir (License): Re-license as LGPLv2+.
31596
31597 2008-04-29  Bruno Haible  <bruno@clisp.org>
31598
31599         * modules/rawmemchr (Maintainer): Set to Eric.
31600         * modules/strchrnul (Maintainer): Likewise.
31601
31602 2008-04-29  Simon Josefsson  <simon@josefsson.org>
31603
31604         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
31605         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
31606
31607         * modules/arpa_inet (arpa/inet.h): Use them.
31608
31609 2008-04-28  Eric Blake  <ebb9@byu.net>
31610
31611         Test getndelim2.
31612         * modules/getndelim2-tests: New file.
31613         * tests/test-getndelim2.c: Likewise.
31614         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
31615         stream.
31616         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
31617
31618         * MODULES.html.sh: Document new module.
31619
31620 2008-04-20  Bruno Haible  <bruno@clisp.org>
31621
31622         * lib/c-stack.c (die): Use raise.
31623         * modules/c-stack (Depends-on): Add raise.
31624
31625 2008-04-28  Bruno Haible  <bruno@clisp.org>
31626
31627         Expect rpmatch to be declared.
31628         * lib/yesno.c (rpmatch): Remove declaration.
31629
31630         Declare rpmatch.
31631         * lib/stdlib.in.h (rpmatch): New declaration.
31632         * lib/rpmatch.c: Include <stdlib.h> first.
31633         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
31634         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
31635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
31636         HAVE_RPMATCH.
31637         * modules/rpmatch (Depends-on): Add stdlib, extensions.
31638         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31639         (Include): Set to <stdlib.h>.
31640         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
31641         HAVE_RPMATCH.
31642         * NEWS: Document the change.
31643
31644 2008-04-28  Bruno Haible  <bruno@clisp.org>
31645
31646         Change rpmatch to use nl_langinfo when appropriate.
31647         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
31648         (N_): New macro.
31649         (localized_pattern): New function/macro.
31650         (try): Remove match, nomatch arguments. Copy the pattern into safe
31651         memory before caching it.
31652         (rpmatch): Use localized_pattern. Add translator comments.
31653         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
31654         Suggested by Eric Blake.
31655         * modules/rpmatch (Depends-on): Add stdbool.
31656
31657 2008-04-28  Eric Blake  <ebb9@byu.net>
31658
31659         Add rawmemchr module, matching glibc.
31660         * modules/string (Makefile.am): New indicator.
31661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
31662         * lib/string.in.h (rawmemchr): Declare when appropriate.
31663         * modules/rawmemchr: New file.
31664         * m4/rawmemchr.m4: Likewise.
31665         * lib/rawmemchr.c: Likewise.
31666         * modules/rawmemchr-tests: Likewise.
31667         * tests/test-rawmemchr.c: Likewise.
31668         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
31669         module.
31670         * modules/strchrnul (Depends-on): Add rawmemchr.
31671         * lib/strchrnul.c (strchrnul): Optimize a corner case.
31672
31673         Whitespace cleanup.
31674         * tests/test-strchrnul.c: Reindent.
31675         * lib/strchrnul.c: Likewise.
31676
31677         Optimize and test strchrnul.
31678         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
31679         * modules/strchrnul-tests: New file.
31680         * tests/test-strchrnul.c: Likewise.
31681
31682         Remove intprops dependency.
31683         * modules/memchr (Depends-on): Remove intprops.
31684         * modules/memrchr (Depends-on): Likewise.
31685         * modules/memchr2 (Depends-on): Likewise.
31686         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
31687         * lib/memrchr.c (__memrchr): Likewise.
31688         * lib/memrchr2.c (memchr2): Likewise.
31689         Reported by Simon Josefsson.
31690
31691 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31692
31693         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
31694         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31695
31696 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31697
31698         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
31699
31700         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
31701
31702         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
31703
31704         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
31705         declarations.
31706         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
31707
31708         * m4/inet_pton.m4: Don't check for header files.
31709
31710         * m4/inet_ntop.m4: Don't check for header files.
31711
31712 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31713
31714         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
31715         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
31716         trigger for cygwin).
31717         Reported by Bruno Haible  <bruno@clisp.org>.
31718
31719 2008-04-28  Bruno Haible  <bruno@clisp.org>
31720
31721         * doc/posix-functions/strdup.texi: Mention mingw problem.
31722
31723 2008-04-27  Bruno Haible  <bruno@clisp.org>
31724
31725         * modules/stat-time-tests (Depends-on): Add sleep.
31726         * tests/test-stat-time.c (force_unlink): New function.
31727         (cleanup): Use it.
31728         (test_mtime): Remove the ctime related tests.
31729         (test_ctime): New function, containing the ctime related tests.
31730         (main): Call test_ctime, except on native Windows platforms.
31731
31732 2008-04-27  Bruno Haible  <bruno@clisp.org>
31733
31734         * lib/rpmatch.c (rpmatch): Add some comments.
31735         Reported by James Youngman <jay@gnu.org>.
31736
31737 2008-04-27  Bruno Haible  <bruno@clisp.org>
31738
31739         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
31740         quiet NaNs.
31741
31742 2008-04-27  Bruno Haible  <bruno@clisp.org>
31743
31744         Make test-yesno.sh work on mingw.
31745         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
31746         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
31747         (main): Set stdin to binary mode.
31748         * modules/yesno-tests (Depends-on): Add binary-io.
31749
31750 2008-04-27  Bruno Haible  <bruno@clisp.org>
31751
31752         Fix 'isfinite' on x86, x86_64, ia64 platforms.
31753         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
31754         argument that lie outside the IEEE 854 domain.
31755         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
31756         (gl_ISFINITE): Use it.
31757         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
31758
31759 2008-04-27  Bruno Haible  <bruno@clisp.org>
31760
31761         Allow local renaming in config.h.
31762         * lib/memrchr.c (memrchr): Don't undefine outside libc.
31763
31764 2008-04-27  Bruno Haible  <bruno@clisp.org>
31765
31766         * lib/memchr.c (__memchr): Change type of 'i'.
31767         * lib/memchr2.c (memchr2): Likewise.
31768
31769 2008-04-26  Eric Blake  <ebb9@byu.net>
31770         and Bruno Haible  <bruno@clisp.org>
31771
31772         Optimize and test memrchr.
31773         * modules/memrchr (Depends-on): Add intprops.
31774         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
31775         * modules/memrchr-tests: New file.
31776         * tests/test-memrchr.c: New file.
31777
31778 2008-04-26  Bruno Haible  <bruno@clisp.org>
31779
31780         Add tentative support for DragonFly BSD.
31781         * lib/stdio-impl.h: Add macros for DragonFly BSD.
31782         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
31783         fp.
31784         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31785         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
31786         * lib/fpurge.c (fpurge): Likewise.
31787         * lib/freadable.c (freaadable): Likewise.
31788         * lib/freadahead.c (freadahead): Likewise.
31789         * lib/freading.c (freading): Likewise.
31790         * lib/freadptr.c (freadptr): Likewise.
31791         * lib/freadseek.c (freadptrinc): Likewise.
31792         * lib/fseeko.c (fseeko): Likewise.
31793         * lib/fseterr.c (fseterr): Likewise.
31794         * lib/fwritable.c (fwritable): Likewise.
31795         * lib/fwriting.c (fwriting): Likewise.
31796
31797 2008-04-26  Bruno Haible  <bruno@clisp.org>
31798
31799         * lib/stdio-impl.h: New file.
31800         * lib/fbufmode.c: Include stdio-impl.h.
31801         (fbufmode): Use fp_, remove redundant #defines.
31802         * lib/fflush.c: Include stdio-impl.h.
31803         (clear_ungetc_buffer): Remove redundant #defines.
31804         * lib/fpurge.c: Include stdio-impl.h.
31805         (fpurge): Remove redundant #defines.
31806         * lib/freadable.c: Include stdio-impl.h.
31807         (freadable): Remove redundant #defines.
31808         * lib/freadahead.c: Include stdio-impl.h.
31809         (freadahead): Remove redundant #defines.
31810         * lib/freading.c: Include stdio-impl.h.
31811         (freading): Remove redundant #defines.
31812         * lib/freadptr.c: Include stdio-impl.h.
31813         (freadptr): Remove redundant #defines.
31814         * lib/freadseek.c: Include stdio-impl.h.
31815         (freadptrinc): Remove redundant #defines.
31816         * lib/fseeko.c: Include stdio-impl.h.
31817         (rpl_fseeko): Remove redundant #defines.
31818         * lib/fseterr.c: Include stdio-impl.h.
31819         (fseterr): Remove redundant #defines.
31820         * lib/fwritable.c: Include stdio-impl.h.
31821         (fwritable: Remove redundant #defines.
31822         * lib/fwriting.c: Include stdio-impl.h.
31823         (fwriting): Remove redundant #defines.
31824         * modules/fbufmode (Files): Add lib/stdio-impl.h.
31825         * modules/fflush (Files): Likewise.
31826         * modules/fpurge (Files): Likewise.
31827         * modules/freadable (Files): Likewise.
31828         * modules/freadahead (Files): Likewise.
31829         * modules/freading (Files): Likewise.
31830         * modules/freadptr (Files): Likewise.
31831         * modules/freadseek (Files): Likewise.
31832         * modules/fseeko (Files): Likewise.
31833         * modules/fseterr (Files): Likewise.
31834         * modules/fwritable (Files): Likewise.
31835         * modules/fwriting (Files): Likewise.
31836
31837 2008-04-26  Bruno Haible  <bruno@clisp.org>
31838
31839         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31840         restore_seek_optimization, update_fpos_cache): New functions, extracted
31841         from rpl_fflush.
31842         (rpl_fflush): Use them.
31843         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
31844         (gl_REPLACE_FFLUSH): Use it.
31845
31846 2008-04-26  Bruno Haible  <bruno@clisp.org>
31847
31848         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
31849         on Solaris.
31850         * tests/test-xstrtoimax.sh: Likewise.
31851         * tests/test-xstrtoumax.sh: Likewise.
31852         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31853
31854 2008-04-26  Bruno Haible  <bruno@clisp.org>
31855
31856         * modules/memchr-tests: New file.
31857         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
31858
31859 2008-04-26  Eric Blake  <ebb9@byu.net>
31860             Bruno Haible  <bruno@clisp.org>
31861
31862         * lib/memchr.c: Include intprops.h.
31863         (__memchr): Optimize parallel detection of matching bytes. Rename local
31864         variables. Add explanatory comments.
31865
31866 2008-04-26  Bruno Haible  <bruno@clisp.org>
31867
31868         Fix module 'memchr', broken since 2000-10-28.
31869         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
31870
31871 2008-04-26  Bruno Haible  <bruno@clisp.org>
31872
31873         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
31874         comments.
31875
31876 2008-04-25  Eric Blake  <ebb9@byu.net>
31877
31878         Use native fstatat on cygwin 1.7.0.
31879         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
31880         first.
31881
31882 2008-04-23  Eric Blake  <ebb9@byu.net>
31883
31884         Improve memchr2 performance.
31885         * lib/memchr2.c (memchr2): Further optimize parallel detection of
31886         NUL bytes.
31887         * modules/memchr2 (Depends-on): Use intprops.h.
31888
31889 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31890
31891         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
31892         an inline function instead of a CPP macro.  Patch by Ben Pfaff
31893         <blp@cs.stanford.edu>.
31894
31895 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31896
31897         * lib/arpa_inet.in.h: New file.
31898
31899         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
31900         (Makefile.am): Sed in substitute header file.
31901
31902         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
31903         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
31904
31905         * modules/inet_ntop (configure.ac): Use
31906         gl_ARPA_INET_MODULE_INDICATOR.
31907
31908         * modules/inet_pton (configure.ac): Use
31909         gl_ARPA_INET_MODULE_INDICATOR.
31910
31911 2008-04-22  Jim Meyering  <meyering@redhat.com>
31912
31913         * modules/verify (License): Re-license as LGPLv2+.
31914
31915 2008-04-22  Simon Josefsson  <simon@josefsson.org>
31916
31917         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
31918         parameter to void* as per POSIX standard (MinGW uses char*).
31919
31920 2008-04-21  Bruno Haible  <bruno@clisp.org>
31921
31922         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
31923         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
31924         Define to replacements if REPLACE_ISWCNTRL is 1.
31925         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
31926         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
31927         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
31928         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
31929         what it fixes.
31930         * doc/posix-functions/iswalpha.texi: Likewise.
31931         * doc/posix-functions/iswblank.texi: Likewise.
31932         * doc/posix-functions/iswcntrl.texi: Likewise.
31933         * doc/posix-functions/iswdigit.texi: Likewise.
31934         * doc/posix-functions/iswgraph.texi: Likewise.
31935         * doc/posix-functions/iswlower.texi: Likewise.
31936         * doc/posix-functions/iswprint.texi: Likewise.
31937         * doc/posix-functions/iswpunct.texi: Likewise.
31938         * doc/posix-functions/iswspace.texi: Likewise.
31939         * doc/posix-functions/iswupper.texi: Likewise.
31940         * doc/posix-functions/iswxdigit.texi: Likewise.
31941         Reported by Alain Guibert.
31942
31943 2008-04-21  Bruno Haible  <bruno@clisp.org>
31944
31945         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
31946         Patch by Alain Guibert.
31947
31948 2008-04-21  Bruno Haible  <bruno@clisp.org>
31949
31950         Fix test failures on mingw.
31951         * tests/test-xstrtol.c (print_no_progname): New function.
31952         (main): Install it in error_print_progname hook.
31953         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
31954         * tests/test-xstrtoimax.sh: Likewise.
31955         * tests/test-xstrtoumax.sh: Likewise.
31956
31957 2008-04-21  Bruno Haible  <bruno@clisp.org>
31958
31959         Fix test failure on mingw.
31960         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
31961
31962 2008-04-21  Bruno Haible  <bruno@clisp.org>
31963
31964         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
31965         Actually assign a value.
31966
31967 2008-04-20  Bruno Haible  <bruno@clisp.org>
31968
31969         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
31970         take 2.
31971         * lib/canonicalize.c (canonicalize_file_name): Elide if the
31972         'canonicalize-lgpl' module is also used.
31973         * lib/canonicalize-lgpl.c: Undo last change.
31974         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
31975
31976 2008-04-20  Bruno Haible  <bruno@clisp.org>
31977
31978         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
31979         config.h. Provide _mkdir based fallback for mingw.
31980         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
31981         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
31982         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
31983         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
31984         rather than defining mkdir in config.h.
31985         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
31986         (gl_SYS_STAT_H_DEFAULTS): New macro.
31987         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
31988         HAVE_IO_H any more.
31989         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
31990         HAVE_DECL_MKDIR and HAVE_IO_H.
31991
31992 2008-04-20  Bruno Haible  <bruno@clisp.org>
31993
31994         * lib/isapipe.c: Port to native Windows platforms.
31995
31996 2008-04-20  Bruno Haible  <bruno@clisp.org>
31997
31998         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
31999
32000 2008-04-21  Eric Blake  <ebb9@byu.net>
32001
32002         Work around preprocessors that don't handle UINTMAX_MAX.
32003         * lib/memchr2.c (memchr2): Avoid embedded #if.
32004         Reported by Alain Guibert, fix suggested by Bruno Haible.
32005
32006 2008-04-21  Simon Josefsson  <simon@josefsson.org>
32007
32008         * doc/posix-functions/strftime.texi (strftime): Explain better
32009         Windows incompatibility.  Suggested by Micah Cowan
32010         <micah@cowan.name>.
32011
32012 2008-04-20  Bruno Haible  <bruno@clisp.org>
32013
32014         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
32015         unistr/u8-mblen.
32016
32017 2008-04-20  Bruno Haible  <bruno@clisp.org>
32018
32019         Fix test failure on platforms with non-GNU iconv.
32020         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
32021         (U_TO_U8): Use it, rather than u16_to_u8.
32022         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
32023         units at the end of the input string.
32024         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
32025
32026 2008-04-20  Bruno Haible  <bruno@clisp.org>
32027
32028         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
32029         when the resulting length is 0.
32030         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
32031
32032 2008-04-20  Bruno Haible  <bruno@clisp.org>
32033
32034         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
32035         works.
32036         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
32037
32038 2008-04-20  Bruno Haible  <bruno@clisp.org>
32039
32040         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
32041         * modules/tsearch-tests (configure.ac): Test for initstate function.
32042
32043 2008-04-20  Bruno Haible  <bruno@clisp.org>
32044
32045         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
32046         for nlink_t if missing.
32047         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
32048
32049 2008-04-19  Bruno Haible  <bruno@clisp.org>
32050
32051         Work around snprintf bug on Linux libc5.
32052         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
32053         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32054         gl_SNPRINTF_SIZE1.
32055         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32056         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
32057         that test failed.
32058         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
32059         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
32060         * modules/snprintf (Files): Add m4/printf.m4.
32061         * modules/vsnprintf (Files): Likewise.
32062         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
32063         * doc/posix-functions/vsnprintf.texi: Likewise.
32064
32065 2008-04-19  Bruno Haible  <bruno@clisp.org>
32066
32067         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
32068         from 0.0058 to less than 10^-7.
32069
32070 2008-04-19  Bruno Haible  <bruno@clisp.org>
32071
32072         Fix rounding when a precision is given.
32073         * lib/vasnprintf.c (is_borderline): New function.
32074         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
32075         9...9x.
32076         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
32077         %e, %g.
32078         * tests/test-vasprintf-posix.c (test_function): Likewise.
32079         * tests/test-snprintf-posix.h (test_function): Likewise.
32080         * tests/test-sprintf-posix.h (test_function): Likewise.
32081         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
32082         * tests/test-printf-posix.h (test_function): Likewise.
32083         * tests/test-printf-posix.output: Update.
32084         Reported by John Darrington <john@darrington.wattle.id.au> via
32085         Ben Pfaff <blp@cs.stanford.edu>.
32086
32087 2008-04-18  Simon Josefsson  <simon@josefsson.org>
32088
32089         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
32090         Suggested by Bruno Haible <bruno@clisp.org>.
32091
32092 2008-04-17  Bruno Haible  <bruno@clisp.org>
32093
32094         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
32095         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
32096         implementation.
32097         Patch by Bruce Merry <bmerry@gmail.com>.
32098
32099 2008-04-17  Simon Josefsson  <simon@josefsson.org>
32100
32101         * doc/posix-functions/strftime.texi (strftime): Mention that %e
32102         doesn't work under Windows.
32103
32104 2008-04-16  Bruno Haible  <bruno@clisp.org>
32105
32106         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
32107         New macros.
32108         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
32109         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
32110         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
32111         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
32112         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
32113         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
32114         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
32115         macros.
32116         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
32117         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
32118         Northern Sotho, Uighur.
32119
32120 2008-04-16  Bruno Haible  <bruno@clisp.org>
32121
32122         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
32123         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
32124         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
32125         Reported by Daniel Bergström <daniel@octocode.com>.
32126
32127 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
32128             Bruno Haible  <bruno@clisp.org>
32129
32130         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
32131         function.
32132         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
32133         New functions, mostly extracted from gl_locale_name_default.
32134         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
32135
32136 2008-04-16  Eric Blake  <ebb9@byu.net>
32137
32138         Adjust strtod detection to catch glibc 2.7 bug.
32139         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
32140         Reported by John Gatewood Ham.
32141
32142 2008-04-16  Bruno Haible  <bruno@clisp.org>
32143
32144         Add tentative support for Linux libc5.
32145         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
32146         * lib/fpurge.c (fpurge): Likewise.
32147         * lib/freadable.c (freadable): Likewise.
32148         * lib/freadahead.c (freadahead): Likewise.
32149         * lib/freading.c (freading): Likewise.
32150         * lib/freadptr.c (freadptr): Likewise.
32151         * lib/freadseek.c (freadptrinc): Likewise.
32152         * lib/fseeko.c (rpl_fseeko): Likewise.
32153         * lib/fseterr.c (fseterr): Likewise.
32154         * lib/fwritable.c (fwritable): Likewise.
32155         * lib/fwriting.c (fwriting): Likewise.
32156         Reported by Alain Guibert <alguibert+bts@free.fr>.
32157
32158 2008-04-15  Bruno Haible  <bruno@clisp.org>
32159
32160         * modules/mathl (configure.ac): Define module indicator.
32161
32162 2008-04-15  Bruno Haible  <bruno@clisp.org>
32163
32164         * lib/logl.c (logl): Remove unused variables.
32165
32166 2008-04-15  Bruno Haible  <bruno@clisp.org>
32167
32168         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
32169         fails.
32170
32171 2008-04-15  Bruno Haible  <bruno@clisp.org>
32172
32173         * lib/trim.c (trim2): Fix argument of isspace() macro.
32174
32175 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
32176
32177         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
32178         to 0.
32179         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
32180
32181 2008-04-14  Bruno Haible  <bruno@clisp.org>
32182
32183         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
32184         AC_LANG_PROGRAM argument.
32185         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
32186         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
32187         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32188         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32189         * m4/math_h.m4 (gl_MATH_H): Likewise.
32190         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
32191         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32192         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32193         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
32194         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
32195         * m4/regex.m4 (gl_REGEX): Likewise.
32196         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
32197         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
32198         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32199         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
32200         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32201         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32202         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32203         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32204
32205 2008-04-14  Jim Meyering  <meyering@redhat.com>
32206
32207         test-strtod: fix typos: s/abs/fabs/
32208         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
32209
32210 2008-04-13  Bruno Haible  <bruno@clisp.org>
32211
32212         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
32213         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
32214         module is also used and while not building the reloc-wrapper.
32215
32216 2008-04-13  Bruno Haible  <bruno@clisp.org>
32217
32218         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
32219
32220 2008-04-13  Bruno Haible  <bruno@clisp.org>
32221
32222         Fix AIX compilation failure introduced on 2008-04-02.
32223         * tests/test-frexp.c (exp): Undefine before redefining.
32224         * tests/test-frexpl.c (exp): Likewise.
32225
32226 2008-04-13  Bruno Haible  <bruno@clisp.org>
32227
32228         Work around a HP-UX stdio bug.
32229         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
32230         * tests/test-ftello.c (main): Likewise.
32231         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
32232         * doc/posix-functions/ftello.texi: Likewise.
32233
32234 2008-04-13  Bruno Haible  <bruno@clisp.org>
32235
32236         Make test-signbit pass on HP-UX/hppa.
32237         * tests/test-signbit.c (minus_zerol): New variable.
32238         (test_signbitl): Use it.
32239
32240 2008-04-13  Bruno Haible  <bruno@clisp.org>
32241
32242         Make truncl work on OSF/1 4.0.
32243         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
32244         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32245         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
32247         HAVE_DECL_TRUNCL.
32248         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
32249         HAVE_DECL_TRUNCL.
32250         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
32251
32252 2008-04-13  Bruno Haible  <bruno@clisp.org>
32253
32254         * lib/unictype.h: Remove trailing comma from enumeration definitions.
32255
32256 2008-04-13  Bruno Haible  <bruno@clisp.org>
32257
32258         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
32259         expression, so as to avoid HP-UX 11 cc compiler bug.
32260
32261 2008-04-13  Bruno Haible  <bruno@clisp.org>
32262
32263         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
32264
32265 2008-04-13  Bruno Haible  <bruno@clisp.org>
32266
32267         * lib/git-merge-changelog.c: Remove empty declaration outside of
32268         functions.
32269
32270 2008-04-13  Bruno Haible  <bruno@clisp.org>
32271
32272         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
32273
32274 2008-04-13  Bruno Haible  <bruno@clisp.org>
32275
32276         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
32277         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
32278         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
32279         also if it exists but lacks definitions of the SHUT_* macros.
32280         * modules/sys_socket (Description): Update.
32281         Reported by Elbert Pol <e.pol@chello.nl>.
32282
32283 2008-04-13  Bruno Haible  <bruno@clisp.org>
32284
32285         * lib/localcharset.c (OS2): Don't redefine if already defined.
32286         Reported by Elbert Pol <e.pol@chello.nl>.
32287
32288 2008-04-13  Bruno Haible  <bruno@clisp.org>
32289
32290         * lib/binary-io.h [__EMX__]: Include <io.h>.
32291         Reported by Elbert Pol <e.pol@chello.nl>.
32292
32293 2008-04-12  Bruno Haible  <bruno@clisp.org>
32294
32295         * lib/fpucw.h: Enable the definitions also for x86_64.
32296         Needed for NetBSD/x86_64.
32297         Reported by Thomas Klausner <tk@giga.or.at>.
32298
32299 2008-04-12  Bruno Haible  <bruno@clisp.org>
32300
32301         * tests/test-strtod.c: Include isnand.h.
32302         (main): Use isnand instead of isnan.
32303         Reported by Jim Meyering.
32304
32305 2008-04-12  Bruno Haible  <bruno@clisp.org>
32306
32307         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
32308         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32309
32310 2008-04-12  Jim Meyering  <meyering@redhat.com>
32311
32312         * m4/math_h.m4 (gl_MATH_H): Fix typos.
32313
32314 2008-04-12  Bruno Haible  <bruno@clisp.org>
32315
32316         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
32317         Reported by Elbert Pol <e.pol@chello.nl>.
32318
32319 2008-04-12  Eric Blake  <ebb9@byu.net>
32320
32321         Work around Solaris 10 math.h bug.
32322         * m4/math_h.m4 (gl_MATH_H): Check for bug.
32323         (gl_MATH_H_DEFAULTS): Set up default.
32324         * modules/math (Makefile.am): Replace new indicators.
32325         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
32326         * tests/test-math.c (main): Test this.
32327         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
32328         * doc/posix-headers/math.texi (math.h): Mention bug.
32329         Reported by Nelson H. F. Beebe and Jim Meyering.
32330
32331 2008-04-11  Bruno Haible  <bruno@clisp.org>
32332
32333         Adapt to future versions of Apple GCC.
32334         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
32335         Reported by Peter O'Gorman <peter@pogma.com>.
32336
32337 2008-04-11  Bruno Haible  <bruno@clisp.org>
32338
32339         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
32340
32341 2008-04-11  Bruno Haible  <bruno@clisp.org>
32342
32343         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
32344
32345         * modules/getaddrinfo-tests (Makefile.am): Define
32346         test_getaddrinfo_LDADD.
32347
32348 2008-04-11  Bruno Haible  <bruno@clisp.org>
32349
32350         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
32351         (init): Fix syntax error.
32352         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
32353         is declared.
32354
32355 2008-04-11  Bruno Haible  <bruno@clisp.org>
32356
32357         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
32358         * modules/glob (Depends-on): Add stdbool.
32359
32360 2008-04-11  Bruno Haible  <bruno@clisp.org>
32361
32362         * lib/trim.c: Include <string.h>.
32363
32364 2008-04-11  Eric Blake  <ebb9@byu.net>
32365
32366         Avoid compile failure on OS/2.
32367         * lib/regex_internal.h (internal_function): Disable optimization
32368         on OS/2 (__EMX__), where it caused compiler error.
32369         Reported by Elbert Pol.
32370
32371 2008-04-11  Bruno Haible  <bruno@clisp.org>
32372
32373         Flush the standard error stream before aborting. Needed on mingw.
32374         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
32375         * tests/test-array_list.c (ASSERT): Likewise.
32376         * tests/test-array_oset.c (ASSERT): Likewise.
32377         * tests/test-avltree_list.c (ASSERT): Likewise.
32378         * tests/test-avltree_oset.c (ASSERT): Likewise.
32379         * tests/test-avltreehash_list.c (ASSERT): Likewise.
32380         * tests/test-binary-io.c (ASSERT): Likewise.
32381         * tests/test-byteswap.c (ASSERT): Likewise.
32382         * tests/test-c-ctype.c (ASSERT): Likewise.
32383         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
32384         * tests/test-c-strcasestr.c (ASSERT): Likewise.
32385         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
32386         * tests/test-c-strstr.c (ASSERT): Likewise.
32387         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
32388         * tests/test-canonicalize.c (ASSERT): Likewise.
32389         * tests/test-carray_list.c (ASSERT): Likewise.
32390         * tests/test-ceilf1.c (ASSERT): Likewise.
32391         * tests/test-ceilf2.c (ASSERT): Likewise.
32392         * tests/test-ceill.c (ASSERT): Likewise.
32393         * tests/test-count-one-bits.c (ASSERT): Likewise.
32394         * tests/test-fbufmode.c (ASSERT): Likewise.
32395         * tests/test-fflush2.c (ASSERT): Likewise.
32396         * tests/test-floorf1.c (ASSERT): Likewise.
32397         * tests/test-floorf2.c (ASSERT): Likewise.
32398         * tests/test-floorl.c (ASSERT): Likewise.
32399         * tests/test-fopen.c (ASSERT): Likewise.
32400         * tests/test-fpending.c (ASSERT): Likewise.
32401         * tests/test-fprintf-posix.c (ASSERT): Likewise.
32402         * tests/test-fpurge.c (ASSERT): Likewise.
32403         * tests/test-freadable.c (ASSERT): Likewise.
32404         * tests/test-freadahead.c (ASSERT): Likewise.
32405         * tests/test-freading.c (ASSERT): Likewise.
32406         * tests/test-freadptr.c (ASSERT): Likewise.
32407         * tests/test-freadptr2.c (ASSERT): Likewise.
32408         * tests/test-freadseek.c (ASSERT): Likewise.
32409         * tests/test-freopen.c (ASSERT): Likewise.
32410         * tests/test-frexp.c (ASSERT): Likewise.
32411         * tests/test-frexpl.c (ASSERT): Likewise.
32412         * tests/test-fseek.c (ASSERT): Likewise.
32413         * tests/test-fseeko.c (ASSERT): Likewise.
32414         * tests/test-fstrcmp.c (ASSERT): Likewise.
32415         * tests/test-ftell.c (ASSERT): Likewise.
32416         * tests/test-ftello.c (ASSERT): Likewise.
32417         * tests/test-func.c (ASSERT): Likewise.
32418         * tests/test-fwritable.c (ASSERT): Likewise.
32419         * tests/test-fwriting.c (ASSERT): Likewise.
32420         * tests/test-getdelim.c (ASSERT): Likewise.
32421         * tests/test-getline.c (ASSERT): Likewise.
32422         * tests/test-i-ring.c (ASSERT): Likewise.
32423         * tests/test-iconv-utf.c (ASSERT): Likewise.
32424         * tests/test-iconv.c (ASSERT): Likewise.
32425         * tests/test-isfinite.c (ASSERT): Likewise.
32426         * tests/test-isnand.c (ASSERT): Likewise.
32427         * tests/test-isnanf.c (ASSERT): Likewise.
32428         * tests/test-isnanl.h (ASSERT): Likewise.
32429         * tests/test-ldexpl.c (ASSERT): Likewise.
32430         * tests/test-linked_list.c (ASSERT): Likewise.
32431         * tests/test-linkedhash_list.c (ASSERT): Likewise.
32432         * tests/test-localename.c (ASSERT): Likewise.
32433         * tests/test-lseek.c (ASSERT): Likewise.
32434         * tests/test-mbscasecmp.c (ASSERT): Likewise.
32435         * tests/test-mbscasestr1.c (ASSERT): Likewise.
32436         * tests/test-mbscasestr2.c (ASSERT): Likewise.
32437         * tests/test-mbscasestr3.c (ASSERT): Likewise.
32438         * tests/test-mbscasestr4.c (ASSERT): Likewise.
32439         * tests/test-mbschr.c (ASSERT): Likewise.
32440         * tests/test-mbscspn.c (ASSERT): Likewise.
32441         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
32442         * tests/test-mbspbrk.c (ASSERT): Likewise.
32443         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
32444         * tests/test-mbsrchr.c (ASSERT): Likewise.
32445         * tests/test-mbsspn.c (ASSERT): Likewise.
32446         * tests/test-mbsstr1.c (ASSERT): Likewise.
32447         * tests/test-mbsstr2.c (ASSERT): Likewise.
32448         * tests/test-mbsstr3.c (ASSERT): Likewise.
32449         * tests/test-memchr2.c (ASSERT): Likewise.
32450         * tests/test-memmem.c (ASSERT): Likewise.
32451         * tests/test-open.c (ASSERT): Likewise.
32452         * tests/test-printf-frexp.c (ASSERT): Likewise.
32453         * tests/test-printf-frexpl.c (ASSERT): Likewise.
32454         * tests/test-printf-posix.c (ASSERT): Likewise.
32455         * tests/test-quotearg.c (ASSERT): Likewise.
32456         * tests/test-rbtree_list.c (ASSERT): Likewise.
32457         * tests/test-rbtree_oset.c (ASSERT): Likewise.
32458         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
32459         * tests/test-round1.c (ASSERT): Likewise.
32460         * tests/test-roundf1.c (ASSERT): Likewise.
32461         * tests/test-roundl.c (ASSERT): Likewise.
32462         * tests/test-signbit.c (ASSERT): Likewise.
32463         * tests/test-sleep.c (ASSERT): Likewise.
32464         * tests/test-snprintf-posix.c (ASSERT): Likewise.
32465         * tests/test-snprintf.c (ASSERT): Likewise.
32466         * tests/test-sprintf-posix.c (ASSERT): Likewise.
32467         * tests/test-stat-time.c (ASSERT): Likewise.
32468         * tests/test-strcasestr.c (ASSERT): Likewise.
32469         * tests/test-strerror.c (ASSERT): Likewise.
32470         * tests/test-striconv.c (ASSERT): Likewise.
32471         * tests/test-striconveh.c (ASSERT): Likewise.
32472         * tests/test-striconveha.c (ASSERT): Likewise.
32473         * tests/test-strsignal.c (ASSERT): Likewise.
32474         * tests/test-strstr.c (ASSERT): Likewise.
32475         * tests/test-strtod.c (ASSERT): Likewise.
32476         * tests/test-trunc1.c (ASSERT): Likewise.
32477         * tests/test-trunc2.c (ASSERT): Likewise.
32478         * tests/test-truncf1.c (ASSERT): Likewise.
32479         * tests/test-truncf2.c (ASSERT): Likewise.
32480         * tests/test-truncl.c (ASSERT): Likewise.
32481         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
32482         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
32483         * tests/test-vasnprintf.c (ASSERT): Likewise.
32484         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
32485         * tests/test-vasprintf.c (ASSERT): Likewise.
32486         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
32487         * tests/test-vprintf-posix.c (ASSERT): Likewise.
32488         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
32489         * tests/test-vsnprintf.c (ASSERT): Likewise.
32490         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
32491         * tests/test-wcwidth.c (ASSERT): Likewise.
32492         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
32493         * tests/test-xprintf-posix.c (ASSERT): Likewise.
32494         * tests/test-xvasprintf.c (ASSERT): Likewise.
32495         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
32496         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
32497         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
32498         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
32499         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
32500         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
32501         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
32502         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
32503         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
32504         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
32505         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
32506         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
32507         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
32508         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
32509         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
32510         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
32511         * tests/unictype/test-block_list.c (ASSERT): Likewise.
32512         * tests/unictype/test-block_of.c (ASSERT): Likewise.
32513         * tests/unictype/test-block_test.c (ASSERT): Likewise.
32514         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
32515         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
32516         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
32517         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
32518         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
32519         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
32520         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
32521         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
32522         * tests/unictype/test-combining.c (ASSERT): Likewise.
32523         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
32524         * tests/unictype/test-digit.c (ASSERT): Likewise.
32525         * tests/unictype/test-mirror.c (ASSERT): Likewise.
32526         * tests/unictype/test-numeric.c (ASSERT): Likewise.
32527         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
32528         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
32529         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
32530         * tests/unictype/test-scripts.c (ASSERT): Likewise.
32531         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
32532         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
32533         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
32534         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
32535         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
32536         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
32537         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
32538         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
32539         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
32540         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
32541         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
32542         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
32543         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
32544         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
32545         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
32546         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
32547         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
32548         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
32549         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
32550         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
32551         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
32552         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
32553         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
32554         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
32555         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
32556         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
32557         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
32558         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
32559         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
32560         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
32561         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
32562         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
32563         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
32564         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
32565         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
32566         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
32567         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
32568         Reported by Eric Blake.
32569
32570 2008-04-11  Bruno Haible  <bruno@clisp.org>
32571
32572         * lib/wchar.in.h: Tweak comment.
32573
32574 2008-04-11  Bruno Haible  <bruno@clisp.org>
32575
32576         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
32577         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
32578         gl_COMMON.
32579         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
32580
32581 2008-04-11  Bruno Haible  <bruno@clisp.org>
32582
32583         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
32584
32585 2008-04-11  Simon Josefsson  <simon@josefsson.org>
32586
32587         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
32588         of attempting to use non-existing /dev/*random.  Based on patch
32589         from Adam Strzelecki <ono@java.pl> in
32590         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
32591
32592 2008-04-08  Bruno Haible  <bruno@clisp.org>
32593
32594         Add tentative support for emx+gcc.
32595         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
32596         * lib/fpurge.c (fpurge): Likewise.
32597         * lib/freadable.c (freadable): Likewise.
32598         * lib/freadahead.c (freadahead): Likewise.
32599         * lib/freading.c (freading): Likewise.
32600         * lib/freadptr.c (freadptr): Likewise.
32601         * lib/freadseek.c (freadptrinc): Likewise.
32602         * lib/fseeko.c (rpl_fseeko): Likewise.
32603         * lib/fseterr.c (fseterr): Likewise.
32604         * lib/fwritable.c (fwritable): Likewise.
32605         * lib/fwriting.c (fwriting): Likewise.
32606         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
32607
32608 2008-04-09  Eric Blake  <ebb9@byu.net>
32609
32610         Avoid some autoconf warnings.
32611         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
32612         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
32613         * m4/afs.m4 (gl_AFS): Likewise.
32614         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
32615         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
32616         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32617         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
32618         (gl_INTEGER_TYPE_SUFFIX): Likewise.
32619         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
32620         (AC_CHECK_DECLS_ONCE): Likewise.
32621         Rename file...
32622         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
32623         gnulib-tool requires autoconf 2.59 or better.
32624         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
32625
32626 2008-04-08  Eric Blake  <ebb9@byu.net>
32627
32628         Use 'git describe --match' if present (added in git 1.5.5).
32629         * build-aux/git-version-gen: Limit result to tags that match 'v*'
32630         if possible.
32631
32632 2008-04-08  Bruno Haible  <bruno@clisp.org>
32633
32634         Add tentative support for OpenServer.
32635         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
32636         _ptr, _cnt.
32637         * lib/fpurge.c (fpurge): Likewise.
32638         * lib/freadable.c (freadable): Likewise.
32639         * lib/freadahead.c (freadahead): Likewise.
32640         * lib/freading.c (freading): Likewise.
32641         * lib/freadptr.c (freadptr): Likewise.
32642         * lib/freadseek.c (freadptrinc): Likewise.
32643         * lib/fseeko.c (rpl_fseeko): Likewise.
32644         * lib/fseterr.c (fseterr): Likewise.
32645         * lib/fwritable.c (fwritable): Likewise.
32646         * lib/fwriting.c (fwriting): Likewise.
32647         Reported by Roger Cornelius <rac@tenzing.org> and
32648         Brian K. White <brian@aljex.com>.
32649
32650 2008-04-06  Jim Meyering  <meyering@redhat.com>
32651
32652         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
32653
32654 2008-04-06  Bruno Haible  <bruno@clisp.org>
32655
32656         Avoid possible error with non-ASCII bytes in UTF-8 locales.
32657         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
32658         * tests/test-printf-posix.sh: Likewise.
32659         * tests/test-vfprintf-posix.sh: Likewise.
32660         * tests/test-vprintf-posix.sh: Likewise.
32661         * tests/test-xprintf-posix.sh: Likewise.
32662
32663 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32664
32665         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
32666         hide error from 'ls', needed on OS/2.
32667         Report by Elbert Pol <elbert.pol@gmail.com>.
32668
32669 2008-04-04  Eric Blake  <ebb9@byu.net>
32670
32671         Make test-fseeko.c failures meaningful.
32672         * tests/test-fseeko.c: Print line number on failure.
32673         * tests/test-fseek.c: Likewise.
32674         Reported by Nelson H. F. Beebe.
32675
32676         Improve strtod bug detection check.
32677         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
32678         required for Solaris 10.
32679         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
32680
32681 2008-04-04  Bruno Haible  <bruno@clisp.org>
32682
32683         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
32684         by m4/setenv.m4.
32685
32686 2008-04-03  Eric Blake  <ebb9@byu.net>
32687
32688         Ensure sane .version contents.
32689         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
32690         version string.
32691         * build-aux/git-version-gen: Improve documentation.
32692
32693         Make GNU make output nicer.
32694         * top/GNUmakefile [!_have-Makefile]: Add dependency on
32695         MAKECMDGOALS to enforce message for all command line targets.  Set
32696         srcdir for use in maint.mk.
32697
32698         Another maintainer tweak.
32699         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
32700         a target that regenerates version.
32701
32702 2008-04-03  Jim Meyering  <meyering@redhat.com>
32703
32704         vc-list-files: don't cause coreutils "make po-check" failure
32705         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
32706
32707 2008-04-03  Eric Blake  <ebb9@byu.net>
32708
32709         Allow VPATH usage of vc-list-files.
32710         * build-aux/vc-list-files (scriptversion): Add timestamp.
32711         (options): Add --help, --version, -C.
32712         (CVS): Support installed cvsu.
32713
32714 2008-04-02  Bruno Haible  <bruno@clisp.org>
32715
32716         Avoid some "statement with no effect" warnings from gcc.
32717         * tests/test-wctype.c (main): Explicitly ignore unused values.
32718         Reported by Jim Meyering.
32719
32720 2008-04-02  Jim Meyering  <meyering@redhat.com>
32721
32722         Avoid some warnings from "gcc -Wshadow".
32723         * tests/test-frexp.c (exp): Define to a different identifier.
32724         * tests/test-frexpl.c (exp): Likewise.
32725
32726 2008-04-03  Jim Meyering  <meyering@redhat.com>
32727
32728         bootstrap: remove dangling *.[ch] symlinks from lib
32729         * build-aux/bootstrap [dangling symlink removal]: Move find's
32730         -depth option to precede all others, to avoid a warning.
32731         Remove *.[ch] files too, and from "$source_base" (usually lib/).
32732
32733 2008-04-02  Bruno Haible  <bruno@clisp.org>
32734
32735         Avoid some warnings from "gcc -Wshadow".
32736         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
32737         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
32738         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
32739         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
32740         Reported by Jim Meyering.
32741
32742 2008-04-01  Bruno Haible  <bruno@clisp.org>
32743
32744         Fix test to work on IRIX 6.5 with cc.
32745         * tests/test-math.c (numeric_equal): New function.
32746         (main): Use it.
32747
32748 2008-04-01  Bruno Haible  <bruno@clisp.org>
32749
32750         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
32751
32752 2008-04-01  Bruno Haible  <bruno@clisp.org>
32753
32754         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
32755         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32756         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
32757         (Depends-on): Remove math.
32758
32759         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
32760         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32761         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
32762         (Depends-on): Remove math.
32763
32764         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
32765         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32766         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
32767         (Depends-on): Remove math.
32768         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
32769         (Depends-on): Remove math.
32770
32771         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
32772         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32773         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
32774         (Depends-on): Remove math.
32775         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
32776         (Depends-on): Remove math.
32777
32778         * tests/test-round1.c: Include nan.h.
32779         (main): Use NaNd instead of NAN.
32780         * modules/round-tests (Files): Add tests/nan.h.
32781
32782         * tests/test-trunc1.c: Include nan.h.
32783         (main): Use NaNd instead of NAN.
32784         * modules/trunc-tests (Files): Add tests/nan.h.
32785
32786         * tests/test-roundf1.c: Include nan.h.
32787         (main): Use NaNf instead of NAN.
32788         * modules/roundf-tests (Files): Add tests/nan.h.
32789
32790         * tests/test-truncf1.c: Include nan.h.
32791         (main): Use NaNf instead of NAN.
32792         * modules/truncf-tests (Files): Add tests/nan.h.
32793
32794         * tests/test-ceilf1.c: Include nan.h.
32795         (main): Use NaNf instead of NAN.
32796         * modules/ceilf-tests (Files): Add tests/nan.h.
32797
32798         * tests/test-floorf1.c: Include nan.h.
32799         (main): Use NaNf instead of NAN.
32800         * modules/floorf-tests (Files): Add tests/nan.h.
32801
32802         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
32803         (main): Use NaNf instead of NAN.
32804         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
32805
32806         * tests/test-isnand.c: Include nan.h instead of <math.h>.
32807         (main): Use NaNd instead of NAN.
32808         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
32809
32810         * tests/test-frexp.c: Include nan.h.
32811         (main): Use NaNd instead of NAN.
32812         * modules/frexp-tests (Files): Add tests/nan.h.
32813
32814         * lib/isnan.c: Don't include <math.h>.
32815         (FUNC): Don't use NAN macro.
32816         * modules/isnand-nolibm (Depends-on): Remove math.
32817         * modules/isnanf-nolibm (Depends-on): Remove math.
32818         * modules/isnanl (Depends-on): Remove math.
32819         * modules/isnanl-nolibm (Depends-on): Remove math.
32820
32821         * tests/nan.h: New file.
32822
32823 2008-04-01  Eric Blake  <ebb9@byu.net>
32824
32825         Fix typos.
32826         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
32827         values to be the right type.
32828
32829         For now, cater to gnulib strtod inaccuracies.
32830         * tests/test-strtod.c (main): Allow 1-ulp error on expected
32831         fractional results.  While not as nice from a QoI perspective, it
32832         is a quicker patch than correctly implementing decimal to binary
32833         rounding.
32834
32835 2008-03-31  Eric Blake  <ebb9@byu.net>
32836
32837         Guarantee a definition of NAN.
32838         * lib/math.in.h (NAN): Define if missing.
32839         * tests/test-math.c (main): Test it.
32840         * doc/posix-headers/math.texi (math.h): Document this.
32841         * lib/isnan.c (rpl_isnand): Use it.
32842         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
32843         * tests/test-floorf1.c (NaN): Likewise.
32844         * tests/test-frexp.c (NaN): Likewise.
32845         * tests/test-isnand.c (NaN): Likewise.
32846         * tests/test-isnanf.c (NaN): Likewise.
32847         * tests/test-round1.c (NaN): Likewise.
32848         * tests/test-roundf1.c (NaN): Likewise.
32849         * tests/test-snprintf-posix.h (NaN): Likewise.
32850         * tests/test-sprintf-posix.h (NaN): Likewise.
32851         * tests/test-trunc1.c (NaN): Likewise.
32852         * tests/test-truncf1.c (NaN): Likewise.
32853         * tests/test-vasnprintf-posix.c (NaN): Likewise.
32854         * tests/test-vasprintf-posix.c (NaN): Likewise.
32855         * modules/isnand-nolibm (Depends-on): Add math.
32856         * modules/isnanf-nolibm (Depends-on): Likewise.
32857         * modules/isnanl (Depends-on): Likewise.
32858         * modules/isnanl-nolibm (Depends-on): Likewise.
32859         * modules/snprintf-posix-tests (Depends-on): Likewise.
32860         * modules/sprintf-posix-tests (Depends-on): Likewise.
32861         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
32862         * modules/vsprintf-posix-tests (Depends-on): Likewise.
32863         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
32864         * modules/vasprintf-posix-tests (Depends-on): Likewise.
32865
32866 2008-03-31  Bruno Haible  <bruno@clisp.org>
32867
32868         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
32869         * doc/posix-functions/strtod.texi: Likewise.
32870
32871 2008-03-31  Bruno Haible  <bruno@clisp.org>
32872
32873         * tests/test-strtod.c (main): Don't use C99 syntax.
32874
32875 2008-03-31  Bruno Haible  <bruno@clisp.org>
32876
32877         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
32878         Reported by Eric Blake.
32879
32880 2008-03-31  Jim Meyering  <meyering@redhat.com>
32881
32882         Don't compare actual signbit return values.
32883         * tests/test-strtod.c (main): Rather, compare only their
32884         zero/non-zero nature.
32885
32886 2008-03-31  Eric Blake  <ebb9@byu.net>
32887
32888         More strtod documentation.
32889         * doc/posix-functions/strtod.texi (strtod): Interpret more test
32890         failures as distinct bugs.
32891
32892 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32893
32894         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
32895         Problem reported by Erik Benada in
32896         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
32897
32898 2008-03-30  Bruno Haible  <bruno@clisp.org>
32899
32900         * tests/test-strtod.c: Add comments about which assertion fails on which
32901         platform.
32902         * doc/posix-functions/strtod.texi: Add info about many more platforms.
32903
32904 2008-03-30  Eric Blake  <ebb9@byu.net>
32905
32906         Test signbit behavior on zeros.
32907         * tests/test-signbit.c (test_signbitf): Add tests for zero.
32908         (test_signbitd, test_signbitl): Likewise.
32909
32910         More strtod touchups.
32911         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
32912         sign of negative underflow, for now.  Use .5, not .1.
32913         * doc/posix-functions/strtod.texi (strtod): Mention these
32914         limitations.
32915         Reported by Jim Meyering.
32916
32917 2008-03-30  Bruno Haible  <bruno@clisp.org>
32918
32919         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
32920         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
32921
32922 2008-03-30  Bruno Haible  <bruno@clisp.org>
32923
32924         Avoid failure when attempting to return empty iconv results on some
32925         platforms.
32926         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
32927         allocation, don't report ENOMEM when the resulting string is empty.
32928
32929 2008-03-30  Bruno Haible  <bruno@clisp.org>
32930
32931         Fix buffer overrun.
32932         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
32933         Don't consider the width for tmp_length. Check count against tmp_length
32934         before doing the padding. Ensure enough allocation during padding.
32935
32936 2008-03-30  Eric Blake  <ebb9@byu.net>
32937
32938         strtod touchups.
32939         * lib/strtod.c (strtod): Avoid compiler warnings.
32940         Reported by Jim Meyering.
32941
32942 2008-03-30  Bruno Haible  <bruno@clisp.org>
32943
32944         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
32945         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
32946         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
32947         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
32948         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
32949         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
32950         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
32951         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
32952
32953         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
32954         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
32955         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
32956         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
32957         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
32958         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
32959         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
32960         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
32961
32962         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
32963         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
32964         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
32965         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
32966         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
32967         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
32968         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
32969         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
32970
32971         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
32972         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
32973
32974         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
32975         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
32976
32977         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
32978         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
32979
32980         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
32981         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
32982         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
32983
32984         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
32985         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
32986         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
32987
32988         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
32989         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
32990         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
32991
32992         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
32993         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
32994         * modules/vasprintf (Depends-on): Add EOVERFLOW.
32995
32996         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
32997         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
32998         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
32999         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
33000         (Depends-on): Add EOVERFLOW.
33001         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
33002         (Depends-on): Add EOVERFLOW.
33003         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
33004         (Depends-on): Add EOVERFLOW.
33005         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
33006         (Depends-on): Add EOVERFLOW.
33007         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
33008         (Depends-on): Add EOVERFLOW.
33009         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
33010         (Depends-on): Add EOVERFLOW.
33011         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
33012         (Depends-on): Add EOVERFLOW.
33013         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
33014         (Depends-on): Add EOVERFLOW.
33015
33016         * lib/sprintf.c (EOVERFLOW): Remove fallback.
33017         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
33018         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
33019
33020         * lib/snprintf.c (EOVERFLOW): Remove fallback.
33021         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
33022         * modules/snprintf (Depends-on): Add EOVERFLOW.
33023
33024         * lib/poll.c (EOVERFLOW): Remove fallback.
33025         * modules/poll (Depends-on): Add EOVERFLOW.
33026
33027         * lib/getugroups.c (EOVERFLOW): Remove fallback.
33028         * modules/getugroups (Depends-on): Add EOVERFLOW.
33029
33030         * lib/getdelim.c (EOVERFLOW): Remove fallback.
33031         * modules/getdelim (Depends-on): Add EOVERFLOW.
33032
33033         * lib/ftell.c (EOVERFLOW): Remove fallback.
33034         * modules/ftell (Depends-on): Add EOVERFLOW.
33035
33036         * lib/fprintf.c (EOVERFLOW): Remove fallback.
33037         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
33038         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
33039
33040         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
33041
33042         * modules/EOVERFLOW-tests: New file.
33043         * tests/test-EOVERFLOW.c: New file.
33044
33045         * modules/EOVERFLOW: New file.
33046         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
33047
33048 2008-03-30  Bruno Haible  <bruno@clisp.org>
33049
33050         Fix bug introduced on 2007-06-10.
33051         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
33052         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
33053
33054 2008-03-30  Bruno Haible  <bruno@clisp.org>
33055
33056         Improve freadseek's efficiency after ungetc.
33057         * lib/freadseek.c: Include freadahead.h.
33058         (freadptrinc): New function, extracted from freadseek.
33059         (freadseek): Use it in a loop. Use freadahead to determine the number
33060         of loop iterations.
33061         * modules/freadseek (Depends-on): Add freadahead.
33062         (configure.ac): Require AC_C_INLINE.
33063
33064 2008-03-30  Bruno Haible  <bruno@clisp.org>
33065
33066         * lib/freadseek.c (freadseek): Don't ignore the return value of
33067         freadptr.
33068
33069 2008-03-29  Eric Blake  <ebb9@byu.net>
33070
33071         Add hex float support.
33072         * modules/strtod (Depends-on): Add c-ctype.
33073         (Link): Mention POW_LIB.
33074         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
33075         whitespace between 'e' and exponent.
33076         * tests/test-strtod.c (main): Enable hex float tests.
33077         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
33078         now provides.
33079
33080         Document various strtod bugs, with some fixes.
33081         * doc/posix-functions/strtod.texi (strtod): Document bugs with
33082         "-0x", "inf", "nan", and hex constants.
33083         * doc/posix-functions/atof.texi (atof): Likewise.
33084         * modules/stdlib (Makefile.am): Support strtod.
33085         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
33086         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
33087         detect additional strtod bugs.
33088         * lib/stdlib.in.h (rpl_strtod): Add declarations.
33089         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
33090         bool where appropriate.  Parse 'inf' and 'nan'.
33091         * tests/test-strtod.c: New file.
33092         * modules/strtod (Depends-on): Add stdbool, stdlib.
33093         (configure.ac): Turn on module indicator.
33094         * modules/strtod-tests: New module.
33095
33096 2008-03-29  Eric Blake  <ebb9@byu.net>
33097
33098         Fix ftell on mingw.
33099         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
33100         * modules/ftell-tests (Depends-on): Add binary-io.
33101         * modules/ftello-tests (Depends-on): Likewise.
33102         * tests/test-ftell.c (main): Enhance test to cover behavior after
33103         ungetc.  Enforce binary mode.
33104         * tests/test-ftello.c (main): Likewise.
33105
33106         Pass test-freadseek on cygwin.
33107         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
33108         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
33109         ungetc buffer.
33110
33111         * tests/test-fflush2.c (main): Fix typo.
33112
33113 2008-03-29  Bruno Haible  <bruno@clisp.org>
33114
33115         * tests/test-fflush2.c (main): Temporarily disable the contents of
33116         this test.
33117         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
33118         Reported by Eric Blake.
33119
33120 2008-03-28  Simon Josefsson  <simon@josefsson.org>
33121
33122         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
33123         (GC_SHA224_DIGEST_SIZE): Add.
33124
33125         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
33126         (gc_hash_digest_length): Likewise.
33127         (gc_hash_buffer): Likewise.
33128
33129 2008-03-25  Bruno Haible  <bruno@clisp.org>
33130
33131         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
33132         detail which gettext release to use.
33133         Reported by Simon Josefsson.
33134
33135 2008-03-26  Jim Meyering  <meyering@redhat.com>
33136
33137         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
33138         * modules/gnumakefile (clean-GNUmakefile): Also, use
33139         test ... && ... || : syntax rather than if-then ... fi.
33140
33141         gnumakefile: Don't double-quote-expand $(VPATH) value.
33142         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
33143
33144 2008-03-24  Eric Blake  <ebb9@byu.net>
33145
33146         Alter GNUmakefile to install into top directory.
33147         * modules/maintainer-makefile: Split, and add dependency...
33148         * modules/gnumakefile: to this new module.
33149         * build-aux/GNUmakefile: Move...
33150         * top/GNUmakefile: ...here.
33151         * build-aux/maint.mk: Move...
33152         * top/maint.mk: ...here.
33153         * MODULES.html.sh (Support for maintaining...): Document new
33154         module.
33155
33156 2008-03-23  Bruno Haible  <bruno@clisp.org>
33157
33158         * gnulib-tool: New options --vc-files, --no-vc-files.
33159         (func_usage): Document them.
33160         (vc_files): New variable.
33161         (func_import): Consider vc_files.
33162         (func_create_testdir): Set vc_files to empty.
33163         Suggested by Jim Meyering and Karl Berry.
33164
33165 2008-03-23  Bruno Haible  <bruno@clisp.org>
33166
33167         Fix regex compilation error on HP-UX 11.
33168         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
33169         * modules/regex (Files): Add m4/mbstate_t.m4.
33170         Reported by Ton Voon <ton.voon@altinity.com>.
33171
33172 2008-03-23  Bruno Haible  <bruno@clisp.org>
33173
33174         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
33175
33176 2008-03-23  Eric Blake  <ebb9@byu.net>
33177             Bruno Haible  <bruno@clisp.org>
33178
33179         Install files from top/ in the destination directory.
33180         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
33181         augmentation also for the files from top/.
33182         (func_import, func_create_testdir): Rewrite file names:
33183         top/filename -> filename.
33184
33185 2008-03-23  Bruno Haible  <bruno@clisp.org>
33186
33187         Tweak "gnulib --version" output.
33188         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
33189
33190 2008-03-23  Bruno Haible  <bruno@clisp.org>
33191
33192         Tweak "gnulib --version" output.
33193         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
33194         rather than contents of ChangeLog, when possible.
33195
33196 2008-03-21  Eric Blake  <ebb9@byu.net>
33197
33198         More --version tweaks.
33199         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
33200         date of last ChangeLog entry.
33201
33202 2008-03-21  Jim Meyering  <meyering@redhat.com>
33203
33204         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
33205
33206 2008-03-20  Eric Blake  <ebb9@byu.net>
33207
33208         VPATH fix.
33209         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
33210
33211 2008-03-20  Simon Josefsson  <simon@josefsson.org>
33212
33213         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
33214         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
33215
33216 2008-03-20  Eric Blake  <ebb9@byu.net>
33217
33218         Sync GNUmakefile with coreutils.
33219         * build-aux/GNUmakefile (have-Makefile): Rename...
33220         (_have-Makefile): ...to this, for namespace consideration.
33221         (GNUmakefile.cfg): Include, if present.
33222         (_autoreconf): Define a default.
33223         (_is-dist-target): New rule for rebuilds to pick up intra-release
33224         version.
33225         (maint-cfg.mk): Rename...
33226         (cfg.mk): ...to this.
33227
33228 2008-03-18  Jim Meyering  <meyering@redhat.com>
33229
33230         New script and module: mktempd
33231         * MODULES.html.sh (maint+release support): Add mktempd.
33232         * build-aux/mktempd: New file.
33233         * modules/mktempd: New file.
33234
33235 2008-03-15  Jim Meyering  <meyering@redhat.com>
33236
33237         Undo last change.
33238         * lib/sha1.c, lib/md5.c: 63 != ~63.
33239         Reported by Andreas Schwab.
33240
33241         sha1.c, md5.c: Hoist a redundant expression.
33242         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
33243         "ctx->buflen" only once, before calling *_process_block.
33244         * lib/md5.c (md5_process_bytes): Likewise.
33245
33246 2008-03-14  Eric Blake  <ebb9@byu.net>
33247
33248         Bump copyright year in files generated by gnulib-tool.
33249         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
33250         gnulib-tool, rather than hard-coding it.
33251
33252         Fix 'gnulib-tool --version' output to work with git.
33253         * gnulib-tool (func_gnulib_dir): New function, extracted from...
33254         (startup): ...here.
33255         (func_version): Use it to invoke git-version-gen, rather than
33256         relying on CVS keyword expansion.  Modernize wording.
33257         (cvsdatestamp, last_checkin_date, version): Kill unused
33258         variables.
33259
33260 2008-03-12  Jim Meyering  <meyering@redhat.com>
33261
33262         Recognize optional cast of the argument to free.
33263         * build-aux/useless-if-before-free: Update regexps.
33264
33265         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
33266
33267 2008-03-11  Bruno Haible  <bruno@clisp.org>
33268
33269         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
33270         by a single package.
33271         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
33272         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
33273         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
33274         Reported by Sam Steingold <sds@gnu.org>.
33275
33276 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33277
33278         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
33279         repositories.
33280
33281 2008-03-11  Bruno Haible  <bruno@clisp.org>
33282
33283         Avoid conflicts between local macro definitions.
33284         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33285         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
33286
33287 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
33288             Bruno Haible  <bruno@clisp.org>
33289
33290         Make va_copy work with some version of xlc on AIX 5.1.
33291         * lib/stdarg.in.h: New file.
33292         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
33293         On AIX, use a <stdarg.h> file substitute.
33294         * modules/stdarg (Files): Add lib/stdarg.in.h.
33295         (Depends-on): Add include_next.
33296         (Makefile.am): Build a stdarg.h substitute if requested.
33297         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
33298
33299 2008-03-10  Bruno Haible  <bruno@clisp.org>
33300
33301         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
33302         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33303         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33304
33305 2008-03-10  Bruno Haible  <bruno@clisp.org>
33306
33307         * modules/stdlib (Depends-on): Add include_next, remove
33308         absolute-header.
33309
33310 2008-03-09  Bruno Haible  <bruno@clisp.org>
33311
33312         * lib/freadahead.h (freadahead): Document more precisely.
33313         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
33314         the sum of both buffer sizes.
33315         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
33316         * NEWS: Document the change.
33317
33318 2008-03-09  Bruno Haible  <bruno@clisp.org>
33319
33320         Extend freadptr to return also the buffer size.
33321         * lib/freadptr.h (freadptr): Add sizep argument.
33322         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
33323         (freadptr): Add sizep argument. Determine buffer size like freadahead
33324         does.
33325         * tests/test-freadptr.c: Don't include freadahead.h.
33326         (main): Adapt for new calling convention of freadptr.
33327         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
33328         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
33329         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
33330         tests/test-freadptr2.sh.
33331         (Depends): Remove freadahead.
33332         (TESTS): Add test-freadptr2.sh.
33333         (check_PROGRAMS): Add test-freadptr2.
33334
33335 2008-03-09  Bruno Haible  <bruno@clisp.org>
33336
33337         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
33338         Report and solution by Simon Josefsson.
33339
33340 2008-03-06  Bruno Haible  <bruno@clisp.org>
33341
33342         Make fflush after ungetc work on BSD platforms.
33343         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
33344         * tests/test-fflush2.c: New file.
33345         * tests/test-fflush2.sh: New file.
33346         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
33347         tests/test-fflush2.c.
33348         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
33349         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
33350
33351 2008-03-06  Eric Blake  <ebb9@byu.net>
33352
33353         Likewise for ftello.
33354         * modules/ftello (Dependencies): Add extensions.
33355         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
33356
33357 2008-03-06  Bruno Haible  <bruno@clisp.org>
33358
33359         * modules/fseeko (Dependencies): Add extensions.
33360         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
33361         Needed on glibc systems.
33362
33363 2008-03-06  Bruno Haible  <bruno@clisp.org>
33364
33365         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
33366         email address.
33367         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33368
33369 2008-03-06  Bruno Haible  <bruno@clisp.org>
33370
33371         * users.txt: Add libgnupdf.
33372
33373 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33374
33375         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
33376         (Header File Substitutes, Function Substitutes,
33377         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
33378         (Build robot for gnulib): Fix typo.
33379
33380 2008-03-06  Bruno Haible  <bruno@clisp.org>
33381
33382         * doc/gnulib-tool.texi (VCS Issues): Small updates.
33383         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33384
33385 2008-03-06  Bruno Haible  <bruno@clisp.org>
33386
33387         * doc/func.texi: New file, extracted from doc/gnulib.texi.
33388         * doc/gnulib.texi: Include it.
33389
33390 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33391
33392         * modules/func (License): Change license to unlimited; there was
33393         no LGPL parts in the module anyway.
33394
33395 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33396
33397         * modules/__func__: Renamed to modules/func.
33398         * modules/__func__-tests: Renamed to modules/func-tests.
33399         * tests/test-__func__.c: Renamed to tests/test-func.c.
33400         * m4/__func__.m4: Renamed to m4/func.m4.
33401         * doc/gnulib.texi (__func__): Section renamed to func.
33402         Suggested by Eric Blake <ebb9@byu.net>.
33403
33404 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33405
33406         * doc/gnulib.texi (__func__): Use C99 terminology when talking
33407         about __func__.  Make example self-contained.  Suggested by Eric
33408         Blake <ebb9@byu.net>.
33409
33410         * tests/test-__func__.c (main): Avoid extraneous () around __func.
33411         Suggested by Eric Blake <ebb9@byu.net>.
33412
33413 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33414
33415         * modules/__func__: New file.
33416         * modules/__func__-tests: New file.
33417         * tests/test-__func__.c: New file.
33418         * m4/__func__.m4: New file.
33419         * doc/gnulib.texi (__func__): Document __func__ module.
33420
33421 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33422
33423         * modules/byteswap (License): Re-license as LGPLv2+.
33424
33425 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33426
33427         * doc/Makefile: Add pdf target.
33428
33429 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33430
33431         * modules/inline (License): Use 'unlimited', since there are only
33432         *.m4 files in this module.
33433
33434 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33435             Bruno Haible  <bruno@clisp.org>
33436
33437         Add support for HP C 7.1 on OpenVMS 8.3.
33438         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
33439
33440 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33441
33442         Update VMS specifics.
33443         * lib/getopt.c [VMS]: Remove include of unixlib.h.
33444
33445 2008-03-02  Jim Meyering  <meyering@redhat.com>
33446
33447         Remove the last dependency on the "free" module.
33448         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
33449         Reported by Bob Proulx.
33450
33451         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
33452
33453         Remove useless "if" tests before free.  Deprecate "free" module.
33454         * doc/posix-functions/free.texi: Mention that this
33455         module is no longer useful.
33456         * modules/free (Notice): Say this module is obsolete.
33457         * modules/readutmp (Depends-on): Remove free.
33458         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
33459         * lib/putenv.c (putenv): Likewise.
33460         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
33461         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
33462         * tests/test-c-strcasestr.c (main): Likewise.
33463         * tests/test-c-strstr.c (main): Likewise.
33464         * tests/test-mbscasestr1.c (main): Likewise.
33465         * tests/test-mbscasestr2.c (main): Likewise.
33466         * tests/test-mbsstr1.c (main): Likewise.
33467         * tests/test-mbsstr2.c (main): Likewise.
33468         * tests/test-memmem.c (main): Likewise.
33469         * tests/test-strcasestr.c (main): Likewise.
33470         * tests/test-striconv.c (main): Likewise.
33471         * tests/test-striconveh.c (main): Likewise.
33472         * tests/test-striconveha.c (main): Likewise.
33473         * tests/test-strstr.c (main): Likewise.
33474
33475         * build-aux/git-version-gen: Adjust a comment and the Usage string.
33476
33477         bootstrap: sync from coreutils again
33478         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
33479
33480 2008-03-01  Jim Meyering  <meyering@redhat.com>
33481
33482         bootstrap: sync from coreutils
33483         * build-aux/bootstrap (update_po_files): Copy a .po file into place
33484         also when the target doesn't exist.
33485
33486 2008-03-01  Eric Blake  <ebb9@byu.net>
33487
33488         Fix bugs in last patch.
33489         * lib/memchr2.c (memchr2): Fix typo.
33490         * tests/test-memchr2.c: Test previous bug, and don't use GNU
33491         extension.
33492         Reported by Bruce Korb.
33493
33494         New module 'memchr2'.
33495         * modules/memchr2: New file.
33496         * modules/memchr2-tests: Likewise.
33497         * lib/memchr2.h: Likewise.
33498         * lib/memchr2.c: Likewise, based on memchr.c.
33499         * tests/test-memchr2.c: New test.
33500         * MODULES.html.sh (String handling): Add memchr2.
33501
33502 2008-02-29  Bruno Haible  <bruno@clisp.org>
33503
33504         * modules/freadseek-tests: New file.
33505         * tests/test-freadseek.sh: New file.
33506         * tests/test-freadseek.c: New file.
33507
33508         New module 'freadseek'.
33509         * modules/freadseek: New file.
33510         * lib/freadseek.h: New file.
33511         * lib/freadseek.c: New file.
33512         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
33513
33514 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33515
33516         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
33517         wydawca.
33518
33519         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
33520         program_invocation_name and program_invocation_short_name are
33521         present.
33522
33523 2008-02-28  Bruno Haible  <bruno@clisp.org>
33524
33525         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
33526         * tests/test-freadptr.sh: Also test non-seekable stdin.
33527
33528 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
33529
33530         * build-aux/bootstrap (source_base, m4_base)
33531         (doc_base, tests_base): New variables.
33532         (gnulib_tool_options): Do not hardcode base directories, use
33533         the above variables instead.
33534
33535 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
33536
33537         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
33538
33539 2008-02-28  Bruno Haible  <bruno@clisp.org>
33540
33541         * modules/freadptr-tests: New file.
33542         * tests/test-freadptr.sh: New file.
33543         * tests/test-freadptr.c: New file.
33544
33545         New module 'freadptr'.
33546         * modules/freadptr: New file.
33547         * lib/freadptr.h: New file.
33548         * lib/freadptr.c: New file.
33549         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
33550
33551 2008-02-26  Karl Berry  <karl@freefriends.org>
33552
33553         Sync from Libtool:
33554         * libltdl/argz.c (argz_add, argz_count): New functions.
33555         * libltdl/argz.in.h: Declare them.
33556         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
33557
33558 2008-02-22  Bruno Haible  <bruno@clisp.org>
33559
33560         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
33561         is a pointer type.  Needed for HP-UX 10.
33562         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
33563         * doc/posix-functions/gmtime_r.texi: Likewise.
33564         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33565
33566 2008-02-24  Bruno Haible  <bruno@clisp.org>
33567
33568         * modules/environ-tests: New file.
33569         * tests/test-environ.c: New file.
33570
33571         New module 'environ'.
33572         * modules/environ: New file.
33573         * lib/unistd.in.h (environ): New declaration.
33574         * m4/environ.m4: New file.
33575         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
33576         after use.
33577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
33578         HAVE_DECL_ENVIRON.
33579         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
33580         HAVE_DECL_ENVIRON.
33581         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
33582         wrong claim that 'environ' is missing on some systems.
33583         * modules/execute (Depends-on): Add environ.
33584         * lib/execute.c (environ): Remove fallback declaration.
33585         * modules/pipe (Depends-on): Add environ.
33586         * lib/pipe.c (environ): Remove fallback declaration.
33587         * modules/setenv (Depends-on): Add environ.
33588         * lib/setenv.c (environ): Remove fallback declaration.
33589         * modules/unsetenv (Depends-on): Add environ.
33590         * lib/unsetenv.c (environ): Remove fallback declaration.
33591         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
33592         m4/environ.m4.
33593         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
33594         (gl_PREREQ_UNSETENV): Likewise.
33595
33596 2008-02-24  Bruno Haible  <bruno@clisp.org>
33597
33598         * doc/posix-functions/environ.texi: Document the MacOS X problem.
33599
33600 2008-02-20  Bob Proulx  <bob@proulx.com>
33601
33602         Enable use of older two part flavor 'git describe'.
33603         * build-aux/git-version-gen: If using the older two part flavor of
33604         git version then recreate the third part now present in the
33605         newer three part flavor of git describe.
33606
33607 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
33608
33609         * lib/fts.c (fts_build): Typo correction to comment.
33610
33611 2008-02-17  Bruno Haible  <bruno@clisp.org>
33612
33613         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
33614         generating no-op conflicts.
33615
33616 2008-02-17  Bruno Haible  <bruno@clisp.org>
33617
33618         Speed up by 10%.
33619         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
33620         result_entries, rather than an index-based loop.
33621
33622 2008-02-17  Bruno Haible  <bruno@clisp.org>
33623
33624         Speed up by 25%.
33625         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
33626         'hashcode_cached'.
33627         (entry_create): New function.
33628         (entry_hashcode): Use the cached hashcode if possible.
33629         (read_changelog_file, try_split_merged_entry): Use entry_create.
33630
33631 2008-02-17  Bruno Haible  <bruno@clisp.org>
33632
33633         Speed up from O(n^2) to O(n) for long ChangeLog files.
33634         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
33635         (read_changelog_file): Change implementation of entries_reversed list
33636         to rbtreehash.
33637         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
33638
33639 2008-02-17  Bruno Haible  <bruno@clisp.org>
33640
33641         New option --split-merged-entry.
33642         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
33643         (find_paragraph_end, try_split_merged_entry): New functions.
33644         (long_options): Add option --split-merged-entry.
33645         (usage): Document option --split-merged-entry.
33646         (main): Implement option --split-merged-entry.
33647         Reported by Eric Blake.
33648
33649 2008-02-17  Bruno Haible  <bruno@clisp.org>
33650
33651         * lib/git-merge-changelog.c: Include c-strstr.h.
33652         (main): Support the "git pull --rebase" situation.
33653         * modules/git-merge-changelog (Depends-on): Add c-strstr.
33654         Reported by Eric Blake.
33655
33656 2008-02-16  Eric Blake  <ebb9@byu.net>
33657
33658         Avoid doubling \ in common case of "c-maybe" quoting style.
33659         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
33660         eliding outer quotes.
33661         * lib/quotearg.h: Document this.
33662         * tests/test-quotearg.c (result_strings, inputs, results_g)
33663         (flag_results, locale_results): Test it by adding a new string to
33664         each test group.
33665         (compare_strings): Test new string.
33666
33667 2008-02-13  Eric Blake  <ebb9@byu.net>
33668
33669         Avoid trigraph quoting in default output.
33670         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
33671         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
33672         unless explicitly requested.
33673         * tests/test-quotearg.c (flag_results, main): Add additional tests.
33674
33675 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
33676
33677         Don't rely on signed integer overflowing to negative value.
33678         * lib/getugroups.c (getugroups): Include <limits.h>.
33679         Instead, compare against INT_MAX, and increment only if the test passes.
33680
33681 2008-02-13  Jim Meyering  <meyering@redhat.com>
33682         and Eric Blake  <ebb9@byu.net>
33683
33684         Avoid shadowing warning and compile errors on Linux.
33685         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
33686         forwarding macros on Linux.
33687         (dcgettext): Define a stub, for Linux.
33688         (results_g, main): Avoid warnings.
33689
33690 2008-02-12  Eric Blake  <ebb9@byu.net>
33691
33692         Silence warning in last patch.
33693         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
33694
33695         Quotearg part 4: add tests, fix c-maybe colon quoting.
33696         * lib/quotearg.h: Improve documentation.
33697         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
33698         escapes when adding outer quotes.  When quoting trigraphs, use
33699         valid C notation.  When quoting NUL, omit extra characters if next
33700         character is not digit.  Alter prototype.
33701         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
33702         callers.
33703         * modules/quotearg-tests: New module.
33704         * tests/test-quotearg.c: New test.
33705
33706 2008-02-07  Eric Blake  <ebb9@byu.net>
33707
33708         Quotearg part 3: add flag to control outer quote elision.
33709         * lib/quotearg.h (c_maybe_quoting_style): New style.
33710         (enum quoting_flags): Better documentation of flags.
33711         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
33712         c-maybe style.
33713         (quotearg_buffer_restyled): Handle new flag to elide outer
33714         quotes.
33715
33716         Quotearg part 2: add flag that can control NUL elision.
33717         * lib/quotearg.h (set_quoting_flags): New prototype.
33718         * lib/quotearg.c (struct quoting_options): Add flag field.
33719         (set_quoting_flags): New function.
33720         (quotearg_buffer_restyled): Add flags parameter.
33721         (quotearg_alloc_mem): Set the flag if length cannot be returned.
33722         (quotearg_n_options): Set the flag, since length cannot be
33723         returned.
33724         (quoting_options_from_style): Default flags correctly.
33725
33726         Quotearg part 1: more wrappers, restore quotearg_char state.
33727         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
33728         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
33729         (quotearg_colon_mem): New wrappers.
33730         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
33731         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
33732         functions.
33733         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
33734         (quotearg_colon_mem): New functions.
33735
33736 2008-02-11  Bruno Haible  <bruno@clisp.org>
33737
33738         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
33739         library in the current directory: it does not work with parallel make.
33740         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33741
33742 2008-02-11  Bruno Haible  <bruno@clisp.org>
33743
33744         * .gitattributes: New file.
33745
33746 2008-02-11  Jim Meyering  <meyering@redhat.com>
33747
33748         useless-if-before-free: Fix reversed exit values.
33749         * build-aux/useless-if-before-free: Use correct values
33750         for EXIT_MATCH and EXIT_NO_MATCH.
33751
33752         * build-aux/useless-if-before-free: Close stdout carefully.
33753
33754 2008-02-10  Bruno Haible  <bruno@clisp.org>
33755
33756         New module 'git-merge-changelog'.
33757         * modules/git-merge-changelog: New file.
33758         * lib/git-merge-changelog.c: New file.
33759
33760 2008-02-10  Jim Meyering  <meyering@redhat.com>
33761
33762         useless-if-before-free: New option: --list (-l).
33763
33764         useless-if-before-free: Don't exit immediately upon open failure.
33765         * build-aux/useless-if-before-free: Exit 2 for errors.
33766         Upon failure to open a file, don't exit immediately.
33767         Rather, just warn and continue with any remaining files.
33768
33769 2008-02-10  Bruno Haible  <bruno@clisp.org>
33770
33771         New abstract list operation 'node_set_value'.
33772         * lib/gl_list.h (gl_list_node_set_value): New function.
33773         (struct gl_list_implementation): New field node_set_value.
33774         * lib/gl_list.c (gl_list_node_set_value): New function.
33775         * lib/gl_array_list.c (gl_array_node_set_value): New function.
33776         (gl_array_list_implementation): Update.
33777         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
33778         (gl_carray_list_implementation): Update.
33779         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
33780         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33781         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33782         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
33783         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33784         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33785         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33786         Update.
33787         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
33788         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
33789         (gl_sublist_list_implementation): Update.
33790
33791 2008-02-10  Bruno Haible  <bruno@clisp.org>
33792
33793         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
33794         Needed when ELEMENT is #defined to 'some_type *'.
33795
33796 2008-02-10  Jim Meyering  <meyering@redhat.com>
33797
33798         New script and module: useless-if-before-free
33799         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
33800         * build-aux/useless-if-before-free: New file.
33801         * modules/useless-if-before-free: New file.
33802
33803         * build-aux/gitlog-to-changelog: Use committer date, not author date.
33804
33805         xstrtol_error: Fix typo.
33806         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
33807         s/exit_failure/exit_status/.
33808
33809 2008-02-09  Jim Meyering  <meyering@redhat.com>
33810
33811         New script and module: gitlog-to-changelog
33812         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
33813         * modules/gitlog-to-changelog: New file.
33814         * build-aux/gitlog-to-changelog: New file.
33815
33816 2008-02-08  Jim Meyering  <meyering@redhat.com>
33817
33818         Avoid two "parameter unused" warnings.
33819         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
33820         Mark "st" as used.
33821
33822         Use "git COMMAND", not "git-COMMAND".
33823         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
33824         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
33825         * build-aux/git-version-gen: Use "git status", not "git-status".
33826
33827 2008-02-07  Bruno Haible  <bruno@clisp.org>
33828
33829         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
33830         Avoids a crash on Windows Vista.
33831         Reported by Adam Strzelecki <ono@java.pl> via
33832         Simon Josefsson <simon@josefsson.org>.
33833
33834 2008-02-06  Bruno Haible  <bruno@clisp.org>
33835
33836         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
33837         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
33838         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
33839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
33840         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33841         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33842         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
33843         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
33844         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33845         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33846         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33847         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33848         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33849         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33850         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33851         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
33852         left-adjust flag.
33853         * tests/test-snprintf-posix.h (test_function): Likewise.
33854         * tests/test-sprintf-posix.h (test_function): Likewise.
33855         * tests/test-vasprintf-posix.c (test_function): Likewise.
33856         * doc/posix-functions/fprintf.texi: Update.
33857         * doc/posix-functions/printf.texi: Update.
33858         * doc/posix-functions/snprintf.texi: Update.
33859         * doc/posix-functions/sprintf.texi: Update.
33860         * doc/posix-functions/vfprintf.texi: Update.
33861         * doc/posix-functions/vprintf.texi: Update.
33862         * doc/posix-functions/vsnprintf.texi: Update.
33863         * doc/posix-functions/vsprintf.texi: Update.
33864         Reported by Peter Fales <psfales@alcatel-lucent.com>.
33865
33866 2008-02-06  Bruno Haible  <bruno@clisp.org>
33867
33868         Fix bug introduced on 2008-01-26.
33869         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
33870
33871 2008-02-06  Bruno Haible  <bruno@clisp.org>
33872
33873         Fix bug introduced on 2007-06-10.
33874         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
33875         !NEED_PRINTF_FLAG_ZERO.
33876
33877 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
33878
33879         getloadavg: use libperfstat on AIX5
33880         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
33881
33882 2008-02-03  Bruno Haible  <bruno@clisp.org>
33883
33884         * lib/diffseq.h: Add comments about required #includes.
33885         Reported by Michael Biggs <gnulib@doubleplum.net>.
33886
33887 2008-02-01  Bruno Haible  <bruno@clisp.org>
33888
33889         * users.txt: Add gnuit.
33890
33891 2008-01-31  Bruno Haible  <bruno@clisp.org>
33892
33893         * lib/md4.c (set_uint32): Mark as inline.
33894         * lib/md5.c (set_uint32): Likewise.
33895         * lib/sha1.c (set_uint32): Likewise.
33896         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
33897         * m4/md5.m4 (gl_MD5): Likewise.
33898         * m4/sha1.m4 (gl_SHA1): Likewise.
33899
33900 2008-01-31  Jim Meyering  <meyering@redhat.com>
33901
33902         Use "sizeof VAR", rather than a literal "4".
33903         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
33904         * lib/md4.c (md4_read_ctx): Likewise.
33905         * lib/sha1.c (sha1_read_ctx): Likewise.
33906
33907 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33908
33909         * tests/test-sha1.c: New file, based on test-md5.c.
33910
33911         * modules/crypto/sha1-tests: New file.
33912
33913 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33914
33915         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
33916
33917 2008-01-31  Jim Meyering  <meyering@redhat.com>
33918
33919         Prefer "sizeof v" over the equivalent "4".
33920         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
33921         * lib/md5.c (set_uint32): Likewise.
33922         * lib/sha1.c (set_uint32): Likewise.
33923
33924 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33925
33926         * lib/sha1.c (set_uint32): Mark function as static.
33927
33928 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33929
33930         md2: clarify comments to say that alignment is not required.
33931         * lib/md2.h: Remove warning about alignment in comment.
33932         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
33933         never been required.
33934
33935 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33936
33937         md4: adapt alignment constraint fix from sha1.
33938         * lib/md4.c (set_uint32): New function, from sha1.c
33939         (md4_read_ctx): Use it.
33940         (md4_finish_ctx): Doc fix.
33941         * lib/md4.h: Doc fix.
33942
33943 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33944
33945         md5: adapt alignment constraint fix from sha1.
33946         * lib/md5.c (set_uint32): New function, from sha1.c
33947         (md5_read_ctx): Use it.
33948         (md5_finish_ctx): Doc fix.
33949         * lib/md5.h: Doc fix.
33950
33951 2008-01-30  Peter Palfrader  <weasel@debian.org>
33952
33953         sha1: remove the result buffer alignment constraint
33954         * lib/sha1.c (set_uint32): New function.
33955         (sha1_read_ctx): Rewrite to remove the result buffer alignment
33956         constraint.
33957         (sha1_finish_ctx): Remove comment warning about alignment constraint.
33958         * lib/sha1.h: Likewise.
33959
33960 2008-01-30  Andreas Schwab  <schwab@suse.de>
33961             Bruno Haible  <bruno@clisp.org>
33962
33963         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
33964         correct definition of LDBL_MIN_EXP.
33965
33966 2008-01-30  Karl Berry  <karl@gnu.org>
33967
33968         * config/srclist-update: try to preserve x bit on updates.
33969         * config/srclistvars.sh: update for karl.
33970
33971 2008-01-29  Jim Meyering  <meyering@redhat.com>
33972
33973         vasnprintf.c: Avoid warning about unused label
33974         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
33975         "overflow" label definition and associated code with the
33976         same cpp condition that guards the sole use of that label.
33977
33978 2008-01-26  Bruno Haible  <bruno@clisp.org>
33979
33980         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
33981         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
33982         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
33983         * lib/isnanl-nolibm.h (isnanl): Likewise.
33984         Reported by Paul Eggert <eggert@cs.ucla.edu>.
33985
33986 2008-01-26  Bruno Haible  <bruno@clisp.org>
33987
33988         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
33989         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
33990
33991 2008-01-26  Bruno Haible  <bruno@clisp.org>
33992
33993         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
33994         GCC >= 4.0 built-in.
33995         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
33996
33997 2008-01-26  Bruno Haible  <bruno@clisp.org>
33998
33999         Rename isnan, applicable to 'double' only, to isnand.
34000         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
34001         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
34002         (configure.ac): Update.
34003         (Include): Replace "isnan.h" with "isnand.h".
34004         * m4/isnand.m4: Renamed from m4/isnan.m4.
34005         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
34006         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
34007         instead of isnan.c.
34008         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
34009         instead of HAVE_ISNAN_IN_LIBC.
34010         (isnand): Renamed from isnan.
34011         * lib/isnand.c: New file.
34012         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
34013         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
34014         (Makefile.am): Update.
34015         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
34016         Include isnand.h instead of isnan.h.
34017         (main): Test isnand instead of isnan.
34018         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
34019         isnan-nolibm.
34020         * modules/frexp (Depends-on): Likewise.
34021         * modules/frexp-tests (Depends-on): Likewise.
34022         * modules/frexp-nolibm (Depends-on): Likewise.
34023         * modules/frexp-nolibm-tests (Depends-on): Likewise.
34024         * modules/isfinite (Depends-on): Likewise.
34025         * modules/round-tests (Depends-on): Likewise.
34026         * modules/signbit (Depends-on): Likewise.
34027         * modules/signbit-tests (Depends-on): Likewise.
34028         * modules/snprintf-posix (Depends-on): Likewise.
34029         * modules/sprintf-posix (Depends-on): Likewise.
34030         * modules/trunc-tests (Depends-on): Likewise.
34031         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34032         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34033         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34034         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34035         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34036         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34037         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34038         * modules/vasnprintf-posix (Depends-on): Likewise.
34039         * modules/vasprintf-posix (Depends-on): Likewise.
34040         * modules/vfprintf-posix (Depends-on): Likewise.
34041         * modules/vsnprintf-posix (Depends-on): Likewise.
34042         * modules/vsprintf-posix (Depends-on): Likewise.
34043         * lib/frexp.c: Include isnand.h instead of isnan.h.
34044         (ISNAN): Set to isnand instead of isnan.
34045         * lib/isfinite.c: Include isnand.h instead of isnan.h.
34046         (gl_isfinited): Use isnand instead of isnan.
34047         * lib/signbitd.c: Include isnand.h instead of isnan.h.
34048         (gl_signbitd): Use isnand instead of isnan.
34049         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
34050         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
34051         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
34052         (main): Use isnand instead of isnan.
34053         * tests/test-round1.c: Include isnand.h.
34054         (main): Use isnand instead of isnan.
34055         * tests/test-round2.c: Include isnand.h instead of isnan.h.
34056         (ISNAN): Set to isnand instead of isnan.
34057         * tests/test-trunc1.c: Include isnand.h.
34058         (main): Use isnand instead of isnan.
34059         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
34060         (equal): Use isnand instead of isnan.
34061         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
34062         isnand-nolibm.
34063         * NEWS: Mention the change.
34064
34065 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
34066             Bruno Haible  <bruno@clisp.org>
34067
34068         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
34069         the GCC builtins for signbits are present and set
34070         REPLACE_SIGNBIT_USING_GCC if so.
34071         * lib/math.in.h (signbit): Define using GCC builtins if
34072         REPLACE_SIGNBIT_USING_GCC is set.
34073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
34074         REPLACE_SIGNBIT_USING_GCC.
34075         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
34076
34077 2008-01-25  Jim Meyering  <meyering@redhat.com>
34078
34079         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
34080         * lib/poll.c: Include <config.h>, not "config.h".
34081         * tests/test-getaddrinfo.c: Likewise.
34082
34083 2008-01-25  Simon Josefsson  <simon@josefsson.org>
34084
34085         * modules/sockets-tests: New file.
34086
34087 2008-01-24  Simon Josefsson  <simon@josefsson.org>
34088
34089         * modules/sockets: New module, can be used to call WSA_Startup and
34090         WSA_Cleanup when needed.
34091
34092         * lib/sockets.h, lib/sockets.c: New files.
34093
34094         * m4/sockets.m4: New file.
34095
34096         * tests/test-sockets.c: New file.
34097
34098 2008-01-19  Bruno Haible  <bruno@clisp.org>
34099
34100         * doc/posix-headers: Renamed from doc/headers.
34101         * doc/posix-functions: Renamed from doc/functions.
34102         * doc/gnulib.texi: Update.
34103
34104 2008-01-19  Bruno Haible  <bruno@clisp.org>
34105
34106         * doc/glibc-functions/strcasestr.texi: Include contents of
34107         doc/functions/strcasestr.texi, fixing the list of platforms.
34108         * doc/functions/strcasestr.texi: Remove file.
34109
34110 2008-01-19  Bruno Haible  <bruno@clisp.org>
34111
34112         * doc/glibc-functions/memmem.texi: Include contents of
34113         doc/functions/memmem.texi.
34114         * doc/functions/memmem.texi: Remove file.
34115
34116 2008-01-18  Bruno Haible  <bruno@clisp.org>
34117
34118         * doc/glibc-functions/*.texi: New files.
34119         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
34120         to use the new files.
34121
34122 2008-01-17  Bruno Haible  <bruno@clisp.org>
34123
34124         * tests/test-gethostname.c (main): Fix printf statement.
34125
34126 2008-01-17  Simon Josefsson  <simon@josefsson.org>
34127
34128         * modules/gethostname-tests: New file.
34129
34130         * tests/test-gethostname.c: New file.
34131
34132 2008-01-17  Simon Josefsson  <simon@josefsson.org>
34133
34134         * lib/gethostname.c: Include string.h unconditionally, strncpy is
34135         used by the UNAME case.  Reported by Bruno Haible
34136         <bruno@clisp.org>.
34137
34138 2008-01-17  Eric Blake  <ebb9@byu.net>
34139
34140         Convert c-strcasestr to be more efficient.
34141         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
34142         (Depends-on): Add c-strcase, remove malloca, strnlen.
34143         * tests/test-c-strcasestr.c (main): Enhance test.
34144         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
34145
34146 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
34147
34148         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
34149         Use it in creating po/Makevars.
34150
34151 2008-01-15  Simon Josefsson  <simon@josefsson.org>
34152
34153         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
34154         Applications that requires it should initialize libgcrypt
34155         manually.
34156
34157 2008-01-16  Simon Josefsson  <simon@josefsson.org>
34158
34159         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
34160
34161 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
34162
34163         Fix problem with getdate on mingw32 reported by Simon Josefsson
34164         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
34165         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
34166         tzname", when deciding whether to declare tzname.
34167         * lib/strftime.c (tzname): Likewise.
34168
34169 2008-01-15  Bruno Haible  <bruno@clisp.org>
34170
34171         Work around a MacOS X 10.5 bug in frexpl().
34172         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
34173         * doc/functions/frexpl.texi: Document the bug.
34174         Reported by Elias Pipping <pipping@gentoo.org>.
34175
34176 2008-01-14  Eric Blake  <ebb9@byu.net>
34177
34178         Touch up previous patch.
34179         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
34180         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
34181
34182         Convert strcasestr module to use Two-Way algorithm.
34183         * modules/strcasestr-simple: New module, based on the old
34184         strcasestr, but with Two-Way rather than KMP.
34185         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
34186         * lib/string.in.h (rpl_strcasestr): Declare.
34187         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
34188         performance.
34189         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
34190         * modules/string (Makefile.am): Support strcasestr.
34191         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34192         * modules/strcasestr-tests (Depends-on): Check for alarm.
34193         * tests/test-strcasestr.c: Augment test.
34194         * lib/str-two-way.h: Clean up stray macro.
34195         * NEWS: Document new module.
34196         * MODULES.html.sh (string handling): Likewise.
34197         * doc/functions/strcasestr.texi: New file.
34198         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
34199         here, since it is not a POSIX function.
34200
34201 2008-01-14  Colin Watson  <cjwatson@debian.org>
34202             Bruno Haible  <bruno@clisp.org>
34203
34204         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
34205         works fine; if not, set REPLACE_STRSIGNAL.
34206         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
34207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34208         REPLACE_STRSIGNAL.
34209         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
34210         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
34211         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
34212
34213 2008-01-14  Bruno Haible  <bruno@clisp.org>
34214
34215         * modules/strsignal (Include): Change to <string.h>.
34216
34217 2008-01-14  Colin Watson  <cjwatson@debian.org>
34218
34219         * modules/argp (Notice): Add a notice recommending to change
34220         XGETTEXT_OPTIONS.
34221         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
34222
34223 2008-01-13  Colin Watson  <cjwatson@debian.org>
34224
34225         * modules/strsignal-tests: New file.
34226         * tests/test-strsignal.c: New file.
34227
34228         * lib/strsignal.c: New file, from glibc with modifications.
34229         * lib/siglist.h: New file, from glibc with modifications.
34230         * lib/string.in.h (strsignal): New declaration.
34231         * m4/strsignal.m4: New file.
34232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34233         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
34234         * modules/strsignal: New file.
34235         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
34236         HAVE_DECL_STRSIGNAL.
34237
34238 2008-01-13  Bruno Haible  <bruno@clisp.org>
34239
34240         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
34241         locale encoding is not ASCII. Needed for OpenBSD 4.0.
34242         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
34243         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34244
34245 2008-01-13  Bruno Haible  <bruno@clisp.org>
34246
34247         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
34248         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
34249         * lib/argp.h (__attribute__): Likewise.
34250         * lib/c-stack.c (__attribute__): Likewise.
34251         * lib/error.h (__attribute__): Likewise.
34252         * lib/fts.c (__attribute__): Likewise.
34253         * lib/openat.h (__attribute__): Likewise.
34254         * lib/stdio.in.h (__attribute__): Likewise.
34255         * lib/string.in.h (__attribute__): Likewise.
34256         * lib/utimens.c (__attribute__): Likewise.
34257         * lib/vasnprintf.h (__attribute__): Likewise.
34258         * lib/xalloc.h (__attribute__): Likewise.
34259         * lib/xprintf.h (__attribute__): Likewise.
34260         * lib/xstrtol.h (__attribute__): Likewise.
34261         * lib/xvasprintf.h (__attribute__): Likewise.
34262
34263 2008-01-12  Bruno Haible  <bruno@clisp.org>
34264
34265         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
34266         * doc/glibc-headers/a.out.texi: New file.
34267         * doc/glibc-headers/aliases.texi: New file.
34268         * doc/glibc-headers/alloca.texi: New file.
34269         * doc/glibc-headers/ar.texi: New file.
34270         * doc/glibc-headers/argp.texi: New file.
34271         * doc/glibc-headers/argz.texi: New file.
34272         * doc/glibc-headers/byteswap.texi: New file.
34273         * doc/glibc-headers/crypt.texi: New file.
34274         * doc/glibc-headers/endian.texi: New file.
34275         * doc/glibc-headers/envz.texi: New file.
34276         * doc/glibc-headers/err.texi: New file.
34277         * doc/glibc-headers/error.texi: New file.
34278         * doc/glibc-headers/execinfo.texi: New file.
34279         * doc/glibc-headers/fpu_control.texi: New file.
34280         * doc/glibc-headers/fstab.texi: New file.
34281         * doc/glibc-headers/fts.texi: New file.
34282         * doc/glibc-headers/getopt.texi: New file.
34283         * doc/glibc-headers/ieee754.texi: New file.
34284         * doc/glibc-headers/ifaddrs.texi: New file.
34285         * doc/glibc-headers/libintl.texi: New file.
34286         * doc/glibc-headers/mcheck.texi: New file.
34287         * doc/glibc-headers/mntent.texi: New file.
34288         * doc/glibc-headers/obstack.texi: New file.
34289         * doc/glibc-headers/paths.texi: New file.
34290         * doc/glibc-headers/printf.texi: New file.
34291         * doc/glibc-headers/pty.texi: New file.
34292         * doc/glibc-headers/resolv.texi: New file.
34293         * doc/glibc-headers/shadow.texi: New file.
34294         * doc/glibc-headers/sysexits.texi: New file.
34295         * doc/glibc-headers/ttyent.texi: New file.
34296
34297 2008-01-12  Jim Meyering  <meyering@redhat.com>
34298
34299         announce-gen: emit Gnulib's git-based version string.
34300         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
34301         New option --gnulib-version=V, where V is expected to be
34302         the output of running git describe in the gnulib directory.
34303         (get_tool_versions): Request feedback on xdelta.  I suspect it's
34304         not useful, and plan to stop publishing an xdelta file with each
34305         coreutils release.
34306
34307         * build-aux/announce-gen: Also check for lzma-compressed files.
34308
34309 2008-01-11  Bruno Haible  <bruno@clisp.org>
34310
34311         * tests/test-memmem.c (main): Increase maximum allowed time.
34312         * tests/test-strstr.c (main): Likewise.
34313
34314 2008-01-11  Bruno Haible  <bruno@clisp.org>
34315
34316         * doc/functions/memmem.texi: Add more precisions about platforms.
34317         * doc/functions/strstr.texi: Likewise.
34318
34319 2008-01-10  Eric Blake  <ebb9@byu.net>
34320
34321         * m4/strstr.m4: Delete cruft from copy-n-paste.
34322         Reported by Bruno Haible.
34323
34324 2008-01-10  Bruno Haible  <bruno@clisp.org>
34325
34326         Make c-strstr rely on strstr.
34327         * lib/c-strstr.c: Don't include str-kmp.h.
34328         (c_strstr): Define in terms of strstr.
34329         * modules/c-strstr (Files): Remove lib/str-kmp.h.
34330         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
34331
34332 2008-01-10  Bruno Haible  <bruno@clisp.org>
34333
34334         * doc/gnulib.texi (String Functions in C Locale): New section.
34335         * doc/c-ctype.texi: New file.
34336         * doc/c-strcase.texi: New file.
34337         * doc/c-strcaseeq.texi: New file.
34338         * doc/c-strcasestr.texi: New file.
34339         * doc/c-strstr.texi: New file.
34340         * doc/c-strtod.texi: New file.
34341         * doc/c-strtold.texi: New file.
34342
34343 2008-01-10  Eric Blake  <ebb9@byu.net>
34344
34345         * lib/relocatable.h: Fix a comment.
34346
34347 2008-01-10  Eric Blake  <ebb9@byu.net>
34348
34349         Share two-way algorithm.
34350         * lib/str-two-way.h: New file, merged from...
34351         * lib/memmem.c: ...here...
34352         * lib/strstr.c: ...and here.
34353         * modules/memmem (Files): Use it.
34354         * modules/strstr (Files): Likewise.
34355
34356         Avoid quadratic strstr implementations.
34357         * lib/strstr.c: New file.
34358         * m4/strstr.m4: Likewise.
34359         * modules/strstr: Likewise.
34360         * modules/strstr-tests: Likewise.
34361         * tests/test-strstr.c: Likewise.
34362         * lib/string.in.h (rpl_strstr): Declare.
34363         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
34364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
34365         * modules/string (Makefile.am): Likewise.
34366         * MODULES.html.sh (string handling): Mention new module.
34367         * doc/functions/strstr.texi (strstr): Document the bug.
34368
34369 2008-01-10  Bruno Haible  <bruno@clisp.org>
34370
34371         * lib/relocatable.h (relocate): State whether result is freshly
34372         allocated or not.
34373         * lib/relocatable.c (relocate): Return a freshly allocated string
34374         instead of a pointer to a privately held string.
34375         Reported by Sylvain Beucler <beuc@gnu.org>.
34376
34377 2008-01-10  Colin Watson  <cjwatson@debian.org>
34378
34379         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
34380         s/S_ISNLK/S_ISLNK/.
34381
34382 2008-01-09  Bruno Haible  <bruno@clisp.org>
34383
34384         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
34385         and other files.
34386         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
34387         if it's only a guess.
34388         * modules/memmem: Simplify by depending on memmem-simple.
34389
34390 2008-01-09  Bruno Haible  <bruno@clisp.org>
34391
34392         Work around OpenBSD 4.0 tdelete() bug.
34393         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
34394         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
34395         macros and don't redefine the enum values.
34396         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
34397         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
34398         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
34399
34400 2008-01-09  Bruno Haible  <bruno@clisp.org>
34401
34402         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
34403         (main): Don't perform the tests if setlocale did not install a UTF-8
34404         locale. Needed on OpenBSD 4.0.
34405         * modules/wcwidth-tests (Depends-on): Add localcharset.
34406
34407 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34408
34409         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
34410         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
34411         * NEWS: announce this.
34412         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
34413
34414 2008-01-09  Simon Josefsson  <simon@josefsson.org>
34415         and Eric Blake  <ebb9@byu.net>
34416
34417         Add memmem-simple module.
34418         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
34419         (gl_FUNC_MEMMEM): Separate performance from presence checks.
34420         * modules/memmem-simple: New file.
34421         * modules/memmem (Description): Tweak.
34422         * MODULES.html.sh (string handling): Mention new module.
34423         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
34424         addressed by memmem-simple.
34425         * NEWS: Document the difference.
34426
34427 2008-01-09  Eric Blake  <ebb9@byu.net>
34428
34429         Give gcc some memmem optimization hints.
34430         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
34431         (strcasestr): Declare as pure.
34432         * modules/memmem (Maintainer): Claim my implementation.
34433
34434 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34435
34436         Support AIX 6.1 and higher.
34437         * build-aux/config.libpath: Likewise.
34438         * build-aux/config.rpath: Likewise.
34439
34440 2008-01-08  Jim Meyering  <meyering@redhat.com>
34441             Bruno Haible  <bruno@clisp.org>
34442
34443         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
34444         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
34445         Reported by Peter Fales in
34446         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
34447
34448 2008-01-08  Bruno Haible  <bruno@clisp.org>
34449
34450         * modules/unictype/category-of (Depends-on): Add
34451         unictype/category-none.
34452         * modules/unictype/category-and-tests (Depends-on): Add
34453         unictype/category-{L,N,Lu,Nd}.
34454         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
34455         * modules/unictype/category-or-tests (Depends-on): Add
34456         unictype/category-{L,N}.
34457         * modules/unictype/category-name-tests (Depends-on): Add
34458         unictype/category-{Z,Nl}.
34459         Reported by Simon Josefsson.
34460
34461 2008-01-08  Bruno Haible  <bruno@clisp.org>
34462
34463         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
34464         convention better.
34465         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
34466         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
34467         Reported by Peter Miller <millerp@canb.auug.org.au>.
34468
34469 2008-01-08  Eric Blake  <ebb9@byu.net>
34470
34471         Rewrite memmem to guarantee linear complexity without malloc.
34472         * lib/memmem.c (memmem): Use Two-Way rather than
34473         Knuth-Morris-Pratt, to allow O(1) space usage.
34474         (critical_factorization, two_way_short_needle)
34475         (two_way_long_needle): New functions.
34476         (knuth_morris_pratt): Delete.
34477         * modules/memmem (Depends-on): No longer need malloca or stdbool.
34478         Add stdint.
34479         * tests/test-memmem.c (main): Add tests for periodic needle and
34480         sublinear performance.
34481         * doc/functions/memmem.texi (memmem): Document other deficiencies
34482         in cygwin and older glibc.
34483
34484 2008-01-08  Bruno Haible  <bruno@clisp.org>
34485
34486         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
34487         augmentation.
34488
34489 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
34490
34491         Add a configure time option: --disable-acl.
34492         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
34493         AC_ARG_ENABLE(acl).
34494
34495 2008-01-06  Simon Josefsson  <simon@josefsson.org>
34496
34497         * tests/test-localename.c: Don't include obsolete "setenv.h".
34498
34499         * modules/localename-tests (Depends-on): Need unsetenv.
34500
34501 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34502
34503         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
34504
34505 2008-01-06  Colin Watson  <cjwatson@debian.org>
34506
34507         * users.txt: Add man-db.
34508
34509 2008-01-07  Bruno Haible  <bruno@clisp.org>
34510
34511         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
34512         previous section name.
34513
34514 2008-01-07  Bruno Haible  <bruno@clisp.org>
34515
34516         * lib/progname.c (set_program_name): Don't strip off a leading
34517         "lt-" prefix outside a .libs directory.
34518         Suggested by Paul Eggert.
34519
34520 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
34521             Bruno Haible  <bruno@clisp.org>
34522
34523         Improve memory cleanup in 'relocatable' module.
34524         * lib/relocatable.h (compute_curr_prefix): Change return type to
34525         'char *'.
34526         * lib/relocatable.c (compute_curr_prefix): Change return type to
34527         'char *'. Free curr_installdir after use.
34528         (relocate): Free curr_prefix_better after use.
34529         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
34530
34531 2008-01-01  Bruno Haible  <bruno@clisp.org>
34532
34533         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
34534         failure on older glibc systems.
34535         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34536
34537 2008-01-05  Eric Blake  <ebb9@byu.net>
34538
34539         Avoid quadratic system memmem.
34540         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
34541         Reported by Ralf Wildenhues.
34542
34543         Fix memmem test for mingw.
34544         * modules/memmem-tests (configure.ac): Check for alarm.
34545         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
34546         it.
34547         * doc/functions/memmem.texi: New file.
34548         * doc/gnulib.texi (Function Substitutes): Add memmem.
34549         Reported by Bruno Haible.
34550
34551 2008-01-04  Bruno Haible  <bruno@clisp.org>
34552
34553         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
34554         Require gl_HEADER_STRINGS_H_DEFAULTS, not
34555         gl_HEADER_STRING_H_DEFAULTS.
34556
34557 2008-01-04  Eric Blake  <ebb9@byu.net>
34558
34559         Shorten duration of memmem test.
34560         * tests/test-memmem.c (main): Use alarm to declare failure if test
34561         is taking too long.
34562         Reported by Ralf Wildenhues.
34563
34564 2007-12-21  Simon Josefsson  <simon@josefsson.org>
34565
34566         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
34567         string, needed by strerror.
34568
34569 2008-01-03  Colin Watson  <cjwatson@debian.org>
34570             Bruno Haible  <bruno@clisp.org>
34571
34572         * doc/gnulib-tool.texi (Localization): New section.
34573
34574 2008-01-02  Bruno Haible  <bruno@clisp.org>
34575
34576         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
34577         variables to 'unsigned char *' type.
34578         Reported by Paul Eggert.
34579
34580 2008-01-02  Jim Meyering  <jim@meyering.net>
34581
34582         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
34583
34584 2007-12-31  Jim Meyering  <jim@meyering.net>
34585
34586         Avoid use of private FTS type name.
34587         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
34588
34589 2007-12-30  Karl Berry  <karl@gnu.org>
34590
34591         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
34592         work around defect in Texinfo and/or the standalone Info browser.
34593
34594 2007-12-30  Bruno Haible  <bruno@clisp.org>
34595
34596         Unify 5 copies of the KMP code.
34597         * lib/str-kmp.h: New file.
34598         * lib/c-strcasestr.c: Include str-kmp.h.
34599         (knuth_morris_pratt): Remove function.
34600         (c_strcasestr): Update.
34601         * lib/c-strstr.c: Include str-kmp.h.
34602         (knuth_morris_pratt): Remove function.
34603         (c_strcasestr): Update.
34604         * lib/mbscasestr.c: Include str-kmp.h.
34605         (knuth_morris_pratt_unibyte): Remove function.
34606         * lib/mbsstr.c: Include str-kmp.h.
34607         (knuth_morris_pratt_unibyte): Remove function.
34608         * lib/strcasestr.c: Include str-kmp.h.
34609         (knuth_morris_pratt): Remove function.
34610         (strcasestr): Update.
34611         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
34612         * modules/c-strstr (Files): Likewise.
34613         * modules/mbscasestr (Files): Likewise.
34614         * modules/mbsstr (Files): Likewise.
34615         * modules/strcasestr (Files): Likewise.
34616         Suggested by Paul Eggert.
34617
34618 2007-12-30  Bruno Haible  <bruno@clisp.org>
34619
34620         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
34621         defined.
34622
34623 2007-12-30  Bruno Haible  <bruno@clisp.org>
34624
34625         * lib/xmalloca.h: Include xalloc.h.
34626         (xnmalloca): New macro.
34627
34628 2007-12-30  Bruno Haible  <bruno@clisp.org>
34629
34630         * lib/malloca.h (nmalloca): New macro.
34631         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
34632         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
34633         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
34634         knuth_morris_pratt_multibyte): Likewise.
34635         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
34636         knuth_morris_pratt_multibyte): Likewise.
34637         * lib/memmem.c (knuth_morris_pratt): Likewise.
34638         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
34639
34640 2007-12-25  Bruno Haible  <bruno@clisp.org>
34641
34642         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
34643         * lib/glob.c: Don't include openat.h.
34644         (link_exists2_p): Add back the code that deals with the
34645         !GLOB_ALTDIRFUNC case.
34646         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
34647         let it do the filename concatenation.
34648         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
34649         * modules/glob (Depends-on): Remove openat.
34650
34651 2007-12-31  Bruno Haible  <bruno@clisp.org>
34652
34653         * modules/dirfd (License): Change to LGPLv2+.
34654         Approved by Jim Meyering.
34655
34656 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
34657
34658         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
34659         when multiplying M by sizeof (size_t).
34660
34661 2007-12-10  Martin Lambers  <marlam@marlam.de>
34662
34663         Override getpagesize on mingw.
34664         * lib/getpagesize.c: New file.
34665         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
34666         * modules/getpagesize (Files): Add lib/getpagesize.c.
34667         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
34668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34669         REPLACE_GETPAGESIZE.
34670         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
34671
34672 2007-12-25  Bruno Haible  <bruno@clisp.org>
34673
34674         * modules/localcharset (Notice): New field.
34675         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
34676         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
34677
34678 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
34679             Bruno Haible  <bruno@clisp.org>
34680
34681         Avoid using the syntax symbol() in formatted documentation.
34682         * MODULES.html.sh (func_module): When replacing symbol() with a
34683         hyperlink, remove the parentheses. Show an error if some remain.
34684         Recognize and render the '...' syntax.
34685         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
34686         Rework. Add paragraph about GCC's inlining.
34687         * doc/alloca.texi: Likewise.
34688         * doc/error.texi: Remove parentheses from symbol reference.
34689         * doc/gnulib-intro.texi: Likewise.
34690         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
34691         * modules/fnmatch (Description): Reword to say "the ... function".
34692         * modules/full-read (Description): Likewise.
34693         * modules/full-write (Description): Likewise.
34694         * modules/safe-read (Description): Likewise.
34695         * modules/safe-write (Description): Likewise.
34696         * modules/strchrnul (Description): Likewise.
34697         * modules/trim (Description): Likewise.
34698         * modules/error (Description): Remove parentheses from symbol
34699         references.
34700         * modules/verror (Description): Likewise.
34701         Reported by Karl Berry.
34702
34703 2007-12-25  Bruno Haible  <bruno@clisp.org>
34704
34705         Fixup after 2007-10-16 commit.
34706         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
34707
34708 2007-12-24  Bruno Haible  <bruno@clisp.org>
34709
34710         Make --enable-relocatable work with DESTDIR.
34711         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
34712         to compute installdir from destprog.
34713         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
34714         also set the RELOC_DESTDIR variable.
34715         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34716
34717 2007-12-24  Bruno Haible  <bruno@clisp.org>
34718
34719         Fix link error due to xalloc_die().
34720         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
34721         of xreadlink.
34722         * lib/relocwrapper.c: Update comments.
34723         * build-aux/install-reloc: Remove xreadlink.c from file list.
34724         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
34725         xreadlink.c.
34726         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34727
34728 2007-12-24  Bruno Haible  <bruno@clisp.org>
34729
34730         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
34731         * lib/setenv.h: Remove file.
34732         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
34733         lib/setenv.h.
34734         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
34735         (Depends-on): Add stdlib.
34736         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
34737         gl_FUNC_UNSETENV.
34738         (Include): Replace setenv.h with <stdlib.h>.
34739         * modules/unsetenv: New file.
34740         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
34741         * lib/unsetenv.c: Include <stdlib.h> first.
34742         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
34743         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
34744         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
34745         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
34746         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
34747         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
34749         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34750         * doc/functions/unsetenv.texi: Update.
34751         * modules/xsetenv (Depends-on): Add unsetenv.
34752         * modules/getdate (Depends-on): Likewise.
34753         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
34754         * lib/xsetenv.c: Don't include setenv.h.
34755         * lib/getdate.y: Likewise.
34756         * lib/relocwrapper.c: Likewise.
34757         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
34758         (Depends-on): Add stdlib.
34759         * NEWS: Mention the changes.
34760         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34761
34762 2007-12-23  Bruno Haible  <bruno@clisp.org>
34763
34764         * lib/memmem.c (memmem): Use lowercase variable names. Tab
34765         indentation.
34766
34767 2007-12-23  Bruno Haible  <bruno@clisp.org>
34768
34769         * lib/c-strcasestr.c: Add more comments.
34770         * lib/c-strstr.c: Likewise.
34771         * lib/mbscasestr.c: Likewise.
34772         * lib/mbsstr.c: Likewise.
34773         * lib/strcasestr.c: Likewise.
34774         * lib/memmem.c: Likewise.
34775
34776 2007-12-23  Bruno Haible  <bruno@clisp.org>
34777
34778         * tests/test-memmem.c: Include <string.h> first.
34779
34780 2007-12-22  Bruno Haible  <bruno@clisp.org>
34781
34782         * gnulib-tool (func_create_testdir): Change $auxdir while generating
34783         the contents of $testsbase.
34784         Reported by Ralf Wildenhues.
34785
34786 2007-12-22  Bruno Haible  <bruno@clisp.org>
34787
34788         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
34789         two variables local_ldadd_before, local_ldadd_last.
34790
34791 2007-12-20  Eric Blake  <ebb9@byu.net>
34792
34793         Work around circular library issue when cross-compiling.
34794         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
34795         that progname.o does not need to pull in rpl_memcmp.
34796
34797 2007-12-19  Eric Blake  <ebb9@byu.net>
34798
34799         Fix memmem to avoid O(n^2) worst-case complexity.
34800         * lib/memmem.c (knuth_morris_pratt): New function.
34801         (memmem): Use it if first few naive iterations fail.
34802         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
34803         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
34804         * modules/memchr (License): Likewise.
34805         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
34806         malloca.
34807         * tests/test-memmem.c: Rewrite, borrowing ideas from
34808         test-mbsstr1.c; the old version wouldn't even compile!
34809         * modules/memmem-tests: New file.
34810         * lib/string.in.h (rpl_memmem): Add declaration.
34811         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
34812         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
34813         REPLACE_MEMMEM.
34814
34815 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34816
34817         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
34818         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
34819         before any system include files, and undef after them all.  This
34820         should fix a problem on VMS reported by John E. Malmberg in
34821         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
34822
34823 2007-12-17  Eric Blake  <ebb9@byu.net>
34824
34825         Revert addition of verify, for BSD/OS.
34826         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
34827         can't handle large files, for the sake of obsolete platforms.
34828         * modules/fseeko (Depends-on): Remove verify.
34829         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
34830         * doc/functions/ftello.texi (ftello): Likewise.
34831         * doc/functions/fgetpos.texi (fgetpos): Likewise.
34832         Reported by Larry Jones.
34833
34834 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
34835
34836         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
34837         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
34838
34839 2007-12-17  Jim Meyering  <meyering@redhat.com>
34840
34841         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
34842         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
34843         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
34844         * modules/getcwd (Depends-on): Add openat.
34845         Reported by Petr Salinger.
34846
34847 2007-12-17  Bruno Haible  <bruno@clisp.org>
34848
34849         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
34850         avoid a segmentation fault of the configure test on x86_64 systems.
34851
34852 2007-12-15  Jim Meyering  <meyering@redhat.com>
34853
34854         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
34855
34856 2007-12-13  Eric Blake  <ebb9@byu.net>
34857
34858         Another fseek test.
34859         * tests/test-fseek.c (main): Also test ungetc handling.
34860         * tests/test-fseeko.c (main): Likewise.
34861         * modules/fseeko (Depends-on): Add verify.
34862         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
34863         large.
34864         Reported by Larry Jones.
34865
34866         Fix fseeko on mingw.
34867         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
34868         seek.
34869
34870         Beef up fseek tests.
34871         * tests/test-fseek.c (main): Also test eof handling.
34872         * tests/test-fseeko.c (main): Likewise.
34873         Reported by Larry Jones.
34874
34875 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
34876
34877         Fix fseeko on BSD-based platforms.
34878         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
34879         successful seek.
34880
34881 2007-12-12  Eric Blake  <ebb9@byu.net>
34882
34883         Allow circular dependency of separate libtests.a
34884         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
34885         when use_libtests.
34886
34887 2007-12-11  Eric Blake  <ebb9@byu.net>
34888
34889         Fix bug with -0.0L in previous patch.
34890         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
34891         * tests/test-isnan.c (main): Also test on zeroes.
34892         * tests/test-isnanf.c (main): Likewise.
34893         * tests/test-isnanl.h (main): Likewise.
34894
34895         Detect pseudo-denormals on x86 even when cross-compiling.
34896         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
34897         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
34898         invalid bit patterns that happen to satisfy ==.
34899
34900         Avoid link failures with separate libtests.a.
34901         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
34902         last, to satisfy circular dependencies.
34903
34904 2007-12-11  Eric Blake  <ebb9@byu.net>
34905         and Bruno Haible  <bruno@clisp.org>
34906
34907         Fix OpenBSD 4.0 <float.h> handling of long double.
34908         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
34909         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
34910         * doc/headers/float.texi (float.h): Document OpenBSD bug.
34911
34912 2007-12-11  Jim Meyering  <meyering@redhat.com>
34913
34914         * users.txt: Add libvirt.
34915
34916         Support versions of autoconf prior to 2.59c.
34917         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
34918         if it is not already defined.
34919
34920 2007-12-09  Bruno Haible  <bruno@clisp.org>
34921
34922         Let 'gnulib-tool --import' collect sources needed for the tests in
34923         tests/ rather than in lib/.
34924         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
34925         argument. If true, add rules to generate libtests.a, and put libtests.a
34926         into $(LDADD). Consider source files in subdirectories and set
34927         uses_subdirs.
34928         (func_emit_initmacro_start, func_emit_initmacro_end,
34929         func_emit_initmacro_done): Pass all arguments explicitly.
34930         (func_import): Determine two module lists main_modules,
34931         testsrelated_modules. Determine use_libtests. Determine two variables
34932         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
34933         instead of just sed_transform_lib_file. Determine two variables
34934         main_files and testsrelated_files. Compute 'files' as the union of
34935         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
34936         func_add_or_update. In the generated gnulib-comp.m4, collect the
34937         object files for tests/ in different variables than those for lib/.
34938         Substitute LIBTESTS_LIBDEPS.
34939         (func_create_testdir): Combine the uses_subdirs results from
34940         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
34941
34942 2007-12-09  Bruno Haible  <bruno@clisp.org>
34943
34944         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
34945         the build-aux directory.
34946
34947 2007-12-09  Bruno Haible  <bruno@clisp.org>
34948
34949         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
34950         introduced on 2006-09-09.
34951
34952 2007-12-07  Jim Meyering  <meyering@redhat.com>
34953
34954         Let these macros work also with autoconf-2.59.
34955         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
34956         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
34957         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
34958
34959 2007-12-06  Jim Meyering  <meyering@redhat.com>
34960
34961         Avoid a configure-time syntax error in gl_FUNC_ACL.
34962         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
34963         function in each branch, before testing the cache variable.
34964
34965 2007-12-04  Eric Blake  <ebb9@byu.net>
34966
34967         Make scripts executable.
34968         * build-aux/config.guess: Add execute permissions.
34969         * build-aux/config.sub: Likewise.
34970         * build-aux/gendocs.sh: Likewise.
34971
34972         Fix frexp on mingw.
34973         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
34974         cross-compiling.
34975         * doc/functions/frexp.texi (frexp): Document the bug.
34976
34977         Make cygwin fseeko check more reliable.
34978         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
34979         version numbers, rather than unrelated feature check.
34980         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
34981         * doc/functions/ftello.texi (ftello): Likewise.
34982         Reported by Bruno Haible.
34983
34984         * m4/strerror.m4: Bump version number.
34985
34986 2007-12-03  Bruno Haible  <bruno@clisp.org>
34987
34988         * doc/functions/mprotect.texi: Mention the mingw problem.
34989
34990 2007-12-03  Eric Blake  <ebb9@byu.net>
34991
34992         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
34993         REPLACE_STRERROR is initialized before this macro.
34994
34995 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
34996
34997         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
34998         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
34999         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
35000         put -lsec in even for programs other than 'ls'.  This fixes a problem
35001         for gettext reported by Bruno Haible in
35002         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
35003         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
35004         Add support for Solaris 10.  This isn't efficient, but should get the
35005         job done for now.
35006
35007 2007-12-03  James Youngman  <jay@gnu.org>
35008
35009         * doc/regexprops-generic.texi: change "an close-group" to "a
35010         close-group" and "illegal" to "not allowed".
35011
35012 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35013
35014         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
35015         pr_byname.h. Needed for the rare case when the maintainer has done
35016         "make maintainer-clean" in the source directory and then attempts a
35017         build outside the source directory.
35018         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
35019         scripts_byname.h.
35020
35021 2007-12-02  Martin Lambers <marlam@marlam.de>
35022             Bruno Haible  <bruno@clisp.org>
35023
35024         * lib/getpagesize.h: Remove file.
35025         * lib/unistd.in.h: Include declaration of getpagesize here.
35026         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
35027         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
35028         HAVE_SYS_PARAM_H.
35029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
35030         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
35031         * modules/getpagesize (Files): Remove lib/getpagesize.h.
35032         (Depends-on): Add unistd.
35033         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35034         (Include): Use <unistd.h> instead of getpagesize.h.
35035         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
35036         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
35037         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
35038         gl_GETPAGESIZE invocation, already handled by module dependency.
35039         * lib/pagealign_alloc.c: Don't include getpagesize.h.
35040
35041 2007-12-02  Bruno Haible  <bruno@clisp.org>
35042
35043         * modules/strings-tests: New file.
35044         * tests/test-strings.c: New file.
35045
35046         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
35047         * lib/strings.in.h: New file.
35048         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
35049         * m4/strings_h.m4: New file.
35050         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
35051         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
35052         * modules/strings: New file.
35053         * modules/string (Makefile.am): Update.
35054         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
35055         Reported by Karl Berry.
35056
35057 2007-12-01  Eric Blake  <ebb9@byu.net>
35058
35059         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
35060         accomodate fix in cygwin 1.5.25.
35061
35062 2007-12-01  Jim Meyering  <meyering@redhat.com>
35063
35064         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
35065         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
35066         that would inhibit utf8-optimization of a regexp containing line-
35067         or buffer-anchors, e.g., `^', `$'.
35068
35069 2007-11-30  Bruno Haible  <bruno@clisp.org>
35070
35071         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
35072         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
35073         glthread_recursive_lock_init.
35074         * lib/lock.c (glthread_recursive_lock_init)
35075         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
35076         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35077
35078 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
35079
35080         New function qset_acl, like set_acl but with syscall semantics.
35081         * lib/acl.h (qset_acl): New decl.
35082         * lib/acl.c (qset_acl): New function.
35083         (set_acl): Use new function.  Use more-consistent diagnostics.
35084
35085 2007-11-28  Jim Meyering  <meyering@redhat.com>
35086
35087         * modules/physmem (License): Change from GPL to LGPLv2+.
35088
35089 2007-11-26  Bruno Haible  <bruno@clisp.org>
35090
35091         * lib/vasnprintf.c (decode_long_double): Don't abort if the
35092         'long double' type has excess precision.
35093         Reported by Jim Meyering in
35094         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
35095
35096 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35097
35098         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
35099         Sync from <http://gnu.org/licenses>.
35100         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
35101         with license text from same location.
35102         * doc/maintain.texi, doc/standards.texi:  Sync from
35103         <http://savannah.gnu.org/projects/gnustandards>.
35104
35105 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
35106         and Jim Meyering  <meyering@redhat.com>
35107
35108         Adjust getdate' grammar to accept a slightly more regular language.
35109         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
35110         Before, the former was rejected.
35111         * lib/getdate.y (digits_to_date_time): New function, factored
35112         out of ...
35113         (number): ...here.  Just call digits_to_date_time.
35114         (hybrid): New non-terminal to handle an <unsigned number,
35115         signed relative offset> sequence consistently.
35116
35117 2007-11-18  Jim Meyering  <meyering@redhat.com>
35118
35119         Pull my changes from coreutils:
35120         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
35121         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
35122         use of $gnulib_tool_option_extras, so that it's separated from the
35123         preceding argument.
35124
35125         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
35126         * build-aux/bootstrap (cp_mark_as_generated): Create any required
35127         parent destination directories before copying a file into place.
35128
35129 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
35130
35131         bootstrap: work also with 4-argument variant of AC_INIT
35132         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
35133
35134 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
35135
35136         Port test-getaddrinfo to Solaris.
35137         Problem reported by Bruno Haible in
35138         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
35139         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
35140         explanation of setting 'hints'.
35141         Don't reject an implementation merely because it returns EAI_SERVICE.
35142         (EAI_SERVICE): Define to 0 if not defined.
35143
35144 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
35145
35146         The license of gnu-make and posix-shell is now "GPLed build tool".
35147         * modules/gnu-make (License): Likewise.
35148         * modules/posix-shell (License): Likewise.
35149
35150         New module posix-shell, for determining a POSIX shell
35151         or perhaps something that is close enough to a POSIX shell.
35152         * m4/posix-shell.m4: New file.
35153         * modules/posix-shell: New file.
35154
35155         * MODULES.html.sh: Mention new module.
35156
35157         New module gnu-make, for determining whether we're using GNU Make.
35158         * m4/gnu-make.m4: New file.
35159         * modules/gnu-make: New file.
35160         * MODULES.html.sh: Mention new module.
35161
35162 2007-11-14  Jim Meyering  <meyering@redhat.com>
35163
35164         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
35165         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
35166         use this macro to create a function _definition_.
35167         Remove useless "#undef ARGMATCH_DIE".
35168
35169 2007-11-14  Bruno Haible  <bruno@clisp.org>
35170
35171         * lib/config.charset: Update for OpenBSD 4.1.
35172         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
35173
35174 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
35175
35176         Document 64-bit #if problems in stdint.texi.
35177         * doc/headers/stdint.texi (stdint.h): Mention problems with
35178         64-bit-#if, and how to work around them.
35179
35180         Don't insist on 'long long int' support in the preprocessor.  It
35181         breaks too many things.  For example, PRIdMAX still uses a 'long
35182         long int' format with the latest Sun compiler, even though
35183         HAVE_LONG_LONG_INT isn't defined due to that compiler's
35184         preprocessor problem.  This causes the latest coreutils to dump
35185         core on Solaris 10 sparc with the Sun C compiler.
35186         Instead, fix the 2007-10-16 problem in a different way, by evaluating
35187         the troublesome expressions at configure-time, not at #if-time.
35188         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
35189         preprocessor.
35190         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
35191         compile-time C checks, done at 'configure'-time.
35192         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
35193         * modules/inttypes (Makefile): Substitute the new symbols that
35194         gl_INTTYPES_H now generates.
35195         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
35196
35197 2007-11-12  Bruno Haible  <bruno@clisp.org>
35198
35199         Tests for Unicode character classification functions.
35200
35201         * modules/unictype/bidicategory-byname-tests: New file.
35202         * modules/unictype/bidicategory-name-tests: New file.
35203         * modules/unictype/bidicategory-of-tests: New file.
35204         * modules/unictype/bidicategory-test-tests: New file.
35205         * modules/unictype/block-list-tests: New file.
35206         * modules/unictype/block-of-tests: New file.
35207         * modules/unictype/block-test-tests: New file.
35208         * modules/unictype/category-C-tests: New file.
35209         * modules/unictype/category-Cc-tests: New file.
35210         * modules/unictype/category-Cf-tests: New file.
35211         * modules/unictype/category-Cn-tests: New file.
35212         * modules/unictype/category-Co-tests: New file.
35213         * modules/unictype/category-Cs-tests: New file.
35214         * modules/unictype/category-L-tests: New file.
35215         * modules/unictype/category-Ll-tests: New file.
35216         * modules/unictype/category-Lm-tests: New file.
35217         * modules/unictype/category-Lo-tests: New file.
35218         * modules/unictype/category-Lt-tests: New file.
35219         * modules/unictype/category-Lu-tests: New file.
35220         * modules/unictype/category-M-tests: New file.
35221         * modules/unictype/category-Mc-tests: New file.
35222         * modules/unictype/category-Me-tests: New file.
35223         * modules/unictype/category-Mn-tests: New file.
35224         * modules/unictype/category-N-tests: New file.
35225         * modules/unictype/category-Nd-tests: New file.
35226         * modules/unictype/category-Nl-tests: New file.
35227         * modules/unictype/category-No-tests: New file.
35228         * modules/unictype/category-P-tests: New file.
35229         * modules/unictype/category-Pc-tests: New file.
35230         * modules/unictype/category-Pd-tests: New file.
35231         * modules/unictype/category-Pe-tests: New file.
35232         * modules/unictype/category-Pf-tests: New file.
35233         * modules/unictype/category-Pi-tests: New file.
35234         * modules/unictype/category-Po-tests: New file.
35235         * modules/unictype/category-Ps-tests: New file.
35236         * modules/unictype/category-S-tests: New file.
35237         * modules/unictype/category-Sc-tests: New file.
35238         * modules/unictype/category-Sk-tests: New file.
35239         * modules/unictype/category-Sm-tests: New file.
35240         * modules/unictype/category-So-tests: New file.
35241         * modules/unictype/category-Z-tests: New file.
35242         * modules/unictype/category-Zl-tests: New file.
35243         * modules/unictype/category-Zp-tests: New file.
35244         * modules/unictype/category-Zs-tests: New file.
35245         * modules/unictype/category-and-not-tests: New file.
35246         * modules/unictype/category-and-tests: New file.
35247         * modules/unictype/category-byname-tests: New file.
35248         * modules/unictype/category-name-tests: New file.
35249         * modules/unictype/category-none-tests: New file.
35250         * modules/unictype/category-of-tests: New file.
35251         * modules/unictype/category-or-tests: New file.
35252         * modules/unictype/category-test-withtable-tests: New file.
35253         * modules/unictype/combining-class-tests: New file.
35254         * modules/unictype/ctype-alnum-tests: New file.
35255         * modules/unictype/ctype-alpha-tests: New file.
35256         * modules/unictype/ctype-blank-tests: New file.
35257         * modules/unictype/ctype-cntrl-tests: New file.
35258         * modules/unictype/ctype-digit-tests: New file.
35259         * modules/unictype/ctype-graph-tests: New file.
35260         * modules/unictype/ctype-lower-tests: New file.
35261         * modules/unictype/ctype-print-tests: New file.
35262         * modules/unictype/ctype-punct-tests: New file.
35263         * modules/unictype/ctype-space-tests: New file.
35264         * modules/unictype/ctype-upper-tests: New file.
35265         * modules/unictype/ctype-xdigit-tests: New file.
35266         * modules/unictype/decimal-digit-tests: New file.
35267         * modules/unictype/digit-tests: New file.
35268         * modules/unictype/mirror-tests: New file.
35269         * modules/unictype/numeric-tests: New file.
35270         * modules/unictype/property-alphabetic-tests: New file.
35271         * modules/unictype/property-ascii-hex-digit-tests: New file.
35272         * modules/unictype/property-bidi-arabic-digit-tests: New file.
35273         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
35274         * modules/unictype/property-bidi-block-separator-tests: New file.
35275         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
35276         * modules/unictype/property-bidi-common-separator-tests: New file.
35277         * modules/unictype/property-bidi-control-tests: New file.
35278         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
35279         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
35280         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
35281         * modules/unictype/property-bidi-european-digit-tests: New file.
35282         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
35283         * modules/unictype/property-bidi-left-to-right-tests: New file.
35284         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
35285         * modules/unictype/property-bidi-other-neutral-tests: New file.
35286         * modules/unictype/property-bidi-pdf-tests: New file.
35287         * modules/unictype/property-bidi-segment-separator-tests: New file.
35288         * modules/unictype/property-bidi-whitespace-tests: New file.
35289         * modules/unictype/property-byname-tests: New file.
35290         * modules/unictype/property-combining-tests: New file.
35291         * modules/unictype/property-composite-tests: New file.
35292         * modules/unictype/property-currency-symbol-tests: New file.
35293         * modules/unictype/property-dash-tests: New file.
35294         * modules/unictype/property-decimal-digit-tests: New file.
35295         * modules/unictype/property-default-ignorable-code-point-tests: New file.
35296         * modules/unictype/property-deprecated-tests: New file.
35297         * modules/unictype/property-diacritic-tests: New file.
35298         * modules/unictype/property-extender-tests: New file.
35299         * modules/unictype/property-format-control-tests: New file.
35300         * modules/unictype/property-grapheme-base-tests: New file.
35301         * modules/unictype/property-grapheme-extend-tests: New file.
35302         * modules/unictype/property-grapheme-link-tests: New file.
35303         * modules/unictype/property-hex-digit-tests: New file.
35304         * modules/unictype/property-hyphen-tests: New file.
35305         * modules/unictype/property-id-continue-tests: New file.
35306         * modules/unictype/property-id-start-tests: New file.
35307         * modules/unictype/property-ideographic-tests: New file.
35308         * modules/unictype/property-ids-binary-operator-tests: New file.
35309         * modules/unictype/property-ids-trinary-operator-tests: New file.
35310         * modules/unictype/property-ignorable-control-tests: New file.
35311         * modules/unictype/property-iso-control-tests: New file.
35312         * modules/unictype/property-join-control-tests: New file.
35313         * modules/unictype/property-left-of-pair-tests: New file.
35314         * modules/unictype/property-line-separator-tests: New file.
35315         * modules/unictype/property-logical-order-exception-tests: New file.
35316         * modules/unictype/property-lowercase-tests: New file.
35317         * modules/unictype/property-math-tests: New file.
35318         * modules/unictype/property-non-break-tests: New file.
35319         * modules/unictype/property-not-a-character-tests: New file.
35320         * modules/unictype/property-numeric-tests: New file.
35321         * modules/unictype/property-other-alphabetic-tests: New file.
35322         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
35323         * modules/unictype/property-other-grapheme-extend-tests: New file.
35324         * modules/unictype/property-other-id-continue-tests: New file.
35325         * modules/unictype/property-other-id-start-tests: New file.
35326         * modules/unictype/property-other-lowercase-tests: New file.
35327         * modules/unictype/property-other-math-tests: New file.
35328         * modules/unictype/property-other-uppercase-tests: New file.
35329         * modules/unictype/property-paired-punctuation-tests: New file.
35330         * modules/unictype/property-paragraph-separator-tests: New file.
35331         * modules/unictype/property-pattern-syntax-tests: New file.
35332         * modules/unictype/property-pattern-white-space-tests: New file.
35333         * modules/unictype/property-private-use-tests: New file.
35334         * modules/unictype/property-punctuation-tests: New file.
35335         * modules/unictype/property-quotation-mark-tests: New file.
35336         * modules/unictype/property-radical-tests: New file.
35337         * modules/unictype/property-sentence-terminal-tests: New file.
35338         * modules/unictype/property-soft-dotted-tests: New file.
35339         * modules/unictype/property-space-tests: New file.
35340         * modules/unictype/property-terminal-punctuation-tests: New file.
35341         * modules/unictype/property-test-tests: New file.
35342         * modules/unictype/property-titlecase-tests: New file.
35343         * modules/unictype/property-unassigned-code-value-tests: New file.
35344         * modules/unictype/property-unified-ideograph-tests: New file.
35345         * modules/unictype/property-uppercase-tests: New file.
35346         * modules/unictype/property-variation-selector-tests: New file.
35347         * modules/unictype/property-white-space-tests: New file.
35348         * modules/unictype/property-xid-continue-tests: New file.
35349         * modules/unictype/property-xid-start-tests: New file.
35350         * modules/unictype/property-zero-width-tests: New file.
35351         * modules/unictype/scripts-tests: New file.
35352         * modules/unictype/syntax-c-ident-tests: New file.
35353         * modules/unictype/syntax-c-whitespace-tests: New file.
35354         * modules/unictype/syntax-java-ident-tests: New file.
35355         * modules/unictype/syntax-java-whitespace-tests: New file.
35356         * tests/unictype/test-bidi_byname.c: New file.
35357         * tests/unictype/test-bidi_name.c: New file.
35358         * tests/unictype/test-bidi_of.c: New file.
35359         * tests/unictype/test-bidi_test.c: New file.
35360         * tests/unictype/test-block_list.c: New file.
35361         * tests/unictype/test-block_of.c: New file.
35362         * tests/unictype/test-block_test.c: New file.
35363         * tests/unictype/test-categ_and.c: New file.
35364         * tests/unictype/test-categ_and_not.c: New file.
35365         * tests/unictype/test-categ_byname.c: New file.
35366         * tests/unictype/test-categ_name.c: New file.
35367         * tests/unictype/test-categ_none.c: New file.
35368         * tests/unictype/test-categ_of.c: New file.
35369         * tests/unictype/test-categ_or.c: New file.
35370         * tests/unictype/test-categ_test_withtable.c: New file.
35371         * tests/unictype/test-combining.c: New file.
35372         * tests/unictype/test-decdigit.c: New file.
35373         * tests/unictype/test-digit.c: New file.
35374         * tests/unictype/test-mirror.c: New file.
35375         * tests/unictype/test-numeric.c: New file.
35376         * tests/unictype/test-pr_byname.c: New file.
35377         * tests/unictype/test-pr_test.c: New file.
35378         * tests/unictype/test-predicate-part1.h: New file.
35379         * tests/unictype/test-predicate-part2.h: New file.
35380         * tests/unictype/test-scripts.c: New file.
35381         * tests/unictype/test-sy_c_ident.c: New file.
35382         * tests/unictype/test-sy_java_ident.c: New file.
35383
35384         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
35385         for Unicode 5.0.0.
35386         * tests/unictype/test-categ_Cc.c: Likewise.
35387         * tests/unictype/test-categ_Cf.c: Likewise.
35388         * tests/unictype/test-categ_Cn.c: Likewise.
35389         * tests/unictype/test-categ_Co.c: Likewise.
35390         * tests/unictype/test-categ_Cs.c: Likewise.
35391         * tests/unictype/test-categ_L.c: Likewise.
35392         * tests/unictype/test-categ_Ll.c: Likewise.
35393         * tests/unictype/test-categ_Lm.c: Likewise.
35394         * tests/unictype/test-categ_Lo.c: Likewise.
35395         * tests/unictype/test-categ_Lt.c: Likewise.
35396         * tests/unictype/test-categ_Lu.c: Likewise.
35397         * tests/unictype/test-categ_M.c: Likewise.
35398         * tests/unictype/test-categ_Mc.c: Likewise.
35399         * tests/unictype/test-categ_Me.c: Likewise.
35400         * tests/unictype/test-categ_Mn.c: Likewise.
35401         * tests/unictype/test-categ_N.c: Likewise.
35402         * tests/unictype/test-categ_Nd.c: Likewise.
35403         * tests/unictype/test-categ_Nl.c: Likewise.
35404         * tests/unictype/test-categ_No.c: Likewise.
35405         * tests/unictype/test-categ_P.c: Likewise.
35406         * tests/unictype/test-categ_Pc.c: Likewise.
35407         * tests/unictype/test-categ_Pd.c: Likewise.
35408         * tests/unictype/test-categ_Pe.c: Likewise.
35409         * tests/unictype/test-categ_Pf.c: Likewise.
35410         * tests/unictype/test-categ_Pi.c: Likewise.
35411         * tests/unictype/test-categ_Po.c: Likewise.
35412         * tests/unictype/test-categ_Ps.c: Likewise.
35413         * tests/unictype/test-categ_S.c: Likewise.
35414         * tests/unictype/test-categ_Sc.c: Likewise.
35415         * tests/unictype/test-categ_Sk.c: Likewise.
35416         * tests/unictype/test-categ_Sm.c: Likewise.
35417         * tests/unictype/test-categ_So.c: Likewise.
35418         * tests/unictype/test-categ_Z.c: Likewise.
35419         * tests/unictype/test-categ_Zl.c: Likewise.
35420         * tests/unictype/test-categ_Zp.c: Likewise.
35421         * tests/unictype/test-categ_Zs.c: Likewise.
35422         * tests/unictype/test-ctype_alnum.c: Likewise.
35423         * tests/unictype/test-ctype_alpha.c: Likewise.
35424         * tests/unictype/test-ctype_blank.c: Likewise.
35425         * tests/unictype/test-ctype_cntrl.c: Likewise.
35426         * tests/unictype/test-ctype_digit.c: Likewise.
35427         * tests/unictype/test-ctype_graph.c: Likewise.
35428         * tests/unictype/test-ctype_lower.c: Likewise.
35429         * tests/unictype/test-ctype_print.c: Likewise.
35430         * tests/unictype/test-ctype_punct.c: Likewise.
35431         * tests/unictype/test-ctype_space.c: Likewise.
35432         * tests/unictype/test-ctype_upper.c: Likewise.
35433         * tests/unictype/test-ctype_xdigit.c: Likewise.
35434         * tests/unictype/test-decdigit.h: Likewise.
35435         * tests/unictype/test-digit.h: Likewise.
35436         * tests/unictype/test-numeric.h: Likewise.
35437         * tests/unictype/test-pr_alphabetic.c: Likewise.
35438         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
35439         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
35440         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
35441         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
35442         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
35443         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
35444         * tests/unictype/test-pr_bidi_control.c: Likewise.
35445         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
35446         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
35447         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
35448         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
35449         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
35450         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
35451         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
35452         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
35453         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
35454         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
35455         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
35456         * tests/unictype/test-pr_combining.c: Likewise.
35457         * tests/unictype/test-pr_composite.c: Likewise.
35458         * tests/unictype/test-pr_currency_symbol.c: Likewise.
35459         * tests/unictype/test-pr_dash.c: Likewise.
35460         * tests/unictype/test-pr_decimal_digit.c: Likewise.
35461         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
35462         * tests/unictype/test-pr_deprecated.c: Likewise.
35463         * tests/unictype/test-pr_diacritic.c: Likewise.
35464         * tests/unictype/test-pr_extender.c: Likewise.
35465         * tests/unictype/test-pr_format_control.c: Likewise.
35466         * tests/unictype/test-pr_grapheme_base.c: Likewise.
35467         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
35468         * tests/unictype/test-pr_grapheme_link.c: Likewise.
35469         * tests/unictype/test-pr_hex_digit.c: Likewise.
35470         * tests/unictype/test-pr_hyphen.c: Likewise.
35471         * tests/unictype/test-pr_id_continue.c: Likewise.
35472         * tests/unictype/test-pr_id_start.c: Likewise.
35473         * tests/unictype/test-pr_ideographic.c: Likewise.
35474         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
35475         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
35476         * tests/unictype/test-pr_ignorable_control.c: Likewise.
35477         * tests/unictype/test-pr_iso_control.c: Likewise.
35478         * tests/unictype/test-pr_join_control.c: Likewise.
35479         * tests/unictype/test-pr_left_of_pair.c: Likewise.
35480         * tests/unictype/test-pr_line_separator.c: Likewise.
35481         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
35482         * tests/unictype/test-pr_lowercase.c: Likewise.
35483         * tests/unictype/test-pr_math.c: Likewise.
35484         * tests/unictype/test-pr_non_break.c: Likewise.
35485         * tests/unictype/test-pr_not_a_character.c: Likewise.
35486         * tests/unictype/test-pr_numeric.c: Likewise.
35487         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
35488         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
35489         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
35490         * tests/unictype/test-pr_other_id_continue.c: Likewise.
35491         * tests/unictype/test-pr_other_id_start.c: Likewise.
35492         * tests/unictype/test-pr_other_lowercase.c: Likewise.
35493         * tests/unictype/test-pr_other_math.c: Likewise.
35494         * tests/unictype/test-pr_other_uppercase.c: Likewise.
35495         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
35496         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
35497         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
35498         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
35499         * tests/unictype/test-pr_private_use.c: Likewise.
35500         * tests/unictype/test-pr_punctuation.c: Likewise.
35501         * tests/unictype/test-pr_quotation_mark.c: Likewise.
35502         * tests/unictype/test-pr_radical.c: Likewise.
35503         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
35504         * tests/unictype/test-pr_soft_dotted.c: Likewise.
35505         * tests/unictype/test-pr_space.c: Likewise.
35506         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
35507         * tests/unictype/test-pr_titlecase.c: Likewise.
35508         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
35509         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
35510         * tests/unictype/test-pr_uppercase.c: Likewise.
35511         * tests/unictype/test-pr_variation_selector.c: Likewise.
35512         * tests/unictype/test-pr_white_space.c: Likewise.
35513         * tests/unictype/test-pr_xid_continue.c: Likewise.
35514         * tests/unictype/test-pr_xid_start.c: Likewise.
35515         * tests/unictype/test-pr_zero_width.c: Likewise.
35516         * tests/unictype/test-sy_c_whitespace.c: Likewise.
35517         * tests/unictype/test-sy_java_whitespace.c: Likewise.
35518
35519 2007-11-12  Bruno Haible  <bruno@clisp.org>
35520
35521         Unicode character classification functions.
35522         * lib/unictype.h: New file.
35523         * modules/unictype/base: New file.
35524         * modules/unictype/category-L: New file.
35525         * modules/unictype/category-Lu: New file.
35526         * modules/unictype/category-Ll: New file.
35527         * modules/unictype/category-Lt: New file.
35528         * modules/unictype/category-Lm: New file.
35529         * modules/unictype/category-Lo: New file.
35530         * modules/unictype/category-M: New file.
35531         * modules/unictype/category-Mn: New file.
35532         * modules/unictype/category-Mc: New file.
35533         * modules/unictype/category-Me: New file.
35534         * modules/unictype/category-N: New file.
35535         * modules/unictype/category-Nd: New file.
35536         * modules/unictype/category-Nl: New file.
35537         * modules/unictype/category-No: New file.
35538         * modules/unictype/category-P: New file.
35539         * modules/unictype/category-Pc: New file.
35540         * modules/unictype/category-Pd: New file.
35541         * modules/unictype/category-Ps: New file.
35542         * modules/unictype/category-Pe: New file.
35543         * modules/unictype/category-Pi: New file.
35544         * modules/unictype/category-Pf: New file.
35545         * modules/unictype/category-Po: New file.
35546         * modules/unictype/category-S: New file.
35547         * modules/unictype/category-Sm: New file.
35548         * modules/unictype/category-Sc: New file.
35549         * modules/unictype/category-Sk: New file.
35550         * modules/unictype/category-So: New file.
35551         * modules/unictype/category-Z: New file.
35552         * modules/unictype/category-Zs: New file.
35553         * modules/unictype/category-Zl: New file.
35554         * modules/unictype/category-Zp: New file.
35555         * modules/unictype/category-C: New file.
35556         * modules/unictype/category-Cc: New file.
35557         * modules/unictype/category-Cf: New file.
35558         * modules/unictype/category-Cs: New file.
35559         * modules/unictype/category-Co: New file.
35560         * modules/unictype/category-Cn: New file.
35561         * modules/unictype/category-or: New file.
35562         * modules/unictype/category-of: New file.
35563         * modules/unictype/category-test: New file.
35564         * modules/unictype/category-test-withtable: New file.
35565         * modules/unictype/category-byname: New file.
35566         * modules/unictype/category-none: New file.
35567         * modules/unictype/category-and: New file.
35568         * modules/unictype/category-and-not: New file.
35569         * modules/unictype/category-name: New file.
35570         * modules/unictype/combining-class: New file.
35571         * modules/unictype/category-all: New file.
35572         * modules/unictype/bidicategory-all: New file.
35573         * modules/unictype/bidicategory-byname: New file.
35574         * modules/unictype/bidicategory-name: New file.
35575         * modules/unictype/bidicategory-of: New file.
35576         * modules/unictype/bidicategory-test: New file.
35577         * modules/unictype/decimal-digit: New file.
35578         * modules/unictype/digit: New file.
35579         * modules/unictype/numeric: New file.
35580         * modules/unictype/mirror: New file.
35581         * modules/unictype/property-white-space: New file.
35582         * modules/unictype/property-alphabetic: New file.
35583         * modules/unictype/property-other-alphabetic: New file.
35584         * modules/unictype/property-not-a-character: New file.
35585         * modules/unictype/property-default-ignorable-code-point: New file.
35586         * modules/unictype/property-other-default-ignorable-code-point: New
35587         file.
35588         * modules/unictype/property-deprecated: New file.
35589         * modules/unictype/property-logical-order-exception: New file.
35590         * modules/unictype/property-variation-selector: New file.
35591         * modules/unictype/property-private-use: New file.
35592         * modules/unictype/property-unassigned-code-value: New file.
35593         * modules/unictype/property-uppercase: New file.
35594         * modules/unictype/property-other-uppercase: New file.
35595         * modules/unictype/property-lowercase: New file.
35596         * modules/unictype/property-other-lowercase: New file.
35597         * modules/unictype/property-titlecase: New file.
35598         * modules/unictype/property-soft-dotted: New file.
35599         * modules/unictype/property-id-start: New file.
35600         * modules/unictype/property-other-id-start: New file.
35601         * modules/unictype/property-id-continue: New file.
35602         * modules/unictype/property-other-id-continue: New file.
35603         * modules/unictype/property-xid-start: New file.
35604         * modules/unictype/property-xid-continue: New file.
35605         * modules/unictype/property-pattern-white-space: New file.
35606         * modules/unictype/property-pattern-syntax: New file.
35607         * modules/unictype/property-join-control: New file.
35608         * modules/unictype/property-grapheme-base: New file.
35609         * modules/unictype/property-grapheme-extend: New file.
35610         * modules/unictype/property-other-grapheme-extend: New file.
35611         * modules/unictype/property-grapheme-link: New file.
35612         * modules/unictype/property-bidi-control: New file.
35613         * modules/unictype/property-bidi-left-to-right: New file.
35614         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
35615         * modules/unictype/property-bidi-arabic-right-to-left: New file.
35616         * modules/unictype/property-bidi-european-digit: New file.
35617         * modules/unictype/property-bidi-eur-num-separator: New file.
35618         * modules/unictype/property-bidi-eur-num-terminator: New file.
35619         * modules/unictype/property-bidi-arabic-digit: New file.
35620         * modules/unictype/property-bidi-common-separator: New file.
35621         * modules/unictype/property-bidi-block-separator: New file.
35622         * modules/unictype/property-bidi-segment-separator: New file.
35623         * modules/unictype/property-bidi-whitespace: New file.
35624         * modules/unictype/property-bidi-non-spacing-mark: New file.
35625         * modules/unictype/property-bidi-boundary-neutral: New file.
35626         * modules/unictype/property-bidi-pdf: New file.
35627         * modules/unictype/property-bidi-embedding-or-override: New file.
35628         * modules/unictype/property-bidi-other-neutral: New file.
35629         * modules/unictype/property-hex-digit: New file.
35630         * modules/unictype/property-ascii-hex-digit: New file.
35631         * modules/unictype/property-ideographic: New file.
35632         * modules/unictype/property-unified-ideograph: New file.
35633         * modules/unictype/property-radical: New file.
35634         * modules/unictype/property-ids-binary-operator: New file.
35635         * modules/unictype/property-ids-trinary-operator: New file.
35636         * modules/unictype/property-zero-width: New file.
35637         * modules/unictype/property-space: New file.
35638         * modules/unictype/property-non-break: New file.
35639         * modules/unictype/property-iso-control: New file.
35640         * modules/unictype/property-format-control: New file.
35641         * modules/unictype/property-dash: New file.
35642         * modules/unictype/property-hyphen: New file.
35643         * modules/unictype/property-punctuation: New file.
35644         * modules/unictype/property-line-separator: New file.
35645         * modules/unictype/property-paragraph-separator: New file.
35646         * modules/unictype/property-quotation-mark: New file.
35647         * modules/unictype/property-sentence-terminal: New file.
35648         * modules/unictype/property-terminal-punctuation: New file.
35649         * modules/unictype/property-currency-symbol: New file.
35650         * modules/unictype/property-math: New file.
35651         * modules/unictype/property-other-math: New file.
35652         * modules/unictype/property-paired-punctuation: New file.
35653         * modules/unictype/property-left-of-pair: New file.
35654         * modules/unictype/property-combining: New file.
35655         * modules/unictype/property-composite: New file.
35656         * modules/unictype/property-decimal-digit: New file.
35657         * modules/unictype/property-numeric: New file.
35658         * modules/unictype/property-diacritic: New file.
35659         * modules/unictype/property-extender: New file.
35660         * modules/unictype/property-ignorable-control: New file.
35661         * modules/unictype/property-test: New file.
35662         * modules/unictype/property-byname: New file.
35663         * modules/unictype/property-all: New file.
35664         * modules/unictype/scripts: New file.
35665         * modules/unictype/scripts-all: New file.
35666         * modules/unictype/block-of: New file.
35667         * modules/unictype/block-test: New file.
35668         * modules/unictype/block-list: New file.
35669         * modules/unictype/block-all: New file.
35670         * modules/unictype/syntax-c-whitespace: New file.
35671         * modules/unictype/syntax-java-whitespace: New file.
35672         * modules/unictype/syntax-c-ident: New file.
35673         * modules/unictype/syntax-java-ident: New file.
35674         * modules/unictype/ctype-alnum: New file.
35675         * modules/unictype/ctype-alpha: New file.
35676         * modules/unictype/ctype-cntrl: New file.
35677         * modules/unictype/ctype-digit: New file.
35678         * modules/unictype/ctype-graph: New file.
35679         * modules/unictype/ctype-lower: New file.
35680         * modules/unictype/ctype-print: New file.
35681         * modules/unictype/ctype-punct: New file.
35682         * modules/unictype/ctype-space: New file.
35683         * modules/unictype/ctype-upper: New file.
35684         * modules/unictype/ctype-xdigit: New file.
35685         * modules/unictype/ctype-blank: New file.
35686         * lib/unictype/bidi_byname.c: New file.
35687         * lib/unictype/bidi_name.c: New file.
35688         * lib/unictype/bidi_of.c: New file.
35689         * lib/unictype/bidi_test.c: New file.
35690         * lib/unictype/bitmap.h: New file.
35691         * lib/unictype/block_test.c: New file.
35692         * lib/unictype/blocks.c: New file.
35693         * lib/unictype/categ_C.c: New file.
35694         * lib/unictype/categ_Cc.c: New file.
35695         * lib/unictype/categ_Cf.c: New file.
35696         * lib/unictype/categ_Cn.c: New file.
35697         * lib/unictype/categ_Co.c: New file.
35698         * lib/unictype/categ_Cs.c: New file.
35699         * lib/unictype/categ_L.c: New file.
35700         * lib/unictype/categ_Ll.c: New file.
35701         * lib/unictype/categ_Lm.c: New file.
35702         * lib/unictype/categ_Lo.c: New file.
35703         * lib/unictype/categ_Lt.c: New file.
35704         * lib/unictype/categ_Lu.c: New file.
35705         * lib/unictype/categ_M.c: New file.
35706         * lib/unictype/categ_Mc.c: New file.
35707         * lib/unictype/categ_Me.c: New file.
35708         * lib/unictype/categ_Mn.c: New file.
35709         * lib/unictype/categ_N.c: New file.
35710         * lib/unictype/categ_Nd.c: New file.
35711         * lib/unictype/categ_Nl.c: New file.
35712         * lib/unictype/categ_No.c: New file.
35713         * lib/unictype/categ_P.c: New file.
35714         * lib/unictype/categ_Pc.c: New file.
35715         * lib/unictype/categ_Pd.c: New file.
35716         * lib/unictype/categ_Pe.c: New file.
35717         * lib/unictype/categ_Pf.c: New file.
35718         * lib/unictype/categ_Pi.c: New file.
35719         * lib/unictype/categ_Po.c: New file.
35720         * lib/unictype/categ_Ps.c: New file.
35721         * lib/unictype/categ_S.c: New file.
35722         * lib/unictype/categ_Sc.c: New file.
35723         * lib/unictype/categ_Sk.c: New file.
35724         * lib/unictype/categ_Sm.c: New file.
35725         * lib/unictype/categ_So.c: New file.
35726         * lib/unictype/categ_Z.c: New file.
35727         * lib/unictype/categ_Zl.c: New file.
35728         * lib/unictype/categ_Zp.c: New file.
35729         * lib/unictype/categ_Zs.c: New file.
35730         * lib/unictype/categ_and.c: New file.
35731         * lib/unictype/categ_and_not.c: New file.
35732         * lib/unictype/categ_byname.c: New file.
35733         * lib/unictype/categ_name.c: New file.
35734         * lib/unictype/categ_none.c: New file.
35735         * lib/unictype/categ_of.c: New file.
35736         * lib/unictype/categ_or.c: New file.
35737         * lib/unictype/categ_test.c: New file.
35738         * lib/unictype/combining.c: New file.
35739         * lib/unictype/ctype_alnum.c: New file.
35740         * lib/unictype/ctype_alpha.c: New file.
35741         * lib/unictype/ctype_blank.c: New file.
35742         * lib/unictype/ctype_cntrl.c: New file.
35743         * lib/unictype/ctype_digit.c: New file.
35744         * lib/unictype/ctype_graph.c: New file.
35745         * lib/unictype/ctype_lower.c: New file.
35746         * lib/unictype/ctype_print.c: New file.
35747         * lib/unictype/ctype_punct.c: New file.
35748         * lib/unictype/ctype_space.c: New file.
35749         * lib/unictype/ctype_upper.c: New file.
35750         * lib/unictype/ctype_xdigit.c: New file.
35751         * lib/unictype/decdigit.c: New file.
35752         * lib/unictype/digit.c: New file.
35753         * lib/unictype/identsyntaxmap.h: New file.
35754         * lib/unictype/mirror.c: New file.
35755         * lib/unictype/numeric.c: New file.
35756         * lib/unictype/pr_alphabetic.c: New file.
35757         * lib/unictype/pr_ascii_hex_digit.c: New file.
35758         * lib/unictype/pr_bidi_arabic_digit.c: New file.
35759         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
35760         * lib/unictype/pr_bidi_block_separator.c: New file.
35761         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
35762         * lib/unictype/pr_bidi_common_separator.c: New file.
35763         * lib/unictype/pr_bidi_control.c: New file.
35764         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
35765         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
35766         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
35767         * lib/unictype/pr_bidi_european_digit.c: New file.
35768         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
35769         * lib/unictype/pr_bidi_left_to_right.c: New file.
35770         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
35771         * lib/unictype/pr_bidi_other_neutral.c: New file.
35772         * lib/unictype/pr_bidi_pdf.c: New file.
35773         * lib/unictype/pr_bidi_segment_separator.c: New file.
35774         * lib/unictype/pr_bidi_whitespace.c: New file.
35775         * lib/unictype/pr_byname.c: New file.
35776         * lib/unictype/pr_byname.gperf: New file.
35777         * lib/unictype/pr_combining.c: New file.
35778         * lib/unictype/pr_composite.c: New file.
35779         * lib/unictype/pr_currency_symbol.c: New file.
35780         * lib/unictype/pr_dash.c: New file.
35781         * lib/unictype/pr_decimal_digit.c: New file.
35782         * lib/unictype/pr_default_ignorable_code_point.c: New file.
35783         * lib/unictype/pr_deprecated.c: New file.
35784         * lib/unictype/pr_diacritic.c: New file.
35785         * lib/unictype/pr_extender.c: New file.
35786         * lib/unictype/pr_format_control.c: New file.
35787         * lib/unictype/pr_grapheme_base.c: New file.
35788         * lib/unictype/pr_grapheme_extend.c: New file.
35789         * lib/unictype/pr_grapheme_link.c: New file.
35790         * lib/unictype/pr_hex_digit.c: New file.
35791         * lib/unictype/pr_hyphen.c: New file.
35792         * lib/unictype/pr_id_continue.c: New file.
35793         * lib/unictype/pr_id_start.c: New file.
35794         * lib/unictype/pr_ideographic.c: New file.
35795         * lib/unictype/pr_ids_binary_operator.c: New file.
35796         * lib/unictype/pr_ids_trinary_operator.c: New file.
35797         * lib/unictype/pr_ignorable_control.c: New file.
35798         * lib/unictype/pr_iso_control.c: New file.
35799         * lib/unictype/pr_join_control.c: New file.
35800         * lib/unictype/pr_left_of_pair.c: New file.
35801         * lib/unictype/pr_line_separator.c: New file.
35802         * lib/unictype/pr_logical_order_exception.c: New file.
35803         * lib/unictype/pr_lowercase.c: New file.
35804         * lib/unictype/pr_math.c: New file.
35805         * lib/unictype/pr_non_break.c: New file.
35806         * lib/unictype/pr_not_a_character.c: New file.
35807         * lib/unictype/pr_numeric.c: New file.
35808         * lib/unictype/pr_other_alphabetic.c: New file.
35809         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
35810         * lib/unictype/pr_other_grapheme_extend.c: New file.
35811         * lib/unictype/pr_other_id_continue.c: New file.
35812         * lib/unictype/pr_other_id_start.c: New file.
35813         * lib/unictype/pr_other_lowercase.c: New file.
35814         * lib/unictype/pr_other_math.c: New file.
35815         * lib/unictype/pr_other_uppercase.c: New file.
35816         * lib/unictype/pr_paired_punctuation.c: New file.
35817         * lib/unictype/pr_paragraph_separator.c: New file.
35818         * lib/unictype/pr_pattern_syntax.c: New file.
35819         * lib/unictype/pr_pattern_white_space.c: New file.
35820         * lib/unictype/pr_private_use.c: New file.
35821         * lib/unictype/pr_punctuation.c: New file.
35822         * lib/unictype/pr_quotation_mark.c: New file.
35823         * lib/unictype/pr_radical.c: New file.
35824         * lib/unictype/pr_sentence_terminal.c: New file.
35825         * lib/unictype/pr_soft_dotted.c: New file.
35826         * lib/unictype/pr_space.c: New file.
35827         * lib/unictype/pr_terminal_punctuation.c: New file.
35828         * lib/unictype/pr_test.c: New file.
35829         * lib/unictype/pr_titlecase.c: New file.
35830         * lib/unictype/pr_unassigned_code_value.c: New file.
35831         * lib/unictype/pr_unified_ideograph.c: New file.
35832         * lib/unictype/pr_uppercase.c: New file.
35833         * lib/unictype/pr_variation_selector.c: New file.
35834         * lib/unictype/pr_white_space.c: New file.
35835         * lib/unictype/pr_xid_continue.c: New file.
35836         * lib/unictype/pr_xid_start.c: New file.
35837         * lib/unictype/pr_zero_width.c: New file.
35838         * lib/unictype/scripts.c: New file.
35839         * lib/unictype/sy_c_ident.c: New file.
35840         * lib/unictype/sy_c_whitespace.c: New file.
35841         * lib/unictype/sy_java_ident.c: New file.
35842         * lib/unictype/sy_java_whitespace.c: New file.
35843
35844         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
35845         Unicode 5.0.0.
35846         * lib/unictype/blocks.h: Likewise.
35847         * lib/unictype/categ_C.h: Likewise.
35848         * lib/unictype/categ_Cc.h: Likewise.
35849         * lib/unictype/categ_Cf.h: Likewise.
35850         * lib/unictype/categ_Cn.h: Likewise.
35851         * lib/unictype/categ_Co.h: Likewise.
35852         * lib/unictype/categ_Cs.h: Likewise.
35853         * lib/unictype/categ_L.h: Likewise.
35854         * lib/unictype/categ_Ll.h: Likewise.
35855         * lib/unictype/categ_Lm.h: Likewise.
35856         * lib/unictype/categ_Lo.h: Likewise.
35857         * lib/unictype/categ_Lt.h: Likewise.
35858         * lib/unictype/categ_Lu.h: Likewise.
35859         * lib/unictype/categ_M.h: Likewise.
35860         * lib/unictype/categ_Mc.h: Likewise.
35861         * lib/unictype/categ_Me.h: Likewise.
35862         * lib/unictype/categ_Mn.h: Likewise.
35863         * lib/unictype/categ_N.h: Likewise.
35864         * lib/unictype/categ_Nd.h: Likewise.
35865         * lib/unictype/categ_Nl.h: Likewise.
35866         * lib/unictype/categ_No.h: Likewise.
35867         * lib/unictype/categ_P.h: Likewise.
35868         * lib/unictype/categ_Pc.h: Likewise.
35869         * lib/unictype/categ_Pd.h: Likewise.
35870         * lib/unictype/categ_Pe.h: Likewise.
35871         * lib/unictype/categ_Pf.h: Likewise.
35872         * lib/unictype/categ_Pi.h: Likewise.
35873         * lib/unictype/categ_Po.h: Likewise.
35874         * lib/unictype/categ_Ps.h: Likewise.
35875         * lib/unictype/categ_S.h: Likewise.
35876         * lib/unictype/categ_Sc.h: Likewise.
35877         * lib/unictype/categ_Sk.h: Likewise.
35878         * lib/unictype/categ_Sm.h: Likewise.
35879         * lib/unictype/categ_So.h: Likewise.
35880         * lib/unictype/categ_Z.h: Likewise.
35881         * lib/unictype/categ_Zl.h: Likewise.
35882         * lib/unictype/categ_Zp.h: Likewise.
35883         * lib/unictype/categ_Zs.h: Likewise.
35884         * lib/unictype/categ_of.h: Likewise.
35885         * lib/unictype/combining.h: Likewise.
35886         * lib/unictype/ctype_alnum.h: Likewise.
35887         * lib/unictype/ctype_alpha.h: Likewise.
35888         * lib/unictype/ctype_blank.h: Likewise.
35889         * lib/unictype/ctype_cntrl.h: Likewise.
35890         * lib/unictype/ctype_digit.h: Likewise.
35891         * lib/unictype/ctype_graph.h: Likewise.
35892         * lib/unictype/ctype_lower.h: Likewise.
35893         * lib/unictype/ctype_print.h: Likewise.
35894         * lib/unictype/ctype_punct.h: Likewise.
35895         * lib/unictype/ctype_space.h: Likewise.
35896         * lib/unictype/ctype_upper.h: Likewise.
35897         * lib/unictype/ctype_xdigit.h: Likewise.
35898         * lib/unictype/decdigit.h: Likewise.
35899         * lib/unictype/digit.h: Likewise.
35900         * lib/unictype/mirror.h: Likewise.
35901         * lib/unictype/numeric.h: Likewise.
35902         * lib/unictype/pr_alphabetic.h: Likewise.
35903         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
35904         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
35905         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
35906         * lib/unictype/pr_bidi_block_separator.h: Likewise.
35907         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
35908         * lib/unictype/pr_bidi_common_separator.h: Likewise.
35909         * lib/unictype/pr_bidi_control.h: Likewise.
35910         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
35911         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
35912         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
35913         * lib/unictype/pr_bidi_european_digit.h: Likewise.
35914         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
35915         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
35916         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
35917         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
35918         * lib/unictype/pr_bidi_pdf.h: Likewise.
35919         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
35920         * lib/unictype/pr_bidi_whitespace.h: Likewise.
35921         * lib/unictype/pr_combining.h: Likewise.
35922         * lib/unictype/pr_composite.h: Likewise.
35923         * lib/unictype/pr_currency_symbol.h: Likewise.
35924         * lib/unictype/pr_dash.h: Likewise.
35925         * lib/unictype/pr_decimal_digit.h: Likewise.
35926         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
35927         * lib/unictype/pr_deprecated.h: Likewise.
35928         * lib/unictype/pr_diacritic.h: Likewise.
35929         * lib/unictype/pr_extender.h: Likewise.
35930         * lib/unictype/pr_format_control.h: Likewise.
35931         * lib/unictype/pr_grapheme_base.h: Likewise.
35932         * lib/unictype/pr_grapheme_extend.h: Likewise.
35933         * lib/unictype/pr_grapheme_link.h: Likewise.
35934         * lib/unictype/pr_hex_digit.h: Likewise.
35935         * lib/unictype/pr_hyphen.h: Likewise.
35936         * lib/unictype/pr_id_continue.h: Likewise.
35937         * lib/unictype/pr_id_start.h: Likewise.
35938         * lib/unictype/pr_ideographic.h: Likewise.
35939         * lib/unictype/pr_ids_binary_operator.h: Likewise.
35940         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
35941         * lib/unictype/pr_ignorable_control.h: Likewise.
35942         * lib/unictype/pr_iso_control.h: Likewise.
35943         * lib/unictype/pr_join_control.h: Likewise.
35944         * lib/unictype/pr_left_of_pair.h: Likewise.
35945         * lib/unictype/pr_line_separator.h: Likewise.
35946         * lib/unictype/pr_logical_order_exception.h: Likewise.
35947         * lib/unictype/pr_lowercase.h: Likewise.
35948         * lib/unictype/pr_math.h: Likewise.
35949         * lib/unictype/pr_non_break.h: Likewise.
35950         * lib/unictype/pr_not_a_character.h: Likewise.
35951         * lib/unictype/pr_numeric.h: Likewise.
35952         * lib/unictype/pr_other_alphabetic.h: Likewise.
35953         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
35954         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
35955         * lib/unictype/pr_other_id_continue.h: Likewise.
35956         * lib/unictype/pr_other_id_start.h: Likewise.
35957         * lib/unictype/pr_other_lowercase.h: Likewise.
35958         * lib/unictype/pr_other_math.h: Likewise.
35959         * lib/unictype/pr_other_uppercase.h: Likewise.
35960         * lib/unictype/pr_paired_punctuation.h: Likewise.
35961         * lib/unictype/pr_paragraph_separator.h: Likewise.
35962         * lib/unictype/pr_pattern_syntax.h: Likewise.
35963         * lib/unictype/pr_pattern_white_space.h: Likewise.
35964         * lib/unictype/pr_private_use.h: Likewise.
35965         * lib/unictype/pr_punctuation.h: Likewise.
35966         * lib/unictype/pr_quotation_mark.h: Likewise.
35967         * lib/unictype/pr_radical.h: Likewise.
35968         * lib/unictype/pr_sentence_terminal.h: Likewise.
35969         * lib/unictype/pr_soft_dotted.h: Likewise.
35970         * lib/unictype/pr_space.h: Likewise.
35971         * lib/unictype/pr_terminal_punctuation.h: Likewise.
35972         * lib/unictype/pr_titlecase.h: Likewise.
35973         * lib/unictype/pr_unassigned_code_value.h: Likewise.
35974         * lib/unictype/pr_unified_ideograph.h: Likewise.
35975         * lib/unictype/pr_uppercase.h: Likewise.
35976         * lib/unictype/pr_variation_selector.h: Likewise.
35977         * lib/unictype/pr_white_space.h: Likewise.
35978         * lib/unictype/pr_xid_continue.h: Likewise.
35979         * lib/unictype/pr_xid_start.h: Likewise.
35980         * lib/unictype/pr_zero_width.h: Likewise.
35981         * lib/unictype/scripts.h: Likewise.
35982         * lib/unictype/scripts_byname.gperf: Likewise.
35983         * lib/unictype/sy_c_ident.h: Likewise.
35984         * lib/unictype/sy_c_whitespace.h: Likewise.
35985         * lib/unictype/sy_java_ident.h: Likewise.
35986         * lib/unictype/sy_java_whitespace.h: Likewise.
35987
35988         * lib/unictype/Makefile: New file.
35989         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
35990         glibc.
35991         * lib/unictype/3level.h: New file, copied from glibc.
35992         * lib/unictype/3levelbit.h: New file.
35993
35994 2007-11-11  Bruno Haible  <bruno@clisp.org>
35995
35996         * modules/gperf: New file.
35997         * modules/iconv_open (Depends-on): Add it.
35998         (Makefile.am): Remove the GPERF definition.
35999
36000 2007-11-11  Bruno Haible  <bruno@clisp.org>
36001
36002         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
36003         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
36004
36005 2007-11-11  Bruno Haible  <bruno@clisp.org>
36006
36007         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
36008         (usage): Remove function.
36009
36010 2007-11-11  Bruno Haible  <bruno@clisp.org>
36011
36012         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
36013         gl_FUNC_CEILF_LIBS.
36014         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
36015         gl_FUNC_CEIL_LIBS.
36016         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
36017         gl_FUNC_CEILL_LIBS.
36018         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
36019         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
36020         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
36021
36022 2007-11-11  Bruno Haible  <bruno@clisp.org>
36023
36024         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
36025         roundf were declared but do not exist on functions.
36026         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
36027         roundl were declared but do not exist on functions.
36028         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
36029         HAVE_FLOORL_AND_CEILL, respectively.
36030         Needed for Sun C on Solaris 10.
36031
36032 2007-11-11  Bruno Haible  <bruno@clisp.org>
36033
36034         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
36035         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
36036         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
36037         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
36038         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
36039         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
36040         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
36041         HAVE_DECL_ROUNDF.
36042         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
36043         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
36044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
36045         of HAVE_DECL_ROUND*.
36046         * modules/math (Makefile.am): Update.
36047
36048 2007-11-10  Bruno Haible  <bruno@clisp.org>
36049
36050         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
36051         ptrdiff_t as m4/intl.m4.
36052
36053 2007-11-10  Jim Meyering  <meyering@redhat.com>
36054
36055         Avoid link failure for the argmatch test.
36056         * tests/test-argmatch.c (usage): Define function to avoid a link
36057         failure: argmatch_die requires a usage function.
36058
36059 2007-11-09  Bruno Haible  <bruno@clisp.org>
36060
36061         * doc/functions/snprintf.texi: Mention BeOS deficiency.
36062         * doc/functions/vsnprintf.texi: Likewise.
36063         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
36064         with a size argument < 2.
36065
36066 2007-11-09  Bruno Haible  <bruno@clisp.org>
36067
36068         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
36069         buffer. Fixes an inefficiency introduced on 2007-11-03.
36070
36071 2007-11-09  Bruno Haible  <bruno@clisp.org>
36072
36073         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
36074         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
36075
36076 2007-11-08  Jim Meyering  <meyering@redhat.com>
36077
36078         Change cache variable name prefix "jm_" to "gl_" everywhere.
36079         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
36080         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
36081         * m4/uptime.m4: s/gl_/jm_/
36082
36083 2007-11-07  Bruno Haible  <bruno@clisp.org>
36084
36085         Update to GNU gettext 0.17.
36086         * m4/intl.m4: Update to GNU gettext 0.17.
36087         * m4/po.m4: Likewise.
36088         * modules/gettext (Files): Remove m4/ulonglong.m4.
36089         (configure.ac): Require gettext infrastructure from version 0.17.
36090
36091 2007-11-06  Bruno Haible  <bruno@clisp.org>
36092
36093         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
36094         symbolic values are not defined in a public header.
36095         * lib/freadable.c (freadable) [QNX]: Likewise.
36096         * lib/freadahead.c (freadahead) [QNX]: Likewise.
36097         * lib/freading.c (freading) [QNX]: Likewise.
36098         * lib/fseterr.c (fseterr) [QNX]: Likewise.
36099         * lib/fwritable.c (fwritable) [QNX]: Likewise.
36100         * lib/fwriting.c (fwriting) [QNX]: Likewise.
36101         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
36102         Reported by Alain Magloire.
36103
36104         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
36105
36106 2007-11-05  Bruno Haible  <bruno@clisp.org>
36107
36108         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
36109         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
36110         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
36111         Reported by Eric Blake.
36112
36113 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36114             Bruno Haible  <bruno@clisp.org>
36115
36116         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
36117         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
36118         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
36119         (malloc): Undefine also before including <stdlib.h>.
36120         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
36121         Needed on OSF/1 4.0.
36122
36123 2007-11-05  Jim Meyering  <meyering@redhat.com>
36124
36125         git-version-gen: sync from coreutils.
36126         * build-aux/git-version-gen: Add comments.
36127         Change the first '-' to '.' in the snapshot version string,
36128         e.g., 6.9-377-08144 -> 6.9.377-08144
36129         Remove first parameter.
36130         Don't declare a version "-dirty" merely because a time
36131         stamp has changed.
36132
36133 2007-11-04  Bruno Haible  <bruno@clisp.org>
36134
36135         * lib/lock.h: Protect all macro definitions containing an 'if'
36136         statement through a "do { ... } while (0)".
36137         * lib/tls.h: Likewise.
36138
36139 2007-11-04  Bruno Haible  <bruno@clisp.org>
36140
36141         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
36142
36143 2007-11-04  Bruno Haible  <bruno@clisp.org>
36144
36145         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
36146         * modules/fprintf-posix (Depends-on): Add nocrash.
36147         * modules/snprintf-posix (Depends-on): Likewise.
36148         * modules/sprintf-posix (Depends-on): Likewise.
36149         * modules/vasnprintf-posix (Depends-on): Likewise.
36150         * modules/vasprintf-posix (Depends-on): Likewise.
36151         * modules/vfprintf-posix (Depends-on): Likewise.
36152         * modules/vsnprintf-posix (Depends-on): Likewise.
36153         * modules/vsprintf-posix (Depends-on): Likewise.
36154         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36155         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36156         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36157         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36158         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36159         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36160         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36161
36162 2007-11-04  Bruno Haible  <bruno@clisp.org>
36163
36164         * modules/nocrash: New file.
36165         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
36166         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
36167
36168 2007-11-04  Bruno Haible  <bruno@clisp.org>
36169
36170         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
36171         precision handling.
36172         * tests/test-vasprintf-posix.c (test_function): Likewise.
36173         * tests/test-snprintf-posix.h (test_function): Likewise.
36174         * tests/test-sprintf-posix.h (test_function): Likewise.
36175
36176         Fix *printf behaviour for large precisions on mingw and BeOS.
36177         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
36178         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
36179         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
36180         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36181         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36182         gl_PRINTF_PRECISION and test its result. Invoke
36183         gl_PREREQ_VASNPRINTF_PRECISION.
36184         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36185         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36186         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36187         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36188         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36189         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36190         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36191         * doc/functions/fprintf.texi: Update.
36192         * doc/functions/printf.texi: Update.
36193         * doc/functions/snprintf.texi: Update.
36194         * doc/functions/sprintf.texi: Update.
36195         * doc/functions/vfprintf.texi: Update.
36196         * doc/functions/vprintf.texi: Update.
36197         * doc/functions/vsnprintf.texi: Update.
36198         * doc/functions/vsprintf.texi: Update.
36199
36200 2007-11-04  Bruno Haible  <bruno@clisp.org>
36201
36202         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
36203
36204 2007-11-04  Bruno Haible  <bruno@clisp.org>
36205
36206         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
36207         Reported by Sylvain Beucler <beuc@gnu.org>.
36208
36209 2007-11-03  Bruno Haible  <bruno@clisp.org>
36210
36211         * tests/test-fprintf-posix2.sh: New file.
36212         * tests/test-fprintf-posix2.c: New file.
36213         * modules/fprintf-posix-tests (Files): Add them.
36214         (TESTS): Add test-fprintf-posix2.sh.
36215         (configure.ac): Check for getrlimit and setrlimit.
36216         (check_PROGRAMS): Add test-fprintf-posix2.
36217
36218         * tests/test-printf-posix2.sh: New file.
36219         * tests/test-printf-posix2.c: New file.
36220         * modules/printf-posix-tests (Files): Add them.
36221         (TESTS): Add test-printf-posix2.sh.
36222         (configure.ac): Check for getrlimit and setrlimit.
36223         (check_PROGRAMS): Add test-printf-posix2.
36224
36225         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
36226         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
36227         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
36228         (decode_double): New function, copied from decode_long_double.
36229         (scale10_round_decimal_decoded): New function, extracted from
36230         scale10_round_decimal_long_double.
36231         (scale10_round_decimal_long_double): Use it.
36232         (scale10_round_decimal_double): New function.
36233         (floorlog10): New function.
36234         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
36235         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
36236         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36237         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36238         gl_PRINTF_ENOMEM and test its result. Invoke
36239         gl_PREREQ_VASNPRINTF_ENOMEM.
36240         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36241         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36242         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36243         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36244         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36245         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36246         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36247         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
36248         * modules/snprintf-posix (Depends-on): Likewise.
36249         * modules/sprintf-posix (Depends-on): Likewise.
36250         * modules/vasnprintf-posix (Depends-on): Likewise.
36251         * modules/vasprintf-posix (Depends-on): Likewise.
36252         * modules/vfprintf-posix (Depends-on): Likewise.
36253         * modules/vsnprintf-posix (Depends-on): Likewise.
36254         * modules/vsprintf-posix (Depends-on): Likewise.
36255         * doc/functions/fprintf.texi: Update.
36256         * doc/functions/printf.texi: Update.
36257         * doc/functions/snprintf.texi: Update.
36258         * doc/functions/sprintf.texi: Update.
36259         * doc/functions/vfprintf.texi: Update.
36260         * doc/functions/vprintf.texi: Update.
36261         * doc/functions/vsnprintf.texi: Update.
36262         * doc/functions/vsprintf.texi: Update.
36263
36264 2007-11-03  Bruno Haible  <bruno@clisp.org>
36265
36266         * modules/frexp-nolibm-tests: New file.
36267
36268         * modules/frexp-nolibm: New file.
36269         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
36270
36271 2007-11-03  Bruno Haible  <bruno@clisp.org>
36272
36273         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
36274         value is C99 compliant.
36275         Needed for OSF/1 5.1.
36276
36277 2007-11-03  Bruno Haible  <bruno@clisp.org>
36278
36279         Fix out-of-memory handling of vasnprintf.
36280         * lib/printf-parse.c: Include <errno.h>.
36281         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
36282         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
36283         is already set.
36284
36285 2007-11-02  Eric Blake  <ebb9@byu.net>
36286
36287         Fix tests on cygwin.
36288         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
36289
36290 2007-11-01  Bruno Haible  <bruno@clisp.org>
36291
36292         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
36293         warning.
36294         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
36295         needed for POSIX compatibility.
36296
36297 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
36298
36299         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
36300         for compatibility with GNU.
36301
36302 2007-11-01  Bruno Haible  <bruno@clisp.org>
36303
36304         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
36305         (putenv): Renamed from rpl_putenv. Change argument type from
36306         'const char *' to 'char *'.
36307         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
36308         of defining putenv in config.h, just set REPLACE_PUTENV.
36309         * modules/putenv (Depends-on): Add stdlib.
36310         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36311         (Include): Use <stdlib.h>.
36312         * lib/stdlib.in.h (putenv): New declaration.
36313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
36314         REPLACE_PUTENV.
36315         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
36316         REPLACE_PUTENV.
36317         Needed for MacOS X 10.5.0.
36318         Reported by Peter O'Gorman <peter@pogma.com>.
36319
36320 2007-11-01  Jim Meyering  <meyering@redhat.com>
36321
36322         Treat an empty date string exactly like "0".
36323         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
36324         if the remaining date string (to be parsed) is empty, use "0".
36325         Reported by Mischa Molhoek and discussed in this thread:
36326         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
36327
36328 2007-10-31  Bruno Haible  <bruno@clisp.org>
36329
36330         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
36331         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
36332         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
36333         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
36334         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
36335         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
36336
36337 2007-10-31  Bruno Haible  <bruno@clisp.org>
36338
36339         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
36340         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
36341         (AC_TYPE_LONG_LONG_INT): Use it.
36342         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
36343         it as well.
36344         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
36345         to m4/longlong.m4.
36346         * modules/stdint (Files): Remove m4/ulonglong.m4.
36347         * modules/strtoull (Files): Use m4/longlong.m4 instead of
36348         m4/ulonglong.m4.
36349         * modules/strtoumax (Files): Likewise.
36350
36351 2007-10-30  Bruno Haible  <bruno@clisp.org>
36352
36353         * modules/xvasprintf-posix: New file.
36354         Suggested by Eric Blake.
36355
36356 2007-10-30  Bruno Haible  <bruno@clisp.org>
36357
36358         * modules/xprintf-posix-tests: New file.
36359         * tests/test-xprintf-posix.sh: New file.
36360         * tests/test-xprintf-posix.c: New file.
36361         * tests/test-xfprintf-posix.c: New file.
36362
36363         * modules/xprintf-posix: New file.
36364
36365 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36366
36367         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
36368         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
36369         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
36370
36371 2007-10-29  Bruno Haible  <bruno@clisp.org>
36372
36373         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
36374         contain the special marker '_cv_'.
36375         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36376         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36377         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36378         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
36379         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36380         Reported by Ralf Wildenhues.
36381
36382 2007-10-29  Bruno Haible  <bruno@clisp.org>
36383
36384         * gnulib-tool (func_import): When --lgpl is not specified, set
36385         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
36386         GPLv3.
36387         Reported by Simon Josefsson.
36388
36389 2007-10-28  Bruno Haible  <bruno@clisp.org>
36390
36391         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
36392         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
36393         HAVE_DECL_ISFINITE.
36394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36395         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
36396         HAVE_DECL_ISFINITE.
36397
36398 2007-10-28  Bruno Haible  <bruno@clisp.org>
36399
36400         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
36401         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
36402
36403 2007-10-28  Bruno Haible  <bruno@clisp.org>
36404
36405         Fix link errors with Sun C 5.0 on Solaris 10.
36406         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
36407         function is declared but not present in the compiler's libm.
36408         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
36409         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
36410         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
36411         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
36412         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
36413         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
36414         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
36415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36416         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
36417         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
36418         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
36419         HAVE_DECL_FLOORL.
36420
36421 2007-10-28  Bruno Haible  <bruno@clisp.org>
36422
36423         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
36424         gl_FUNC_FLOORL. Cache the result.
36425         (gl_FUNC_FLOORL): Use it.
36426         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
36427         gl_FUNC_CEILL. Cache the result.
36428         (gl_FUNC_CEILL): Use it.
36429
36430         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
36431         gl_FUNC_FLOOR. Cache the result.
36432         (gl_FUNC_FLOOR): Use it.
36433         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
36434         gl_FUNC_CEIL. Cache the result.
36435         (gl_FUNC_CEIL): Use it.
36436
36437         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
36438         gl_FUNC_FLOORF. Cache the result.
36439         (gl_FUNC_FLOORF): Use it.
36440         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
36441         gl_FUNC_CEILF. Cache the result.
36442         (gl_FUNC_CEILF): Use it.
36443
36444 2007-10-28  Bruno Haible  <bruno@clisp.org>
36445
36446         * gnulib-tool: Allow specifying the LGPL version number through
36447         --lgpl=2 or --lgpl=3.
36448         (func_usage): Document --lgpl with argument.
36449         Handle --lgpl=... arguments.
36450         (func_import): Recognize also gl_LGPL calls with an argument. When
36451         --lgpl=2 is used and the module's license is just LGPL, report an
36452         error. Set sed_transform_lib_file according to the lgpl variable. In
36453         the generated files, use --lgpl or gl_LGPL invocations with argument,
36454         if necessary.
36455         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
36456         an LGPv2+ license.
36457         * doc/gnulib-tool.texi (Modified imports): Update explanation of
36458         gl_LGPL macro.
36459
36460 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36461             Bruno Haible  <bruno@clisp.org>
36462
36463         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
36464         (u16_uctomb_aux): Likewise.
36465         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
36466         !HAVE_INLINE.
36467         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
36468
36469 2007-10-28  Bruno Haible  <bruno@clisp.org>
36470
36471         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
36472         Invoke AM_GETTEXT_OPTION if it exists.
36473         * modules/vasprintf: Likewise.
36474         * modules/verror: Likewise.
36475         * modules/xprintf: Likewise.
36476         * modules/xvasprintf: Likewise.
36477
36478 2007-10-27  Ben Pfaff  <blp@gnu.org>
36479
36480         * lib/math.in.h: Define isfinite macro and prototypes for
36481         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
36482         implementations.
36483         * m4/math_h.m4: New substitutions for isfinite module.
36484         * lib/isfinite.c: New file.
36485         * m4/isfinite.m4: New file.
36486         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
36487         * modules/isfinite: New file.
36488         * modules/isfinite-tests: New file.
36489         * tests/tests-isfinite.c: New file.
36490         * doc/functions/isfinite.texi: Mention isfinite module.
36491         * MODULES.html.sh: Mention new module.
36492
36493 2007-10-27  Ben Pfaff  <blp@gnu.org>
36494
36495         Ralf Wildenhues reported that Tru64 4.0D declares the round
36496         functions but does not have definitions.
36497         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
36498         cannot be found in any library, set the output variable to
36499         "missing" instead of "".
36500         * m4/round.m4: Also use our substitute if we cannot find round in
36501         any library, even if it is declared.
36502         * m4/roundf.m4: Likewise for roundf.
36503         * m4/roundl.m4: Likewise for roundl.
36504         * lib/math.in.h: Undefine roundf, round, roundl before defining
36505         their replacements, to allow for hypothetical systems where these
36506         may be defined as macros but not available in libraries.
36507
36508 2007-10-27  Bruno Haible  <bruno@clisp.org>
36509
36510         * doc/gnulib.texi: Invoke @firstparagraphindent.
36511         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
36512         changes in gnulib.
36513         (Source changes): New section.
36514
36515 2007-10-26  Bruno Haible  <bruno@clisp.org>
36516
36517         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
36518         borrowed from autoconf.
36519
36520 2007-10-26  Bruno Haible  <bruno@clisp.org>
36521
36522         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
36523         strerror returned the empty string. Needed on HP-UX 11.00.
36524
36525 2007-10-24  Micah Cowan  <micah@cowan.name>
36526
36527         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
36528         * build-aux/bootstrap: Remove support for now-unnecessary option,
36529         --cvs-user, and envvars CVS_USER, CVS_RSH.
36530
36531 2007-10-24  Jim Meyering  <meyering@redhat.com>
36532
36533         Avoid diagnostics from sha1sum when there is no cached checksum.
36534         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
36535         if the po.s1 file hasn't been created yet.
36536
36537         * build-aux/bootstrap: Sync from coreutils:
36538         2007-10-24  Jim Meyering  <meyering@redhat.com>
36539         Get gnulib from the git repository, not from an obsolete cvs one.
36540         * build-aux/bootstrap: Suggestion from Micah Cowan.
36541         2007-10-04  Jim Meyering  <jim@meyering.net>
36542         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
36543         (update_po_files): Work also when there are no .po files in po/.
36544
36545 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
36546
36547         * README: Append ".git" to git and cg examples.
36548         Problem reported by Benoit Sigoure.
36549
36550 2007-10-23  Micah Cowan  <micah@cowan.name>
36551
36552         * users.txt: Add wget.
36553
36554 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36555
36556         Fix linking of some unistdio tests on FreeBSD.
36557         * modules/unistdio/u16-vsnprintf-tests
36558         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
36559         * modules/unistdio/u16-vsprintf-tests
36560         (test_u16_vsnprintf1_LDADD): Likewise.
36561         * modules/unistdio/u32-vsnprintf-tests
36562         (test_u32_vsnprintf1_LDADD): Likewise.
36563         * modules/unistdio/u32-vsprintf-tests
36564         (test_u32_vsprintf1_LDADD): Likewise.
36565         * modules/unistdio/u8-vsnprintf-tests
36566         (test_u8_vsnprintf1_LDADD): Likewise.
36567         * modules/unistdio/u8-vsprintf-tests
36568         (test_u8_vsprintf1_LDADD): Likewise.
36569         * modules/unistdio/ulc-vsnprintf-tests
36570         (test_ulc_vsnprintf1_LDADD): Likewise.
36571         * modules/unistdio/ulc-vsprintf-tests
36572         (test_ulc_vsprintf1_LDADD): Likewise.
36573
36574         Fix linking of some uniconv tests on FreeBSD.
36575         * modules/uniconv/u16-conv-from-enc-tests
36576         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
36577         * modules/uniconv/u16-conv-to-enc-tests
36578         (test_u16_conv_to_enc_LDADD): Likewise.
36579         * modules/uniconv/u16-strconv-from-enc-tests
36580         (test_u16_strconv_from_enc_LDADD): Likewise.
36581         * modules/uniconv/u16-strconv-to-enc-tests
36582         (test_u16_strconv_to_enc_LDADD): Likewise.
36583         * modules/uniconv/u32-conv-from-enc-tests
36584         (test_u32_conv_from_enc_LDADD): Likewise.
36585         * modules/uniconv/u32-conv-to-enc-tests
36586         (test_u32_conv_to_enc_LDADD): Likewise.
36587         * modules/uniconv/u32-strconv-from-enc-tests
36588         (test_u32_strconv_from_enc_LDADD): Likewise.
36589         * modules/uniconv/u32-strconv-to-enc-tests
36590         (test_u32_strconv_to_enc_LDADD): Likewise.
36591         * modules/uniconv/u8-conv-from-enc-tests
36592         (test_u8_conv_from_enc_LDADD): Likewise.
36593         * modules/uniconv/u8-conv-to-enc-tests
36594         (test_u8_conv_to_enc_LDADD): Likewise.
36595         * modules/uniconv/u8-strconv-from-enc-tests
36596         (test_u8_strconv_from_enc_LDADD): Likewise.
36597         * modules/uniconv/u8-strconv-to-enc-tests
36598         (test_u8_strconv_to_enc_LDADD): Likewise.
36599
36600 2007-10-22  Bruno Haible  <bruno@clisp.org>
36601
36602         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
36603         size.
36604
36605 2007-10-22  Eric Blake  <ebb9@byu.net>
36606
36607         Tweak x*printf documentation.
36608         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
36609         variable name and comments.
36610         Suggested by Bruno Haible.
36611
36612 2007-10-22  Bruno Haible  <bruno@clisp.org>
36613
36614         * lib/acl.c (copy_acl): Fix file name in comment.
36615
36616 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36617
36618         Fix Tru64 problem with stdbool.h.
36619         * lib/stdbool.in.h (false, true):
36620         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
36621         Don't declare as an enum in this situation; it runs afoul of Tru64.
36622         Problem reported by Steven M. Schweda in
36623         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
36624
36625 2007-10-22  Eric Blake  <ebb9@byu.net>
36626
36627         Also wrap vf?printf.
36628         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
36629         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
36630         (xvprintf, xvfprintf): New functions.
36631
36632 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36633
36634         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
36635         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
36636
36637         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
36638         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
36639
36640 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36641
36642         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
36643         by Bruno Haible.
36644
36645 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36646
36647         * lib/getloadavg.c
36648         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
36649         Undef `sys' after including sys/table.h, for Tru64 4.0D.
36650
36651         * tests/test-i-ring.c: Work for C89.
36652
36653 2007-10-22  Bruno Haible  <bruno@clisp.org>
36654
36655         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
36656         -1u, in preprocessor expression, so that we don't test for the bug
36657         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
36658         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
36659
36660 2007-10-22  Eric Blake  <ebb9@byu.net>
36661
36662         * tests/test-yesno.sh: Silence stderr during test.
36663
36664 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36665
36666         * modules/crypto/gc-camellia: New file.
36667
36668         * m4/gc-camellia.m4: New file.
36669
36670         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
36671
36672         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
36673
36674 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36675
36676         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
36677         --help to stdout.  Reported by sms@antinode.org (Steven
36678         M. Schweda).
36679
36680 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36681
36682         * users.txt: Fix link to libksba.
36683
36684 2007-10-21  Ben Pfaff  <blp@gnu.org>
36685
36686         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
36687         round.c roundf implementation that depends on floorf and ceilf to
36688         be tested unconditionally.
36689
36690 2007-10-21  Ben Pfaff  <blp@gnu.org>
36691
36692         * m4/check-libm-func.m4: Removed.
36693         * m4/check-math-lib.m4: New file.
36694         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
36695         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
36696         definition and lack of AC_LIBOBJ([roundf]).
36697         * m4/roundl.m4: Ditto, and similarly for roundl.
36698         * modules/round: Reference new m4 file.
36699         * modules/roundf: Ditto.
36700         * modules/roundl: Ditto.
36701         * tests/test-round2.c (main): Use ROUND instead of round.
36702         Bug report from Bruno Haible.
36703
36704 2007-10-21  Bruno Haible  <bruno@clisp.org>
36705
36706         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
36707         context.
36708
36709 2007-10-21  Bruno Haible  <bruno@clisp.org>
36710
36711         * tests/test-wcwidth.c (main): Allow negative result for some control
36712         characters.
36713
36714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
36715         Needed on OSF/1 5.1.
36716
36717 2007-10-21  Bruno Haible  <bruno@clisp.org>
36718
36719         * tests/test-floorf1.c: Include isnanf.h.
36720         (main): Use isnanf() instead of isnan().
36721         * tests/test-ceilf1.c: Include isnanf.h.
36722         (main): Use isnanf() instead of isnan().
36723         * tests/test-truncf1.c: Include isnanf.h.
36724         (main): Use isnanf() instead of isnan().
36725         * tests/test-roundf1.c: Include isnanf.h.
36726         (main): Use isnanf() instead of isnan().
36727
36728 2007-10-21  Eric Blake  <ebb9@byu.net>
36729
36730         * users.txt: Update URL for m4.
36731
36732 2007-10-21  Bruno Haible  <bruno@clisp.org>
36733
36734         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
36735
36736 2007-10-21  Bruno Haible  <bruno@clisp.org>
36737
36738         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
36739         Git's management files if the CVS files are not present.
36740
36741 2007-10-20  Bruno Haible  <bruno@clisp.org>
36742
36743         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
36744         gcc-3.4.x.
36745
36746 2007-10-20  Ben Pfaff  <blp@gnu.org>
36747
36748         * lib/math.in.h: Declare round, roundf, roundl if we are providing
36749         implementations.
36750         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
36751         * lib/round.c: New file.
36752         * lib/roundf.c: New file.
36753         * lib/roundl.c: New file.
36754         * m4/round.m4: New file.
36755         * m4/roundf.m4: New file.
36756         * m4/roundl.m4: New file.
36757         * m4/check-libm-func-m4: New file.
36758         * modules/math: Replace round, roundf, roundl related @VARS@ in
36759         math.in.h.
36760         * modules/round: New file.
36761         * modules/round-tests: New file.
36762         * modules/roundf: New file.
36763         * modules/roundf-tests: New file.
36764         * modules/roundl: New file.
36765         * modules/roundl-tests: New file.
36766         * tests/test-round1.c: New file.
36767         * tests/test-round2.c: New file.
36768         * tests/test-roundf1.c: New file.
36769         * tests/test-roundf2.c: New file.
36770         * tests/test-roundl.c: New file.
36771         * doc/functions/round.texi: Mention round module.
36772         * doc/functions/roundf.texi: Mention roundf module.
36773         * doc/functions/roundl.texi: Mention roundl module.
36774         * MODULES.html.sh: Mention new modules.
36775         Thanks to Bruno Haible for suggestions.
36776
36777 2007-10-20  Jim Meyering  <meyering@redhat.com>
36778
36779         * lib/xprintf.c: Include <config.h> unconditionally.
36780
36781         Change xprintf's license to GPL.
36782         * modules/xprintf (License): s/LGPL/GPL/, since this module
36783         depends on modules (exit and exitfail) which are GPL.
36784         Suggestion from Bruno Haible.
36785
36786         xprintf fixes.
36787         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
36788         Use a clearer diagnostic.
36789         Patch from Bruno Haible.
36790
36791 2007-10-20  Bruno Haible  <bruno@clisp.org>
36792
36793         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
36794         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
36795         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36796
36797 2007-10-20  Bruno Haible  <bruno@clisp.org>
36798
36799         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
36800         precision in the comparison result > x - 1 or similar.
36801         * tests/test-ceilf2.c (correct_result_p): Likewise.
36802         * tests/test-truncf2.c (correct_result_p): Likewise.
36803         * tests/test-trunc2.c (correct_result_p): Likewise.
36804         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36805
36806 2007-10-20  Bruno Haible  <bruno@clisp.org>
36807
36808         * modules/ceil: New file.
36809         * m4/ceil.m4: New file.
36810         * doc/functions/ceil.texi: Mention the 'ceil' module.
36811
36812 2007-10-20  Bruno Haible  <bruno@clisp.org>
36813
36814         * modules/floor: New file.
36815         * m4/floor.m4: New file.
36816         * doc/functions/floor.texi: Mention the 'floor' module.
36817
36818 2007-10-20  Bruno Haible  <bruno@clisp.org>
36819
36820         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
36821         of %a.
36822         * modules/floorf-tests (Depends-on): Likewise.
36823         * modules/truncf-tests (Depends-on): Likewise.
36824         * modules/trunc-tests (Depends-on): Likewise.
36825         Reported by Ben Pfaff.
36826
36827 2007-10-19  Jim Meyering  <meyering@redhat.com>
36828
36829         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
36830         Don't bother testing specific errno values.  Just test ferror.
36831
36832         New module: xprintf
36833         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
36834
36835 2007-10-19  Bruno Haible  <bruno@clisp.org>
36836
36837         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
36838         syntax.
36839         * modules/javaexec (Makefile.am): Likewise.
36840         * modules/relocatable-prog (Makefile.am): Likewise.
36841         Suggested by Jim Meyering.
36842
36843 2007-10-18  Bruno Haible  <bruno@clisp.org>
36844
36845         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
36846         Reported by Jim Meyering.
36847
36848 2007-10-18  Eric Blake  <ebb9@byu.net>
36849
36850         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
36851
36852 2007-10-18  Bruno Haible  <bruno@clisp.org>
36853
36854         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
36855         the format string into writable memory. Needed in Fortify conditions.
36856
36857 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
36858             Bruno Haible  <bruno@clisp.org>
36859
36860         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
36861         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
36862         * modules/trim (Depends-on): Add mbchar.
36863         (configure.ac): Add gl_FUNC_MBRTOWC.
36864         (Makefile.am): Augment lib_SOURCES.
36865
36866 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
36867
36868         Modify glob.c to use fstatat and dirfd, to simplify it.
36869         Suggested by Eric Blake.
36870         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
36871         Don't include <stdbool.h>; not used.
36872         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
36873         (link_exists_p): Simplify implementation, since we can now assume
36874         dirfd and fstatat.
36875         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
36876
36877 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36878
36879         * gnulib-tool (func_get_dependencies): Fix sed script to
36880         match only tests.
36881
36882 2007-10-17  Bruno Haible  <bruno@clisp.org>
36883
36884         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
36885         allow locale names without encoding suffix.
36886         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36887         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36888
36889 2007-10-16  Bruno Haible  <bruno@clisp.org>
36890
36891         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
36892         * lib/getgroups.c (getgroups): Likewise.
36893         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
36894
36895 2007-10-16  Bruno Haible  <bruno@clisp.org>
36896
36897         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
36898         * modules/malloc-posix (License): Likewise.
36899         * modules/realloc-posix (License): Likewise.
36900         * modules/calloc-posix (License): Likewise.
36901         * modules/intprops (License): Change from GPL to LGPL, with
36902         Paul Eggert's approval.
36903
36904 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36905
36906         Merge glibc changes into lib/glob.c.
36907
36908         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
36909         2007-10-15 04:59:03 UTC.  Here are the changes:
36910
36911         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
36912
36913         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
36914
36915         * lib/glob.c: Add some branch prediction throughout.
36916
36917         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
36918
36919         [BZ #5103]
36920         * lib/glob.c (glob): Recognize patterns starting \/.
36921
36922         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
36923
36924         [BZ #3996]
36925         * lib/glob.c (attribute_hidden): Define if not defined.
36926         (glob): Unescape dirname, filename or username when needed and not
36927         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
36928         is NULL.  Handle unescaped [ in pattern without closing ].
36929         Don't pass GLOB_CHECK down to recursive glob for directories.
36930         (__glob_pattern_type): New function.
36931         (__glob_pattern_p): Implement using __glob_pattern_type.
36932         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
36933         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
36934         Remove unreachable code.
36935
36936         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
36937
36938         * lib/glob.c (glob_in_dir): Add some comments and asserts to
36939         explain why there are no leaks.
36940
36941         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
36942
36943         [BZ #3253]
36944         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
36945         time, rather allocate increasingly bigger arrays of pointers, if
36946         possible with alloca, if too large with malloc.
36947
36948 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36949
36950         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
36951         Problem reported by H.Merijn Brand in
36952         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
36953         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
36954         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
36955
36956 2007-10-15  Bruno Haible  <bruno@clisp.org>
36957
36958         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
36959         with explicit rpl_ prefix.
36960         * lib/fopen.c (fopen): Likewise.
36961         * lib/freopen.c (freopen): Likewise.
36962         * lib/iconv.c (iconv): Likewise.
36963         * lib/iconv_close.c (iconv_close): Likewise.
36964
36965 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36966
36967         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
36968
36969 2007-10-15  Bruno Haible  <bruno@clisp.org>
36970
36971         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
36972         <stddef.h> instead of <stdlib.h> since we only need NULL.
36973         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36974
36975 2007-10-15  Bruno Haible  <bruno@clisp.org>
36976
36977         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
36978         Replace paragraph talking about LIBOBJS.
36979         Reported by Colin Watson <cjwatson@debian.org>.
36980
36981 2007-10-15  Bruno Haible  <bruno@clisp.org>
36982
36983         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
36984         <stdlib.h> before using NULL.
36985
36986 2007-10-15  Simon Josefsson  <simon@josefsson.org>
36987
36988         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
36989         Reported by Albert Chin <china@thewrittenword.com>.
36990
36991 2007-10-14  Bruno Haible  <bruno@clisp.org>
36992
36993         * modules/iconv_open-utf-tests: New file.
36994         * tests/test-iconv-utf.c: New file.
36995
36996         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
36997         * modules/iconv_open-utf: New file.
36998         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
36999         (iconv, iconv_close): New declarations.
37000         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
37001         be defined.
37002         (iconv_open): Add special handling of conversion between UTF-8 and
37003         UTF-{16,32}{BE,LE}.
37004         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
37005         * lib/iconv_close.c: New file.
37006         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
37007         gl_FUNC_ICONV_OPEN.
37008         (gl_FUNC_ICONV_OPEN): Use it.
37009         (gl_FUNC_ICONV_OPEN_UTF): New macro.
37010         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
37011         and REPLACE_ICONV_UTF.
37012         * modules/iconv_open (Depends-on): Add c-strcase.
37013         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
37014         ICONV_CONST.
37015         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
37016
37017 2007-10-13  Albert Chin  <china@thewrittenword.com>
37018             Bruno Haible  <bruno@clisp.org>
37019
37020         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
37021         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
37022
37023 2007-10-13  Bruno Haible  <bruno@clisp.org>
37024
37025         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
37026         defined, use the ISO C99 inline semantics.
37027         * lib/argp.h (ARGP_EI): Likewise.
37028
37029 2007-10-13  Bruno Haible  <bruno@clisp.org>
37030
37031         Handle 'inline' change in gcc 4.3.0.
37032         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
37033         argp_fmtstream_write, argp_fmtstream_set_lmargin,
37034         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
37035         argp_fmtstream_point): Disable 'extern' declaration if the function
37036         definition is going to be provided inline.
37037         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
37038         semantics, not the ISO C99 inline semantics.
37039         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
37040         'extern' declaration if the function definition is going to be provided
37041         inline.
37042         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
37043         the GNU C inline semantics, not the ISO C99 inline semantics. With
37044         GCC 4.2, avoid a warning.
37045
37046 2007-10-13  Bruno Haible  <bruno@clisp.org>
37047
37048         * lib/freading.h (freading): Enable the use of __freading for
37049         glibc >= 2.7.
37050         * lib/freading.c (freading): Likewise.
37051
37052 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
37053
37054         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
37055         "warning: C99 inline functions are not supported; using GNU89".
37056
37057 2007-10-12  Bruno Haible  <bruno@clisp.org>
37058
37059         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
37060         of 2.
37061         * tests/test-ceilf2.c: New file.
37062         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
37063
37064         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
37065         * modules/ceilf-tests: Update.
37066
37067 2007-10-12  Bruno Haible  <bruno@clisp.org>
37068
37069         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
37070         of 2.
37071         * tests/test-floorf2.c: New file.
37072         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
37073
37074         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
37075         * modules/floorf-tests: Update.
37076
37077 2007-10-12  Bruno Haible  <bruno@clisp.org>
37078
37079         * tests/test-trunc2.c: New file.
37080         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
37081
37082         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
37083         * modules/trunc-tests: Update.
37084
37085 2007-10-12  Bruno Haible  <bruno@clisp.org>
37086
37087         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
37088         of 2.
37089         * tests/test-truncf2.c: New file.
37090         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
37091
37092         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
37093         * modules/truncf-tests: Update.
37094
37095 2007-10-11  Eric Blake  <ebb9@byu.net>
37096
37097         Don't claim strerror is broken on Interix.
37098         * doc/functions/strerror.texi (strerror): Known broken systems are
37099         now Solaris 8, and not Interix.
37100         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
37101         Interix on cross-compile.
37102         Reported by Martin Koeppe in
37103         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
37104
37105 2007-10-11  Bruno Haible  <bruno@clisp.org>
37106
37107         * modules/i-ring-tests: New file.
37108         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
37109         instead of assert.
37110
37111 2007-10-11  Bruno Haible  <bruno@clisp.org>
37112
37113         * modules/filenamecat-tests: New file.
37114         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
37115         * lib/filenamecat.c: Remove test code.
37116
37117 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
37118
37119         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
37120
37121         * lib/strerror.c: Include <string.h> always, to test interface,
37122         and to remove the need for the dummy.
37123         Include intprops.h to compute width instead of doing it ourselves
37124         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
37125         (strerror): Define it to return NULL if there's no system strerror.
37126         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
37127         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
37128         ancient pre-strerror Unix systems well any more.  Saying "unknown
37129         system error" is enough.
37130         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
37131         simpler strerror.c implementation.
37132         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
37133         Simplify the tests to reflect the simpler strerror implementation.
37134         * modules/strerror (Depends-on): Add intprops.
37135
37136 2007-10-09  Eric Blake  <ebb9@byu.net>
37137
37138         Silence test-fpending.
37139         * modules/fpending-tests (Files): Add wrapper script.
37140         * tests/test-fpending.sh: New file.
37141
37142 2007-10-09  Bruno Haible  <bruno@clisp.org>
37143
37144         * MODULES.html.sh (func_module): Don't create a hyperlink for
37145         function names like 'printf_frexp'.
37146         (Misc): Add crc, memxor.
37147         (Characteristics of floating types): New section.
37148         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
37149         isnanf-nolibm, signbit, trunc, truncf, truncl.
37150         (Enhancements for ISO C 99 functions): New subsection Input/output.
37151         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
37152         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
37153         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
37154         (Compatibility checks for POSIX:2001 functions): Add clock-time.
37155         (Enhancements for POSIX:2001 functions): Add chdir-long.
37156         (File system functions): Add areadlink, chdir-safer, read-file.
37157         Remove cycle-check.
37158         (File system as inode set): New section.
37159         (Date and time): Add gethrxtime.
37160         (Multithreading): Add openmp.
37161         (Internationalization functions): Add localename.
37162         (Unicode string functions): Add unistr/u*-mbsnlen.
37163         (Support for maintaining and releasing projects): Add git-version-gen.
37164         (Lone files): Remove directories.
37165
37166 2007-10-08  Ben Pfaff  <blp@gnu.org>
37167
37168         * lib/xmalloca.h: Fix typo in comment.
37169
37170 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
37171
37172         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
37173         when avoiding problems with integer overflow.  Use a portable test
37174         instead.
37175
37176 2007-10-08  Simon Josefsson  <simon@josefsson.org>
37177
37178         * modules/dummy (License): Change to LGPLv2+.
37179         * modules/float (License): Likewise
37180         * modules/realloc (License): Likewise
37181         * modules/stdlib (License): Likewise
37182
37183 2007-10-07  Bruno Haible  <bruno@clisp.org>
37184
37185         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
37186         * floor.c (TWO_MANT_DIG): Likewise.
37187         * ceil.c (TWO_MANT_DIG): Likewise.
37188         Reported by Ben Pfaff.
37189
37190 2007-10-07  Bruno Haible  <bruno@clisp.org>
37191
37192         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
37193         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
37194         * lib/frexp.c (FUNC): Likewise.
37195         * lib/printf-frexp.h (printf_frexp): Likewise.
37196         * lib/printf-frexpl.h (printf_frexpl): Likewise.
37197         * lib/printf-frexp.c (FUNC): Likewise.
37198         Suggested by Jim Meyering.
37199
37200 2007-10-07  Jim Meyering  <meyering@redhat.com>
37201
37202         Make xnanosleep's integer overflow test more robust.
37203         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
37204         so that gcc-4.3.0 doesn't optimize away this test for overflow.
37205
37206 2007-10-07  Bruno Haible  <bruno@clisp.org>
37207
37208         * NEWS: Mention the license change.
37209
37210         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
37211         abbreviations in the modules files.
37212
37213         Change copyright notice from GPLv2+ to GPLv3+.
37214         * README: Change copyright notice.
37215         * MODULES.html.sh: Likewise.
37216         * build-aux/bootstrap.conf: Likewise.
37217         * build-aux/config.libpath: Likewise.
37218         * build-aux/csharpcomp.sh.in: Likewise.
37219         * build-aux/csharpexec.sh.in: Likewise.
37220         * build-aux/install-reloc: Likewise.
37221         * build-aux/javacomp.sh.in: Likewise.
37222         * build-aux/javaexec.sh.in: Likewise.
37223         * build-aux/ldd.sh.in: Likewise.
37224         * build-aux/reloc-ldflags: Likewise.
37225         * build-aux/relocatable.sh.in: Likewise.
37226         * build-aux/x-to-1.in: Likewise.
37227         * check-module: Likewise.
37228         * config/srclistvars.sh: Likewise.
37229         * gnulib-tool: Likewise.
37230         * lib/acl-internal.h: Likewise.
37231         * lib/acl.c: Likewise.
37232         * lib/acl.h: Likewise.
37233         * lib/acl_entries.c: Likewise.
37234         * lib/areadlink-with-size.c: Likewise.
37235         * lib/areadlink.c: Likewise.
37236         * lib/areadlink.h: Likewise.
37237         * lib/argmatch.c: Likewise.
37238         * lib/argmatch.h: Likewise.
37239         * lib/argp-ba.c: Likewise.
37240         * lib/argp-eexst.c: Likewise.
37241         * lib/argp-fmtstream.c: Likewise.
37242         * lib/argp-fmtstream.h: Likewise.
37243         * lib/argp-fs-xinl.c: Likewise.
37244         * lib/argp-help.c: Likewise.
37245         * lib/argp-namefrob.h: Likewise.
37246         * lib/argp-parse.c: Likewise.
37247         * lib/argp-pin.c: Likewise.
37248         * lib/argp-pv.c: Likewise.
37249         * lib/argp-pvh.c: Likewise.
37250         * lib/argp-xinl.c: Likewise.
37251         * lib/argp.h: Likewise.
37252         * lib/at-func.c: Likewise.
37253         * lib/atanl.c: Likewise.
37254         * lib/backupfile.c: Likewise.
37255         * lib/backupfile.h: Likewise.
37256         * lib/basename.c: Likewise.
37257         * lib/binary-io.h: Likewise.
37258         * lib/byteswap.in.h: Likewise.
37259         * lib/c-stack.c: Likewise.
37260         * lib/c-stack.h: Likewise.
37261         * lib/c-strcasestr.c: Likewise.
37262         * lib/c-strcasestr.h: Likewise.
37263         * lib/c-strstr.c: Likewise.
37264         * lib/c-strstr.h: Likewise.
37265         * lib/c-strtod.c: Likewise.
37266         * lib/calloc.c: Likewise.
37267         * lib/canon-host.c: Likewise.
37268         * lib/canon-host.h: Likewise.
37269         * lib/canonicalize-lgpl.c: Likewise.
37270         * lib/canonicalize.c: Likewise.
37271         * lib/canonicalize.h: Likewise.
37272         * lib/ceil.c: Likewise.
37273         * lib/ceilf.c: Likewise.
37274         * lib/ceill.c: Likewise.
37275         * lib/chdir-long.c: Likewise.
37276         * lib/chdir-long.h: Likewise.
37277         * lib/chdir-safer.c: Likewise.
37278         * lib/chdir-safer.h: Likewise.
37279         * lib/chown.c: Likewise.
37280         * lib/classpath.c: Likewise.
37281         * lib/classpath.h: Likewise.
37282         * lib/clean-temp.c: Likewise.
37283         * lib/clean-temp.h: Likewise.
37284         * lib/cloexec.c: Likewise.
37285         * lib/close-stream.c: Likewise.
37286         * lib/closein.c: Likewise.
37287         * lib/closein.h: Likewise.
37288         * lib/closeout.c: Likewise.
37289         * lib/closeout.h: Likewise.
37290         * lib/concat-filename.c: Likewise.
37291         * lib/copy-file.c: Likewise.
37292         * lib/copy-file.h: Likewise.
37293         * lib/count-one-bits.h: Likewise.
37294         * lib/crc.c: Likewise.
37295         * lib/crc.h: Likewise.
37296         * lib/creat-safer.c: Likewise.
37297         * lib/csharpcomp.c: Likewise.
37298         * lib/csharpcomp.h: Likewise.
37299         * lib/csharpexec.c: Likewise.
37300         * lib/csharpexec.h: Likewise.
37301         * lib/cycle-check.c: Likewise.
37302         * lib/cycle-check.h: Likewise.
37303         * lib/diacrit.c: Likewise.
37304         * lib/diacrit.h: Likewise.
37305         * lib/diffseq.h: Likewise.
37306         * lib/dirchownmod.c: Likewise.
37307         * lib/dirent.in.h: Likewise.
37308         * lib/dirfd.c: Likewise.
37309         * lib/dirfd.h: Likewise.
37310         * lib/dirname.c: Likewise.
37311         * lib/dirname.h: Likewise.
37312         * lib/dummy.c: Likewise.
37313         * lib/dup-safer.c: Likewise.
37314         * lib/dup2.c: Likewise.
37315         * lib/eealloc.h: Likewise.
37316         * lib/error.c: Likewise.
37317         * lib/error.h: Likewise.
37318         * lib/euidaccess.c: Likewise.
37319         * lib/exclude.c: Likewise.
37320         * lib/exclude.h: Likewise.
37321         * lib/execute.c: Likewise.
37322         * lib/execute.h: Likewise.
37323         * lib/exitfail.c: Likewise.
37324         * lib/exitfail.h: Likewise.
37325         * lib/expl.c: Likewise.
37326         * lib/fatal-signal.c: Likewise.
37327         * lib/fatal-signal.h: Likewise.
37328         * lib/fbufmode.c: Likewise.
37329         * lib/fbufmode.h: Likewise.
37330         * lib/fchdir.c: Likewise.
37331         * lib/fchmodat.c: Likewise.
37332         * lib/fchownat.c: Likewise.
37333         * lib/fcntl--.h: Likewise.
37334         * lib/fcntl-safer.h: Likewise.
37335         * lib/fcntl.in.h: Likewise.
37336         * lib/fd-safer.c: Likewise.
37337         * lib/fflush.c: Likewise.
37338         * lib/file-has-acl.c: Likewise.
37339         * lib/file-set.c: Likewise.
37340         * lib/file-type.c: Likewise.
37341         * lib/file-type.h: Likewise.
37342         * lib/fileblocks.c: Likewise.
37343         * lib/filemode.c: Likewise.
37344         * lib/filemode.h: Likewise.
37345         * lib/filename.h: Likewise.
37346         * lib/filenamecat.c: Likewise.
37347         * lib/filenamecat.h: Likewise.
37348         * lib/findprog.c: Likewise.
37349         * lib/findprog.h: Likewise.
37350         * lib/float.in.h: Likewise.
37351         * lib/floor.c: Likewise.
37352         * lib/floorf.c: Likewise.
37353         * lib/floorl.c: Likewise.
37354         * lib/fopen-safer.c: Likewise.
37355         * lib/fopen.c: Likewise.
37356         * lib/fpending.c: Likewise.
37357         * lib/fpending.h: Likewise.
37358         * lib/fprintf.c: Likewise.
37359         * lib/fprintftime.h: Likewise.
37360         * lib/fpucw.h: Likewise.
37361         * lib/fpurge.c: Likewise.
37362         * lib/fpurge.h: Likewise.
37363         * lib/freadable.c: Likewise.
37364         * lib/freadable.h: Likewise.
37365         * lib/freadahead.c: Likewise.
37366         * lib/freadahead.h: Likewise.
37367         * lib/freading.c: Likewise.
37368         * lib/freading.h: Likewise.
37369         * lib/free.c: Likewise.
37370         * lib/freopen.c: Likewise.
37371         * lib/frexp.c: Likewise.
37372         * lib/frexpl.c: Likewise.
37373         * lib/fseek.c: Likewise.
37374         * lib/fseterr.c: Likewise.
37375         * lib/fseterr.h: Likewise.
37376         * lib/fstatat.c: Likewise.
37377         * lib/fstrcmp.c: Likewise.
37378         * lib/fstrcmp.h: Likewise.
37379         * lib/fsusage.c: Likewise.
37380         * lib/fsusage.h: Likewise.
37381         * lib/ftell.c: Likewise.
37382         * lib/ftello.c: Likewise.
37383         * lib/fts-cycle.c: Likewise.
37384         * lib/fts.c: Likewise.
37385         * lib/fts_.h: Likewise.
37386         * lib/full-read.c: Likewise.
37387         * lib/full-read.h: Likewise.
37388         * lib/full-write.c: Likewise.
37389         * lib/full-write.h: Likewise.
37390         * lib/fwritable.c: Likewise.
37391         * lib/fwritable.h: Likewise.
37392         * lib/fwriteerror.c: Likewise.
37393         * lib/fwriteerror.h: Likewise.
37394         * lib/fwriting.c: Likewise.
37395         * lib/fwriting.h: Likewise.
37396         * lib/gcd.c: Likewise.
37397         * lib/gcd.h: Likewise.
37398         * lib/getcwd.c: Likewise.
37399         * lib/getdate.h: Likewise.
37400         * lib/getdate.y: Likewise.
37401         * lib/getdomainname.c: Likewise.
37402         * lib/getdomainname.h: Likewise.
37403         * lib/getgroups.c: Likewise.
37404         * lib/gethostname.c: Likewise.
37405         * lib/gethrxtime.c: Likewise.
37406         * lib/gethrxtime.h: Likewise.
37407         * lib/getloadavg.c: Likewise.
37408         * lib/getndelim2.c: Likewise.
37409         * lib/getndelim2.h: Likewise.
37410         * lib/getnline.c: Likewise.
37411         * lib/getnline.h: Likewise.
37412         * lib/getopt.c: Likewise.
37413         * lib/getopt.in.h: Likewise.
37414         * lib/getopt1.c: Likewise.
37415         * lib/getopt_int.h: Likewise.
37416         * lib/getpagesize.h: Likewise.
37417         * lib/getsubopt.c: Likewise.
37418         * lib/gettime.c: Likewise.
37419         * lib/getugroups.c: Likewise.
37420         * lib/getugroups.h: Likewise.
37421         * lib/getusershell.c: Likewise.
37422         * lib/gl_anyavltree_list1.h: Likewise.
37423         * lib/gl_anyavltree_list2.h: Likewise.
37424         * lib/gl_anyhash_list1.h: Likewise.
37425         * lib/gl_anyhash_list2.h: Likewise.
37426         * lib/gl_anylinked_list1.h: Likewise.
37427         * lib/gl_anylinked_list2.h: Likewise.
37428         * lib/gl_anyrbtree_list1.h: Likewise.
37429         * lib/gl_anyrbtree_list2.h: Likewise.
37430         * lib/gl_anytree_list1.h: Likewise.
37431         * lib/gl_anytree_list2.h: Likewise.
37432         * lib/gl_anytree_oset.h: Likewise.
37433         * lib/gl_anytreehash_list1.h: Likewise.
37434         * lib/gl_anytreehash_list2.h: Likewise.
37435         * lib/gl_array_list.c: Likewise.
37436         * lib/gl_array_list.h: Likewise.
37437         * lib/gl_array_oset.c: Likewise.
37438         * lib/gl_array_oset.h: Likewise.
37439         * lib/gl_avltree_list.c: Likewise.
37440         * lib/gl_avltree_list.h: Likewise.
37441         * lib/gl_avltree_oset.c: Likewise.
37442         * lib/gl_avltree_oset.h: Likewise.
37443         * lib/gl_avltreehash_list.c: Likewise.
37444         * lib/gl_avltreehash_list.h: Likewise.
37445         * lib/gl_carray_list.c: Likewise.
37446         * lib/gl_carray_list.h: Likewise.
37447         * lib/gl_linked_list.c: Likewise.
37448         * lib/gl_linked_list.h: Likewise.
37449         * lib/gl_linkedhash_list.c: Likewise.
37450         * lib/gl_linkedhash_list.h: Likewise.
37451         * lib/gl_list.c: Likewise.
37452         * lib/gl_list.h: Likewise.
37453         * lib/gl_oset.c: Likewise.
37454         * lib/gl_oset.h: Likewise.
37455         * lib/gl_rbtree_list.c: Likewise.
37456         * lib/gl_rbtree_list.h: Likewise.
37457         * lib/gl_rbtree_oset.c: Likewise.
37458         * lib/gl_rbtree_oset.h: Likewise.
37459         * lib/gl_rbtreehash_list.c: Likewise.
37460         * lib/gl_rbtreehash_list.h: Likewise.
37461         * lib/gl_sublist.c: Likewise.
37462         * lib/gl_sublist.h: Likewise.
37463         * lib/group-member.c: Likewise.
37464         * lib/group-member.h: Likewise.
37465         * lib/hard-locale.c: Likewise.
37466         * lib/hard-locale.h: Likewise.
37467         * lib/hash-pjw.c: Likewise.
37468         * lib/hash-pjw.h: Likewise.
37469         * lib/hash-triple.c: Likewise.
37470         * lib/hash.c: Likewise.
37471         * lib/hash.h: Likewise.
37472         * lib/human.c: Likewise.
37473         * lib/human.h: Likewise.
37474         * lib/i-ring.c: Likewise.
37475         * lib/i-ring.h: Likewise.
37476         * lib/idcache.c: Likewise.
37477         * lib/imaxabs.c: Likewise.
37478         * lib/imaxdiv.c: Likewise.
37479         * lib/inet_pton.c: Likewise.
37480         * lib/inet_pton.h: Likewise.
37481         * lib/intprops.h: Likewise.
37482         * lib/inttostr.c: Likewise.
37483         * lib/inttostr.h: Likewise.
37484         * lib/inttypes.in.h: Likewise.
37485         * lib/isapipe.c: Likewise.
37486         * lib/isdir.c: Likewise.
37487         * lib/isnan.c: Likewise.
37488         * lib/isnan.h: Likewise.
37489         * lib/isnanf.c: Likewise.
37490         * lib/isnanf.h: Likewise.
37491         * lib/isnanl-nolibm.h: Likewise.
37492         * lib/isnanl.c: Likewise.
37493         * lib/isnanl.h: Likewise.
37494         * lib/javacomp.c: Likewise.
37495         * lib/javacomp.h: Likewise.
37496         * lib/javaexec.c: Likewise.
37497         * lib/javaexec.h: Likewise.
37498         * lib/javaversion.c: Likewise.
37499         * lib/javaversion.h: Likewise.
37500         * lib/javaversion.java: Likewise.
37501         * lib/lbrkprop.h: Likewise.
37502         * lib/lchmod.h: Likewise.
37503         * lib/lchown.c: Likewise.
37504         * lib/ldexpl.c: Likewise.
37505         * lib/linebreak.c: Likewise.
37506         * lib/linebreak.h: Likewise.
37507         * lib/linebuffer.c: Likewise.
37508         * lib/linebuffer.h: Likewise.
37509         * lib/locale.in.h: Likewise.
37510         * lib/logl.c: Likewise.
37511         * lib/long-options.c: Likewise.
37512         * lib/long-options.h: Likewise.
37513         * lib/lstat.c: Likewise.
37514         * lib/lstat.h: Likewise.
37515         * lib/math.in.h: Likewise.
37516         * lib/mbchar.c: Likewise.
37517         * lib/mbchar.h: Likewise.
37518         * lib/mbfile.h: Likewise.
37519         * lib/mbiter.h: Likewise.
37520         * lib/mbscasecmp.c: Likewise.
37521         * lib/mbscasestr.c: Likewise.
37522         * lib/mbschr.c: Likewise.
37523         * lib/mbscspn.c: Likewise.
37524         * lib/mbslen.c: Likewise.
37525         * lib/mbsncasecmp.c: Likewise.
37526         * lib/mbsnlen.c: Likewise.
37527         * lib/mbspbrk.c: Likewise.
37528         * lib/mbspcasecmp.c: Likewise.
37529         * lib/mbsrchr.c: Likewise.
37530         * lib/mbssep.c: Likewise.
37531         * lib/mbsspn.c: Likewise.
37532         * lib/mbsstr.c: Likewise.
37533         * lib/mbstok_r.c: Likewise.
37534         * lib/mbswidth.c: Likewise.
37535         * lib/mbswidth.h: Likewise.
37536         * lib/mbuiter.h: Likewise.
37537         * lib/memcasecmp.c: Likewise.
37538         * lib/memcasecmp.h: Likewise.
37539         * lib/memchr.c: Likewise.
37540         * lib/memcmp.c: Likewise.
37541         * lib/memcoll.c: Likewise.
37542         * lib/memcoll.h: Likewise.
37543         * lib/memcpy.c: Likewise.
37544         * lib/memrchr.c: Likewise.
37545         * lib/mkancesdirs.c: Likewise.
37546         * lib/mkdir-p.c: Likewise.
37547         * lib/mkdir-p.h: Likewise.
37548         * lib/mkdir.c: Likewise.
37549         * lib/mkdirat.c: Likewise.
37550         * lib/mkdtemp.c: Likewise.
37551         * lib/mkstemp-safer.c: Likewise.
37552         * lib/mkstemp.c: Likewise.
37553         * lib/modechange.c: Likewise.
37554         * lib/modechange.h: Likewise.
37555         * lib/mountlist.c: Likewise.
37556         * lib/mountlist.h: Likewise.
37557         * lib/mpsort.c: Likewise.
37558         * lib/nanosleep.c: Likewise.
37559         * lib/obstack.c: Likewise.
37560         * lib/obstack.h: Likewise.
37561         * lib/open-safer.c: Likewise.
37562         * lib/open.c: Likewise.
37563         * lib/openat-die.c: Likewise.
37564         * lib/openat-priv.h: Likewise.
37565         * lib/openat-proc.c: Likewise.
37566         * lib/openat.c: Likewise.
37567         * lib/openat.h: Likewise.
37568         * lib/pagealign_alloc.c: Likewise.
37569         * lib/pagealign_alloc.h: Likewise.
37570         * lib/physmem.c: Likewise.
37571         * lib/physmem.h: Likewise.
37572         * lib/pipe-safer.c: Likewise.
37573         * lib/pipe.c: Likewise.
37574         * lib/pipe.h: Likewise.
37575         * lib/posixtm.c: Likewise.
37576         * lib/posixtm.h: Likewise.
37577         * lib/posixver.c: Likewise.
37578         * lib/printf-frexp.c: Likewise.
37579         * lib/printf-frexp.h: Likewise.
37580         * lib/printf-frexpl.c: Likewise.
37581         * lib/printf-frexpl.h: Likewise.
37582         * lib/printf.c: Likewise.
37583         * lib/progname.c: Likewise.
37584         * lib/progname.h: Likewise.
37585         * lib/progreloc.c: Likewise.
37586         * lib/putenv.c: Likewise.
37587         * lib/quote.c: Likewise.
37588         * lib/quote.h: Likewise.
37589         * lib/quotearg.c: Likewise.
37590         * lib/quotearg.h: Likewise.
37591         * lib/raise.c: Likewise.
37592         * lib/readline.c: Likewise.
37593         * lib/readline.h: Likewise.
37594         * lib/readlink.c: Likewise.
37595         * lib/readtokens.c: Likewise.
37596         * lib/readtokens.h: Likewise.
37597         * lib/readtokens0.c: Likewise.
37598         * lib/readtokens0.h: Likewise.
37599         * lib/readutmp.c: Likewise.
37600         * lib/readutmp.h: Likewise.
37601         * lib/realloc.c: Likewise.
37602         * lib/relocwrapper.c: Likewise.
37603         * lib/rename-dest-slash.c: Likewise.
37604         * lib/rename.c: Likewise.
37605         * lib/rmdir.c: Likewise.
37606         * lib/rpmatch.c: Likewise.
37607         * lib/safe-read.c: Likewise.
37608         * lib/safe-read.h: Likewise.
37609         * lib/safe-write.c: Likewise.
37610         * lib/safe-write.h: Likewise.
37611         * lib/same-inode.h: Likewise.
37612         * lib/same.c: Likewise.
37613         * lib/same.h: Likewise.
37614         * lib/save-cwd.c: Likewise.
37615         * lib/save-cwd.h: Likewise.
37616         * lib/savedir.c: Likewise.
37617         * lib/savedir.h: Likewise.
37618         * lib/savewd.c: Likewise.
37619         * lib/savewd.h: Likewise.
37620         * lib/search.in.h: Likewise.
37621         * lib/setenv.c: Likewise.
37622         * lib/setenv.h: Likewise.
37623         * lib/settime.c: Likewise.
37624         * lib/sh-quote.c: Likewise.
37625         * lib/sh-quote.h: Likewise.
37626         * lib/sig2str.c: Likewise.
37627         * lib/sig2str.h: Likewise.
37628         * lib/signal.in.h: Likewise.
37629         * lib/signbitd.c: Likewise.
37630         * lib/signbitf.c: Likewise.
37631         * lib/signbitl.c: Likewise.
37632         * lib/sigprocmask.c: Likewise.
37633         * lib/sincosl.c: Likewise.
37634         * lib/sleep.c: Likewise.
37635         * lib/sprintf.c: Likewise.
37636         * lib/sqrtl.c: Likewise.
37637         * lib/stat-time.h: Likewise.
37638         * lib/stdio--.h: Likewise.
37639         * lib/stdio-safer.h: Likewise.
37640         * lib/stdlib--.h: Likewise.
37641         * lib/stdlib-safer.h: Likewise.
37642         * lib/stdlib.in.h: Likewise.
37643         * lib/stpcpy.c: Likewise.
37644         * lib/stpncpy.c: Likewise.
37645         * lib/strchrnul.c: Likewise.
37646         * lib/strcspn.c: Likewise.
37647         * lib/strerror.c: Likewise.
37648         * lib/strftime.c: Likewise.
37649         * lib/strftime.h: Likewise.
37650         * lib/striconveh.c: Likewise.
37651         * lib/striconveh.h: Likewise.
37652         * lib/striconveha.c: Likewise.
37653         * lib/striconveha.h: Likewise.
37654         * lib/stripslash.c: Likewise.
37655         * lib/strnlen1.c: Likewise.
37656         * lib/strnlen1.h: Likewise.
37657         * lib/strtod.c: Likewise.
37658         * lib/strtoimax.c: Likewise.
37659         * lib/strtok_r.c: Likewise.
37660         * lib/strtol.c: Likewise.
37661         * lib/strtoll.c: Likewise.
37662         * lib/strtoul.c: Likewise.
37663         * lib/strtoull.c: Likewise.
37664         * lib/sysexits.in.h: Likewise.
37665         * lib/tempname.c: Likewise.
37666         * lib/tempname.h: Likewise.
37667         * lib/timespec.h: Likewise.
37668         * lib/tls.c: Likewise.
37669         * lib/tls.h: Likewise.
37670         * lib/tmpdir.c: Likewise.
37671         * lib/tmpdir.h: Likewise.
37672         * lib/tmpfile-safer.c: Likewise.
37673         * lib/tmpfile.c: Likewise.
37674         * lib/trigl.c: Likewise.
37675         * lib/trigl.h: Likewise.
37676         * lib/trim.c: Likewise.
37677         * lib/trim.h: Likewise.
37678         * lib/trunc.c: Likewise.
37679         * lib/truncf.c: Likewise.
37680         * lib/truncl.c: Likewise.
37681         * lib/tsearch.c: Likewise.
37682         * lib/unicodeio.c: Likewise.
37683         * lib/unicodeio.h: Likewise.
37684         * lib/unistd--.h: Likewise.
37685         * lib/unistd-safer.h: Likewise.
37686         * lib/unistdio/ulc-fprintf.c: Likewise.
37687         * lib/unistdio/ulc-vfprintf.c: Likewise.
37688         * lib/unlinkdir.c: Likewise.
37689         * lib/unlinkdir.h: Likewise.
37690         * lib/unlocked-io.h: Likewise.
37691         * lib/unsetenv.c: Likewise.
37692         * lib/userspec.c: Likewise.
37693         * lib/utime.c: Likewise.
37694         * lib/utimecmp.c: Likewise.
37695         * lib/utimecmp.h: Likewise.
37696         * lib/utimens.c: Likewise.
37697         * lib/verify.h: Likewise.
37698         * lib/verror.c: Likewise.
37699         * lib/verror.h: Likewise.
37700         * lib/version-etc-fsf.c: Likewise.
37701         * lib/version-etc.c: Likewise.
37702         * lib/version-etc.h: Likewise.
37703         * lib/vfprintf.c: Likewise.
37704         * lib/vprintf.c: Likewise.
37705         * lib/vsprintf.c: Likewise.
37706         * lib/w32spawn.h: Likewise.
37707         * lib/wait-process.c: Likewise.
37708         * lib/wait-process.h: Likewise.
37709         * lib/wcwidth.c: Likewise.
37710         * lib/write-any-file.c: Likewise.
37711         * lib/xalloc-die.c: Likewise.
37712         * lib/xalloc.h: Likewise.
37713         * lib/xasprintf.c: Likewise.
37714         * lib/xgetcwd.c: Likewise.
37715         * lib/xgetcwd.h: Likewise.
37716         * lib/xgetdomainname.c: Likewise.
37717         * lib/xgetdomainname.h: Likewise.
37718         * lib/xgethostname.c: Likewise.
37719         * lib/xmalloc.c: Likewise.
37720         * lib/xmalloca.c: Likewise.
37721         * lib/xmalloca.h: Likewise.
37722         * lib/xmemcoll.c: Likewise.
37723         * lib/xnanosleep.c: Likewise.
37724         * lib/xreadlink.c: Likewise.
37725         * lib/xreadlink.h: Likewise.
37726         * lib/xsetenv.c: Likewise.
37727         * lib/xsetenv.h: Likewise.
37728         * lib/xstriconv.c: Likewise.
37729         * lib/xstriconv.h: Likewise.
37730         * lib/xstrndup.c: Likewise.
37731         * lib/xstrndup.h: Likewise.
37732         * lib/xstrtod.c: Likewise.
37733         * lib/xstrtod.h: Likewise.
37734         * lib/xstrtol-error.c: Likewise.
37735         * lib/xstrtol.c: Likewise.
37736         * lib/xstrtol.h: Likewise.
37737         * lib/xtime.h: Likewise.
37738         * lib/xvasprintf.c: Likewise.
37739         * lib/xvasprintf.h: Likewise.
37740         * lib/yesno.c: Likewise.
37741         * lib/yesno.h: Likewise.
37742         * posix-modules: Likewise.
37743         * tests/test-alloca-opt.c: Likewise.
37744         * tests/test-arcfour.c: Likewise.
37745         * tests/test-arctwo.c: Likewise.
37746         * tests/test-argmatch.c: Likewise.
37747         * tests/test-argp-2.sh: Likewise.
37748         * tests/test-argp.c: Likewise.
37749         * tests/test-arpa_inet.c: Likewise.
37750         * tests/test-array_list.c: Likewise.
37751         * tests/test-array_oset.c: Likewise.
37752         * tests/test-atexit.c: Likewise.
37753         * tests/test-avltree_list.c: Likewise.
37754         * tests/test-avltree_oset.c: Likewise.
37755         * tests/test-avltreehash_list.c: Likewise.
37756         * tests/test-base64.c: Likewise.
37757         * tests/test-binary-io.c: Likewise.
37758         * tests/test-byteswap.c: Likewise.
37759         * tests/test-c-ctype.c: Likewise.
37760         * tests/test-c-strcasecmp.c: Likewise.
37761         * tests/test-c-strcasestr.c: Likewise.
37762         * tests/test-c-strncasecmp.c: Likewise.
37763         * tests/test-c-strstr.c: Likewise.
37764         * tests/test-canonicalize-lgpl.c: Likewise.
37765         * tests/test-canonicalize.c: Likewise.
37766         * tests/test-carray_list.c: Likewise.
37767         * tests/test-ceilf.c: Likewise.
37768         * tests/test-ceill.c: Likewise.
37769         * tests/test-count-one-bits.c: Likewise.
37770         * tests/test-crc.c: Likewise.
37771         * tests/test-dirname.c: Likewise.
37772         * tests/test-fbufmode.c: Likewise.
37773         * tests/test-fcntl.c: Likewise.
37774         * tests/test-fflush.c: Likewise.
37775         * tests/test-floorf.c: Likewise.
37776         * tests/test-floorl.c: Likewise.
37777         * tests/test-fopen.c: Likewise.
37778         * tests/test-fprintf-posix.c: Likewise.
37779         * tests/test-fprintf-posix.h: Likewise.
37780         * tests/test-fpurge.c: Likewise.
37781         * tests/test-freadable.c: Likewise.
37782         * tests/test-freadahead.c: Likewise.
37783         * tests/test-freading.c: Likewise.
37784         * tests/test-freopen.c: Likewise.
37785         * tests/test-frexp.c: Likewise.
37786         * tests/test-frexpl.c: Likewise.
37787         * tests/test-fseek.c: Likewise.
37788         * tests/test-fseeko.c: Likewise.
37789         * tests/test-fseterr.c: Likewise.
37790         * tests/test-fstrcmp.c: Likewise.
37791         * tests/test-ftell.c: Likewise.
37792         * tests/test-ftello.c: Likewise.
37793         * tests/test-fwritable.c: Likewise.
37794         * tests/test-fwriting.c: Likewise.
37795         * tests/test-getaddrinfo.c: Likewise.
37796         * tests/test-getpass.c: Likewise.
37797         * tests/test-gettimeofday.c: Likewise.
37798         * tests/test-hmac-md5.c: Likewise.
37799         * tests/test-hmac-sha1.c: Likewise.
37800         * tests/test-iconv.c: Likewise.
37801         * tests/test-iconvme.c: Likewise.
37802         * tests/test-inttypes.c: Likewise.
37803         * tests/test-isnan.c: Likewise.
37804         * tests/test-isnanf.c: Likewise.
37805         * tests/test-isnanl-nolibm.c: Likewise.
37806         * tests/test-isnanl.c: Likewise.
37807         * tests/test-isnanl.h: Likewise.
37808         * tests/test-ldexpl.c: Likewise.
37809         * tests/test-linked_list.c: Likewise.
37810         * tests/test-linkedhash_list.c: Likewise.
37811         * tests/test-locale.c: Likewise.
37812         * tests/test-localename.c: Likewise.
37813         * tests/test-lock.c: Likewise.
37814         * tests/test-lseek.c: Likewise.
37815         * tests/test-malloca.c: Likewise.
37816         * tests/test-math.c: Likewise.
37817         * tests/test-mbscasecmp.c: Likewise.
37818         * tests/test-mbscasestr1.c: Likewise.
37819         * tests/test-mbscasestr2.c: Likewise.
37820         * tests/test-mbscasestr3.c: Likewise.
37821         * tests/test-mbscasestr4.c: Likewise.
37822         * tests/test-mbschr.c: Likewise.
37823         * tests/test-mbscspn.c: Likewise.
37824         * tests/test-mbsncasecmp.c: Likewise.
37825         * tests/test-mbspbrk.c: Likewise.
37826         * tests/test-mbspcasecmp.c: Likewise.
37827         * tests/test-mbsrchr.c: Likewise.
37828         * tests/test-mbsspn.c: Likewise.
37829         * tests/test-mbsstr1.c: Likewise.
37830         * tests/test-mbsstr2.c: Likewise.
37831         * tests/test-mbsstr3.c: Likewise.
37832         * tests/test-md5.c: Likewise.
37833         * tests/test-memmem.c: Likewise.
37834         * tests/test-netinet_in.c: Likewise.
37835         * tests/test-open.c: Likewise.
37836         * tests/test-printf-frexp.c: Likewise.
37837         * tests/test-printf-frexpl.c: Likewise.
37838         * tests/test-printf-posix.c: Likewise.
37839         * tests/test-printf-posix.h: Likewise.
37840         * tests/test-rbtree_list.c: Likewise.
37841         * tests/test-rbtree_oset.c: Likewise.
37842         * tests/test-rbtreehash_list.c: Likewise.
37843         * tests/test-read-file.c: Likewise.
37844         * tests/test-rijndael.c: Likewise.
37845         * tests/test-search.c: Likewise.
37846         * tests/test-signbit.c: Likewise.
37847         * tests/test-sleep.c: Likewise.
37848         * tests/test-snprintf-posix.c: Likewise.
37849         * tests/test-snprintf-posix.h: Likewise.
37850         * tests/test-snprintf.c: Likewise.
37851         * tests/test-sprintf-posix.c: Likewise.
37852         * tests/test-sprintf-posix.h: Likewise.
37853         * tests/test-stat-time.c: Likewise.
37854         * tests/test-stdbool.c: Likewise.
37855         * tests/test-stdint.c: Likewise.
37856         * tests/test-stdio.c: Likewise.
37857         * tests/test-stdlib.c: Likewise.
37858         * tests/test-stpncpy.c: Likewise.
37859         * tests/test-strcasestr.c: Likewise.
37860         * tests/test-striconv.c: Likewise.
37861         * tests/test-striconveh.c: Likewise.
37862         * tests/test-striconveha.c: Likewise.
37863         * tests/test-string.c: Likewise.
37864         * tests/test-sys_select.c: Likewise.
37865         * tests/test-sys_socket.c: Likewise.
37866         * tests/test-sys_stat.c: Likewise.
37867         * tests/test-sys_time.c: Likewise.
37868         * tests/test-sysexits.c: Likewise.
37869         * tests/test-time.c: Likewise.
37870         * tests/test-tls.c: Likewise.
37871         * tests/test-trunc.c: Likewise.
37872         * tests/test-truncf.c: Likewise.
37873         * tests/test-truncl.c: Likewise.
37874         * tests/test-unistd.c: Likewise.
37875         * tests/test-vasnprintf-posix.c: Likewise.
37876         * tests/test-vasnprintf-posix2.c: Likewise.
37877         * tests/test-vasnprintf.c: Likewise.
37878         * tests/test-vasprintf-posix.c: Likewise.
37879         * tests/test-vasprintf.c: Likewise.
37880         * tests/test-verify.c: Likewise.
37881         * tests/test-vfprintf-posix.c: Likewise.
37882         * tests/test-vprintf-posix.c: Likewise.
37883         * tests/test-vsnprintf-posix.c: Likewise.
37884         * tests/test-vsnprintf.c: Likewise.
37885         * tests/test-vsprintf-posix.c: Likewise.
37886         * tests/test-wchar.c: Likewise.
37887         * tests/test-wctype.c: Likewise.
37888         * tests/test-wcwidth.c: Likewise.
37889         * tests/test-xstrtol.c: Likewise.
37890         * tests/test-xvasprintf.c: Likewise.
37891         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37892         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37893         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37894         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37895         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37896         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37897         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37898         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37899         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37900         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37901         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37902         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37903         * tests/uniname/test-uninames.c: Likewise.
37904         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37905         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
37906         * tests/unistdio/test-u16-printf1.h: Likewise.
37907         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37908         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37909         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37910         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37911         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37912         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37913         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37914         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
37915         * tests/unistdio/test-u32-printf1.h: Likewise.
37916         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37917         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37918         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37919         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37920         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37921         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37922         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37923         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
37924         * tests/unistdio/test-u8-printf1.h: Likewise.
37925         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37926         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37927         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37928         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37929         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37930         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37931         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37932         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
37933         * tests/unistdio/test-ulc-printf1.h: Likewise.
37934         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37935         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37936         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37937         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37938         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37939         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37940         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37941         * tests/uniwidth/test-u16-width.c: Likewise.
37942         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37943         * tests/uniwidth/test-u32-width.c: Likewise.
37944         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37945         * tests/uniwidth/test-u8-width.c: Likewise.
37946         * tests/uniwidth/test-uc_width.c: Likewise.
37947         * config/srclist-update: Likewise.
37948         (fixlicense): Update to GPLv3+.
37949
37950         Change copyright notice from LGPLv2.1+ to LGPLv3+.
37951         * tests/test-tsearch.c: Change copyright notice.
37952
37953         Change copyright notice from LGPLv2.0+ to LGPLv3+.
37954         * lib/c-strcaseeq.h: Change copyright notice.
37955         * lib/streq.h: Likewise.
37956         * lib/uniconv.h: Likewise.
37957         * lib/uniconv/u-conv-from-enc.h: Likewise.
37958         * lib/uniconv/u-conv-to-enc.h: Likewise.
37959         * lib/uniconv/u-strconv-from-enc.h: Likewise.
37960         * lib/uniconv/u-strconv-to-enc.h: Likewise.
37961         * lib/uniconv/u16-conv-from-enc.c: Likewise.
37962         * lib/uniconv/u16-conv-to-enc.c: Likewise.
37963         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
37964         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
37965         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
37966         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
37967         * lib/uniconv/u32-conv-from-enc.c: Likewise.
37968         * lib/uniconv/u32-conv-to-enc.c: Likewise.
37969         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
37970         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
37971         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
37972         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
37973         * lib/uniconv/u8-conv-from-enc.c: Likewise.
37974         * lib/uniconv/u8-conv-to-enc.c: Likewise.
37975         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
37976         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
37977         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
37978         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
37979         * lib/uniname.h: Likewise.
37980         * lib/uniname/uniname.c: Likewise.
37981         * lib/unistdio.h: Likewise.
37982         * lib/unistdio/u-asnprintf.h: Likewise.
37983         * lib/unistdio/u-asprintf.h: Likewise.
37984         * lib/unistdio/u-printf-args.c: Likewise.
37985         * lib/unistdio/u-printf-args.h: Likewise.
37986         * lib/unistdio/u-printf-parse.h: Likewise.
37987         * lib/unistdio/u-snprintf.h: Likewise.
37988         * lib/unistdio/u-sprintf.h: Likewise.
37989         * lib/unistdio/u-vasprintf.h: Likewise.
37990         * lib/unistdio/u-vsnprintf.h: Likewise.
37991         * lib/unistdio/u-vsprintf.h: Likewise.
37992         * lib/unistdio/u16-asnprintf.c: Likewise.
37993         * lib/unistdio/u16-asprintf.c: Likewise.
37994         * lib/unistdio/u16-printf-parse.c: Likewise.
37995         * lib/unistdio/u16-snprintf.c: Likewise.
37996         * lib/unistdio/u16-sprintf.c: Likewise.
37997         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
37998         * lib/unistdio/u16-u16-asprintf.c: Likewise.
37999         * lib/unistdio/u16-u16-snprintf.c: Likewise.
38000         * lib/unistdio/u16-u16-sprintf.c: Likewise.
38001         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
38002         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
38003         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
38004         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
38005         * lib/unistdio/u16-vasnprintf.c: Likewise.
38006         * lib/unistdio/u16-vasprintf.c: Likewise.
38007         * lib/unistdio/u16-vsnprintf.c: Likewise.
38008         * lib/unistdio/u16-vsprintf.c: Likewise.
38009         * lib/unistdio/u32-asnprintf.c: Likewise.
38010         * lib/unistdio/u32-asprintf.c: Likewise.
38011         * lib/unistdio/u32-printf-parse.c: Likewise.
38012         * lib/unistdio/u32-snprintf.c: Likewise.
38013         * lib/unistdio/u32-sprintf.c: Likewise.
38014         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
38015         * lib/unistdio/u32-u32-asprintf.c: Likewise.
38016         * lib/unistdio/u32-u32-snprintf.c: Likewise.
38017         * lib/unistdio/u32-u32-sprintf.c: Likewise.
38018         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
38019         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
38020         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
38021         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
38022         * lib/unistdio/u32-vasnprintf.c: Likewise.
38023         * lib/unistdio/u32-vasprintf.c: Likewise.
38024         * lib/unistdio/u32-vsnprintf.c: Likewise.
38025         * lib/unistdio/u32-vsprintf.c: Likewise.
38026         * lib/unistdio/u8-asnprintf.c: Likewise.
38027         * lib/unistdio/u8-asprintf.c: Likewise.
38028         * lib/unistdio/u8-printf-parse.c: Likewise.
38029         * lib/unistdio/u8-snprintf.c: Likewise.
38030         * lib/unistdio/u8-sprintf.c: Likewise.
38031         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
38032         * lib/unistdio/u8-u8-asprintf.c: Likewise.
38033         * lib/unistdio/u8-u8-snprintf.c: Likewise.
38034         * lib/unistdio/u8-u8-sprintf.c: Likewise.
38035         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
38036         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
38037         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
38038         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
38039         * lib/unistdio/u8-vasnprintf.c: Likewise.
38040         * lib/unistdio/u8-vasprintf.c: Likewise.
38041         * lib/unistdio/u8-vsnprintf.c: Likewise.
38042         * lib/unistdio/u8-vsprintf.c: Likewise.
38043         * lib/unistdio/ulc-asnprintf.c: Likewise.
38044         * lib/unistdio/ulc-asprintf.c: Likewise.
38045         * lib/unistdio/ulc-printf-parse.c: Likewise.
38046         * lib/unistdio/ulc-snprintf.c: Likewise.
38047         * lib/unistdio/ulc-sprintf.c: Likewise.
38048         * lib/unistdio/ulc-vasnprintf.c: Likewise.
38049         * lib/unistdio/ulc-vasprintf.c: Likewise.
38050         * lib/unistdio/ulc-vsnprintf.c: Likewise.
38051         * lib/unistdio/ulc-vsprintf.c: Likewise.
38052         * lib/unistr.h: Likewise.
38053         * lib/unistr/u-cpy-alloc.h: Likewise.
38054         * lib/unistr/u-cpy.h: Likewise.
38055         * lib/unistr/u-endswith.h: Likewise.
38056         * lib/unistr/u-move.h: Likewise.
38057         * lib/unistr/u-set.h: Likewise.
38058         * lib/unistr/u-startswith.h: Likewise.
38059         * lib/unistr/u-stpcpy.h: Likewise.
38060         * lib/unistr/u-stpncpy.h: Likewise.
38061         * lib/unistr/u-strcat.h: Likewise.
38062         * lib/unistr/u-strcpy.h: Likewise.
38063         * lib/unistr/u-strcspn.h: Likewise.
38064         * lib/unistr/u-strdup.h: Likewise.
38065         * lib/unistr/u-strlen.h: Likewise.
38066         * lib/unistr/u-strncat.h: Likewise.
38067         * lib/unistr/u-strncpy.h: Likewise.
38068         * lib/unistr/u-strnlen.h: Likewise.
38069         * lib/unistr/u-strpbrk.h: Likewise.
38070         * lib/unistr/u-strspn.h: Likewise.
38071         * lib/unistr/u-strstr.h: Likewise.
38072         * lib/unistr/u-strtok.h: Likewise.
38073         * lib/unistr/u16-check.c: Likewise.
38074         * lib/unistr/u16-chr.c: Likewise.
38075         * lib/unistr/u16-cmp.c: Likewise.
38076         * lib/unistr/u16-cpy-alloc.c: Likewise.
38077         * lib/unistr/u16-cpy.c: Likewise.
38078         * lib/unistr/u16-endswith.c: Likewise.
38079         * lib/unistr/u16-mblen.c: Likewise.
38080         * lib/unistr/u16-mbsnlen.c: Likewise.
38081         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38082         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38083         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38084         * lib/unistr/u16-mbtouc.c: Likewise.
38085         * lib/unistr/u16-mbtoucr.c: Likewise.
38086         * lib/unistr/u16-move.c: Likewise.
38087         * lib/unistr/u16-next.c: Likewise.
38088         * lib/unistr/u16-prev.c: Likewise.
38089         * lib/unistr/u16-set.c: Likewise.
38090         * lib/unistr/u16-startswith.c: Likewise.
38091         * lib/unistr/u16-stpcpy.c: Likewise.
38092         * lib/unistr/u16-stpncpy.c: Likewise.
38093         * lib/unistr/u16-strcat.c: Likewise.
38094         * lib/unistr/u16-strchr.c: Likewise.
38095         * lib/unistr/u16-strcmp.c: Likewise.
38096         * lib/unistr/u16-strcpy.c: Likewise.
38097         * lib/unistr/u16-strcspn.c: Likewise.
38098         * lib/unistr/u16-strdup.c: Likewise.
38099         * lib/unistr/u16-strlen.c: Likewise.
38100         * lib/unistr/u16-strmblen.c: Likewise.
38101         * lib/unistr/u16-strmbtouc.c: Likewise.
38102         * lib/unistr/u16-strncat.c: Likewise.
38103         * lib/unistr/u16-strncmp.c: Likewise.
38104         * lib/unistr/u16-strncpy.c: Likewise.
38105         * lib/unistr/u16-strnlen.c: Likewise.
38106         * lib/unistr/u16-strpbrk.c: Likewise.
38107         * lib/unistr/u16-strrchr.c: Likewise.
38108         * lib/unistr/u16-strspn.c: Likewise.
38109         * lib/unistr/u16-strstr.c: Likewise.
38110         * lib/unistr/u16-strtok.c: Likewise.
38111         * lib/unistr/u16-to-u32.c: Likewise.
38112         * lib/unistr/u16-to-u8.c: Likewise.
38113         * lib/unistr/u16-uctomb-aux.c: Likewise.
38114         * lib/unistr/u16-uctomb.c: Likewise.
38115         * lib/unistr/u32-check.c: Likewise.
38116         * lib/unistr/u32-chr.c: Likewise.
38117         * lib/unistr/u32-cmp.c: Likewise.
38118         * lib/unistr/u32-cpy-alloc.c: Likewise.
38119         * lib/unistr/u32-cpy.c: Likewise.
38120         * lib/unistr/u32-endswith.c: Likewise.
38121         * lib/unistr/u32-mblen.c: Likewise.
38122         * lib/unistr/u32-mbsnlen.c: Likewise.
38123         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38124         * lib/unistr/u32-mbtouc.c: Likewise.
38125         * lib/unistr/u32-mbtoucr.c: Likewise.
38126         * lib/unistr/u32-move.c: Likewise.
38127         * lib/unistr/u32-next.c: Likewise.
38128         * lib/unistr/u32-prev.c: Likewise.
38129         * lib/unistr/u32-set.c: Likewise.
38130         * lib/unistr/u32-startswith.c: Likewise.
38131         * lib/unistr/u32-stpcpy.c: Likewise.
38132         * lib/unistr/u32-stpncpy.c: Likewise.
38133         * lib/unistr/u32-strcat.c: Likewise.
38134         * lib/unistr/u32-strchr.c: Likewise.
38135         * lib/unistr/u32-strcmp.c: Likewise.
38136         * lib/unistr/u32-strcpy.c: Likewise.
38137         * lib/unistr/u32-strcspn.c: Likewise.
38138         * lib/unistr/u32-strdup.c: Likewise.
38139         * lib/unistr/u32-strlen.c: Likewise.
38140         * lib/unistr/u32-strmblen.c: Likewise.
38141         * lib/unistr/u32-strmbtouc.c: Likewise.
38142         * lib/unistr/u32-strncat.c: Likewise.
38143         * lib/unistr/u32-strncmp.c: Likewise.
38144         * lib/unistr/u32-strncpy.c: Likewise.
38145         * lib/unistr/u32-strnlen.c: Likewise.
38146         * lib/unistr/u32-strpbrk.c: Likewise.
38147         * lib/unistr/u32-strrchr.c: Likewise.
38148         * lib/unistr/u32-strspn.c: Likewise.
38149         * lib/unistr/u32-strstr.c: Likewise.
38150         * lib/unistr/u32-strtok.c: Likewise.
38151         * lib/unistr/u32-to-u16.c: Likewise.
38152         * lib/unistr/u32-to-u8.c: Likewise.
38153         * lib/unistr/u32-uctomb.c: Likewise.
38154         * lib/unistr/u8-check.c: Likewise.
38155         * lib/unistr/u8-chr.c: Likewise.
38156         * lib/unistr/u8-cmp.c: Likewise.
38157         * lib/unistr/u8-cpy-alloc.c: Likewise.
38158         * lib/unistr/u8-cpy.c: Likewise.
38159         * lib/unistr/u8-endswith.c: Likewise.
38160         * lib/unistr/u8-mblen.c: Likewise.
38161         * lib/unistr/u8-mbsnlen.c: Likewise.
38162         * lib/unistr/u8-mbtouc-aux.c: Likewise.
38163         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38164         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38165         * lib/unistr/u8-mbtouc.c: Likewise.
38166         * lib/unistr/u8-mbtoucr.c: Likewise.
38167         * lib/unistr/u8-move.c: Likewise.
38168         * lib/unistr/u8-next.c: Likewise.
38169         * lib/unistr/u8-prev.c: Likewise.
38170         * lib/unistr/u8-set.c: Likewise.
38171         * lib/unistr/u8-startswith.c: Likewise.
38172         * lib/unistr/u8-stpcpy.c: Likewise.
38173         * lib/unistr/u8-stpncpy.c: Likewise.
38174         * lib/unistr/u8-strcat.c: Likewise.
38175         * lib/unistr/u8-strchr.c: Likewise.
38176         * lib/unistr/u8-strcmp.c: Likewise.
38177         * lib/unistr/u8-strcpy.c: Likewise.
38178         * lib/unistr/u8-strcspn.c: Likewise.
38179         * lib/unistr/u8-strdup.c: Likewise.
38180         * lib/unistr/u8-strlen.c: Likewise.
38181         * lib/unistr/u8-strmblen.c: Likewise.
38182         * lib/unistr/u8-strmbtouc.c: Likewise.
38183         * lib/unistr/u8-strncat.c: Likewise.
38184         * lib/unistr/u8-strncmp.c: Likewise.
38185         * lib/unistr/u8-strncpy.c: Likewise.
38186         * lib/unistr/u8-strnlen.c: Likewise.
38187         * lib/unistr/u8-strpbrk.c: Likewise.
38188         * lib/unistr/u8-strrchr.c: Likewise.
38189         * lib/unistr/u8-strspn.c: Likewise.
38190         * lib/unistr/u8-strstr.c: Likewise.
38191         * lib/unistr/u8-strtok.c: Likewise.
38192         * lib/unistr/u8-to-u16.c: Likewise.
38193         * lib/unistr/u8-to-u32.c: Likewise.
38194         * lib/unistr/u8-uctomb-aux.c: Likewise.
38195         * lib/unistr/u8-uctomb.c: Likewise.
38196         * lib/unitypes.h: Likewise.
38197         * lib/uniwidth.h: Likewise.
38198         * lib/uniwidth/cjk.h: Likewise.
38199         * lib/uniwidth/u16-strwidth.c: Likewise.
38200         * lib/uniwidth/u16-width.c: Likewise.
38201         * lib/uniwidth/u32-strwidth.c: Likewise.
38202         * lib/uniwidth/u32-width.c: Likewise.
38203         * lib/uniwidth/u8-strwidth.c: Likewise.
38204         * lib/uniwidth/u8-width.c: Likewise.
38205         * lib/uniwidth/width.c: Likewise.
38206
38207 2007-10-07  Bruno Haible  <bruno@clisp.org>
38208
38209         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
38210         The file is still under LGPL (see modules/inttypes).
38211
38212 2007-10-06  Bruno Haible  <bruno@clisp.org>
38213
38214         * modules/trunc (Dependencies): Add 'extensions'.
38215         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
38216         Reported by Ben Pfaff <blp@gnu.org>.
38217
38218 2007-10-06  Bruno Haible  <bruno@clisp.org>
38219
38220         * modules/freopen-tests: New file.
38221         * tests/test-freopen.c: New file.
38222
38223         * modules/fopen-tests: New file.
38224         * tests/test-fopen.c: New file.
38225
38226         * modules/fopen: New file.
38227         * lib/fopen.c: New file.
38228         * m4/fopen.m4: New file.
38229         * modules/freopen: New file.
38230         * lib/freopen.c: New file.
38231         * m4/freopen.m4: New file.
38232         * lib/stdio.in.h (fopen, freopen): New declarations.
38233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
38234         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38235         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
38236         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38237         * doc/functions/fopen.texi: Mention the 'fopen' module.
38238         * doc/functions/freopen.texi: Mention the 'freopen' module.
38239
38240 2007-10-06  Bruno Haible  <bruno@clisp.org>
38241
38242         * modules/open-tests: New file.
38243         * tests/test-open.c: New file.
38244
38245         * modules/open: New file.
38246         * lib/open.c: New file.
38247         * m4/open.m4: New file.
38248         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
38249         lib/open.c does.
38250         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
38251         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
38252         macros.
38253         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
38254         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
38255         REPLACE_OPEN.
38256         * doc/functions/open.texi: Mention the 'open' module.
38257
38258 2007-10-04  Bruno Haible  <bruno@clisp.org>
38259
38260         * modules/ceill-tests: New file.
38261         * tests/test-ceill.c: New file.
38262
38263         * modules/ceill: New file.
38264         * lib/ceill.c: Replace entire file.
38265         * m4/ceill.m4: New file.
38266         * lib/math.in.h (ceill): Replace declaration.
38267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
38268         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
38269         * doc/functions/ceill.texi: Mention the 'ceill' module.
38270         * modules/mathl (Files): Remove lib/ceill.c.
38271         (Depends-on): Add ceill.
38272
38273 2007-10-04  Bruno Haible  <bruno@clisp.org>
38274
38275         * modules/ceilf-tests: New file.
38276         * tests/test-ceilf.c: New file.
38277
38278         * modules/ceilf: New file.
38279         * lib/ceil.c: New file.
38280         * lib/ceilf.c: New file.
38281         * m4/ceilf.m4: New file.
38282         * lib/math.in.h (ceilf): New declaration.
38283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
38284         HAVE_DECL_CEILF.
38285         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
38286         HAVE_DECL_CEILF.
38287         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
38288
38289 2007-10-04  Bruno Haible  <bruno@clisp.org>
38290
38291         * modules/floorl-tests: New file.
38292         * tests/test-floorl.c: New file.
38293
38294         * modules/floorl: New file.
38295         * lib/floorl.c: Replace entire file.
38296         * m4/floorl.m4: New file.
38297         * lib/math.in.h (floorl): Replace declaration.
38298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
38299         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
38300         * doc/functions/floorl.texi: Mention the 'floorl' module.
38301         * modules/mathl (Files): Remove lib/floorl.c.
38302         (Depends-on): Add floorl.
38303
38304 2007-10-04  Bruno Haible  <bruno@clisp.org>
38305
38306         * modules/floorf-tests: New file.
38307         * tests/test-floorf.c: New file.
38308
38309         * modules/floorf: New file.
38310         * lib/floor.c: New file.
38311         * lib/floorf.c: New file.
38312         * m4/floorf.m4: New file.
38313         * lib/math.in.h (floorf): New declaration.
38314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
38315         HAVE_DECL_FLOORF.
38316         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
38317         HAVE_DECL_FLOORF.
38318         * doc/functions/floorf.texi: Mention the 'floorf' module.
38319
38320 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
38321             Bruno Haible  <bruno@clisp.org>
38322
38323         Advertise for the Git server instead of the CVS server.
38324         * doc/gnulib-intro.texi (Steady Development): Mention the Git
38325         repository instead of the CVS one.
38326         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
38327         about all VCS systems generically.
38328         * doc/gnulib.texi (Introduction): Capitalize `Git'.
38329
38330 2007-10-04  Bruno Haible  <bruno@clisp.org>
38331
38332         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
38333         means.
38334         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
38335
38336 2007-10-04  Bruno Haible  <bruno@clisp.org>
38337
38338         * modules/truncl-tests: New file.
38339         * tests/test-truncl.c: New file.
38340
38341         * modules/truncl: New file.
38342         * lib/truncl.c: New file.
38343         * m4/truncl.m4: New file.
38344         * lib/math.in.h (truncl): New declaration.
38345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
38346         HAVE_DECL_TRUNCL.
38347         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
38348         HAVE_DECL_TRUNCL.
38349         * doc/functions/truncl.texi: Mention the 'truncl' module.
38350
38351 2007-10-04  Bruno Haible  <bruno@clisp.org>
38352
38353         * modules/truncf-tests: New file.
38354         * tests/test-truncf.c: New file.
38355
38356         * modules/truncf: New file.
38357         * lib/trunc.c: Make paramerizable through USE_* macros.
38358         * lib/truncf.c: New file.
38359         * m4/truncf.m4: New file.
38360         * lib/math.in.h (truncf): New declaration.
38361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
38362         HAVE_DECL_TRUNCF.
38363         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
38364         HAVE_DECL_TRUNCF.
38365         * doc/functions/truncf.texi: Mention the 'truncf' module.
38366
38367 2007-10-03  Bruno Haible  <bruno@clisp.org>
38368
38369         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38370         augmentation also for tests modules.
38371         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
38372         * modules/atexit-tests (Makefile.am): Likewise.
38373         * modules/binary-io-tests (Makefile.am): Likewise.
38374         * modules/c-strcase-tests (Makefile.am): Likewise.
38375         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
38376         * modules/canonicalize-tests (Makefile.am): Likewise.
38377         * modules/closein-tests (Makefile.am): Likewise.
38378         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38379         * modules/freadahead-tests (Makefile.am): Likewise.
38380         * modules/fseek-tests (Makefile.am): Likewise.
38381         * modules/fseeko-tests (Makefile.am): Likewise.
38382         * modules/ftell-tests (Makefile.am): Likewise.
38383         * modules/ftello-tests (Makefile.am): Likewise.
38384         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
38385         * modules/isnanl-tests (Makefile.am): Likewise.
38386         * modules/lseek-tests (Makefile.am): Likewise.
38387         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38388         * modules/mbscasestr-tests (Makefile.am): Likewise.
38389         * modules/mbschr-tests (Makefile.am): Likewise.
38390         * modules/mbscspn-tests (Makefile.am): Likewise.
38391         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38392         * modules/mbspbrk-tests (Makefile.am): Likewise.
38393         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38394         * modules/mbsrchr-tests (Makefile.am): Likewise.
38395         * modules/mbsspn-tests (Makefile.am): Likewise.
38396         * modules/mbsstr-tests (Makefile.am): Likewise.
38397         * modules/printf-posix-tests (Makefile.am): Likewise.
38398         * modules/snprintf-posix-tests (Makefile.am): Likewise.
38399         * modules/sprintf-posix-tests (Makefile.am): Likewise.
38400         * modules/tsearch-tests (Makefile.am): Likewise.
38401         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38402         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38403         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38404         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38405         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38406         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38407         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38408         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38409         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
38410         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
38411         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38412         * modules/xstrtol-tests (Makefile.am): Likewise.
38413         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38414         * modules/yesno-tests (Makefile.am): Likewise.
38415
38416 2007-10-03  Bruno Haible  <bruno@clisp.org>
38417
38418         * modules/trunc-tests: New file.
38419         * tests/test-trunc.c: New file.
38420
38421         * modules/trunc: New file.
38422         * lib/trunc.c: New file.
38423         * m4/trunc.m4: New file.
38424         * lib/math.in.h (trunc): New declaration.
38425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
38426         HAVE_DECL_TRUNC.
38427         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
38428         HAVE_DECL_TRUNC.
38429         * doc/functions/trunc.texi: Mention the 'trunc' module.
38430
38431 2007-10-03  Bruno Haible  <bruno@clisp.org>
38432
38433         * tests/test-fpending.c: New file, mostly copied
38434         from coreutils/lib/t-fpending.c.
38435         * modules/fpending-tests: New file.
38436
38437 2007-10-03  Bruno Haible  <bruno@clisp.org>
38438
38439         Port the stdio extensions to QNX (untested).
38440         * lib/fseterr.c (fseterr): Add support for QNX.
38441         * lib/fbufmode.c (fbufmode): Likewise.
38442         * lib/freadable.c (freadable): Likewise.
38443         * lib/fwritable.c (fwritable): Likewise.
38444         * lib/freading.c (freading): Likewise.
38445         * lib/fwriting.c (fwriting): Likewise.
38446         * lib/freadahead.c (freadahed): Likewise.
38447         * lib/fpurge.c (fpurge): Likewise.
38448         * lib/fseeko.c (rpl_fseeko): Likewise.
38449
38450 2007-10-03  Bruno Haible  <bruno@clisp.org>
38451             Jim Meyering  <jim@meyering.net>
38452             Eric Blake  <ebb9@byu.net>
38453
38454         * doc/relocatable.texi: Use @command instead of @program.
38455
38456 2007-10-02  Jim Meyering  <jim@meyering.net>
38457
38458         Perform one more "_.h" -> ".in.h" substitution.
38459         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
38460         instead of unistd_.h here, too.
38461
38462 2007-10-01  Bruno Haible  <bruno@clisp.org>
38463
38464         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
38465         Needed for the alloca-opt module.
38466
38467 2007-09-30  Bruno Haible  <bruno@clisp.org>
38468
38469         * lib/alloca.in.h: Renamed from lib/alloca_.h.
38470         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
38471         alloca_.h.
38472         * lib/argz.in.h: Renamed from lib/argz_.h.
38473         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
38474         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
38475         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
38476         byteswap_.h.
38477         * lib/dirent.in.h: Renamed from lib/dirent_.h.
38478         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
38479         dirent_.h.
38480         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
38481         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
38482         fcntl_.h.
38483         * lib/float.in.h: Renamed from lib/float_.h.
38484         * modules/float (Files, Makefile.am): Use float.in.h instead of
38485         float_.h.
38486         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
38487         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
38488         fnmatch_.h.
38489         * lib/getopt.in.h: Renamed from lib/getopt_.h.
38490         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
38491         getopt_.h.
38492         * lib/glob.in.h: Renamed from lib/glob_.h.
38493         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
38494         * lib/iconv.in.h: Renamed from lib/iconv_.h.
38495         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
38496         iconv_.h.
38497         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
38498         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
38499         inttypes_.h.
38500         * lib/locale.in.h: Renamed from lib/locale_.h.
38501         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
38502         locale_.h.
38503         * lib/math.in.h: Renamed from lib/math_.h.
38504         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
38505         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
38506         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
38507         of netinet_in_.h. Add dependency.
38508         * lib/poll.in.h: Renamed from lib/poll_.h.
38509         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
38510         * lib/search.in.h: Renamed from lib/search_.h.
38511         * modules/search (Files, Makefile.am): Use search.in.h instead of
38512         search_.h.
38513         * lib/signal.in.h: Renamed from lib/signal_.h.
38514         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
38515         _signal.h.
38516         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
38517         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
38518         stdbool_.h.
38519         * lib/stdint.in.h: Renamed from lib/stdint_.h.
38520         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
38521         stdint_.h.
38522         * lib/stdio.in.h: Renamed from lib/stdio_.h.
38523         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
38524         stdio_.h.
38525         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
38526         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
38527         stdlib_.h.
38528         * lib/string.in.h: Renamed from lib/string_.h.
38529         * modules/string (Files, Makefile.am): Use string.in.h instead of
38530         string_.h.
38531         * doc/gnulib-tool.texi (Initial import): Update.
38532         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
38533         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
38534         of sys_select_.h. Add dependency.
38535         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
38536         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
38537         of sys_socket_.h.
38538         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
38539         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
38540         sys_stat_.h.
38541         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
38542         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
38543         sys_time_.h.
38544         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
38545         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
38546         sysexits_.h.
38547         * lib/time.in.h: Renamed from lib/time_.h.
38548         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
38549         * lib/unistd.in.h: Renamed from lib/unistd_.h.
38550         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
38551         unistd_.h.
38552         * lib/wchar.in.h: Renamed from lib/wchar_.h.
38553         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
38554         wchar_.h.
38555         * lib/wctype.in.h: Renamed from lib/wctype_.h.
38556         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
38557         wctype_.h.
38558         * build-aux/bootstrap (slurp): Update.
38559         * lib/.cppi-disable: Update.
38560
38561 2007-09-30  Bruno Haible  <bruno@clisp.org>
38562
38563         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
38564         Needed on BeOS.
38565
38566 2007-09-30  Bruno Haible  <bruno@clisp.org>
38567
38568         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
38569
38570 2007-09-29  Bruno Haible  <bruno@clisp.org>
38571
38572         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
38573
38574 2007-09-29  Bruno Haible  <bruno@clisp.org>
38575
38576         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
38577         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
38578         * build-aux/install-reloc: Compile also areadlink.c.
38579         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
38580
38581 2007-09-29  Bruno Haible  <bruno@clisp.org>
38582
38583         * gnulib-tool (func_emit_initmacro_done): Indentation.
38584
38585 2007-09-29  Bruno Haible  <bruno@clisp.org>
38586
38587         * README: Add CVS checkout update instructions.
38588         Info from Bob Proulx <bob@proulx.com>.
38589
38590 2007-09-28  Eric Blake  <ebb9@byu.net>
38591
38592         Provide move-if-change.
38593         * build-aux/move-if-change: New file, based on best practice
38594         rather than any canonical upstream location.
38595
38596 2007-09-28  Jim Meyering  <jim@meyering.net>
38597
38598         Fix canonicalize loop-detection corner case.
38599         Do not attempt to stat the symlink values stored via seen_triple.
38600         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
38601         on linux-2.6.18, (but not 2.6.22).
38602         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
38603         triple_compare.  The former compares dev,ino,filename, while the latter
38604         would actually stat dirname(filename) when dev and ino were equal.
38605         * lib/hash-triple.c: Install <string.h>.
38606         (STREQ): Define.
38607         (triple_compare_ino_str): New function.
38608         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
38609
38610 2007-09-28  Eric Blake  <ebb9@byu.net>
38611
38612         Enforce that AC_REPLACE_FUNCS files exist.
38613         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
38614         override check for typos.
38615
38616         Fix test-closein on Solaris 10.
38617         * tests/test-closein.c (main): Don't assume stdin can be inherited
38618         closed on all systems.
38619         * tests/test-closein.sh: Likewise.
38620         Reported by Piotr Tarnowski.
38621
38622 2007-09-28  Jim Meyering  <jim@meyering.net>
38623
38624         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
38625
38626 2007-09-27  Jim Meyering  <jim@meyering.net>
38627
38628         canonicalize: Avoid a false-positive cycle failure.
38629         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
38630         Sort.  Remove cycle-check.
38631         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
38632         not cycle-check.h.
38633         (seen_triple): New function.
38634         (canonicalize_filename_mode): Use it instead of cycle-check.
38635         * tests/test-canonicalize.c: Add a test for this bug.
38636         * tests/test-canonicalize.sh: Set up and run the test.
38637
38638         New module, file-set, from coreutils.
38639         * modules/file-set: Define it.
38640         * lib/file-set.c, lib/file-set.h: Implement.
38641
38642         New module, hash-triple, from coreutils.
38643         * modules/hash-triple: Define it.
38644         * lib/hash-triple.c, lib/hash-triple.h: Implement.
38645
38646 2007-09-25  Eric Blake  <ebb9@byu.net>
38647
38648         Fix strerror on Interix.
38649         * lib/string_.h (strerror): Declare replacement.
38650         * doc/functions/strerror.texi (strerror): Document the Interix
38651         shortcoming.
38652         * modules/string (Makefile.am): Support new hooks.
38653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
38654         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
38655         gl_FUNC_STRERROR_SEPARATE.
38656         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
38657         * lib/strerror.c (rpl_strerror): Provide replacement.
38658         * modules/strerror (Depends-on): Add string.
38659         (configure.ac): Detect use of module.
38660         * tests/test-strerror.c: New file.
38661         * modules/strerror-tests: New test module.
38662         * modules/argp (Depends-on): Add strerror.
38663         * modules/error (Depends-on): Likewise.
38664         Reported by Martin Koeppe.
38665
38666 2007-09-24  Bruno Haible  <bruno@clisp.org>
38667
38668         * README: Update git instructions.
38669
38670 2007-09-24  Eric Blake  <ebb9@byu.net>
38671
38672         Revert fpending breakage from 2007-09-08.
38673         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
38674         __fpending.c.
38675
38676 2007-09-24  Jim Meyering  <jim@meyering.net>
38677
38678         filenamecat.c: Add a test.
38679         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
38680         showing how the function works when DIR is the empty string.
38681
38682 2007-09-21  Simon Josefsson  <simon@josefsson.org>
38683
38684         * tests/test-canonicalize.sh: Turn on executable bit.
38685
38686 2007-09-19  Eric Blake  <ebb9@byu.net>
38687
38688         * README: Update CVS instructions.
38689
38690 2007-09-18  Bruno Haible  <bruno@clisp.org>
38691
38692         * modules/areadlink: New file.
38693         * lib/areadlink.h (areadlink): New declaration.
38694         * lib/areadlink.c: New file, based on lib/xreadlink.c.
38695
38696 2007-09-17  Jim Meyering  <jim@meyering.net>
38697
38698         * lib/savewd.c (ESTALE) [!defined]: Define.
38699         Reported to be required on Interix by Martin Koeppe.
38700
38701 2007-09-17  Bruno Haible  <bruno@clisp.org>
38702
38703         * gnulib-tool (func_version): Use $version.
38704
38705 2007-09-16  Bruno Haible  <bruno@clisp.org>
38706
38707         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
38708         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
38709         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
38710         Reported by Greg Schafer <gschafer@zip.com.au>.
38711
38712 2007-09-15  Bruno Haible  <bruno@clisp.org>
38713
38714         * gnulib-tool (sed): Try a little harder to make bash understand the
38715         alias.
38716         Reported by Bruce Korb <bruce.korb@gmail.com>.
38717
38718 2007-09-13  Eric Blake  <ebb9@byu.net>
38719
38720         * ChangeLog: Remove conflict markers.
38721
38722 2007-09-13  Simon Josefsson  <simon@josefsson.org>
38723
38724         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
38725         Reported by Bruno Haible <bruno@clisp.org>.
38726
38727 2007-09-12  Bruno Haible  <bruno@clisp.org>
38728
38729         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
38730         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
38731         is not defined.
38732
38733 2007-09-12  Eric Blake  <ebb9@byu.net>
38734
38735         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
38736         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
38737         Autoconf definition.
38738         * modules/euidaccess (Depends-on): Add extensions, for
38739         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
38740         * modules/fnmatch (Depends-on): Likewise.
38741         * modules/getaddrinfo (Depends-on): Likewise.
38742         * modules/getdelim (Depends-on): Likewise.
38743         * modules/getline (Depends-on): Likewise.
38744         * modules/getsubopt (Depends-on): Likewise.
38745         * modules/gettext (Depends-on): Likewise.
38746         * modules/group-member (Depends-on): Likewise.
38747         * modules/mbchar (Depends-on): Likewise.
38748         * modules/memmem (Depends-on): Likewise.
38749         * modules/mempcpy (Depends-on): Likewise.
38750         * modules/memrchr (Depends-on): Likewise.
38751         * modules/pagealign_alloc (Depends-on): Likewise.
38752         * modules/readutmp (Depends-on): Likewise.
38753         * modules/stpcpy (Depends-on): Likewise.
38754         * modules/stpncpy (Depends-on): Likewise.
38755         * modules/strchrnul (Depends-on): Likewise.
38756         * modules/strndup (Depends-on): Likewise.
38757         * modules/strsep (Depends-on): Likewise.
38758         * modules/strverscmp (Depends-on): Likewise.
38759         * modules/vasprintf (Depends-on): Likewise.
38760         * modules/wcwidth (Depends-on): Likewise.
38761         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
38762         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
38763         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
38764         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
38765         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38766         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38767         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
38768         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
38769         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
38770         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38771         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38772         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38773         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38774         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38775         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
38776         * m4/readutmp.m4 (gl_READUTMP): Likewise.
38777         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38778         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38779         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38780         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38781         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38782         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38783         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38784         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
38785         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
38786         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38787         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
38788         so that lock.m4 can be used in gettext without extensions module.
38789
38790 2007-09-11  Bruno Haible  <bruno@clisp.org>
38791
38792         * m4/isc-posix.m4: Remove file.
38793         Suggested by Eric Blake.
38794
38795 2007-09-11  Eric Blake  <ebb9@byu.net>
38796
38797         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
38798
38799 2007-09-10  Bruno Haible  <bruno@clisp.org>
38800
38801         * posix-modules: Fix typo in error message.
38802         Reported by Matt <mkraai@beckman.com>.
38803
38804 2007-09-09  Bruno Haible  <bruno@clisp.org>
38805
38806         * doc/functions/getdelim.texi: Update list of platforms lacking the
38807         function.
38808         * doc/functions/getline.texi: Likewise.
38809
38810 2007-09-09  Jim Meyering  <jim@meyering.net>
38811
38812         * lib/hash.c (hash_initialize): Detect calloc failure.
38813         Reported by Bruno Haible.
38814
38815 2007-09-09  Bruno Haible  <bruno@clisp.org>
38816
38817         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
38818         malloc or realloc fails.
38819
38820 2007-09-09  Bruno Haible  <bruno@clisp.org>
38821
38822         * modules/getcwd (Depends-on): Add malloc-posix.
38823         * modules/glob (Depends-on): Likewise.
38824         * modules/putenv (Depends-on): Likewise.
38825         * modules/strdup (Depends-on): Likewise.
38826         * modules/getdelim (Depends-on): Add realloc-posix.
38827         * modules/read-file (Depends-on): Likewise.
38828
38829 2007-09-09  Bruno Haible  <bruno@clisp.org>
38830
38831         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
38832         (gl_FUNC_MALLOC_POSIX): Require it.
38833         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
38834         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
38835         * modules/realloc (Files): Add m4/malloc.m4.
38836         * modules/calloc (Files): Likewise.
38837
38838 2007-09-09  Bruno Haible  <bruno@clisp.org>
38839
38840         * modules/malloc-posix: New file.
38841         * modules/malloc (Depends-on): Add malloc-posix.
38842         * lib/malloc.c: Include errno.h.
38843         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
38844         and a POSIX-compatible malloc into a single function. Set ENOMEM
38845         when returning NULL.
38846         * m4/malloc.m4: New file.
38847         * doc/functions/malloc.texi: Mention the malloc-posix module.
38848         * lib/stdlib_.h (malloc): New declaration.
38849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38850         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
38851         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
38852         and HAVE_MALLOC_POSIX.
38853
38854 2007-09-09  Bruno Haible  <bruno@clisp.org>
38855
38856         * modules/realloc-posix: New file.
38857         * modules/realloc (Depends-on): Add realloc-posix.
38858         * lib/realloc.c: Include errno.h.
38859         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
38860         and a POSIX-compatible realloc into a single function. Set ENOMEM
38861         when returning NULL.
38862         * m4/realloc.m4: New file.
38863         * doc/functions/realloc.texi: Mention the realloc-posix module.
38864         * lib/stdlib_.h (realloc): New declaration.
38865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38866         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
38867         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
38868         and HAVE_REALLOC_POSIX.
38869
38870 2007-09-09  Bruno Haible  <bruno@clisp.org>
38871
38872         * modules/calloc-posix: New file.
38873         * modules/calloc (Depends-on): Add calloc-posix.
38874         * lib/calloc.c: Include errno.h.
38875         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
38876         and a POSIX-compatible calloc into a single function. Set ENOMEM
38877         when returning NULL.
38878         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
38879         * doc/functions/calloc.texi: Mention the calloc-posix module.
38880         * lib/stdlib_.h (calloc): New declaration.
38881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38882         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
38883         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
38884         and HAVE_CALLOC_POSIX.
38885
38886 2007-09-09  Bruno Haible  <bruno@clisp.org>
38887
38888         Allow for modules to show an arbitrary notice.
38889         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
38890         * gnulib-tool: New option --extract-notice.
38891         (func_usage): Document it.
38892         (sed_extract_prog): Update.
38893         (func_get_notice): New function.
38894         (func_modules_notice): New function.
38895         (func_import, func_create_testdir): Invoke it.
38896         Suggested by Jim Meyering.
38897
38898 2007-09-09  Bruno Haible  <bruno@clisp.org>
38899
38900         * gnulib-tool: New options --verbose, --quiet.
38901         (func_usage): Document them.
38902         (verbose): New variable.
38903         (func_execute_command): New function.
38904         (func_import): Don't show the module list and the file list if
38905         $verbose < 0.
38906         (func_create_testdir): Likewise. Use func_execute_command.
38907         (func_create_megatestdir): Use func_execute_command.
38908
38909 2007-09-08  Bruno Haible  <bruno@clisp.org>
38910
38911         * gnulib-tool (func_import): Prefer rsync over wget when available,
38912         for fetching the PO files.
38913
38914 2007-09-08  Bruno Haible  <bruno@clisp.org>
38915
38916         * posix-modules: New file. Portions copied from gnulib-tool.
38917         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
38918
38919 2007-09-08  Jim Meyering  <jim@meyering.net>
38920
38921         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
38922         * lib/fpending.h: Rename from __fpending.h.
38923         * lib/fpending.c: Rename from __fpending.c.
38924         Include "fpending.h", not "__fpending.h".
38925         * lib/__fpending.h, lib/__fpending.c: Remove files.
38926         * modules/fpending (Files): Reflect new file names.
38927         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
38928
38929 2007-09-08  Bruno Haible  <bruno@clisp.org>
38930
38931         * m4/inttypes-h.m4: Remove stub file.
38932
38933 2007-09-07  Simon Josefsson  <simon@josefsson.org>
38934
38935         * doc/headers/stdint.texi: Discuss #include_next issue.
38936
38937 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38938
38939         * build-aux/bootstrap: Remove obsolete comment about wget --help.
38940
38941 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38942
38943         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
38944         in variable name.
38945
38946 2007-09-03  Jim Meyering  <jim@meyering.net>
38947
38948         New module: git-version-gen.
38949         * modules/git-version-gen: New file.
38950
38951         Import changes from coreutils for bootstrap script.
38952
38953         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
38954
38955         bootstrap: uses rsync to download the .po files
38956         * build-aux/bootstrap (po_download_command_format): New global.
38957         (download_po_files): Use rsync.
38958         (update_po_files): Don't remove .po files after download,
38959         so future rsync runs can take advantage of the copies.
38960
38961         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
38962
38963         Solve the unnecessary-.po-file-regeneration problem once and for all.
38964         * build-aux/bootstrap (download_po_files): New function, renamed from
38965         get_translations.  Now, downloads, but doesn't update LINGUAS.
38966         (update_po_files): New function.
38967
38968         bootstrap: Ignore more.
38969         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
38970         uniwidth to e.g., lib/.gitignore.
38971         (slurp): Handle the sys_stat_.h -> sys mapping, too.
38972
38973         * build-aux/bootstrap: New setting: vc_ignore.
38974         (insert_sorted_if_absent): Create $file if absent.
38975         Adapt to new, possibly empty, list: $vc_ignore.
38976
38977         bootstrap: generate more ignorable names
38978         * build-aux/bootstrap (slurp): When generating ignorable names,
38979         also map .sin to .sed, .gperf to .c, and .y to .c.
38980
38981 2007-09-03  Jim Meyering  <jim@meyering.net>
38982
38983         * build-aux/git-version-gen: New file, from coreutils.  For details, see
38984         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
38985
38986 2007-09-02  Bruno Haible  <bruno@clisp.org>
38987
38988         Fix mis-recognition of 'mcs' on QNX 6.
38989         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
38990         output contains the string "Mono".
38991         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
38992         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
38993
38994 2007-09-01  Bruno Haible  <bruno@clisp.org>
38995
38996         Fix collision between uniwidth/* and linebreak modules.
38997         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
38998         u32_width): Remove declarations.
38999         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
39000         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
39001         streq3, streq2, streq1, streq0): Remove functions.
39002         (STREQ): Remove macro.
39003         (is_cjk_encoding): Remove function.
39004         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
39005         (uc_width, u8_width, u16_width, u32_width): Remove functions.
39006         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
39007         * NEWS: Document the change.
39008
39009 2007-09-01  Bruno Haible  <bruno@clisp.org>
39010
39011         * lib/streq.h: Add double-inclusion guard.
39012
39013 2007-09-01  Karl Berry  <karl@gnu.org>
39014
39015         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
39016
39017 2007-08-28  Jim Meyering  <jim@meyering.net>
39018
39019         Rename mreadlink_with_size to areadlink_with_size.
39020         * NEWS: Document the change.
39021         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
39022         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
39023         * lib/mreadlink.h: Rename this to...
39024         * lib/areadlink.h: ...this.
39025         * modules/mreadlink-with-size: Rename this to...
39026         * modules/areadlink-with-size: ...this.
39027         * lib/canonicalize.c: Reflect the renaming.
39028         * modules/canonicalize: Likewise.
39029
39030 2007-08-26  Bruno Haible  <bruno@clisp.org>
39031
39032         * gnulib-tool (func_import): When deciding which files to remove,
39033         consider also dangling symbolic links.
39034         Reported by Eric Blake.
39035
39036 2007-08-26  Bruno Haible  <bruno@clisp.org>
39037
39038         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
39039
39040 2007-08-23  Simon Josefsson  <simon@josefsson.org>
39041
39042         * lib/readline.c: Don't include getline.h, the prototype is now
39043         found in stdio.h.
39044
39045 2007-08-23  Jim Meyering  <jim@meyering.net>
39046
39047         Getdelim touchup.
39048         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
39049         around the funlockfile call, since funlockfile never sets errno.
39050         Don't set errno upon failed realloc.
39051
39052 2007-08-22  Eric Blake  <ebb9@byu.net>
39053
39054         Getline touchups.
39055         * lib/getdelim.c (getdelim): Revert regression that required *n to
39056         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
39057         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
39058         getdelim, rather than whether implementation is missing.
39059         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
39060         * lib/stdio_.h (getline): Also declare if replacement is
39061         required.
39062         * doc/functions/getdelim.texi: New file.
39063         * doc/functions/getline.texi: Likewise.
39064         * doc/gnulib.texi (Function Substitutes): Add new files.
39065         Reported by Bruno Haible.
39066
39067 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
39068
39069         * users.txt: Add Guile.
39070
39071 2007-08-22  Eric Blake  <ebb9@byu.net>
39072
39073         * tests/test-getdelim.c (main): Use remove, not unlink.
39074         * tests/test-getline.c (main): Likewise.
39075
39076         Move getline and getdelim into stdio.h, per POSIX 200x.
39077         * modules/getline (Files): Remove getline.h.
39078         (Depends-on): Add stdio.
39079         (configure.ac): Add module indicator.
39080         * modules/getdelim (Files): Remove getdelim.h.
39081         (Depends-on): Add stdio.
39082         (configure.ac): Add module indicator.
39083         * modules/stdio (Makefile.am): Work with new indicators.
39084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
39085         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
39086         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39087         * lib/getdelim.h: Delete.
39088         * lib/getline.h: Delete.
39089         * lib/stdio_.h (getdelim, getline): Declare.
39090         * modules/getdelim-tests: New module.
39091         * modules/getline-tests: Likewise.
39092         * tests/test-getdelim.c: New file.
39093         * tests/test-getline.c: Likewise.
39094         * NEWS: Document the change.
39095         * lib/getline.c: Update choice of header.
39096         * lib/csharpcomp.c: Likewise.
39097         * lib/getpass.c: Likewise.
39098         * lib/javacomp.c: Likewise.
39099         * lib/javaversion.c: Likewise.
39100         * lib/yesno.c: Likewise.
39101         * lib/getdelim.c: Likewise.
39102         (getdelim): Set errno on failure, and avoid memory leak.
39103
39104 2007-08-19  Bruno Haible  <bruno@clisp.org>
39105
39106         * modules/closein (Depends-on): Add freadahead.
39107         * lib/closein.c: Include freadahead.h.
39108         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
39109         is zero.
39110
39111 2007-08-19  Bruno Haible  <bruno@clisp.org>
39112
39113         * modules/freadahead-tests: New file.
39114         * tests/test-freadahead.sh: New file.
39115         * tests/test-freadahead.c: New file.
39116
39117         * modules/freadahead: New file.
39118         * lib/freadahead.h: New file.
39119         * lib/freadahead.c: New file.
39120         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
39121         fbufmode, fpurge, freadable, fwritable.
39122
39123 2007-08-19  Eric Blake  <ebb9@byu.net>
39124
39125         Test yesno in combination with closein.
39126         * lib/yesno.c (yesno): Document use of stdin.
39127         * modules/yesno-tests (Files): New module.
39128         * tests/test-yesno.c (main): New file.
39129         * tests/test-yesno.sh: Likewise.
39130
39131 2007-08-19  Bruno Haible  <bruno@clisp.org>
39132
39133         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
39134         * lib/fseeko.c (rpl_fseeko): Likewise.
39135         * lib/fseterr.c (fseterr): Likewise.
39136
39137 2007-08-19  Bruno Haible  <bruno@clisp.org>
39138
39139         * tests/test-lseek.c (main): Disable a test for BeOS.
39140         * doc/functions/lseek.texi: Document the BeOS bug.
39141
39142 2007-08-19  Bruno Haible  <bruno@clisp.org>
39143             Eric Blake  <ebb9@byu.net>
39144
39145         * lib/lseek.c: Include <sys/stat.h>.
39146         (rpl_lseek): Add workaround code also for Unix platforms.
39147         Needed for BeOS.
39148         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
39149         * doc/functions/lseek.texi: Document BeOS definiency.
39150
39151 2007-08-18  Bruno Haible  <bruno@clisp.org>
39152
39153         * modules/fstrcmp-tests: New file.
39154         * tests/test-fstrcmp.c: New file.
39155
39156 2007-08-18  Bruno Haible  <bruno@clisp.org>
39157
39158         * modules/fstrcmp: New file, from GNU gettext with modifications.
39159         * lib/fstrcmp.h: New file, from GNU gettext.
39160         * lib/fstrcmp.c: New file, from GNU gettext.
39161         * MODULES.html.sh (String handling): Add fstrcmp.
39162
39163 2007-08-18  Bruno Haible  <bruno@clisp.org>
39164
39165         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
39166         'bool'.
39167         (diag, compareseq): Remove const from the ctxt argument.
39168         (USE_HEURISTIC): Undefine at the end.
39169
39170 2007-08-18  Jim Meyering  <jim@meyering.net>
39171
39172         New file: lib/idcache.h
39173         * NEWS: Mention the addition.
39174         * modules/idcache (Files): Add lib/idcache.h
39175         * lib/idcache.c: Include "idcache.h".
39176         Don't include <sys/types.h>.
39177         Add a FIXME comment.
39178         Move file-scoped "static" declarations to the top.
39179         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
39180
39181 2007-08-17  Bruno Haible  <bruno@clisp.org>
39182         and Paul Eggert  <eggert@cs.ucla.edu>
39183
39184         * MODULES.html.sh: Add diffseq.
39185         * modules/diffseq: New file.
39186         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
39187         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
39188
39189 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
39190
39191         Import changes from coreutils for bootstrap script.
39192
39193         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
39194
39195         * build-aux/bootstrap (slurp): Work even in environments where
39196         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
39197         current code does not slurp files whose names start with ".", and
39198         this looks like it might be a troublesome area.
39199
39200         2007-07-11  Jim Meyering  <jim@meyering.net>
39201
39202         If there's a GPL vN copyright comment, require that N == 3.
39203
39204         2007-07-08  Jim Meyering  <jim@meyering.net>
39205
39206         Run the coreutils-specific code only if tests/Makefile.am.in exists.
39207         * build-aux/bootstrap (mam_template): Move definition out of loop.
39208
39209         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
39210
39211         * build-aux/bootstrap (symlink_to_dir): Rename function from
39212         symlink_to_gnulib.  Add a directory parameter.  Update all
39213         callers.
39214         (cp_mark_as_generated): Also check for -- and link to -- files in
39215         gl/.
39216
39217         2007-07-08  Jim Meyering  <jim@meyering.net>
39218
39219         Adapt to deeper hierarchy in gnulib.
39220         * build-aux/bootstrap (symlink_to_dir): If the destination
39221         directory doesn't exist, create it. This is required at least for
39222         "lib/uniwidth/cjk.h".
39223
39224         2007-05-15  Jim Meyering  <jim@meyering.net>
39225
39226         * build-aux/bootstrap: Now that generated Makefile.am files
39227         are no longer under version control, they must be created at
39228         bootstrap time.
39229
39230 2007-08-14  Ben Pfaff  <blp@gnu.org>
39231
39232         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
39233
39234 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
39235
39236         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
39237         given the changes below.
39238         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
39239         even on hosts that have padding bits beyond the supported 64.
39240
39241 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
39242
39243         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
39244         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
39245         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
39246         depends on it.
39247         (xstrtol_error): Remove.
39248         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
39249         but with a different signature.
39250         (ATTRIBUTE_NORETURN, __attribute__): New macros.
39251         * lib/xstrtol-error.c: Include exitfail.h.
39252         (xstrtol_fatal): New function, with a different signature from the
39253         old xstrtol_error, so that the caller need not worry about passing
39254         in an exit status, or about storage management of the option argument.
39255         (xstrtol_error): Now a static function.  Redo signature to
39256         implement xstrtol_fatal.  Output the correct number of hyphens in
39257         front of the option so that the caller need not worry about
39258         storage management.
39259         (N_): New macro.
39260         (_): Remove; not used now.
39261         * modules/xstrtol: Depend on getopt.
39262         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
39263         of old STRTOL_FATAL_ERROR macro.
39264         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
39265         of test program.
39266         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
39267         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
39268
39269 2007-08-08  Eric Blake  <ebb9@byu.net>
39270
39271         * lib/xstrtol-error.c: Add missing include.
39272
39273         Move xstrtol messages into gnulib domain, when --pobase is used.
39274         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
39275         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
39276         * modules/xstrtol (Files): Distribute new file.
39277         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
39278         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
39279         * tests/test-xstrtol.c: ...into new file.
39280         * tests/test-xstrtoul.c: Also test xstrtoul.
39281         * tests/test-xstrtoimax.c: Also test xstrtoimax.
39282         * tests/test-xstrtoumax.c: Also test xstrtoumax.
39283         * tests/test-xstrtol.sh: Drive the tests.
39284         * tests/test-xstrtoimax.sh: Likewise.
39285         * tests/test-xstrtoumax.sh: Likewise.
39286         * modules/xstrtol-tests: New module.
39287         * modules/xstrtoimax-tests: Likewise.
39288         * modules/xstrtoumax-tests: Likewise.
39289
39290 2007-08-08  Jim Meyering  <jim@meyering.net>
39291
39292         New function: mfile_name_concat.
39293         * lib/filenamecat.c (mfile_name_concat): New function, just like
39294         file_name_concat, but return NULL upon failure rather than exiting
39295         with a diagnostic.
39296         * lib/filenamecat.h: Declare it.
39297
39298 2007-08-07  Bruno Haible  <bruno@clisp.org>
39299
39300         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
39301         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
39302         warning from gcc.
39303         Reported by Eric Blake.
39304
39305 2007-08-07  Simon Josefsson  <simon@josefsson.org>
39306
39307         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
39308         * modules/crypto/arcfour (License): Likewise.
39309         * modules/crypto/des-tests (License): Likewise.
39310         * modules/crypto/gc-arctwo-tests (License): Likewise.
39311         * modules/crypto/gc-des-tests (License): Likewise.
39312         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
39313         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
39314         * modules/crypto/gc-md2-tests (License): Likewise.
39315         * modules/crypto/gc-md4-tests (License): Likewise.
39316         * modules/crypto/gc-md5-tests (License): Likewise.
39317         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
39318         * modules/crypto/gc-rijndael-tests (License): Likewise.
39319         * modules/crypto/gc-sha1-tests (License): Likewise.
39320         * modules/crypto/gc-tests (License): Likewise.
39321         * modules/crypto/hmac-md5 (License): Likewise.
39322         * modules/crypto/hmac-sha1 (License): Likewise.
39323         * modules/crypto/md2-tests (License): Likewise.
39324         * modules/crypto/md4-tests (License): Likewise.
39325         * modules/crypto/md5 (License): Likewise.
39326         * modules/crypto/rijndael (License): Likewise.
39327         * modules/crypto/sha1 (License): Likewise.
39328         * modules/memxor (License): Likewise.
39329
39330 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
39331         and Bruno Haible  <bruno@clisp.org>
39332
39333         * NEWS: Describe interface changes to human, xstrtol.
39334         * lib/human.h: Include <xstrtol.h>.
39335         (human_options): Return enum strtol_error, not int.  Remove
39336         bool arg; take int * instead.
39337         * lib/human.c: Don't include "gettext.h".
39338         (_): Remove; no longer used.
39339         Don't include <xstrtol.h>, since human.h does it.
39340         (human_options): Adjust to abovementioned interface changes.
39341         Do not report error to stderr; that's now the caller's
39342         responsibility.
39343         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
39344         interface change.
39345         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
39346         Str, Argument_type_string.  All uses changed.  Put " argument"
39347         in diagnostics to make them clearer.  Change wording of suffix
39348         message for clarity.
39349         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
39350         Argument_type_string.
39351         (STRTOL_FATAL_WARN): Remove; no longer used.
39352         * modules/human (Depends-on): Remove gettext-h.
39353
39354 2007-08-06  Simon Josefsson  <simon@josefsson.org>
39355
39356         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
39357
39358 2007-07-31  Bruno Haible  <bruno@clisp.org>
39359
39360         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
39361         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
39362         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
39363
39364 2007-07-31  Bruno Haible  <bruno@clisp.org>
39365
39366         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
39367         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
39368
39369 2007-07-30  Bruno Haible  <bruno@clisp.org>
39370
39371         * modules/base64 (License): Use the synonymous term "LGPLv2+".
39372         * modules/c-ctype (License): Likewise.
39373         * modules/c-strcase (License): Likewise.
39374         * modules/check-version (License): Likewise.
39375         * modules/iconv (License): Likewise.
39376         * modules/iconv_open (License): Likewise.
39377         * modules/read-file (License): Likewise.
39378         * modules/striconv (License): Likewise.
39379         * modules/strverscmp (License): Likewise.
39380         * modules/vasprintf (License): Likewise.
39381         * modules/crypto/des (License): Likewise.
39382         * modules/crypto/gc (License): Likewise.
39383         * modules/crypto/gc-arcfour (License): Likewise.
39384         * modules/crypto/gc-arctwo (License): Likewise.
39385         * modules/crypto/gc-des (License): Likewise.
39386         * modules/crypto/gc-hmac-md5 (License): Likewise.
39387         * modules/crypto/gc-hmac-sha1 (License): Likewise.
39388         * modules/crypto/gc-md2 (License): Likewise.
39389         * modules/crypto/gc-md4 (License): Likewise.
39390         * modules/crypto/gc-md5 (License): Likewise.
39391         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
39392         * modules/crypto/gc-random (License): Likewise.
39393         * modules/crypto/gc-rijndael (License): Likewise.
39394         * modules/crypto/gc-sha1 (License): Likewise.
39395         * modules/crypto/md2 (License): Likewise.
39396         * modules/crypto/md4 (License): Likewise.
39397
39398 2007-07-30  Jim Meyering  <jim@meyering.net>
39399
39400         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
39401         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
39402         it has valid stat data.  This bug would cause du not to count the
39403         sizes of inaccessible directories.
39404         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
39405         in <http://bugzilla.redhat.com/250077>.
39406
39407 2007-07-25  Peter O'Gorman  <peter@pogma.com>
39408             Bruno Haible  <bruno@clisp.org>
39409
39410         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
39411         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
39412         #include_next, gives a diagnostic about it, but reports no error in
39413         the exit code.
39414         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39415
39416 2007-07-24  Ben Pfaff  <blp@gnu.org>
39417
39418         Improve name: "count-one-bits" is better than "popcount".
39419         * MODULES.html.sh: Update name.
39420         * lib/popcount.h: Renamed lib/count-one-bits.h.
39421         (popcount): Renamed count_one_bits.
39422         (popcountl): Renamed count_one_bits_l.
39423         (popcountll): Renamed count_one_bits_ll.
39424         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
39425         * modules/popcount: Renamed module/count-one-bits.
39426         * modules/popcount-tests: Renamed module/count-one-bits-tests.
39427         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
39428
39429 2007-07-23  Ben Pfaff  <blp@gnu.org>
39430
39431         * lib/popcount.h (popcount32): Reduce size of constants, to allow
39432         better code generation, and add U to large constants to avoid
39433         warnings, in non-GCC case.
39434         Suggested by Bruno Haible.
39435
39436 2007-07-23  Ben Pfaff  <blp@gnu.org>
39437
39438         * lib/popcount.h: Use verify_true instead of if...abort.
39439         * modules/popcount: Depend on verify module.
39440         Suggested by Jim Meyering.
39441
39442 2007-07-23  Bruno Haible  <bruno@clisp.org>
39443
39444         * gnulib-tool (func_import): Create a .cvsignore file also when the
39445         directory is not yet in CVS but the toplevel directory is. When
39446         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
39447         Reported by Karl Berry.
39448
39449 2007-07-22  Ben Pfaff  <blp@gnu.org>
39450
39451         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
39452         case.
39453         Suggested by Eric Blake.
39454
39455 2007-07-22  Ben Pfaff  <blp@gnu.org>
39456
39457         New module: popcount.
39458         * MODULES.html.sh: Add popcount.
39459         * modules/popcount: New file.
39460         * modules/popcount-tests: New file.
39461         * tests/test-popcount.c: New file.
39462         * lib/popcount.h: New file.
39463         * m4/popcount.m4: New file.
39464
39465 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
39466
39467         * build-aux/announce-gen: Update to GPLv3.
39468
39469         * build-aux/config.guess: Update from config.
39470
39471 2007-07-21  Bruno Haible  <bruno@clisp.org>
39472
39473         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
39474         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
39475
39476 2007-07-20  Jim Meyering  <jim@meyering.net>
39477
39478         * check-module: Diagnose a self-dependency.
39479
39480 2007-07-19  Bruno Haible  <bruno@clisp.org>
39481
39482         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
39483         empty.
39484         Reported by Eric Blake.
39485
39486 2007-07-18  Bruno Haible  <bruno@clisp.org>
39487
39488         * gnulib-tool: New options --po-base, --po-domain.
39489         (func_usage): Document them.
39490         (pobase, po_domain): New variables.
39491         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
39492         DEFAULT_TEXT_DOMAIN.
39493         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
39494         (func_import): Consider pobase and po_domain. Create a po/ directory.
39495         (func_create_testdir): Set pobase and po_domain to empty.
39496         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
39497         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
39498
39499 2007-07-18  Bruno Haible  <bruno@clisp.org>
39500
39501         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39502         EXTRA_DIST augmentation for files in build-aux/.
39503
39504 2007-07-16  Bruno Haible  <bruno@clisp.org>
39505
39506         * modules/lseek (License): Use the synonymous term "LGPLv2+".
39507         * modules/getdelim (License): Likewise.
39508
39509 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39510
39511         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
39512         * modules/d-type (License): Likewise.
39513         * modules/extensions (License): Likewise.
39514         * modules/fnmatch (License): Likewise.
39515         * modules/fseeko (License): Likewise.
39516         * modules/getaddrinfo (License): Likewise.
39517         * modules/getline (License): Likewise.
39518         * modules/getlogin_r (License): Likewise.
39519         * modules/getpass (License): Likewise.
39520         * modules/gettimeofday (License): Likewise.
39521         * modules/glob (License): Likewise.
39522         * modules/inet_ntop (License): Likewise.
39523         * modules/malloc (License): Likewise.
39524         * modules/malloca (License): Likewise.
39525         * modules/memmem (License): Likewise.
39526         * modules/mempcpy (License): Likewise.
39527         * modules/memset (License): Likewise.
39528         * modules/minmax (License): Likewise.
39529         * modules/mktime (License): Likewise.
39530         * modules/netinet_in (License): Likewise.
39531         * modules/pathmax (License): Likewise.
39532         * modules/poll (License): Likewise.
39533         * modules/regex (License): Likewise.
39534         * modules/snprintf (License): Likewise.
39535         * modules/stdbool (License): Likewise.
39536         * modules/stdint (License): Likewise.
39537         * modules/stdio (License): Likewise.
39538         * modules/strcase (License): Likewise.
39539         * modules/strcasestr (License): Likewise.
39540         * modules/strdup (License): Likewise.
39541         * modules/string (License): Likewise.
39542         * modules/strndup (License): Likewise.
39543         * modules/strnlen (License): Likewise.
39544         * modules/strpbrk (License): Likewise.
39545         * modules/strptime (License): Likewise.
39546         * modules/strsep (License): Likewise.
39547         * modules/sys_select (License): Likewise.
39548         * modules/sys_socket (License): Likewise.
39549         * modules/sys_stat (License): Likewise.
39550         * modules/sys_time (License): Likewise.
39551         * modules/time (License): Likewise.
39552         * modules/time_r (License): Likewise.
39553         * modules/timegm (License): Likewise.
39554         * modules/unistd (License): Likewise.
39555         * modules/vsnprintf (License): Likewise.
39556         * modules/wctype (License): Likewise.
39557
39558 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39559
39560         * modules/argz (License): LGPLv2+.
39561
39562 2007-07-15  Karl Berry  <karl@gnu.org>
39563
39564         * doc/gnulib.texi: revise node structure per new fdl.texi.
39565
39566 2007-07-14  Bruno Haible  <bruno@clisp.org>
39567
39568         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
39569         the output file.
39570         * lib/uniname/uninames.h: Regenerated.
39571
39572 2007-07-14  Karl Berry  <karl@gnu.org>
39573
39574         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
39575         omitting sectioning and index commands.
39576
39577 2007-07-13  Bruno Haible  <bruno@clisp.org>
39578
39579         New gnulib-tool option --more-symlinks.
39580         * gnulib-tool (func_usage): Document --more-symlinks.
39581         (do_copyrights): New variable.
39582         Recognize option --more-symlinks.
39583         (func_import): Don't add a copyright notice transform to
39584         sed_transform_lib_file if do_copyrights is empty.
39585
39586 2007-07-13  Bruno Haible  <bruno@clisp.org>
39587
39588         * lib/vasnprintf.c (decimal_point_char): Define also if
39589         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
39590         && !NEED_PRINTF_DIRECTIVE_A.
39591         Reported by Clemens Koller <clemens.koller@anagramm.de> via
39592         Gary V. Vaughan <gary@gnu.org>.
39593
39594 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
39595
39596         * lib/inttypes_.h: Undo previous change, since it was fixed
39597         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
39598
39599 2007-07-13  Bruno Haible  <bruno@clisp.org>
39600
39601         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
39602         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
39603
39604 2007-07-13  Jim Meyering  <jim@meyering.net>
39605
39606         df: Don't fail for Tru64's "file-on-file mount".
39607         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
39608         so we fall through and use statfs instead.  Details here:
39609         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
39610         Reported by Albert Chin.
39611
39612 2007-07-13  Bruno Haible  <bruno@clisp.org>
39613
39614         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
39615         * modules/configmake (License): Likewise.
39616         * modules/gettext (License): Likewise.
39617         * modules/gettext-h (License): Likewise.
39618         * modules/include_next (License): Likewise.
39619         * modules/link-warning (License): Likewise.
39620         * modules/localcharset (License): Likewise.
39621         * modules/localename (License): Likewise.
39622         * modules/lock (License): Likewise.
39623         * modules/relocatable-lib-lgpl (License): Likewise.
39624         * modules/size_max (License): Likewise.
39625         * modules/vasnprintf (License): Likewise.
39626         * modules/wchar (License): Likewise.
39627         * modules/xsize (License): Likewise.
39628
39629 2007-07-13  Bruno Haible  <bruno@clisp.org>
39630
39631         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
39632         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
39633
39634 2007-07-12  Bruno Haible  <bruno@clisp.org>
39635
39636         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
39637         in the modules files.
39638
39639 2007-07-11  Karl Berry  <karl@gnu.org>
39640
39641         * MODULES.html.sh (func_module): use
39642          sed -e '\|^'"${includefile}"'$|d'
39643          instead of /.../d, to avoid errors on $includefile's containing /.
39644
39645 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39646
39647         * gnulib-tool (func_import): Avoid duplication of --avoid
39648         statements
39649         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
39650         names to `_' in variable names.
39651
39652 2007-07-10  Eric Blake  <ebb9@byu.net>
39653
39654         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
39655         * NEWS: Document this change.
39656
39657 2007-07-08  Bruno Haible  <bruno@clisp.org>
39658
39659         Update to Unicode 5.0.
39660         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
39661         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
39662         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
39663         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
39664         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
39665         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
39666         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
39667         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
39668         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
39669         U+10A3F, U+1D242..U+1D244.
39670         (nonspacing_table_ind): Update.
39671         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
39672         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
39673
39674 2007-07-08  Bruno Haible  <bruno@clisp.org>
39675
39676         Update to Unicode 5.0.
39677         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
39678         code transform. Extend the name index field of unicode_name_to_code and
39679         unicode_code_to_name from 16 to 24 bits.
39680         * lib/uniname/uniname.c (unicode_character_name,
39681         unicode_name_character): Add the range 0x12xxx to the code transform.
39682         * lib/uniname/uninames.h: Regenerated.
39683         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
39684
39685 2007-07-07  Bruno Haible  <bruno@clisp.org>
39686
39687         * modules/wcwidth-tests: New file.
39688         * tests/test-wcwidth.c: New file.
39689
39690         Work around MacOS X wcwidth() bug.
39691         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
39692         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
39693         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
39694         original wcwidth in non-UTF-8 locales.
39695         * modules/wcwidth (Depends-on): Add localcharset, streq,
39696         uniwidth/width.
39697         * doc/functions/wcwidth.texi: Update.
39698
39699 2007-07-07  Bruno Haible  <bruno@clisp.org>
39700
39701         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
39702         (wcwidth): New declaration.
39703         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
39704         macros.
39705         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
39706         here. Prepare for creating <wchar.h> unconditionally.
39707         * modules/wchar (Depends-on): Add link-warning.
39708         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
39709         REPLACE_WCWIDTH, and GL_LINK_WARNING.
39710         * lib/wcwidth.h: Remove file.
39711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
39712         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
39713         * modules/wcwidth (Files): Remove lib/wcwidth.h.
39714         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
39715         (Include): Replace wcwidth.h with <wchar.h>.
39716         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
39717         * lib/mbchar.h: Don't include wcwidth.h.
39718         * lib/mbswidth.c: Likewise.
39719         * NEWS: Mention the change.
39720
39721 2007-07-07  Bruno Haible  <bruno@clisp.org>
39722
39723         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
39724         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
39725         definition with an external declaration.
39726         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
39727         defined as a function. Remove AC_C_INLINE requirement.
39728         * modules/wcwidth (Files): Add lib/wcwidth.c.
39729         (Makefile.am): Remove redundant statement.
39730
39731 2007-07-07  Bruno Haible  <bruno@clisp.org>
39732
39733         * MODULES.html.sh (Unicode string functions): Add the new modules.
39734
39735         * tests/uniwidth/test-u32-strwidth.c: New file.
39736         * modules/uniwidth/u32-strwidth-tests: New file.
39737
39738         * lib/uniwidth/u32-strwidth.c: New file.
39739         * modules/uniwidth/u32-strwidth: New file.
39740
39741         * tests/uniwidth/test-u16-strwidth.c: New file.
39742         * modules/uniwidth/u16-strwidth-tests: New file.
39743
39744         * lib/uniwidth/u16-strwidth.c: New file.
39745         * modules/uniwidth/u16-strwidth: New file.
39746
39747         * tests/uniwidth/test-u8-strwidth.c: New file.
39748         * modules/uniwidth/u8-strwidth-tests: New file.
39749
39750         * lib/uniwidth/u8-strwidth.c: New file.
39751         * modules/uniwidth/u8-strwidth: New file.
39752
39753         * tests/uniwidth/test-u32-width.c: New file.
39754         * modules/uniwidth/u32-width-tests: New file.
39755
39756         * lib/uniwidth/u32-width.c: New file.
39757         * modules/uniwidth/u32-width: New file.
39758
39759         * tests/uniwidth/test-u16-width.c: New file.
39760         * modules/uniwidth/u16-width-tests: New file.
39761
39762         * lib/uniwidth/u16-width.c: New file.
39763         * modules/uniwidth/u16-width: New file.
39764
39765         * tests/uniwidth/test-u8-width.c: New file.
39766         * modules/uniwidth/u8-width-tests: New file.
39767
39768         * lib/uniwidth/u8-width.c: New file.
39769         * modules/uniwidth/u8-width: New file.
39770
39771         * tests/uniwidth/test-uc_width.c: New file.
39772         * modules/uniwidth/width-tests: New file.
39773
39774         * lib/uniwidth/width.c: New file, from GNU libiconv.
39775         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
39776         * modules/uniwidth/width: New file.
39777
39778         * lib/uniwidth.h: New file, from GNU libiconv.
39779         * modules/uniwidth/base: New file.
39780
39781 2007-07-07  Bruno Haible  <bruno@clisp.org>
39782
39783         * lib/uniname.h: New file, from GNU gettext.
39784         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
39785         * lib/uniname/uninames.h: New file, from GNU gettext.
39786         * lib/uniname/uniname.c: New file, from GNU gettext.
39787         * tests/uniname/test-uninames.sh: New file.
39788         * tests/uniname/test-uninames.c: New file, from GNU gettext.
39789         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
39790         * modules/uniname/base: New file.
39791         * modules/uniname/uniname: New file.
39792         * modules/uniname/uniname-tests: New file.
39793         * MODULES.html.sh (Unicode string functions): Add the new modules.
39794
39795 2007-07-06  Bruno Haible  <bruno@clisp.org>
39796
39797         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
39798
39799 2007-07-06  Bruno Haible  <bruno@clisp.org>
39800
39801         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
39802         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
39803         includes <cygwin/sys_time.h> which includes <sys/select.h> which
39804         include <sys/time.h>.
39805         Reported by Eric Blake.
39806
39807 2007-07-06  Eric Blake  <ebb9@byu.net>
39808
39809         Fix testing canonicalize on cygwin.
39810         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
39811         Revert patch from 2007-06-19.
39812         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
39813         canonicalize module is also in use.
39814         * tests/test-canonicalize.c: New file.
39815         * tests/test-canonicalize.sh: Likewise.
39816         * modules/canonicalize-tests: Likewise.
39817
39818 2007-07-06  Jim Meyering  <jim@meyering.net>
39819
39820         * lib/getugroups.c (getugroups): Detect getgrent failure.
39821         Adjust comment to reflect reality: this function may return -1.
39822
39823 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
39824
39825         * build-aux/bootstrap (TP_URL,get_translations): Update to use
39826         the new TP address.
39827         (usage): Fix typo
39828         (gnulib_mk): New variable.
39829
39830 2007-07-05  Jim Meyering  <jim@meyering.net>
39831
39832         Don't let endgrent clobber errno, no matter how improbable.
39833         * lib/getugroups.c (getugroups): Save and restore errno around
39834         endgrent call.
39835
39836         Close the group DB even when failing with 2^31 or more members.
39837         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
39838
39839 2007-07-04  Jim Meyering  <jim@meyering.net>
39840
39841         * lib/getugroups.h: New file.
39842         * lib/getugroups.c: Include "getugroups.h".
39843         Remove uses of "register" keyword.
39844         Move local variable, "cp", down into scope where used.
39845         Give "username" parameter the "const" attribute.
39846         * modules/getugroups (Files): Add lib/getugroups.h
39847
39848 2007-07-04  Karl Berry  <karl@gnu.org>
39849
39850         * MODULES.html.sh (func_all_modules): Complete rename of
39851         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
39852
39853 2007-07-02  Bruno Haible  <bruno@clisp.org>
39854
39855         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
39856         mode, when inttypes.h comes from gnulib.
39857         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39858
39859 2007-07-02  Simon Josefsson  <simon@josefsson.org>
39860
39861         * NEWS: Mention lgpl module name change.
39862
39863         * modules/lgpl-2.1: Renamed from lgpl.
39864
39865         * NEWS: Mention gpl module name change.
39866
39867         * modules/gpl-3.0: New file, based on gpl-2.0.
39868
39869         * modules/gpl-2.0: Renamed from gpl.
39870
39871         * modules/gpl: Fix filename, doc/gpl.texi is now found at
39872         doc/gpl-2.0.texi.
39873
39874 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39875
39876         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
39877         #define __STDC_LIMIT_MACROS temporarily while including
39878         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
39879         Problem reported by Joel E. Denny in
39880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
39881
39882 2007-07-01  Bruno Haible  <bruno@clisp.org>
39883
39884         * lib/unistdio.h: New file.
39885         * lib/unistdio/u-asnprintf.h: New file.
39886         * lib/unistdio/u-asprintf.h: New file.
39887         * lib/unistdio/u-printf-args.c: New file.
39888         * lib/unistdio/u-printf-args.h: New file.
39889         * lib/unistdio/u-printf-parse.h: New file.
39890         * lib/unistdio/u-snprintf.h: New file.
39891         * lib/unistdio/u-sprintf.h: New file.
39892         * lib/unistdio/u-vasprintf.h: New file.
39893         * lib/unistdio/u-vsnprintf.h: New file.
39894         * lib/unistdio/u-vsprintf.h: New file.
39895         * lib/unistdio/ulc-asnprintf.c: New file.
39896         * lib/unistdio/ulc-asprintf.c: New file.
39897         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
39898         * lib/unistdio/ulc-printf-parse.c: New file.
39899         * lib/unistdio/ulc-snprintf.c: New file.
39900         * lib/unistdio/ulc-sprintf.c: New file.
39901         * lib/unistdio/ulc-vasnprintf.c: New file.
39902         * lib/unistdio/ulc-vasprintf.c: New file.
39903         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
39904         * lib/unistdio/ulc-vsnprintf.c: New file.
39905         * lib/unistdio/ulc-vsprintf.c: New file.
39906         * lib/unistdio/u8-asnprintf.c: New file.
39907         * lib/unistdio/u8-asprintf.c: New file.
39908         * lib/unistdio/u8-printf-parse.c: New file.
39909         * lib/unistdio/u8-snprintf.c: New file.
39910         * lib/unistdio/u8-sprintf.c: New file.
39911         * lib/unistdio/u8-vasnprintf.c: New file.
39912         * lib/unistdio/u8-vasprintf.c: New file.
39913         * lib/unistdio/u8-vsnprintf.c: New file.
39914         * lib/unistdio/u8-vsprintf.c: New file.
39915         * lib/unistdio/u8-u8-asnprintf.c: New file.
39916         * lib/unistdio/u8-u8-asprintf.c: New file.
39917         * lib/unistdio/u8-u8-snprintf.c: New file.
39918         * lib/unistdio/u8-u8-sprintf.c: New file.
39919         * lib/unistdio/u8-u8-vasnprintf.c: New file.
39920         * lib/unistdio/u8-u8-vasprintf.c: New file.
39921         * lib/unistdio/u8-u8-vsnprintf.c: New file.
39922         * lib/unistdio/u8-u8-vsprintf.c: New file.
39923         * lib/unistdio/u16-asnprintf.c: New file.
39924         * lib/unistdio/u16-asprintf.c: New file.
39925         * lib/unistdio/u16-printf-parse.c: New file.
39926         * lib/unistdio/u16-snprintf.c: New file.
39927         * lib/unistdio/u16-sprintf.c: New file.
39928         * lib/unistdio/u16-vasnprintf.c: New file.
39929         * lib/unistdio/u16-vasprintf.c: New file.
39930         * lib/unistdio/u16-vsnprintf.c: New file.
39931         * lib/unistdio/u16-vsprintf.c: New file.
39932         * lib/unistdio/u16-u16-asnprintf.c: New file.
39933         * lib/unistdio/u16-u16-asprintf.c: New file.
39934         * lib/unistdio/u16-u16-snprintf.c: New file.
39935         * lib/unistdio/u16-u16-sprintf.c: New file.
39936         * lib/unistdio/u16-u16-vasnprintf.c: New file.
39937         * lib/unistdio/u16-u16-vasprintf.c: New file.
39938         * lib/unistdio/u16-u16-vsnprintf.c: New file.
39939         * lib/unistdio/u16-u16-vsprintf.c: New file.
39940         * lib/unistdio/u32-asnprintf.c: New file.
39941         * lib/unistdio/u32-asprintf.c: New file.
39942         * lib/unistdio/u32-printf-parse.c: New file.
39943         * lib/unistdio/u32-snprintf.c: New file.
39944         * lib/unistdio/u32-sprintf.c: New file.
39945         * lib/unistdio/u32-vasnprintf.c: New file.
39946         * lib/unistdio/u32-vasprintf.c: New file.
39947         * lib/unistdio/u32-vsnprintf.c: New file.
39948         * lib/unistdio/u32-vsprintf.c: New file.
39949         * lib/unistdio/u32-u32-asnprintf.c: New file.
39950         * lib/unistdio/u32-u32-asprintf.c: New file.
39951         * lib/unistdio/u32-u32-snprintf.c: New file.
39952         * lib/unistdio/u32-u32-sprintf.c: New file.
39953         * lib/unistdio/u32-u32-vasnprintf.c: New file.
39954         * lib/unistdio/u32-u32-vasprintf.c: New file.
39955         * lib/unistdio/u32-u32-vsnprintf.c: New file.
39956         * lib/unistdio/u32-u32-vsprintf.c: New file.
39957         * tests/unistdio/test-ulc-asnprintf1.c: New file.
39958         * tests/unistdio/test-ulc-asnprintf1.h: New file.
39959         * tests/unistdio/test-ulc-printf1.h: New file.
39960         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
39961         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
39962         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
39963         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
39964         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
39965         * tests/unistdio/test-ulc-vasprintf1.c: New file.
39966         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
39967         * tests/unistdio/test-ulc-vsprintf1.c: New file.
39968         * tests/unistdio/test-u8-asnprintf1.c: New file.
39969         * tests/unistdio/test-u8-asnprintf1.h: New file.
39970         * tests/unistdio/test-u8-printf1.h: New file.
39971         * tests/unistdio/test-u8-vasnprintf1.c: New file.
39972         * tests/unistdio/test-u8-vasnprintf2.c: New file.
39973         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
39974         * tests/unistdio/test-u8-vasnprintf3.c: New file.
39975         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
39976         * tests/unistdio/test-u8-vasprintf1.c: New file.
39977         * tests/unistdio/test-u8-vsnprintf1.c: New file.
39978         * tests/unistdio/test-u8-vsprintf1.c: New file.
39979         * tests/unistdio/test-u16-asnprintf1.c: New file.
39980         * tests/unistdio/test-u16-asnprintf1.h: New file.
39981         * tests/unistdio/test-u16-printf1.h: New file.
39982         * tests/unistdio/test-u16-vasnprintf1.c: New file.
39983         * tests/unistdio/test-u16-vasnprintf2.c: New file.
39984         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
39985         * tests/unistdio/test-u16-vasnprintf3.c: New file.
39986         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
39987         * tests/unistdio/test-u16-vasprintf1.c: New file.
39988         * tests/unistdio/test-u16-vsnprintf1.c: New file.
39989         * tests/unistdio/test-u16-vsprintf1.c: New file.
39990         * tests/unistdio/test-u32-asnprintf1.c: New file.
39991         * tests/unistdio/test-u32-asnprintf1.h: New file.
39992         * tests/unistdio/test-u32-printf1.h: New file.
39993         * tests/unistdio/test-u32-vasnprintf1.c: New file.
39994         * tests/unistdio/test-u32-vasnprintf2.c: New file.
39995         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
39996         * tests/unistdio/test-u32-vasnprintf3.c: New file.
39997         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
39998         * tests/unistdio/test-u32-vasprintf1.c: New file.
39999         * tests/unistdio/test-u32-vsnprintf1.c: New file.
40000         * tests/unistdio/test-u32-vsprintf1.c: New file.
40001         * modules/unistdio/base: New file.
40002         * modules/unistdio/u-printf-args: New file.
40003         * modules/unistdio/ulc-asnprintf: New file.
40004         * modules/unistdio/ulc-asprintf: New file.
40005         * modules/unistdio/ulc-fprintf: New file.
40006         * modules/unistdio/ulc-printf-parse: New file.
40007         * modules/unistdio/ulc-snprintf: New file.
40008         * modules/unistdio/ulc-sprintf: New file.
40009         * modules/unistdio/ulc-vasnprintf: New file.
40010         * modules/unistdio/ulc-vasprintf: New file.
40011         * modules/unistdio/ulc-vfprintf: New file.
40012         * modules/unistdio/ulc-vsnprintf: New file.
40013         * modules/unistdio/ulc-vsprintf: New file.
40014         * modules/unistdio/u8-asnprintf: New file.
40015         * modules/unistdio/u8-asprintf: New file.
40016         * modules/unistdio/u8-printf-parse: New file.
40017         * modules/unistdio/u8-snprintf: New file.
40018         * modules/unistdio/u8-sprintf: New file.
40019         * modules/unistdio/u8-vasnprintf: New file.
40020         * modules/unistdio/u8-vasprintf: New file.
40021         * modules/unistdio/u8-vsnprintf: New file.
40022         * modules/unistdio/u8-vsprintf: New file.
40023         * modules/unistdio/u8-u8-asnprintf: New file.
40024         * modules/unistdio/u8-u8-asprintf: New file.
40025         * modules/unistdio/u8-u8-snprintf: New file.
40026         * modules/unistdio/u8-u8-sprintf: New file.
40027         * modules/unistdio/u8-u8-vasnprintf: New file.
40028         * modules/unistdio/u8-u8-vasprintf: New file.
40029         * modules/unistdio/u8-u8-vsnprintf: New file.
40030         * modules/unistdio/u8-u8-vsprintf: New file.
40031         * modules/unistdio/u16-asnprintf: New file.
40032         * modules/unistdio/u16-asprintf: New file.
40033         * modules/unistdio/u16-printf-parse: New file.
40034         * modules/unistdio/u16-snprintf: New file.
40035         * modules/unistdio/u16-sprintf: New file.
40036         * modules/unistdio/u16-vasnprintf: New file.
40037         * modules/unistdio/u16-vasprintf: New file.
40038         * modules/unistdio/u16-vsnprintf: New file.
40039         * modules/unistdio/u16-vsprintf: New file.
40040         * modules/unistdio/u16-u16-asnprintf: New file.
40041         * modules/unistdio/u16-u16-asprintf: New file.
40042         * modules/unistdio/u16-u16-snprintf: New file.
40043         * modules/unistdio/u16-u16-sprintf: New file.
40044         * modules/unistdio/u16-u16-vasnprintf: New file.
40045         * modules/unistdio/u16-u16-vasprintf: New file.
40046         * modules/unistdio/u16-u16-vsnprintf: New file.
40047         * modules/unistdio/u16-u16-vsprintf: New file.
40048         * modules/unistdio/u32-asnprintf: New file.
40049         * modules/unistdio/u32-asprintf: New file.
40050         * modules/unistdio/u32-printf-parse: New file.
40051         * modules/unistdio/u32-snprintf: New file.
40052         * modules/unistdio/u32-sprintf: New file.
40053         * modules/unistdio/u32-vasnprintf: New file.
40054         * modules/unistdio/u32-vasprintf: New file.
40055         * modules/unistdio/u32-vsnprintf: New file.
40056         * modules/unistdio/u32-vsprintf: New file.
40057         * modules/unistdio/u32-u32-asnprintf: New file.
40058         * modules/unistdio/u32-u32-asprintf: New file.
40059         * modules/unistdio/u32-u32-snprintf: New file.
40060         * modules/unistdio/u32-u32-sprintf: New file.
40061         * modules/unistdio/u32-u32-vasnprintf: New file.
40062         * modules/unistdio/u32-u32-vasprintf: New file.
40063         * modules/unistdio/u32-u32-vsnprintf: New file.
40064         * modules/unistdio/u32-u32-vsprintf: New file.
40065         * modules/unistdio/ulc-asnprintf-tests: New file.
40066         * modules/unistdio/ulc-vasnprintf-tests: New file.
40067         * modules/unistdio/ulc-vasprintf-tests: New file.
40068         * modules/unistdio/ulc-vsnprintf-tests: New file.
40069         * modules/unistdio/ulc-vsprintf-tests: New file.
40070         * modules/unistdio/u8-asnprintf-tests: New file.
40071         * modules/unistdio/u8-vasnprintf-tests: New file.
40072         * modules/unistdio/u8-vasprintf-tests: New file.
40073         * modules/unistdio/u8-vsnprintf-tests: New file.
40074         * modules/unistdio/u8-vsprintf-tests: New file.
40075         * modules/unistdio/u16-asnprintf-tests: New file.
40076         * modules/unistdio/u16-vasnprintf-tests: New file.
40077         * modules/unistdio/u16-vasprintf-tests: New file.
40078         * modules/unistdio/u16-vsnprintf-tests: New file.
40079         * modules/unistdio/u16-vsprintf-tests: New file.
40080         * modules/unistdio/u32-asnprintf-tests: New file.
40081         * modules/unistdio/u32-vasnprintf-tests: New file.
40082         * modules/unistdio/u32-vasprintf-tests: New file.
40083         * modules/unistdio/u32-vsnprintf-tests: New file.
40084         * modules/unistdio/u32-vsprintf-tests: New file.
40085         * MODULES.html.sh (Unicode string functions): Add the new modules.
40086
40087 2007-07-01  Bruno Haible  <bruno@clisp.org>
40088
40089         * lib/sprintf.c (sprintf): Limit the available length estimation,
40090         to avoid address wraparound.
40091         * lib/vsprintf.c (vsprintf): Likewise.
40092         * modules/sprintf-posix (Dependencies): Add stdint.
40093         * modules/vsprintf-posix (Dependencies): Likewise.
40094
40095 2007-07-01  Bruno Haible  <bruno@clisp.org>
40096
40097         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
40098         Windows PATH as well. Conservative double-quoting. Comments.
40099
40100 2007-07-01  Bruno Haible  <bruno@clisp.org>
40101             Eric Blake  <ebb9@byu.net>
40102             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40103
40104         * gnulib-tool (self_abspathname): Fix algorithm to cope with
40105         empty components in $PATH, denoting '.'.
40106
40107 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40108
40109         * gnulib-tool: Fix indentation.
40110         (func_create_megatestdir): Likewise.
40111         Report by Bruno Haible.
40112
40113 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40114
40115         Sync from Automake.
40116         * build-aux/gnupload: Fix shell portability issues with for loops.
40117         Report by Karl Berry.
40118
40119 2007-06-29  Simon Josefsson  <simon@josefsson.org>
40120
40121         * build-aux/maint.mk (POURL): Use translationproject.org.
40122
40123 2007-06-27  Simon Josefsson  <simon@josefsson.org>
40124             Bruno Haible  <bruno@clisp.org>
40125
40126         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
40127         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
40128         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
40129         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
40130         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
40131
40132 2007-06-27  Bruno Haible  <bruno@clisp.org>
40133
40134         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
40135         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
40136
40137 2007-06-26  Karl Berry  <karl@gnu.org>
40138
40139         * MODULES.html.sh: remove xreadlink-with-size.
40140
40141 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40142
40143         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
40144         method that I hope also handles the double-include problem noted
40145         by Bruno Haible in
40146         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
40147
40148 2007-06-23  Bruno Haible  <bruno@clisp.org>
40149
40150         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40151         Don't let the 'mostlyclean' target fail if the last subdirectory could
40152         not be removed.
40153         Reported by Karl Berry.
40154
40155 2007-06-23  Bruno Haible  <bruno@clisp.org>
40156
40157         * gnulib-tool (echo): Add a speedier workaround for ksh.
40158         * tests/test-echo.sh: Likewise.
40159
40160 2007-06-23  Bruno Haible  <bruno@clisp.org>
40161
40162         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
40163         * tests/test-echo.sh: Likewise.
40164
40165 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40166
40167         * gnulib-tool (IFS): Initialize early, so we don't set it to
40168         empty later.
40169         (self_abspathname): Rewrite algorithm to set it, reindent.
40170         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
40171         (func_create_megatestdir): Merge some sed scripts.
40172
40173 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40174
40175         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
40176         exposed by Sun Studio 11 cc on Solaris 8.
40177
40178 2007-06-22  Bruno Haible  <bruno@clisp.org>
40179
40180         * gnulib-tool (echo): Ensure the echo primitive does not interpret
40181         backslashes.
40182         * tests/test-echo.sh: New file.
40183
40184 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40185
40186         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
40187         simplify `sed_replace_build_aux' scripts, they are portable but
40188         echoing them with `echo' is not.
40189         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
40190
40191 2007-06-21  Karl Berry  <karl@gnu.org>
40192
40193         * config/srclist.txt: guess we can't handle the licenses via
40194         srclist at the moment.
40195
40196 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
40197
40198         * MODULES.html.sh: Add include_next.
40199         * modules/include_next: New file.
40200
40201 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
40202
40203         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
40204         INCLUDE_NEXT.
40205         (gl_CHECK_NEXT_HEADERS): New macro.
40206         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
40207         the obsolescent gl_ABSOLUTE_HEADER.
40208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
40209         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
40210         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
40211         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40212         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
40213         * m4/math_h.m4 (gl_MATH_H): Likewise.
40214         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40215         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40216         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
40217         * m4/stdint.m4 (gl_STDINT_H): Likewise.
40218         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
40219         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
40220         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
40221         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40222         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40223         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
40224         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40225         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40226         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
40227         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40228         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40229         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40230         * m4/inttypes.m4 (gl_INTTYPES_H): Define
40231         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
40232         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
40233         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
40234         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
40235         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
40236         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
40237         * lib/float_.h: Likewise.
40238         * lib/inttypes_.h: Likewise.
40239         * lib/math_.h: Likewise.
40240         * lib/search_.h: Likewise.
40241         * lib/signal_.h: Likewise.
40242         * lib/stdint_.h: Likewise.
40243         * lib/stdio_.h: Likewise.
40244         * lib/stdlib_.h: Likewise.
40245         * lib/string_.h: Likewise.
40246         * lib/sys_stat_.h: Likewise.
40247         * lib/sys_time_.h: Likewise.
40248         * lib/time_.h: Likewise.
40249         * lib/unistd_.h: Likewise.
40250         * lib/wchar_.h: Likewise.
40251         * lib/wctype_.h: Likewise.
40252         * lib/dirent_.h: Likewise.
40253         * lib/iconv_.h: Likewise.
40254         * lib/locale_.h: Likewise.
40255         * lib/netinet_in_.h: Likewise.
40256         * lib/sys_select_.h: Likewise.
40257         * lib/sys_socket_.h: Likewise.
40258         * lib/sysexits_.h: Likewise.
40259         * modules/fcntl (Depends-on): Depend on include_next, not
40260         absolute_header.
40261         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
40262         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
40263         * modules/fchdir: Likewise.
40264         * modules/float: Likewise.
40265         * modules/iconv_open: Likewise.
40266         * modules/inttypes: Likewise.
40267         * modules/locale: Likewise.
40268         * modules/math: Likewise.
40269         * modules/netinet_in: Likewise.
40270         * modules/search: Likewise.
40271         * modules/signal: Likewise.
40272         * modules/stdint: Likewise.
40273         * modules/stdio: Likewise.
40274         * modules/stdlib: Likewise.
40275         * modules/string: Likewise.
40276         * modules/sys_select: Likewise.
40277         * modules/sys_socket: Likewise.
40278         * modules/sys_stat: Likewise.
40279         * modules/sys_time: Likewise.
40280         * modules/sysexits: Likewise.
40281         * modules/time: Likewise.
40282         * modules/unistd: Likewise.
40283         * modules/wchar: Likewise.
40284         * modules/wctype: Likewise.
40285         * modules/sys_stat: Change maintainer to "all".
40286         * modules/unistd: Likewise.
40287
40288 2007-06-20  Karl Berry  <karl@gnu.org>
40289
40290         * config/srclist.txt: track www changes in license files.
40291
40292 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
40293
40294         * build-aux/bootstrap: Remove stray dot.
40295         Make sure build_aux settings are honored when linking
40296         gnulib_extra_files.
40297
40298 2007-06-19  Eric Blake  <ebb9@byu.net>
40299
40300         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40301         Allow compilation on cygwin.
40302
40303 2007-06-19  Jim Meyering  <jim@meyering.net>
40304
40305         xreadlink-with-size: Remove module.  No longer used.
40306         Ex-callers now use xreadlink or mreadlink-with-size.
40307         * modules/xreadlink-with-size: Remove module.
40308         * lib/xreadlink-with-size.c: Remove file.
40309         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
40310         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
40311         just before the function definition *is* accurate.
40312
40313         Eliminate one way canonicalize_filename_mode could exit.
40314         * lib/canonicalize.c (canonicalize_filename_mode):
40315         Use mreadlink_with_size, not xreadlink_with_size.
40316
40317 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
40318
40319         Detect porting problems to FreeBSD/arm, which has time_t wider than
40320         long int.  Original problem reported for GNU diff by Xin Li in
40321         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
40322         * modules/getdate (Depends-on): Add intprops, verify.
40323         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
40324         is an integer type no wider than long int.
40325
40326 2007-06-18  Jim Meyering  <jim@meyering.net>
40327
40328         New module: mreadlink-with-size.
40329         * MODULES.html.sh: Add mreadlink-with-size.
40330         * modules/mreadlink-with-size: New module
40331         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
40332         not xreadlink-with-size.
40333         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
40334
40335 2007-06-16  Bruno Haible  <bruno@clisp.org>
40336
40337         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
40338         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
40339         Reported by Gary V. Vaughan <gary@gnu.org>.
40340
40341 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
40342
40343         Revamp lchown so that it lives in unistd.h where it belongs.
40344         * lib/lchown.h: Remove.
40345         * lib/dirchownmod.c: Don't include lib/lchown.h.
40346         * lib/fchownat.c: Likewise.
40347         * lib/openat.c: Likewise.
40348         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
40349         does not follow symlinks.
40350         (EOPNOTSUPP): Define if not defined.
40351         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
40352         is defined to 0.
40353         (lchown): New decl.
40354         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
40355         Do not check for lchown decl.
40356         Set REPLACE_LCHOWN.
40357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
40358         REPLACE_LCHOWN.
40359         * modules/chown: Make it clear it follows symlinks.
40360         * modules/lchown: Make it clear it doesn't follow symlinks.
40361         (Files): Remove lib/lchown.h
40362         (Depends-on): Add unistd.
40363         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
40364         (Include): Include <unistd.h>, not "lchown.h".
40365         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
40366         REPLACE_LCHOWN.
40367
40368 2007-06-15  Jim Meyering  <jim@meyering.net>
40369
40370         Change license (GPL to LGPL) of fsusage and dependents.
40371         * modules/fsusage (License): Change to LGPL.
40372         * modules/full-read (License): Likewise.
40373         * modules/full-write (License): Likewise.
40374         * modules/safe-read (License): Likewise.
40375         * modules/safe-write (License): Likewise.
40376
40377 2007-06-14  Ben Pfaff  <blp@gnu.org>
40378
40379         Missing part of allocsa -> malloca transition.
40380         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
40381         gl_MALLOCA.
40382
40383 2007-06-12  Bruno Haible  <bruno@clisp.org>
40384
40385         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
40386         to ia64, x86_64, i386.
40387         Reported by Eric Blake.
40388
40389 2007-06-12  Bruno Haible  <bruno@clisp.org>
40390
40391         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
40392         cross-compiling to x86_64.
40393
40394 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
40395
40396         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
40397         glitch reported by Ralf Wildenhues in
40398         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
40399
40400         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
40401         Vin Shelton.
40402
40403 2007-06-11  Bruno Haible  <bruno@clisp.org>
40404
40405         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
40406         replacement string.
40407         Reported by Eric Blake.
40408
40409 2007-06-10  Bruno Haible  <bruno@clisp.org>
40410
40411         Prepare vasnprintf code for use with Unicode strings.
40412         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
40413         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
40414         TYPE_U32_STRING.
40415         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
40416         a_u32_string variants.
40417         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40418         * lib/printf-args.c: Don't include config.h and the specification
40419         header if PRINTF_FETCHARGS is already defined.
40420         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40421         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
40422         TYPE_U16_STRING, TYPE_U32_STRING.
40423         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
40424         u16_directive, u16_directives, u32_directive, u32_directives): New
40425         types.
40426         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
40427         New declarations.
40428         * lib/printf-parse.c: Don't include config.h and the specification
40429         header if PRINTF_PARSE is already defined. Eliminate the set of
40430         parameters for WIDE_CHAR_VERSION; the user of this file must provide
40431         them now. Include c-ctype.h.
40432         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
40433         directive and CHAR_T_ONLY_ASCII.
40434         * lib/vasnprintf.c: Don't include config.h and the specification header
40435         if VASNPRINTF is already defined.
40436         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
40437         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
40438         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
40439         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
40440         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
40441         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
40442         code accordingly.
40443         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
40444         pad_ourselves also in this case, with the 'c' and 's' directives, and
40445         with a different notion of "width".
40446         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
40447
40448 2007-06-10  Bruno Haible  <bruno@clisp.org>
40449
40450         * modules/unistr/u32-mbsnlen: New file.
40451         * lib/unistr/u32-mbsnlen.c: New file.
40452
40453         * modules/unistr/u16-mbsnlen: New file.
40454         * lib/unistr/u16-mbsnlen.c: New file.
40455
40456         * modules/unistr/u8-mbsnlen: New file.
40457         * lib/unistr/u8-mbsnlen.c: New file.
40458
40459         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
40460         declarations.
40461
40462 2007-06-10  Bruno Haible  <bruno@clisp.org>
40463
40464         * lib/string_.h (mbsnlen): New declaration.
40465         * lib/mbsnlen.c: New file.
40466         * m4/mbsnlen.m4: New file.
40467         * modules/mbsnlen: New file.
40468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
40469         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
40470         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
40471
40472 2007-06-10  Bruno Haible  <bruno@clisp.org>
40473
40474         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
40475
40476 2007-06-10  Bruno Haible  <bruno@clisp.org>
40477
40478         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
40479         * lib/mbuiter.h: Likewise.
40480
40481 2007-06-10  Bruno Haible  <bruno@clisp.org>
40482
40483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
40484         declaration.
40485
40486 2007-06-10  Karl Berry  <karl@gnu.org>
40487
40488         * config/srclist.txt: remove gettext entries, Bruno prefers
40489         to update individually.
40490
40491 2007-06-10  Bruno Haible  <bruno@clisp.org>
40492
40493         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
40494         'maxlen'. Ensure only length + width bytes are allocated, not
40495         length + 1 + width.
40496
40497 2007-06-09  Bruno Haible  <bruno@clisp.org>
40498
40499         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
40500         (CHAR_T): Remove macro.
40501         (VASNPRINTF): Update.
40502
40503 2007-06-09  Bruno Haible  <bruno@clisp.org>
40504
40505         * MODULES.html.sh (Unicode string functions): Add the new modules.
40506
40507         * modules/uniconv/u32-conv-to-enc: New file.
40508         * lib/uniconv/u32-conv-to-enc.c: New file.
40509         * modules/uniconv/u32-conv-to-enc-tests: New file.
40510         * tests/uniconv/test-u32-conv-to-enc.c: New file.
40511
40512         * modules/uniconv/u16-conv-to-enc: New file.
40513         * lib/uniconv/u16-conv-to-enc.c: New file.
40514         * lib/uniconv/u-conv-to-enc.h: New file.
40515         * modules/uniconv/u16-conv-to-enc-tests: New file.
40516         * tests/uniconv/test-u16-conv-to-enc.c: New file.
40517
40518         * modules/uniconv/u8-conv-to-enc: New file.
40519         * lib/uniconv/u8-conv-to-enc.c: New file.
40520         * modules/uniconv/u8-conv-to-enc-tests: New file.
40521         * tests/uniconv/test-u8-conv-to-enc.c: New file.
40522
40523         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40524         u32_conv_to_encoding): New declarations.
40525
40526 2007-06-09  Bruno Haible  <bruno@clisp.org>
40527
40528         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
40529
40530 2007-06-09  Bruno Haible  <bruno@clisp.org>
40531
40532         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
40533         * modules/malloca: Renamed from modules/allocsa, updated.
40534         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
40535         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
40536         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
40537         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
40538         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
40539         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
40540         * modules/xmalloca: Renamed from modules/xallocsa, updated.
40541         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
40542         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
40543         * modules/c-strcasestr (Depends-on): Update.
40544         * lib/c-strcasestr.c: Update.
40545         * modules/c-strstr (Depends-on): Update.
40546         * lib/c-strstr.c: Update.
40547         * modules/canonicalize-lgpl (Depends-on): Update.
40548         * lib/canonicalize-lgpl.c: Update.
40549         * modules/clean-temp (Depends-on): Update.
40550         * lib/clean-temp.c: Update.
40551         * modules/csharpcomp (Depends-on): Update.
40552         * lib/csharpcomp.c: Update.
40553         * modules/csharpexec (Depends-on): Update.
40554         * lib/csharpexec.c: Update.
40555         * modules/javacomp (Depends-on): Update.
40556         * lib/javacomp.c: Update.
40557         * modules/javaexec (Depends-on): Update.
40558         * lib/javaexec.c: Update.
40559         * modules/mbscasestr (Depends-on): Update.
40560         * lib/mbscasestr.c: Update.
40561         * modules/mbsstr (Depends-on): Update.
40562         * lib/mbsstr.c: Update.
40563         * modules/setenv (Depends-on): Update.
40564         * lib/setenv.c: Update.
40565         * modules/strcasestr (Depends-on): Update.
40566         * lib/strcasestr.c: Update.
40567         * modules/striconveha (Depends-on): Update.
40568         * lib/striconveha.c: Update.
40569         * modules/relocatable-prog-wrapper (Files): Update.
40570         * lib/relocwrapper.c: Update.
40571         * build-aux/install-reloc: Update.
40572         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
40573
40574 2007-06-08  Bruno Haible  <bruno@clisp.org>
40575
40576         Port to uClibc.
40577         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
40578         * lib/fpurge.c (fpurge): Likewise.
40579         * lib/freading.c (freading): Likewise.
40580         * lib/fseeko.c (rpl_fseeko): Likewise.
40581         * lib/fseterr.c (fseterr): Likewise.
40582         * lib/fwriting.c (fwriting): Likewise.
40583         * tests/test-fflush.c (main): Avoid a failure on uClibc.
40584
40585 2007-06-08  Bruno Haible  <bruno@clisp.org>
40586
40587         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
40588         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
40589         * modules/gettext (Files): Add m4/intlmacosx.m4.
40590
40591 2007-06-07  Bruno Haible  <bruno@clisp.org>
40592
40593         * modules/localename-tests: New file.
40594         * tests/test-localename.c: New file.
40595
40596         New module 'localename'.
40597         * lib/localename.h: New file.
40598         * lib/localename.c: New file, from GNU gettext.
40599         * m4/localename.m4: New file.
40600         * modules/localename: New file.
40601
40602 2007-06-07  Bruno Haible  <bruno@clisp.org>
40603
40604         Work around the lack of <wchar.h> on some builds of uClibc.
40605         * doc/headers/wchar.texi: Update.
40606         * lib/wchar_.h: Include <wchar.h> only if it exists.
40607         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
40608         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
40609         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
40610         doesn't exist.
40611         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
40612         * modules/mbfile (Depends-on): Add wchar.
40613         * modules/mbiter (Depends-on): Likewise.
40614         * modules/mbuiter (Depends-on): Likewise.
40615         Reported by Simon Josefsson.
40616
40617 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40618
40619         Work around problem reported by Steven M. Schweda in
40620         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
40621         Tru64 5.1B with the Compaq compiler environment installed declares
40622         an 'isblank' function but does not define it in the C library.
40623         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
40624         * lib/regex_internal.h (isblank): Likewise.
40625         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
40626         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40627
40628 2007-06-05  Bruno Haible  <bruno@clisp.org>
40629
40630         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
40631         ia64.
40632         * modules/printf-safe: New file.
40633         * modules/fprintf-posix (Depends-on): Add printf-safe.
40634         * modules/printf-posix (Depends-on): Likewise.
40635         * modules/snprintf-posix (Depends-on): Likewise.
40636         * modules/sprintf-posix (Depends-on): Likewise.
40637         * modules/vasnprintf-posix (Depends-on): Likewise.
40638         * modules/vasprintf-posix (Depends-on): Likewise.
40639         * modules/vfprintf-posix (Depends-on): Likewise.
40640         * modules/vprintf-posix (Depends-on): Likewise.
40641         * modules/vsnprintf-posix (Depends-on): Likewise.
40642         * modules/vsprintf-posix (Depends-on): Likewise.
40643         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
40644         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
40645         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
40646         "no" on i386, x86_64, ia64.
40647         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
40648         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40649         on i386, x86_64, ia64.
40650         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
40651         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40652         on i386, x86_64, ia64.
40653         * tests/test-vasnprintf-posix.c: Include float.h.
40654         (LDBL80_WORDS): New macro.
40655         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40656         on i386, x86_64, ia64.
40657         * tests/test-vasprintf-posix.c: Include float.h.
40658         (LDBL80_WORDS): New macro.
40659         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40660         on i386, x86_64, ia64.
40661         * tests/test-snprintf-posix.c: Include float.h.
40662         * tests/test-sprintf-posix.c: Likewise.
40663         * tests/test-vsnprintf-posix.c: Likewise.
40664         * tests/test-vsprintf-posix.c: Likewise.
40665
40666 2007-06-05  Bruno Haible  <bruno@clisp.org>
40667
40668         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
40669         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
40670         non-IEEE numbers on i386, x86_64, ia64.
40671         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
40672         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
40673         * tests/test-isnanl.h: Include float.h.
40674         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
40675
40676 2007-06-05  Bruno Haible  <bruno@clisp.org>
40677
40678         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
40679         also the %a / %A. Handle the %a / %A code before this extra handling.
40680
40681 2007-06-05  Bruno Haible  <bruno@clisp.org>
40682
40683         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
40684         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
40685
40686 2007-06-05  Bruno Haible  <bruno@clisp.org>
40687
40688         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
40689         typo in variable name.
40690
40691 2007-06-05  Eric Blake  <ebb9@byu.net>
40692
40693         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
40694         Reported by Simon Josefsson.
40695
40696 2007-06-04  Bruno Haible  <bruno@clisp.org>
40697
40698         Avoid test failures on some PowerPC platforms.
40699         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
40700         Define differently for PowerPC.
40701         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
40702         Reported by Gary V. Vaughan <gary@gnu.org>.
40703
40704 2007-06-02  Bruno Haible  <bruno@clisp.org>
40705
40706         Fix test-stdint failure on FreeBSD/ia64.
40707         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
40708         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
40709         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
40710         * doc/headers/stdint.texi: Update.
40711
40712 2007-06-01  Bruno Haible  <bruno@clisp.org>
40713
40714         * tests/test-binary-io.c (main): Pass a third argument to open().
40715         Reported by Gary V. Vaughan <gary@gnu.org>.
40716
40717 2007-06-01  Bruno Haible  <bruno@clisp.org>
40718
40719         * doc/functions/frexpl.texi: Update for mingw.
40720
40721 2007-06-01  Bruno Haible  <bruno@clisp.org>
40722
40723         * tests/test-lseek.c (main): Disable test of errno for invalid third
40724         argument.
40725         * doc/functions/lseek.texi: Update.
40726         Reported by Gary V. Vaughan <gary@gnu.org>.
40727
40728 2007-05-28  Bruno Haible  <bruno@clisp.org>
40729
40730         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
40731
40732 2007-05-31  Eric Blake  <ebb9@byu.net>
40733
40734         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
40735         cross compiling.
40736
40737 2007-05-30  Eric Blake  <ebb9@byu.net>
40738         and Bruno Haible  <bruno@clisp.org>
40739
40740         Work around mingw test failures exposed by m4-1.4.9b.
40741         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
40742         * tests/test-unistd.c: Disable uid_t and git_t tests for the
40743         moment.
40744
40745 2007-05-30  Bruno Haible  <bruno@clisp.org>
40746
40747         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
40748         assuming that they are closed. Needed on HP-UX 11.
40749
40750 2007-05-29  Bruno Haible  <bruno@clisp.org>
40751
40752         Fix a problem with #include_next.
40753         * lib/dirent_.h: Split the double-inclusion guard.
40754         * lib/fcntl_.h: Likewise.
40755         * lib/float_.h: Likewise.
40756         * lib/iconv_.h: Likewise.
40757         * lib/inttypes_.h: Likewise.
40758         * lib/locale_.h: Likewise.
40759         * lib/math_.h: Likewise.
40760         * lib/netinet_in_.h: Likewise.
40761         * lib/search_.h: Likewise.
40762         * lib/signal_.h: Likewise.
40763         * lib/stdint_.h: Likewise.
40764         * lib/stdio_.h: Likewise.
40765         * lib/stdlib_.h: Likewise.
40766         * lib/string_.h: Likewise.
40767         * lib/sys_select_.h: Likewise.
40768         * lib/sys_socket_.h: Likewise.
40769         * lib/sys_stat_.h: Likewise.
40770         * lib/sys_time_.h: Likewise.
40771         * lib/sysexits_.h: Likewise.
40772         * lib/time_.h: Likewise.
40773         * lib/unistd_.h: Likewise.
40774         * lib/wchar_.h: Likewise.
40775         * lib/wctype_.h: Likewise.
40776
40777 2007-05-29  Bruno Haible  <bruno@clisp.org>
40778
40779         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
40780         for the moment.
40781
40782 2007-05-29  Bruno Haible  <bruno@clisp.org>
40783
40784         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
40785         invocation.
40786         Reported by Eric Blake.
40787
40788 2007-05-29  Bruno Haible  <bruno@clisp.org>
40789
40790         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
40791         compiling case.
40792
40793 2007-05-29  Eric Blake  <ebb9@byu.net>
40794             Bruno Haible  <bruno@clisp.org>
40795
40796         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
40797         cross compiles.
40798
40799 2007-05-28  Eric Blake  <ebb9@byu.net>
40800
40801         * modules/closein-tests (test_closein_LDADD): Support test on
40802         cygwin with libtool.
40803
40804 2007-05-28  Bruno Haible  <bruno@clisp.org>
40805
40806         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
40807         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40808         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40809         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40810         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40811         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40812         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40813         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40814         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40815
40816 2007-05-28  Eric Blake  <ebb9@byu.net>
40817
40818         Unconditionally include <config.h> in unit tests.
40819         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
40820         * tests/test-allocsa.c, tests/test-arcfour.c,
40821         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
40822         tests/test-array_list.c, tests/test-array_oset.c,
40823         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
40824         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
40825         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
40826         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
40827         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
40828         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
40829         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
40830         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
40831         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
40832         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
40833         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
40834         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
40835         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
40836         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
40837         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
40838         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
40839         test-md5.c, test-memmem.c, test-printf-posix.c,
40840         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
40841         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
40842         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
40843         test-strcasestr.c, test-striconv.c, test-striconveh.c,
40844         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
40845         test-vasnprintf-posix2.c, test-vasnprintf.c,
40846         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
40847         test-vfprintf-posix.c, test-vprintf-posix.c,
40848         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
40849         test-xvasprintf.c: Likewise.
40850
40851 2007-05-28  Bruno Haible  <bruno@clisp.org>
40852
40853         * gnulib-tool (func_import): Remember the --with-tests command-line
40854         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
40855         Reported by Eric Blake.
40856
40857 2007-05-28  Bruno Haible  <bruno@clisp.org>
40858
40859         * modules/ftell-tests: New file.
40860         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
40861         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
40862
40863         * lib/ftell.c: New file.
40864         * modules/ftell: New file.
40865         * m4/ftell.m4: New file.
40866         * doc/functions/ftell.texi: Update.
40867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
40868         REPLACE_FTELL.
40869         * lib/stdio_.h (rpl_ftell): New declaration.
40870         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
40871         REPLACE_FTELL.
40872
40873 2007-05-28  Eric Blake  <ebb9@byu.net>
40874
40875         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
40876
40877 2007-05-28  Bruno Haible  <bruno@clisp.org>
40878
40879         * modules/fseek-tests: New file.
40880         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
40881         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
40882
40883         * lib/fseek.c: New file.
40884         * modules/fseek: New file.
40885         * m4/fseek.m4: New file.
40886         * doc/functions/fseek.texi: Update.
40887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
40888         REPLACE_FSEEK.
40889         * lib/stdio_.h (rpl_fseek): New declaration.
40890         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
40891         REPLACE_FSEEK.
40892
40893 2007-05-28  Bruno Haible  <bruno@clisp.org>
40894
40895         * lib/stdio_.h (fflush): More comments.
40896
40897 2007-05-28  Bruno Haible  <bruno@clisp.org>
40898
40899         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
40900         runtime test.
40901
40902 2007-05-28  Eric Blake  <ebb9@byu.net>
40903
40904         Improve lseek module.
40905         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
40906         * lib/unistd_.h (lseek): Scale back link warning message.
40907         * tests/test-lseek.c: Beef up test.
40908         * tests/test-lseek.sh: Exercise more facets of lseek.
40909         Reported by Bruno Haible.
40910
40911 2007-05-28  Bruno Haible  <bruno@clisp.org>
40912
40913         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
40914         to define.
40915
40916 2007-05-27  Bruno Haible  <bruno@clisp.org>
40917
40918         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
40919
40920 2007-05-27  Bruno Haible  <bruno@clisp.org>
40921
40922         * modules/openmp: New file.
40923         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
40924         Noah Misch.
40925
40926 2007-05-26  Bruno Haible  <bruno@clisp.org>
40927
40928         * modules/chdir-long (Depends-on): Add fchdir.
40929         * modules/chdir-safer (Depends-on): Likewise.
40930         * modules/fts (Depends-on): Likewise.
40931         * modules/fts-lgpl (Depends-on): Likewise.
40932         * modules/openat (Depends-on): Likewise.
40933         * modules/savewd (Depends-on): Likewise.
40934
40935 2007-05-24  Eric Blake  <ebb9@byu.net>
40936
40937         Fix lseek on mingw.
40938         * modules/lseek: New module.
40939         * m4/lseek.m4: New file.
40940         * lib/lseek.c: New file.
40941         * modules/lseek-tests: New file.
40942         * tests/test-lseek.c: New file.
40943         * tests/test-lseek.sh: New file.
40944         * MODULES.html.sh: Document lseek module.
40945         * modules/fflush (Depends-on): Add lseek, fseeko.
40946         * modules/fseeko (Depends-on): Likewise.
40947         * modules/ftello (Depends-on): Likewise.
40948         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
40949         broken.
40950         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
40951         broken.
40952         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
40953         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
40954         * lib/ftello.c (rpl_ftello): Likewise.
40955         * tests/test-fseeko.c (main): Test this.
40956         * tests/test-fseeko.sh: Likewise.
40957         * tests/test-ftello.c (main): Likewise.
40958         * tests/test-ftello.sh: Likewise.
40959         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
40960         implies replacing fseek.
40961         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
40962         HAVE_FTELLO.
40963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
40964         * modules/unistd (Makefile.am): Likewise.
40965         * lib/unistd_.h (lseek): Declare a replacement.
40966         * doc/functions/lseek.texi (lseek): Document this fix.
40967         * doc/functions/fseek.texi (fseek): Likewise.
40968         * doc/functions/ftell.texi (ftell): Likewise.
40969
40970 2007-05-24  Bruno Haible  <bruno@clisp.org>
40971
40972         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
40973         in the printed representation of a NaN.
40974         * tests/test-vasprintf-posix.c (test_function): Likewise.
40975         * tests/test-snprintf-posix.h (test_function): Likewise.
40976         * tests/test-sprintf-posix.h (test_function): Likewise.
40977         Reported by Eric Blake.
40978
40979 2007-05-23  Eric Blake  <ebb9@byu.net>
40980
40981         Fix fseeko/ftello on cygwin 1.5.24.
40982         * doc/functions/fseeko.texi (fseeko): Document the fix.
40983         * doc/functions/ftello.texi (ftello): Document the fix.
40984         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
40985         * doc/functions/stdout.text (stdout): New file.
40986         * doc/functions/stderr.text (stderr): New file.
40987         * doc/gnulib.texi (Function Substitutes): Use new files.
40988         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
40989         prior to 1.7.0.
40990         * tests/test-ftello.c (main): Likewise for ftello.
40991         * tests/test-fseeko.sh: New file.
40992         * tests/test-ftello.sh: New file.
40993         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
40994         with seekable stdin.
40995         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
40996         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
40997         (gl_REPLACE_FSEEKO): New macro.
40998         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
40999         * modules/fseeko (Files): Distribute fseeko.c.
41000         * modules/ftello (Files): Distribute ftello.c.
41001         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
41002         mode.
41003         * lib/ftello.c (rpl_ftello): New file.
41004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
41005         fseeko, ftello.
41006         (gl_STDIN_LARGE_OFFSET): New macro.
41007         * modules/stdio (Makefile.am): Perform the replacement.
41008         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
41009
41010 2007-05-23  Bruno Haible  <bruno@clisp.org>
41011
41012         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
41013         GNULIB_POSIXCHECK is defined.
41014
41015 2007-05-21  Bruno Haible  <bruno@clisp.org>
41016
41017         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
41018         Check also the output for NaN arguments. When cross-compiling, guess
41019         no on IRIX.
41020         * lib/vasnprintf.c: Update comments.
41021         * tests/test-vasnprintf-posix.c (strisnan): New function.
41022         (test_function): Use it.
41023         * tests/test-vasprintf-posix.c (strisnan): New function.
41024         (test_function): Use it.
41025         * tests/test-snprintf-posix.h (strisnan): New function.
41026         (test_function): Use it.
41027         * tests/test-sprintf-posix.h (strisnan): New function.
41028         (test_function): Use it.
41029         Reported by Eric Blake.
41030
41031 2007-05-20  Bruno Haible  <bruno@clisp.org>
41032
41033         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
41034         numbers that fails on BeOS.
41035         * doc/functions/frexpl.texi: Update.
41036
41037 2007-05-20  Jim Meyering  <jim@meyering.net>
41038
41039         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
41040         forced upon us by glibc-2.6.
41041
41042 2007-05-20  Bruno Haible  <bruno@clisp.org>
41043
41044         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
41045         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
41046         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
41047         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
41048         NEED_PRINTF_INFINITE.
41049         (is_infinitel): New function.
41050         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
41051         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
41052         gl_PREREQ_VASNPRINTF_INFINITE.
41053         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
41054         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41055         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
41056         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
41057         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
41058         gl_PREREQ_VASNPRINTF_INFINITE.
41059         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41060         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41061         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41062         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41063         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41064         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41065         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41066         * doc/functions/fprintf.texi: Update.
41067         * doc/functions/printf.texi: Update.
41068         * doc/functions/snprintf.texi: Update.
41069         * doc/functions/sprintf.texi: Update.
41070         * doc/functions/vfprintf.texi: Update.
41071         * doc/functions/vprintf.texi: Update.
41072         * doc/functions/vsnprintf.texi: Update.
41073         * doc/functions/vsprintf.texi: Update.
41074
41075 2007-05-20  Bruno Haible  <bruno@clisp.org>
41076
41077         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
41078         was not found in libc.
41079         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
41080
41081 2007-05-20  Bruno Haible  <bruno@clisp.org>
41082
41083         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
41084         printed as "-nan" instead of "nan".
41085         * tests/test-vasprintf-posix.c (test_function): Likewise.
41086         * tests/test-snprintf-posix.h (test_function): Likewise.
41087         * tests/test-sprintf-posix.h (test_function): Likewise.
41088         Needed for HP-UX 11.
41089
41090 2007-05-20  Jim Meyering  <jim@meyering.net>
41091
41092         Fix buggy test for the fchownat-deref bug.
41093         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
41094         symlink required for the run-test.  Without it, this test would
41095         always declare that fchownat doesn't work, and client code would
41096         unnecessarily use the replacement function with fixed libc.
41097         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
41098         Reported by Greg Schafer.
41099
41100 2007-05-19  Bruno Haible  <bruno@clisp.org>
41101
41102         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
41103         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
41104         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
41105         Needed for IRIX 6.5 and Solaris 2.5.1.
41106
41107 2007-05-19  Bruno Haible  <bruno@clisp.org>
41108
41109         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
41110         (test_function): Skip tests involving -0.0 on platforms where
41111         -0.0 = 0.0.
41112         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
41113         (test_function): Skip tests involving -0.0 on platforms where
41114         -0.0 = 0.0.
41115         * tests/test-snprintf-posix.h (have_minus_zero): New function.
41116         (test_function): Skip tests involving -0.0 on platforms where
41117         -0.0 = 0.0.
41118         * tests/test-sprintf-posix.h (have_minus_zero): New function.
41119         (test_function): Skip tests involving -0.0 on platforms where
41120         -0.0 = 0.0.
41121         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
41122         tests.
41123         * tests/test-printf-posix.h (test_function): Likewise.
41124         * tests/test-printf-posix.output: Remove all -0.0 related results.
41125         Needed for IRIX 6.5.
41126
41127 2007-05-19  Bruno Haible  <bruno@clisp.org>
41128
41129         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
41130         printed as "nan0x7fffffff" instead of "nan".
41131         * tests/test-vasprintf-posix.c (test_function): Likewise.
41132         * tests/test-snprintf-posix.h (test_function): Likewise.
41133         * tests/test-sprintf-posix.h (test_function): Likewise.
41134         * tests/test-fprintf-posix.h (NaN): Remove macro.
41135         (test_function): Remove all NaN related tests.
41136         * tests/test-printf-posix.h (NaN): Remove macro.
41137         (test_function): Remove all NaN related tests.
41138         * tests/test-printf-posix.output: Remove all NaN related results.
41139         Needed for IRIX 6.5.
41140
41141 2007-05-19  Bruno Haible  <bruno@clisp.org>
41142
41143         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
41144         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
41145
41146 2007-05-19  Bruno Haible  <bruno@clisp.org>
41147
41148         * lib/float_.h: New file.
41149         * m4/float_h.m4: New file.
41150         * modules/float: New file.
41151         * modules/isnanl (Dependencies): Add float.
41152         * modules/isnanl-nolibm (Dependencies): Likewise.
41153         * modules/mathl (Dependencies): Likewise.
41154         * modules/printf-frexpl (Dependencies): Likewise.
41155         * modules/signbit (Dependencies): Likewise.
41156         * modules/vasnprintf (Dependencies): Likewise.
41157         * doc/headers/float.texi: Update.
41158
41159 2007-05-19  Jim Meyering  <jim@meyering.net>
41160
41161         * lib/utimens.c (gl_futimens): Rename from futimens,
41162         now that glibc-2.6 declares futimens.
41163         * lib/utimens.h: Likewise.
41164
41165 2007-05-19  Bruno Haible  <bruno@clisp.org>
41166
41167         Avoid test failures on mingw.
41168         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
41169         * tests/test-printf-posix.sh: Likewise.
41170         * tests/test-vfprintf-posix.sh: Likewise.
41171         * tests/test-vprintf-posix.sh: Likewise.
41172
41173 2007-05-19  Bruno Haible  <bruno@clisp.org>
41174
41175         Fix *printf result for NaN, Inf, -0.0 on mingw.
41176         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
41177         * lib/vasnprintf.c: Include math.h and isnan.h.
41178         (is_infinite_or_zero): New function.
41179         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
41180         values in the %f, %F, %e, %E, %g, %G directives.
41181         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
41182         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41183         gl_PRINTF_INFINITE and test its result. Invoke
41184         gl_PREREQ_VASNPRINTF_INFINITE.
41185         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41186         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41187         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41188         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41189         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41190         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41191         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41192         * doc/functions/fprintf.texi: Update.
41193         * doc/functions/printf.texi: Update.
41194         * doc/functions/snprintf.texi: Update.
41195         * doc/functions/sprintf.texi: Update.
41196         * doc/functions/vfprintf.texi: Update.
41197         * doc/functions/vprintf.texi: Update.
41198         * doc/functions/vsnprintf.texi: Update.
41199         * doc/functions/vsprintf.texi: Update.
41200
41201 2007-05-19  Bruno Haible  <bruno@clisp.org>
41202
41203         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
41204         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
41205         Instead of multiplying with 10^k, set extra_zeroes to k.
41206         (scale10_round_long_double): Remove function.
41207
41208 2007-05-18  Bruno Haible  <bruno@clisp.org>
41209
41210         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
41211         introduced on 2007-05-06.
41212
41213 2007-05-18  Bruno Haible  <bruno@clisp.org>
41214
41215         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
41216         %g directives.
41217         * tests/test-vasprintf-posix.c (test_function): Likewise.
41218         * tests/test-snprintf-posix.h (test_function): Likewise.
41219         * tests/test-sprintf-posix.h (test_function): Likewise.
41220
41221 2007-05-18  Bruno Haible  <bruno@clisp.org>
41222
41223         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
41224         (strmatch): New function.
41225         (test_function): Test the %f directive on numbers of various exponents.
41226         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
41227         (strmatch): New function.
41228         (test_function): Test the %f directive on numbers of various exponents.
41229         * tests/test-snprintf-posix.h (strmatch): New function.
41230         (test_function): Test the %f directive on numbers of various exponents.
41231         * tests/test-sprintf-posix.h (strmatch): New function.
41232         (test_function): Test the %f directive on numbers of various exponents.
41233         * tests/test-snprintf-posix.c (SIZEOF): New macro.
41234         * tests/test-sprintf-posix.c (SIZEOF): New macro.
41235         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
41236         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
41237
41238 2007-05-18  Bruno Haible  <bruno@clisp.org>
41239
41240         Add support for 'long double' number output.
41241         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
41242         * lib/vasnprintf.c: Include math.h and float+.h.
41243         (mp_limb_t): New type.
41244         (GMP_LIMB_BITS): New macro.
41245         (mp_twolimb_t): New type.
41246         (GMP_TWOLIMB_BITS): New macro.
41247         (mpn_t): New type.
41248         (multiply, divide, convert_to_decimal, decode_long_double,
41249         scale10_round_long_double, scale10_round_decimal_long_double,
41250         floorlog10l): New functions.
41251         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
41252         for the %f, %F, %e, %E, %g, %G directives.
41253         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
41254         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41255         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
41256         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
41257         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41258         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41259         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41260         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41261         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41262         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41263         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41264         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
41265         * modules/snprintf-posix (Depends-on): Likewise.
41266         * modules/sprintf-posix (Depends-on): Likewise.
41267         * modules/vasnprintf-posix (Depends-on): Likewise.
41268         * modules/vasprintf-posix (Depends-on): Likewise.
41269         * modules/vfprintf-posix (Depends-on): Likewise.
41270         * modules/vsnprintf-posix (Depends-on): Likewise.
41271         * modules/vsprintf-posix (Depends-on): Likewise.
41272         * modules/vasnprintf (Files): Add lib/float+.h.
41273         * doc/functions/fprintf.texi: Update.
41274         * doc/functions/printf.texi: Update.
41275         * doc/functions/snprintf.texi: Update.
41276         * doc/functions/sprintf.texi: Update.
41277         * doc/functions/vfprintf.texi: Update.
41278         * doc/functions/vprintf.texi: Update.
41279         * doc/functions/vsnprintf.texi: Update.
41280         * doc/functions/vsprintf.texi: Update.
41281
41282 2007-05-18  Bruno Haible  <bruno@clisp.org>
41283
41284         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
41285
41286 2007-05-18  Bruno Haible  <bruno@clisp.org>
41287
41288         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
41289         for printing 64-bit integers. Needed for mingw.
41290
41291 2007-05-18  Bruno Haible  <bruno@clisp.org>
41292
41293         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41294         gl_FUNC_FREXPL_WORKS.
41295         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
41296
41297 2007-05-18  Bruno Haible  <bruno@clisp.org>
41298
41299         * modules/frexpl-nolibm-tests: New file.
41300
41301         * modules/frexpl-nolibm: New file.
41302         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
41303
41304 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41305
41306         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
41307         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41308         GCC 4.2, which otherwise issues a lot of warnings.
41309         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
41310         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
41311         Likewise.
41312         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
41313         * modules/iconv_open (iconv.h): Likewise.
41314         * modules/locale (locale.h): Likewise.
41315         * modules/netinet_in (netinet/in.h): Likewise.
41316         * modules/sys_select (sys_select.h): Likewise.
41317         * modules/sys_socket (sys/socket.h): Likewise.
41318         * modules/sys_stat (sys/stat.h): Likewise.
41319         * modules/sysexits (sysexits.h): Likewise.
41320         * modules/unistd (unistd.h): Likewise.
41321
41322 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41323
41324         * modules/closein-tests (Makefile.am): Distribute
41325         `test-closein.sh'.
41326
41327 2007-05-17  Bruno Haible  <bruno@clisp.org>
41328
41329         * tests/test-printf-posix.output: Renamed from
41330         tests/test-fprintf-posix.out.
41331         * modules/fprintf-posix-tests: Update.
41332         * modules/printf-posix-tests: Update.
41333         * modules/vfprintf-posix-tests: Update.
41334         * modules/vprintf-posix-tests: Update.
41335         * tests/test-fprintf-posix.sh: Update.
41336         * tests/test-printf-posix.sh: Update.
41337         * tests/test-vfprintf-posix.sh: Update.
41338         * tests/test-vprintf-posix.sh: Update.
41339         Reported by Ralf Wildenhues.
41340
41341 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41342
41343         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
41344         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41345         GCC 4.2, which otherwise issues a lot of warnings.
41346         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
41347         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
41348         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
41349         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
41350         it should no longer be needed.
41351         * lib/string_.h: Likewise.
41352         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
41353         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
41354         * modules/inttypes (inttypes.h): Likewise.
41355         * modules/math (math.h): Likewise.
41356         * modules/search (search.h): Likewise.
41357         * modules/signal (signal.h): Likewise.
41358         * modules/stdint (stdint.h): Likewise.
41359         * modules/stdio (stdio.h): Likewise.
41360         * modules/stdlib (stdlib.h): Likewise.
41361         * modules/string (string.h): Likewise.
41362         * modules/sys_time (sys/time.h): Likewise.
41363         * modules/time (time.h): Likewise.
41364         * modules/wchar (wchar.h): Likewise.
41365         * modules/wctype (wtype.h): Likewise.
41366
41367 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41368
41369         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
41370
41371 2007-05-13  Bruno Haible  <bruno@clisp.org>
41372
41373         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
41374         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41375         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
41376         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41377         (gl_PREREQ_STRTOK_R): Don't require it here.
41378
41379 2007-05-13  Bruno Haible  <bruno@clisp.org>
41380
41381         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
41382         when used in C++ mode.
41383
41384 2007-05-12  Bruno Haible  <bruno@clisp.org>
41385
41386         * lib/linebuffer.h: Tweak doc.
41387         * lib/linebuffer.c: Likewise.
41388
41389 2007-05-12  James Youngman  <jay@gnu.org>
41390
41391         * lib/linebuffer.c (readlinebuffer_delim): New function,
41392         like readlinebuffer, but use a caller-specified delimiter.
41393         (readlinebuffer): Just call readlinebuffer_delim with '\n'
41394         as the delimiter.
41395         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
41396
41397 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41398
41399         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
41400         * modules/openat (Files): Remove openat-die.c.
41401         (Depends-on): Add openat-die.
41402         * modules/openat-die: New module.
41403
41404 2007-05-06  Bruno Haible  <bruno@clisp.org>
41405
41406         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
41407         Update with info about Cygwin.
41408         * doc/functions/fprintf.texi: Update.
41409         * doc/functions/printf.texi: Update.
41410         * doc/functions/snprintf.texi: Update.
41411         * doc/functions/sprintf.texi: Update.
41412         * doc/functions/vfprintf.texi: Update.
41413         * doc/functions/vprintf.texi: Update.
41414         * doc/functions/vsnprintf.texi: Update.
41415         * doc/functions/vsprintf.texi: Update.
41416         Reported by Eric Blake.
41417
41418 2007-05-06  Bruno Haible  <bruno@clisp.org>
41419
41420         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
41421         padding ourselves for the floating-point directives.
41422         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
41423         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
41424         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41425         gl_PRINTF_FLAG_ZERO and test its result. Invoke
41426         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
41427         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41428         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41429         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41430         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41431         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41432         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41433         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41434         * tests/test-snprintf-posix.h (test_function): Also check the width
41435         and some flags in the %f directive.
41436         * tests/test-sprintf-posix.h (test_function): Likewise.
41437         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41438         * tests/test-vasprintf-posix.c (test_function): Likewise.
41439         * doc/functions/fprintf.texi: Update.
41440         * doc/functions/printf.texi: Update.
41441         * doc/functions/snprintf.texi: Update.
41442         * doc/functions/sprintf.texi: Update.
41443         * doc/functions/vfprintf.texi: Update.
41444         * doc/functions/vprintf.texi: Update.
41445         * doc/functions/vsnprintf.texi: Update.
41446         * doc/functions/vsprintf.texi: Update.
41447
41448 2007-05-06  Bruno Haible  <bruno@clisp.org>
41449
41450         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
41451         pass the ' flag character to sprintf or snprintf.
41452         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
41453         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
41454         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41455         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
41456         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
41457         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41458         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41459         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41460         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41461         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41462         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41463         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41464         * tests/test-snprintf-posix.h (test_function): Also check the grouping
41465         flag.
41466         * tests/test-sprintf-posix.h (test_function): Likewise.
41467         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41468         * tests/test-vasprintf-posix.c (test_function): Likewise.
41469         * doc/functions/fprintf.texi: Update.
41470         * doc/functions/printf.texi: Update.
41471         * doc/functions/snprintf.texi: Update.
41472         * doc/functions/sprintf.texi: Update.
41473         * doc/functions/vfprintf.texi: Update.
41474         * doc/functions/vprintf.texi: Update.
41475         * doc/functions/vsnprintf.texi: Update.
41476         * doc/functions/vsprintf.texi: Update.
41477
41478 2007-05-01  Bruno Haible  <bruno@clisp.org>
41479
41480         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
41481
41482 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
41483
41484         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
41485         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
41486
41487 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
41488
41489         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
41490         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
41491         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
41492
41493 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
41494
41495         * lib/argp-help.c (struct hol_entry): New member `ord'.
41496         (HOL_ENTRY_PTRCMP): Use ord for comparison
41497         (hol_sort): Initialize ord.
41498
41499 2007-05-01  Bruno Haible  <bruno@clisp.org>
41500
41501         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
41502         Reported by Eric Blake.
41503         * doc/gnulib.texi (Function Substitutes): Update.
41504
41505 2007-05-01  Bruno Haible  <bruno@clisp.org>
41506
41507         * doc/functions.texi: Remove file, now redundant through
41508         doc/functions/*.texi.
41509
41510 2007-05-01  Bruno Haible  <bruno@clisp.org>
41511
41512         * modules/argp (Depends-on): Add sleep.
41513
41514 2007-05-01  Bruno Haible  <bruno@clisp.org>
41515
41516         * modules/sleep-tests: New file.
41517         * tests/test-sleep.c: New file.
41518
41519         * modules/sleep: New file.
41520         * lib/sleep.c: New file.
41521         * m4/sleep.m4: New file.
41522         * lib/unistd_.h (sleep): New declaration.
41523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
41524         HAVE_SLEEP.
41525         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
41526         * doc/functions/sleep.texi: Document the sleep module.
41527
41528 2007-05-01  Bruno Haible  <bruno@clisp.org>
41529
41530         * lib/sigprocmask.h: Remove file.
41531         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
41532         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
41533         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
41534         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
41535         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
41536         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
41537         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
41538         HAVE_SIGSET_T as a shell variable.
41539         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
41540         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
41541         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
41542         (Depends-on): Add signal. Remove verify.
41543         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
41544         (Include): Mention <signal.h> instead of sigprocmask.h.
41545         * NEWS: Mention the change.
41546         * lib/fatal-signal.c: Don't include sigprocmask.h.
41547
41548 2007-05-01  Bruno Haible  <bruno@clisp.org>
41549
41550         * modules/signal: New file.
41551         * lib/signal_.h: New file.
41552         * m4/signal_h.m4: New file.
41553
41554 2007-05-01  Bruno Haible  <bruno@clisp.org>
41555
41556         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
41557         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
41558         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
41559         HAVE_WCTYPE_CTMP_BUG into wctype.h.
41560
41561 2007-05-01  Bruno Haible  <bruno@clisp.org>
41562
41563         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
41564         configure time.
41565         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
41566         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
41567         * modules/sys_stat (Makefile.am): Substitute their values into
41568         sys/stat.h.
41569
41570 2007-05-01  Bruno Haible  <bruno@clisp.org>
41571
41572         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
41573         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
41574         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
41575
41576 2007-05-01  Bruno Haible  <bruno@clisp.org>
41577
41578         * doc/header/assert.texi: Undo last change: don't mention the gnulib
41579         'assert' module here.
41580
41581 2007-05-01  Bruno Haible  <bruno@clisp.org>
41582
41583         * doc/functions/*.texi: New files.
41584         * doc/functions/google-ranking.txt: New file.
41585         * doc/gnulib.texi (Function Substitutes): New chapter.
41586         (ctime, inet_ntoa): Remove sections.
41587         * doc/ctime.texi: Remove file.
41588         * doc/inet_ntoa.texi: Remove file.
41589         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
41590         dependencies.
41591         (%.info): New rule, specifying a --reference-limit.
41592
41593 2007-05-01  Bruno Haible  <bruno@clisp.org>
41594
41595         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
41596
41597 2007-05-01  Bruno Haible  <bruno@clisp.org>
41598
41599         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
41600         the portability of 'mkdir' to mingw systems.
41601
41602 2007-05-01  Bruno Haible  <bruno@clisp.org>
41603
41604         * doc/headers/google-ranking.txt: New file.
41605
41606 2007-04-30  Eric Blake  <ebb9@byu.net>
41607
41608         Prefer fseeko to fseek.
41609         * modules/getpass (Depends-on): Add fseeko.
41610         * lib/getpass.c (getpass): Use fseeko, not fseek.
41611
41612 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
41613
41614         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
41615         assumes the sorting is stable, while most qsort implementations
41616         are not.  Use argument addresses to ensure they never compare as
41617         equal.
41618
41619         * tests/test-argp-2.sh (usage-indent test): Fix output
41620         (func_compare): Restore diff options
41621         * tests/test-argp.c: Restore #include "progname.h"
41622
41623 2007-04-29  Bruno Haible  <bruno@clisp.org>
41624
41625         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
41626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41627         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
41628         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41629         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
41630         (configure.ac): Define CHECK_SNPRINTF_POSIX.
41631         (TESTS, check_PROGRAMS): Add test-snprintf.
41632         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
41633         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
41634         (TESTS, check_PROGRAMS): Add test-vsnprintf.
41635         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
41636         assertions that fail on HP-UX, OSF/1, or IRIX.
41637         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
41638
41639 2007-04-29  Bruno Haible  <bruno@clisp.org>
41640
41641         * MODULES.html.sh (posix_functions): Remove 'contents'.
41642
41643 2007-04-29  Karl Berry  <karl@gnu.org>
41644
41645         * config/srclist.txt (gendocs_template_min): new entry.
41646
41647 2007-04-29  Bruno Haible  <bruno@clisp.org>
41648
41649         Work around fpurge bug on BSD systems.
41650         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
41651         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
41652         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
41653         fpurge to rpl_fpurge if the system already has this function.
41654         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
41655         the case where the system already has this function. Correct invariants
41656         on BSD systems.
41657         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
41658         BSD systems.
41659
41660 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41661
41662         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
41663         proposed by Sven Verdoolaege.
41664
41665         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
41666         options.
41667         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
41668         (usage and help tests): Update
41669
41670 2007-04-29  Bruno Haible  <bruno@clisp.org>
41671
41672         * tests/test-fflush.c (main): Use a file of size 17, not 10.
41673         Print more information in case of failure. Disable a test on BeOS.
41674
41675 2007-04-29  Bruno Haible  <bruno@clisp.org>
41676
41677         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
41678         This helps debugging on systems on which no gdb is available.
41679
41680 2007-04-29  Bruno Haible  <bruno@clisp.org>
41681
41682         * lib/freading.h: Improve comments.
41683         * lib/fwriting.h: Likewise.
41684         * tests/test-freading.c (main): Don't check freading immediately after
41685         repositioning. Needed for glibc.
41686
41687 2007-04-29  Bruno Haible  <bruno@clisp.org>
41688
41689         * lib/freading.c (freading): Trivial simplification.
41690
41691 2007-04-28  Bruno Haible  <bruno@clisp.org>
41692
41693         * tests/test-fwriting.c (main): Also test the interaction between
41694         fflush and fwriting.
41695         * modules/fwriting-tests (Depends-on): Add fflush.
41696
41697         * tests/test-freading.c (main): Also test the interaction between
41698         fflush and freading.
41699         * modules/freading-tests (Depends-on): Add fflush.
41700
41701 2007-04-28  Bruno Haible  <bruno@clisp.org>
41702
41703         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
41704         fseeko and ftello.
41705         Suggested by Eric Blake.
41706
41707 2007-04-28  Jim Meyering  <jim@meyering.net>
41708
41709         Avoid false-negative in gl_STDINT_H's C99 conformance test.
41710         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
41711         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
41712
41713 2007-04-27  Eric Blake  <ebb9@byu.net>
41714
41715         * doc/headers/assert.texi (assert.h): Document assert module use.
41716
41717 2007-04-27  Bruno Haible  <bruno@clisp.org>
41718
41719         * doc/headers/*.texi: New files.
41720         * doc/gnulib.texi (Header File Substitutes): New chapter.
41721         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
41722         dependencies.
41723         (standards.info ,standards.html, standards.dvi): Update dependencies.
41724         (mostlyclean, clean): New targets.
41725
41726 2007-04-27  Bruno Haible  <bruno@clisp.org>
41727
41728         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
41729         * modules/sysexits (Files, Makefile.am): Update.
41730
41731         * lib/sys_socket_.h: Renamed from lib/socket_.h.
41732         * modules/sys_socket (Files, Makefile.am): Update.
41733
41734         * lib/sys_stat_.h: Renamed from lib/stat_.h.
41735         * modules/sys_stat (Files, Makefile.am): Update.
41736
41737 2007-04-27  Eric Blake  <ebb9@byu.net>
41738
41739         * lib/freading.h: Improve comments.
41740         * lib/fwriting.h: Likewise.
41741         * lib/fflush.c: Likewise.
41742
41743         Fix closein for mingw.
41744         * modules/closein-tests: Add tests for closein.
41745         * tests/test-closein.c: New file.
41746         * tests/test-closein.sh: Likewise.
41747         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
41748         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
41749
41750 2007-04-27  Bruno Haible  <bruno@clisp.org>
41751
41752         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
41753         version is < 6.
41754         * lib/math_.h [__DECC]: Likewise.
41755         * lib/stdio_.h [__DECC]: Likewise.
41756         * lib/stdlib_.h [__DECC]: Likewise.
41757         * lib/string_.h [__DECC]: Likewise.
41758         * lib/time_.h [__DECC]: Likewise.
41759         * lib/wchar_.h [__DECC]: Likewise.
41760         * lib/wctype_.h [__DECC]: Likewise.
41761
41762 2007-04-27  Bruno Haible  <bruno@clisp.org>
41763
41764         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
41765
41766 2007-04-27  Bruno Haible  <bruno@clisp.org>
41767
41768         * lib/fflush.c: Add comments.
41769         * modules/fpurge-tests (Depends-on): Add fflush.
41770         * modules/freadable-tests (Depends-on): Likewise.
41771         * modules/fwritable-tests (Depends-on): Likewise.
41772
41773 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
41774
41775         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
41776         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
41777         Report by Bruno Haible <bruno@clisp.org>.
41778
41779 2007-04-26  Eric Blake  <ebb9@byu.net>
41780
41781         Fix fflush on mingw.
41782         * modules/fflush (Depends-on): Add freading.
41783         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
41784         but unread data.
41785
41786 2007-04-26  Eric Blake  <ebb9@byu.net>
41787         and Bruno Haible  <bruno@clisp.org>
41788
41789         Implement freading and fwriting.
41790         * lib/freading.c: New file.
41791         * lib/freading.h: Likewise.
41792         * m4/freading.m4: Likewise.
41793         * modules/freading: Likewise.
41794         * modules/freading-tests: Likewise.
41795         * tests/test-freading.c: Likewise.
41796         * lib/fwriting.c: New file.
41797         * lib/fwriting.h: Likewise.
41798         * m4/fwriting.m4: Likewise.
41799         * modules/fwriting: Likewise.
41800         * modules/fwriting-tests: Likewise.
41801         * tests/test-fwriting.c: Likewise.
41802         * MODULES.html.sh (File stream based Input/Output): Mention them.
41803
41804 2007-04-26  Bruno Haible  <bruno@clisp.org>
41805
41806         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
41807         'long' when we assume it.
41808         Suggested by Eric Blake.
41809
41810 2007-04-26  Bruno Haible  <bruno@clisp.org>
41811
41812         Ensure fseeko, ftello are declared on glibc systems.
41813         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
41814         * modules/fseeko (configure.ac-early): Likewise.
41815         * modules/ftello (configure.ac-early): Likewise.
41816         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
41817         AC_FUNC_FSEEKO for this.
41818         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
41819         (gl_CHECK_FSEEKO): Remove macro.
41820
41821 2007-04-26  Bruno Haible  <bruno@clisp.org>
41822
41823         * tests/test-fflush.c (main): Also check the ftell result after
41824         fflush and fseek/fseeko.
41825         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
41826         file descriptor position cache in the stream.
41827         * lib/fseeko.c (rpl_fseeko): Likewise.
41828
41829 2007-04-26  Bruno Haible  <bruno@clisp.org>
41830
41831         * modules/fflush-tests (Depends-on): Add fseeko.
41832
41833 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
41834             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41835
41836         * lib/argz_.h: ensure error_t definition is obtained in same
41837         mechanism system argz.h would have.
41838         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
41839         argz facilities are known bad.  Err on the side of caution if
41840         cross-compiling.
41841
41842 2007-04-25  Eric Blake  <ebb9@byu.net>
41843
41844         * lib/fpurge.c (includes): Use stdlib.h for free.
41845         * tests/test-fflush.c (main): Also test fflush-fseeko.
41846
41847 2007-04-25  Bruno Haible  <bruno@clisp.org>
41848
41849         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
41850         * lib/fseeko.c: New file.
41851         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
41852         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
41853         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
41854         gl_FUNC_FSEEKO.
41855         (gl_FUNC_FSEEKO): Invoke it.
41856         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
41857         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
41858         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
41859
41860 2007-04-25  Bruno Haible  <bruno@clisp.org>
41861
41862         * modules/fflush (Depends-on): Add ftello.
41863
41864 2007-04-25  Bruno Haible  <bruno@clisp.org>
41865
41866         * modules/ftello-tests: New file.
41867         * tests/test-ftello.c: New file.
41868
41869         * modules/ftello: New file.
41870         * m4/ftello.m4: New file.
41871         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
41872         HAVE_FTELLO.
41873         * lib/stdio_.h (ftello): New declaration.
41874         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
41875         HAVE_FTELLO.
41876
41877 2007-04-25  Bruno Haible  <bruno@clisp.org>
41878
41879         * modules/fseeko-tests: New file.
41880         * tests/test-fseeko.c: New file.
41881
41882         * modules/fseeko: New file.
41883         * m4/fseeko.m4: New file.
41884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
41885         HAVE_FSEEKO.
41886         * lib/stdio_.h (fseeko): New declaration.
41887         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
41888         HAVE_FSEEKO.
41889
41890 2007-04-25  Bruno Haible  <bruno@clisp.org>
41891
41892         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
41893
41894 2007-04-25  Bruno Haible  <bruno@clisp.org>
41895
41896         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
41897         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
41898         * tests/test-unistd.c: Likewise.
41899         * tests/test-fcntl.c: Likewise.
41900
41901 2007-04-23  Eric Blake  <ebb9@byu.net>
41902
41903         * lib/fflush.c: Fix missing include.
41904         Reported by Bruno Haible.
41905
41906 2007-04-23  Bruno Haible  <bruno@clisp.org>
41907
41908         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
41909         Reported by Eric Blake.
41910
41911 2007-04-23  Bruno Haible  <bruno@clisp.org>
41912
41913         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
41914
41915 2007-04-23  Bruno Haible  <bruno@clisp.org>
41916
41917         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
41918
41919 2007-04-23  Bruno Haible  <bruno@clisp.org>
41920
41921         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
41922         Needed on HP-UX 11.
41923
41924 2007-04-16  Eric Blake  <ebb9@byu.net>
41925
41926         Make fflush rely on fpurge.
41927         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
41928         open coding all variants.
41929         * modules/fflush (Depends-on): Add fpurge and unistd.
41930         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
41931         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
41932
41933         Fix --with-tests compilation on cygwin.
41934         * modules/argmatch-tests (Makefile.am): List gnulib library first
41935         in LDADD.
41936         * modules/argp-tests (Makefile.am): Likewise.
41937         * modules/array-list-tests (Makefile.am): Likewise.
41938         * modules/array-oset-tests (Makefile.am): Likewise.
41939         * modules/avltree-list-tests (Makefile.am): Likewise.
41940         * modules/avltree-oset-tests (Makefile.am): Likewise.
41941         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41942         * modules/carray-list-tests (Makefile.am): Likewise.
41943         * modules/dirname-tests (Makefile.am): Likewise.
41944         * modules/frexp-tests (Makefile.am): Likewise.
41945         * modules/isnanl-tests (Makefile.am): Likewise.
41946         * modules/linked-list-tests (Makefile.am): Likewise.
41947         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41948         * modules/lock-tests (Makefile.am): Likewise.
41949         * modules/rbtree-list-tests (Makefile.am): Likewise.
41950         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41951         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41952         * modules/tls-tests (Makefile.am): Likewise.
41953         * modules/tsearch-tests (Makefile.am): Likewise.
41954         * modules/xvasprintf-tests (Makefile.am): Likewise.
41955
41956         Fix fpurge for cygwin.
41957         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
41958         value.
41959         * modules/fpurge-tests (Depends-on): Clean up trash.
41960
41961 2007-04-16  Simon Josefsson  <simon@josefsson.org>
41962
41963         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
41964
41965         * m4/autobuild.m4: Re-indent.
41966
41967 2007-04-13  Bruno Haible  <bruno@clisp.org>
41968
41969         * modules/fpurge-tests: New file.
41970         * tests/test-fpurge.c: New file.
41971
41972         * modules/fpurge: New file.
41973         * lib/fpurge.h: New file.
41974         * lib/fpurge.c: New file.
41975         * m4/fpurge.m4: New file.
41976
41977 2007-04-13  Bruno Haible  <bruno@clisp.org>
41978
41979         * modules/fbufmode-tests: New file.
41980         * tests/test-fbufmode.c: New file.
41981
41982         * modules/fbufmode: New file.
41983         * lib/fbufmode.h: New file.
41984         * lib/fbufmode.c: New file.
41985         * m4/fbufmode.m4: New file.
41986
41987 2007-04-13  Bruno Haible  <bruno@clisp.org>
41988
41989         * modules/fwritable-tests: New file.
41990         * tests/test-fwritable.c: New file.
41991
41992         * modules/fwritable: New file.
41993         * lib/fwritable.h: New file.
41994         * lib/fwritable.c: New file.
41995         * m4/fwritable.m4: New file.
41996
41997 2007-04-13  Bruno Haible  <bruno@clisp.org>
41998
41999         * modules/freadable-tests: New file.
42000         * tests/test-freadable.c: New file.
42001
42002         * modules/freadable: New file.
42003         * lib/freadable.h: New file.
42004         * lib/freadable.c: New file.
42005         * m4/freadable.m4: New file.
42006
42007 2007-04-13  Bruno Haible  <bruno@clisp.org>
42008
42009         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
42010         MOSTLYCLEANFILES.
42011
42012 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
42013
42014         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
42015         gzip bootstrap.conf to avoid dragging in i18n machinery.
42016         (gnulib_tool_option): Use it.
42017
42018 2007-04-13  Bruno Haible  <bruno@clisp.org>
42019
42020         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
42021         %F directives.
42022         * tests/test-vasprintf-posix.c (test_function): Likewise.
42023         * tests/test-snprintf-posix.h (test_function): Likewise.
42024         * tests/test-sprintf-posix.h (test_function): Likewise.
42025         * tests/test-fprintf-posix.h (test_function): Likewise.
42026         * tests/test-printf-posix.h (test_function): Likewise.
42027         * tests/test-fprintf-posix.out: Likewise.
42028
42029 2007-04-13  Bruno Haible  <bruno@clisp.org>
42030
42031         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
42032         * modules/tls-tests (configure.ac): Likewise.
42033         Reported by Arto C. Nirkko <anirkko@insel.ch>.
42034
42035 2007-04-13  Bruno Haible  <bruno@clisp.org>
42036
42037         * lib/tls.c (glthread_tls_get): Fix return type.
42038         Patch by Arto C. Nirkko <anirkko@insel.ch>.
42039
42040 2007-04-12  Eric Blake  <ebb9@byu.net>
42041
42042         * modules/gettime (Depends-on): Remove gettime.
42043         Reported by Dmitry V. Levin.
42044
42045 2007-04-12  Bruno Haible  <bruno@clisp.org>
42046
42047         * modules/fflush (Include): Mention <stdio.h>.
42048         * modules/strtoimax (Include): Mention <inttypes.h>.
42049         * modules/strtoumax (Include): Likewise.
42050
42051 2007-04-12  Eric Blake  <ebb9@byu.net>
42052
42053         * .cvsignore: New file.
42054         * .gitignore: Likewise.
42055
42056 2007-04-12  Bruno Haible  <bruno@clisp.org>
42057
42058         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
42059         not before, since $(LDADD) often contains libgnu.a.
42060         * modules/striconv-tests (test_striconv_LDADD): Likewise.
42061         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
42062         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
42063         Needed on Cygwin.
42064
42065 2007-04-12  Eric Blake  <ebb9@byu.net>
42066
42067         Work around glibc's failure to flush stdin on fclose.
42068         * lib/closein.c (close_stdin): Flush stdin before closing.
42069
42070         Work around glibc's failure to reset seekable stdin on exit.
42071         * modules/closein: New module.
42072         * lib/closein.c: New file.
42073         * lib/closein.h: Likewise.
42074         * m4/closein.m4: Likewise.
42075         * MODULES.html.sh (File stream based Input/Output): Document it.
42076
42077 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42078
42079         * gnulib-tool: Rename generated 'autobuild' script to
42080         'do-autobuild' in --create-megatestdir output.
42081
42082         * doc/gnulib.texi (Build robot for gnulib): Fix.
42083
42084 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42085
42086         * modules/sysexits (Depends-on): Add absolute-header.
42087
42088 2007-04-12  Eric Blake  <ebb9@byu.net>
42089
42090         No need to preserve errno on success.
42091         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
42092         Reported by Bruno Haible.
42093
42094 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42095
42096         * MODULES.html.sh (Support for maintaining and releasing
42097         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
42098
42099 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42100
42101         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
42102
42103 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42104
42105         * modules/autobuild: New module.
42106
42107         * m4/autobuild.m4: New file.
42108
42109 2007-04-11  Bruno Haible  <bruno@clisp.org>
42110
42111         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
42112         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
42113         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
42114         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
42115         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42116         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42117         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42118         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42119         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42120         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42121         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
42122         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42123         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42124         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
42125         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42126         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42127         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
42128         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42129         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42130         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
42131         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42132         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42133         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
42134         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42135         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42136         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
42137         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42138         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42139         Reported by Eric Blake.
42140
42141 2007-04-11  Bruno Haible  <bruno@clisp.org>
42142
42143         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
42144
42145 2007-04-10  Bruno Haible  <bruno@clisp.org>
42146
42147         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
42148         for NaN and Infinity. Needed on FreeBSD 6.1.
42149         * tests/test-vasnprintf-posix.c (test_function): Undo last change
42150         regarding results for "%010a" of Infinity and NaN.
42151         * tests/test-vasprintf-posix.c (test_function): Likewise.
42152         * tests/test-snprintf-posix.h (test_function): Likewise.
42153         * tests/test-sprintf-posix.h (test_function): Likewise.
42154         * tests/test-fprintf-posix.h (test_function): Likewise.
42155         * tests/test-printf-posix.h (test_function): Likewise.
42156         * tests/test-fprintf-posix.out: Likewise.
42157
42158 2007-04-10  Bruno Haible  <bruno@clisp.org>
42159
42160         * modules/locale-tests: New file.
42161         * tests/test-locale.c: New file.
42162
42163         * modules/locale: New file.
42164         * lib/locale_.h: New file.
42165         * m4/locale_h.m4: New file.
42166
42167 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
42168             Bruno Haible  <bruno@clisp.org>
42169
42170         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
42171         be determined, test for availability of the copysignf, copysign,
42172         copysignl functions.
42173         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
42174         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
42175         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
42176
42177 2007-04-09  Eric Blake  <ebb9@byu.net>
42178
42179         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
42180         * modules/stdio (Makefile.am): Support fflush.
42181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42182         * modules/fflush: New file.
42183         * lib/fflush.c: Likewise.
42184         * m4/fflush.m4: Likewise.
42185         * modules/fflush-tests: New test.
42186         * tests/test-fflush.c: Likewise.
42187         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
42188
42189 2007-04-06  Bruno Haible  <bruno@clisp.org>
42190
42191         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
42192         (VASNPRINTF): Use signbit for faster determination whether to print a
42193         minus sign.
42194         * modules/vasnprintf (Files): Remove lib/float+.h.
42195         * modules/fprintf-posix (Depends-on): Add signbit.
42196         * modules/snprintf-posix (Depends-on): Likewise.
42197         * modules/sprintf-posix (Depends-on): Likewise.
42198         * modules/vasnprintf-posix (Depends-on): Likewise.
42199         * modules/vasprintf-posix (Depends-on): Likewise.
42200         * modules/vfprintf-posix (Depends-on): Likewise.
42201         * modules/vsnprintf-posix (Depends-on): Likewise.
42202         * modules/vsprintf-posix (Depends-on): Likewise.
42203
42204 2007-04-06  Bruno Haible  <bruno@clisp.org>
42205
42206         * tests/test-frexp.c (main): Test also the sign bit of zero results.
42207         * tests/test-frexpl.c (main): Likewise.
42208         * tests/test-ldexpl.c (main): Likewise.
42209         * modules/frexp-tests (Depends-on): Add signbit.
42210         * modules/frexpl-tests (Depdends-on): Likewise.
42211         * modules/ldexpl-tests (Depdends-on): Likewise.
42212
42213 2007-04-06  Bruno Haible  <bruno@clisp.org>
42214
42215         * modules/signbit-tests: New file.
42216         * tests/test-signbit.c: New file.
42217
42218         * modules/signbit: New file.
42219         * lib/signbitf.c: New file.
42220         * lib/signbitd.c: New file.
42221         * lib/signbitl.c: New file.
42222         * m4/signbit.m4: New file.
42223         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
42224         (signbit): New macro.
42225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
42226         REPLACE_SIGNBIT.
42227         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
42228         REPLACE_FREXPL into math.h.
42229
42230 2007-04-06  Bruno Haible  <bruno@clisp.org>
42231
42232         * modules/isnanf-nolibm-tests: New file.
42233         * tests/test-isnanf.c: New file.
42234
42235         * modules/isnanf-nolibm: New file.
42236         * lib/isnanf.h: New file.
42237         * lib/isnanf.c: New file.
42238         * lib/isnan.c: Consider the USE_FLOAT macro.
42239         * m4/isnanf.m4: New file.
42240
42241 2007-04-06  Bruno Haible  <bruno@clisp.org>
42242
42243         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
42244         (Link): New section.
42245
42246         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
42247
42248 2007-04-06  Bruno Haible  <bruno@clisp.org>
42249
42250         Assume the 'long double' type.
42251         * m4/longdouble.m4: Remove file.
42252         * config/srclist.txt: Don't mention longdouble.m4.
42253         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
42254         * lib/float+.h: Likewise.
42255         * lib/frexp.c: Likewise.
42256         * lib/printf-args.h: Likewise.
42257         * lib/printf-args.c: Likewise.
42258         * lib/printf-frexp.c: Likewise.
42259         * lib/printf-parse.c: Likewise.
42260         * lib/vasnprintf.c: Likewise.
42261         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
42262         * m4/intl.m4: Likewise.
42263         * m4/isnanl.m4: Likewise.
42264         * m4/printf.m4: Likewise.
42265         * m4/printf-frexpl.m4: Likewise.
42266         * m4/vasnprintf.m4: Likewise.
42267         * modules/allocsa (Files): Remove m4/longdouble.m4.
42268         * modules/gettext (Files): Likewise.
42269         * modules/relocatable-prog-wrapper (Files): Likewise.
42270         * modules/vasnprintf (Files): Likewise.
42271         * modules/isnanl (Files): Likewise.
42272         (Include): Simplify.
42273         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
42274         (Include): Simplify.
42275         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
42276         (Include): Simplify.
42277         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
42278         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42279         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
42280         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42281         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42282         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42283         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
42284         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42285         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42286         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42287         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
42288         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42289         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
42290         * tests/test-isnanl.c: Likewise.
42291         * tests/test-snprintf-posix.h: Likewise.
42292         * tests/test-sprintf-posix.h: Likewise.
42293         * tests/test-vasnprintf-posix.c: Likewise.
42294         * tests/test-vasnprintf-posix2.c: Likewise.
42295         * tests/test-vasprintf-posix.c: Likewise.
42296
42297 2007-04-06  Bruno Haible  <bruno@clisp.org>
42298
42299         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
42300         * lib/math_.h [__DECC]: Include the overridden include file through
42301         #include_next, outside the double-inclusion guard.
42302         * lib/stdio_.h [__DECC]: Likewise.
42303         * lib/stdlib_.h [__DECC]: Likewise.
42304         * lib/string_.h [__DECC]: Likewise.
42305         * lib/time_.h [__DECC]: Likewise.
42306         * lib/wchar_.h [__DECC]: Likewise.
42307         * lib/wctype_.h [__DECC]: Likewise.
42308         * lib/inttypes_.h [__DECC]: Likewise.
42309         Reported by Albert Chin <china@thewrittenword.com> in
42310         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
42311
42312 2007-04-04  Eric Blake  <ebb9@byu.net>
42313
42314         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
42315         1.5.x.
42316
42317 2007-04-04  Bruno Haible  <bruno@clisp.org>
42318
42319         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
42320         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
42321
42322 2007-04-04  Bruno Haible  <bruno@clisp.org>
42323
42324         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
42325         results for "%010a" of Infinity and NaN.
42326         * tests/test-vasprintf-posix.c (test_function): Likewise.
42327         * tests/test-snprintf-posix.h (test_function): Likewise.
42328         * tests/test-sprintf-posix.h (test_function): Likewise.
42329         * tests/test-fprintf-posix.h (test_function): Remove these tests.
42330         * tests/test-printf-posix.h (test_function): Likewise.
42331         * tests/test-fprintf-posix.out: Update.
42332         Needed for FreeBSD 6.1.
42333
42334 2007-04-04  Bruno Haible  <bruno@clisp.org>
42335
42336         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
42337         directly used by the gnulib modules nor by gnulib-tool.
42338
42339 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
42340
42341         * DEPENDENCIES: Give overall description of version dependency
42342         desirability.  Use more-typical names for apps.
42343         Add shell, coreutils, diffutils, grep, tar, gzip.
42344
42345 2007-04-04  Simon Josefsson  <simon@josefsson.org>
42346
42347         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
42348
42349 2007-04-04  Karl Berry  <karl@gnu.org>
42350
42351         * MODULES.html.sh (func_module): missing '.
42352
42353 2007-04-03  Bruno Haible  <bruno@clisp.org>
42354
42355         * modules/argmatch-tests (Makefile.am): New variable
42356         test_argmatch_LDADD.
42357         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
42358         * modules/array-list-tests (Makefile.am): New variable
42359         test_array_list_LDADD.
42360         * modules/array-oset-tests (Makefile.am): New variable
42361         test_array_oset_LDADD.
42362         * modules/avltree-list-tests (Makefile.am): New variable
42363         test_avltree_list_LDADD.
42364         * modules/avltree-oset-tests (Makefile.am): New variable
42365         test_avltree_oset_LDADD.
42366         * modules/avltreehash-list-tests (Makefile.am): New variable
42367         test_avltreehash_list_LDADD.
42368         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
42369         test_canonicalize_lgpl_LDADD.
42370         * modules/carray-list-tests (Makefile.am): New variable
42371         test_carray_list_LDADD.
42372         * modules/dirname-tests (Makefile.am): New variable
42373         test_dirname_LDADD.
42374         * modules/linked-list-tests (Makefile.am): New variable
42375         test_linked_list_LDADD.
42376         * modules/linkedhash-list-tests (Makefile.am): New variable
42377         test_linkedhash_list_LDADD.
42378         * modules/rbtree-list-tests (Makefile.am): New variable
42379         test_rbtree_list_LDADD.
42380         * modules/rbtree-oset-tests (Makefile.am): New variable
42381         test_rbtree_oset_LDADD.
42382         * modules/rbtreehash-list-tests (Makefile.am): New variable
42383         test_rbtreehash_list_LDADD.
42384         * modules/xvasprintf-tests (Makefile.am): New variable
42385         test_xvasprintf_LDADD.
42386         Reported by Eric Blake.
42387
42388 2007-04-03  Eric Blake  <ebb9@byu.net>
42389
42390         * DEPENDENCIES: Weaken m4 requirements.
42391
42392 2007-04-03  Bruno Haible  <bruno@clisp.org>
42393
42394         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
42395         * modules/isnanl-tests (configure.ac): Likewise.
42396
42397 2007-04-03  Ben Pfaff  <blp@gnu.org>
42398
42399         * modules/iconv_open: Add $(srcdir)/ to source directory
42400         references in Makefile fragments that call gperf, to fix VPATH
42401         builds.
42402
42403 2007-04-03  Bruno Haible  <bruno@clisp.org>
42404
42405         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
42406         * lib/ldexpl.c: Undo last change.
42407
42408 2007-04-03  Bruno Haible  <bruno@clisp.org>
42409
42410         * modules/printf-frexpl (Depends-on): Undo last change.
42411         (Files): Add m4/ldexpl.m4.
42412
42413 2007-04-03  Bruno Haible  <bruno@clisp.org>
42414
42415         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
42416         * modules/isnanl (Link): New section.
42417
42418         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
42419         * modules/frexp (Link): New section.
42420
42421         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
42422         * modules/frexpl (Link): New section.
42423
42424         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
42425         * modules/ldexpl (Link): New section.
42426
42427 2007-04-03  Bruno Haible  <bruno@clisp.org>
42428
42429         * modules/TEMPLATE-EXTENDED: New file.
42430         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
42431
42432 2007-04-03  Bruno Haible  <bruno@clisp.org>
42433
42434         * DEPENDENCIES: New file.
42435         Suggested by Simon Josefsson.
42436
42437 2007-04-03  Bruno Haible  <bruno@clisp.org>
42438
42439         * doc/gnulib.texi: Escape @.
42440
42441 2007-04-03  James Youngman  <jay@gnu.org>
42442         and Paul Eggert  <eggert@cs.ucla.edu>
42443
42444         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
42445         birthtime on all systems that have birthtime, not just those which
42446         use st_birthtimensec rather than st_birthtim.  Putting zero in
42447         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
42448         that the birth time is not available for files on an NFS mount.
42449
42450 2007-04-03  Simon Josefsson  <simon@josefsson.org>
42451
42452         * modules/memxor: Move back from crypto/, suggested by Bruno.
42453         * modules/crypto/hmac-sha1: Fix memxor dependency.
42454
42455         * modules/crypto/gc: Moved from ../.
42456
42457 2007-04-02  Eric Blake  <ebb9@byu.net>
42458
42459         * lib/ldexpl.c (includes): Avoid libm.
42460
42461         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
42462
42463 2007-04-02  Bruno Haible  <bruno@clisp.org>
42464
42465         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
42466         on IRIX.
42467
42468 2007-04-02  Bruno Haible  <bruno@clisp.org>
42469
42470         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
42471         x86 or x86_64 platforms running MacOS X.
42472         Reported by Ryan Schmidt <@ryandesign.com>.
42473
42474 2007-04-02  Bruno Haible  <bruno@clisp.org>
42475
42476         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
42477         i386.
42478
42479 2007-04-01  Simon Josefsson  <simon@josefsson.org>
42480
42481         * modules/crypto/arcfour: Moved from ../.
42482         * modules/crypto/arcfour-tests: Moved from ../.
42483         * modules/crypto/arctwo: Moved from ../.
42484         * modules/crypto/arctwo-tests: Moved from ../.
42485         * modules/crypto/des: Moved from ../.
42486         * modules/crypto/des-tests: Moved from ../.
42487         * modules/crypto/gc-arcfour: Moved from ../.
42488         * modules/crypto/gc-arcfour-tests: Moved from ../.
42489         * modules/crypto/gc-arctwo: Moved from ../.
42490         * modules/crypto/gc-arctwo-tests: Moved from ../.
42491         * modules/crypto/gc-des: Moved from ../.
42492         * modules/crypto/gc-des-tests: Moved from ../.
42493         * modules/crypto/gc-hmac-md5: Moved from ../.
42494         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
42495         * modules/crypto/gc-hmac-sha1: Moved from ../.
42496         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
42497         * modules/crypto/gc-md2: Moved from ../.
42498         * modules/crypto/gc-md2-tests: Moved from ../.
42499         * modules/crypto/gc-md4: Moved from ../.
42500         * modules/crypto/gc-md4-tests: Moved from ../.
42501         * modules/crypto/gc-md5: Moved from ../.
42502         * modules/crypto/gc-md5-tests: Moved from ../.
42503         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
42504         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
42505         * modules/crypto/gc-random: Moved from ../.
42506         * modules/crypto/gc-rijndael: Moved from ../.
42507         * modules/crypto/gc-rijndael-tests: Moved from ../.
42508         * modules/crypto/gc-sha1: Moved from ../.
42509         * modules/crypto/gc-sha1-tests: Moved from ../.
42510         * modules/crypto/gc-tests: Moved from ../.
42511         * modules/crypto/hmac-md5: Moved from ../.
42512         * modules/crypto/hmac-md5-tests: Moved from ../.
42513         * modules/crypto/hmac-sha1: Moved from ../.
42514         * modules/crypto/hmac-sha1-tests: Moved from ../.
42515         * modules/crypto/md2: Moved from ../.
42516         * modules/crypto/md2-tests: Moved from ../.
42517         * modules/crypto/md4: Moved from ../.
42518         * modules/crypto/md4-tests: Moved from ../.
42519         * modules/crypto/md5: Moved from ../.
42520         * modules/crypto/md5-tests: Moved from ../.
42521         * modules/crypto/memxor: Moved from ../.
42522         * modules/crypto/rijndael: Moved from ../.
42523         * modules/crypto/rijndael-tests: Moved from ../.
42524         * modules/crypto/sha1: Moved from ../.
42525
42526 2007-03-30  James Youngman  <jay@gnu.org>
42527
42528         * tests/test-stat-time.c (prepare_test): use chmod() rather than
42529         rename() to change the ctime of a file (because ctime is unaffected
42530         by rename on jfs2 on AIX 5.1).
42531         (main): Start by doing cleanup, in case a previous run failed leaving
42532         test files behind.
42533
42534 2007-03-31  Bruno Haible  <bruno@clisp.org>
42535
42536         Support old proprietary implementations of iconv.
42537         * modules/iconv_open: New file.
42538         * lib/iconv_.h: New file.
42539         * m4/iconv_h.m4: New file.
42540         * lib/iconv_open.c: New file.
42541         * lib/iconv_open-aix.gperf: New file.
42542         * lib/iconv_open-hpux.gperf: New file.
42543         * lib/iconv_open-irix.gperf: New file.
42544         * lib/iconv_open-osf.gperf: New file.
42545         * m4/iconv_open.m4: New file.
42546         * modules/linebreak (Depends-on): Add iconv_open.
42547         * modules/striconv (Depends-on): Likewise.
42548         * modules/striconveh (Depends-on): Likewise.
42549         * modules/unicodeio (Depends-on): Likewise.
42550         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
42551         (iconv_t)(-1).
42552         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
42553         conversion if cd is (iconv_t)(-1).
42554         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
42555         is not possible.
42556
42557 2007-03-31  Bruno Haible  <bruno@clisp.org>
42558
42559         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42560         work on Solaris either. Protect also second use of "autodetect_jp".
42561
42562 2007-03-31  Bruno Haible  <bruno@clisp.org>
42563
42564         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
42565         the function is not present.
42566
42567 2007-03-31  Bruno Haible  <bruno@clisp.org>
42568
42569         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
42570         the function is not present.
42571
42572 2007-03-31  Bruno Haible  <bruno@clisp.org>
42573
42574         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
42575         a bug in HP-UX iconv_open().
42576
42577 2007-03-31  Bruno Haible  <bruno@clisp.org>
42578
42579         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
42580         (Mathematics <math.h>): New section, add fpieee.
42581         (Input/output <stdio.h>): Add fseterr.
42582         (Mathematics <math.h>): New section, add printf-frexp.
42583         (Container data structures): Add sublist.
42584         (Core language properties): Add fpucw, inline.
42585         (Functions for greatest-width integer types <inttypes.h>): Add
42586         imaxabs, imaxdiv, inttypes.
42587         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
42588         isnanl-nolibm, ldexp.
42589         (Mathematics <math.h>): New section, add printf-frexpl.
42590         (Support for systems lacking POSIX:2001): Add fprintf-posix,
42591         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
42592         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
42593         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
42594         (Unicode string functions): Add unistr/u*-mbtoucr.
42595         (Java): Add javacomp-script, javaexec-script.
42596         (C#): Add csharpcomp-script, csharpexec-script.
42597         (Support for building libraries and executables): Add havelib,
42598         relocatable-*.
42599         (Support for maintaining and releasing projects): Renamed from
42600         'Support for maintaining and release projects'. Add announce-gen.
42601
42602 2007-03-31  Bruno Haible  <bruno@clisp.org>
42603
42604         * README: Talk primarily about git.
42605         (git and CVS): Renamed from CVS.
42606         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
42607         gnulib is available through git.
42608         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
42609
42610 2007-03-30  Bruno Haible  <bruno@clisp.org>
42611
42612         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
42613         * lib/poll_.h: Likewise.
42614         * lib/stat_.h: Likewise.
42615         * lib/sys_time_.h: Likewise.
42616         * lib/sysexit_.h: Likewise.
42617         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
42618         * lib/stdbool_.h: Likewise.
42619         * lib/byteswap_.h: Add double-inclusion guard.
42620
42621 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
42622
42623         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
42624
42625 2007-03-30  Karl Berry  <karl@gnu.org>
42626
42627         * config/srclist-update: double space after USA in the license
42628         substitution, since that's how it's usually (?) written.
42629
42630 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42631
42632         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
42633         reported by Bruno Haible.
42634
42635 2007-03-29  Bruno Haible  <bruno@clisp.org>
42636
42637         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
42638         a bug in AIX iconv().
42639
42640 2007-03-29  Bruno Haible  <bruno@clisp.org>
42641
42642         * modules/ldexpl-tests: New file.
42643         * tests/test-ldexpl.c: New file.
42644
42645 2007-03-29  Bruno Haible  <bruno@clisp.org>
42646
42647         * lib/ldexpl.c: Include fpucw.h.
42648         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
42649         multiplication.
42650         * modules/ldexpl (Depends-on): Add fpucw.
42651
42652 2007-03-29  Bruno Haible  <bruno@clisp.org>
42653
42654         * modules/ldexpl: New file.
42655         * m4/ldexpl.m4: New file.
42656         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
42657         set.
42658         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
42659         REPLACE_LDEXPL.
42660         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
42661         REPLACE_LDEXPL.
42662         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42663         gl_FUNC_LDEXPL_WORKS.
42664         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
42665         * modules/mathl (Files): Remove lib/ldexpl.c.
42666         (Depends-on): Add ldexpl.
42667
42668 2007-03-29  Bruno Haible  <bruno@clisp.org>
42669
42670         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
42671
42672 2007-03-29  Bruno Haible  <bruno@clisp.org>
42673
42674         * tests/test-striconveh.c (main): Don't assume that a direct conversion
42675         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
42676         and possibly also HP-UX.
42677         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42678         work on AIX, IRIX, HP-UX, OSF/1.
42679         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42680         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42681         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42682         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42683         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
42684         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42685
42686 2007-03-29  Bruno Haible  <bruno@clisp.org>
42687
42688         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
42689
42690 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42691
42692         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
42693         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
42694
42695 2007-03-29  Eric Blake  <ebb9@byu.net>
42696
42697         * lib/acl-internal.h: Remove redundant include.
42698         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
42699         Cygwin when a file is locked.
42700
42701 2007-03-29  Bruno Haible  <bruno@clisp.org>
42702
42703         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
42704         file.
42705         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
42706
42707 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42708
42709         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
42710         try to remove a parent directory if the child couldn't be removed
42711         (except for the first rmdir, which could fail because the child
42712         doesn't exist).  Problem reported by Jeff Blaine in
42713         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
42714
42715 2007-03-28  Bruno Haible  <bruno@clisp.org>
42716
42717         * lib/striconveh.c (utf8conv_carefully): New function.
42718         (mem_cd_iconveh_internal): Invoke it.
42719
42720 2007-03-28  Bruno Haible  <bruno@clisp.org>
42721
42722         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
42723         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
42724         input.
42725         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
42726         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
42727         unistr/u8-uctomb.
42728
42729 2007-03-28  Bruno Haible  <bruno@clisp.org>
42730
42731         * modules/unistr/u8-mbtoucr: New file.
42732         * lib/unistr/u8-mbtoucr.c: New file.
42733         * modules/unistr/u16-mbtoucr: New file.
42734         * lib/unistr/u16-mbtoucr.c: New file.
42735         * modules/unistr/u16-mbtoucr: New file.
42736         * lib/unistr/u16-mbtoucr.c: New file.
42737         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
42738
42739 2007-03-27  Simon Josefsson  <simon@josefsson.org>
42740             Bruno Haible  <bruno@clisp.org>
42741
42742         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
42743         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
42744         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
42745
42746         * m4/stdio_h.m4: Add stubs for vasprintf too.
42747
42748         * modules/stdio: Support vasprintf in sed command.
42749
42750         * modules/vasprintf: Depend on stdio for prototypes.  Remove
42751         vasprintf.h.  Add stdio module indicator.
42752
42753         * lib/stdio_.h: Declare asprintf and vasprintf, based on
42754         vasprintf.h.
42755
42756         * lib/vasprintf.h: File removed.
42757
42758         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
42759         * lib/vasprintf.c: Ditto.
42760         * lib/xvasprintf.c: Ditto.
42761         * tests/test-vasprintf-posix.c: Ditto.
42762         * tests/test-vasprintf.c: Ditto.
42763
42764 2007-03-27  Bruno Haible  <bruno@clisp.org>
42765
42766         Make vasnprintf multithread-safe.
42767         * lib/vasnprintf.c (decimal_point_char): New function.
42768         (VASNPRINTF): Use it.
42769         Suggested by Simon Josefsson.
42770
42771 2007-03-27  Eric Blake  <ebb9@byu.net>
42772
42773         Support sub-second birthtime on cygwin.
42774         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
42775         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
42776         (get_stat_birthtime): Also work with st_birthtim.
42777
42778 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
42779
42780         * lib/stat-time.h (USE_BIRTHTIME): Remove.
42781         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
42782         (get_stat_birthtime_ns): Do not try to use "spare" fields.
42783         (get_stat_birthtime_ns): Simplify compile-time tests.
42784         (get_stat_birthtime): Change the API to look like
42785         get_stat_mtime etc., except return a negative tv_nsec on error.
42786         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
42787         Don't check for "spare" fields.
42788         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
42789         or for struct stat.st_birthtime, as these tests aren't used.
42790         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
42791
42792 2007-03-27  Bruno Haible  <bruno@clisp.org>
42793
42794         * lib/stat-time.h: Include <sys/stat.h>.
42795
42796 2007-03-27  James Youngman  <jay@gnu.org>
42797
42798         * lib/stat-time.h (get_stat_birthtime): New function for
42799           retrieving st_birthtime as provided by UFS2 (hence *BSD).
42800         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
42801           and its variants.
42802         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
42803         * modules/stat-time-test: New file.
42804         * tests/test-stat-time.c: New test, devised by Bruno Haible.
42805
42806 2007-03-26  Bruno Haible  <bruno@clisp.org>
42807
42808         Better support of signalling NaNs.
42809         * lib/atanl.c: Include isnanl.h.
42810         (atanl): Perform test for NaN at the beginning of the function and
42811         through a call to isnanl.
42812         * lib/cosl.c: Include isnanl.h.
42813         (cosl): Perform test for NaN at the beginning of the function and
42814         through a call to isnanl.
42815         * lib/ldexpl.c: Include isnanl.h.
42816         (ldexpl): Perform test for NaN through a call to isnanl.
42817         * lib/logl.c: Include isnanl.h.
42818         (logl): Perform test for NaN at the beginning of the function and
42819         through a call to isnanl.
42820         * lib/sinl.c: Include isnanl.h.
42821         (sinl): Perform test for NaN at the beginning of the function and
42822         through a call to isnanl.
42823         * lib/sqrtl.c: Include isnanl.h.
42824         (sqrtl): Perform test for NaN at the beginning of the function and
42825         through a call to isnanl.
42826         * lib/tanl.c: Include isnanl.h.
42827         (tanl): Perform test for NaN at the beginning of the function and
42828         through a call to isnanl.
42829         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
42830         * modules/mathl (Depends-on): Add isnanl.
42831
42832 2007-03-26  Eric Blake  <ebb9@byu.net>
42833
42834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
42835         regression in logic sense of previous patch.
42836
42837 2007-03-26  Bruno Haible  <bruno@clisp.org>
42838
42839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
42840         unportable shell command "if ! ...".
42841         Reported by Ralf Wildenhues.
42842
42843 2007-03-25  Bruno Haible  <bruno@clisp.org>
42844
42845         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
42846         <sysexits.h> file, and only add EX_CONFIG.
42847         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
42848         absolute file name and whether it is sufficient. Substitute also
42849         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
42850         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
42851         ABSOLUTE_SYSEXITS_H into sysexits.h.
42852
42853 2007-03-25  Bruno Haible  <bruno@clisp.org>
42854
42855         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
42856         hints is NULL.
42857
42858 2007-03-25  Bruno Haible  <bruno@clisp.org>
42859
42860         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
42861         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
42862
42863 2007-03-25  Bruno Haible  <bruno@clisp.org>
42864
42865         * lib/vasnprintf.c: Include langinfo.h.
42866         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
42867         multithread-safe.
42868         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
42869         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
42870         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42871         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42872         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42873         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42874         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42875         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
42876         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42877         Reported by Simon Josefsson.
42878
42879 2007-03-25  Bruno Haible  <bruno@clisp.org>
42880
42881         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
42882         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
42883         * modules/vasnprintf (Depends-on): Add stdint.
42884
42885 2007-03-25  Bruno Haible  <bruno@clisp.org>
42886
42887         * modules/fpieee: New file.
42888         * m4/fpieee.m4: New file.
42889         * modules/isnan-nolibm (Depends-on): Add fpieee.
42890         * modules/isnanl-nolibm (Depends-on): Add fpieee.
42891         * modules/isnanl (Depends-on): Add fpieee.
42892
42893 2007-03-25  Bruno Haible  <bruno@clisp.org>
42894
42895         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
42896
42897 2007-03-25  Bruno Haible  <bruno@clisp.org>
42898
42899         Avoid test failures on IRIX 6.5.
42900         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
42901         (main): Use it.
42902         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
42903         macros.
42904         (main): Use them.
42905
42906 2007-03-25  Bruno Haible  <bruno@clisp.org>
42907
42908         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
42909         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
42910         exists but doesn't work.
42911         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
42912         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
42913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
42914         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
42915
42916 2007-03-25  Bruno Haible  <bruno@clisp.org>
42917
42918         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
42919         returns inf. Needed on IRIX 6.5.
42920
42921 2007-03-25  Bruno Haible  <bruno@clisp.org>
42922
42923         * tests/test-frexpl.c: Include isnanl-nolibm.h.
42924         (main): Use isnanl instead of x != x idiom.
42925         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
42926
42927         * tests/test-frexp.c: Include isnan.h.
42928         (main): Use isnan instead of x != x idiom.
42929         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
42930
42931 2007-03-25  Bruno Haible  <bruno@clisp.org>
42932
42933         * tests/test-frexp.c (NaN): New function/macro.
42934         (main): Use it instead of 0.0 / 0.0.
42935         * tests/test-isnan.c (NaN): New function/macro.
42936         (main): Use it instead of 0.0 / 0.0.
42937         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
42938         (test_function): Use it instead of 0.0 / 0.0.
42939         * tests/test-vasprintf-posix.c (NaN): New function/macro.
42940         (test_function): Use it instead of 0.0 / 0.0.
42941         * tests/test-snprintf-posix.h (NaN): New function/macro.
42942         (test_function): Use it instead of 0.0 / 0.0.
42943         * tests/test-sprintf-posix.h (NaN): New function/macro.
42944         (test_function): Use it instead of 0.0 / 0.0.
42945         * tests/test-fprintf-posix.h (NaN): New function/macro.
42946         (test_function): Use it instead of 0.0 / 0.0.
42947         * tests/test-printf-posix.h (NaN): New function/macro.
42948         (test_function): Use it instead of 0.0 / 0.0.
42949
42950         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
42951
42952 2007-03-25  Bruno Haible  <bruno@clisp.org>
42953
42954         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
42955
42956 2007-03-25  Bruno Haible  <bruno@clisp.org>
42957
42958         * lib/regexec.c (merge_state_with_log): Make static.
42959
42960 2007-03-25  Bruno Haible  <bruno@clisp.org>
42961
42962         * lib/trigl.c (kernel_rem_pio2): Make static.
42963
42964 2007-03-25  Bruno Haible  <bruno@clisp.org>
42965
42966         * lib/sincosl.c (sincosl_table): Make static.
42967
42968 2007-03-25  Bruno Haible  <bruno@clisp.org>
42969
42970         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
42971         if the compiler does not support C99.
42972
42973 2007-03-25  Bruno Haible  <bruno@clisp.org>
42974
42975         * modules/time (Makefile.am): Ensure all rule action lines start with a
42976         tab.
42977
42978 2007-03-24  Bruno Haible  <bruno@clisp.org>
42979
42980         * modules/tsearch-tests: New file.
42981         * tests/test-tsearch.sh: New file.
42982         * tests/test-tsearch.c: New file, mostly copied from glibc.
42983
42984         * modules/search-tests: New file.
42985         * tests/test-search.c: New file.
42986
42987         * modules/search: New file.
42988         * lib/search_.h: New file, incorporating lib/tsearch.h.
42989         * m4/search_h.m4: New file.
42990         * lib/tsearch.h: Remove file.
42991         * lib/tsearch.c: Include search.h instead of tsearch.h.
42992         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
42993         HAVE_TSEARCH.
42994         * modules/tsearch (Files): Remove lib/tsearch.h.
42995         (Depends-on): Add search.
42996         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
42997         (Include): Change tsearch.h into search.h.
42998
42999 2007-03-24  Bruno Haible  <bruno@clisp.org>
43000
43001         * modules/fpucw: New file.
43002         * lib/fpucw.h: New file.
43003         * lib/frexp.c: Include fpucw.h.
43004         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
43005         (FUNC): Use them.
43006         * lib/printf-frexp.c: Include fpucw.h.
43007         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
43008         (FUNC): Use them.
43009         * lib/vasnprintf.c: Include fpucw.h.
43010         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
43011         'long double' calculations.
43012         * tests/test-frexpl.c: Include fpucw.h.
43013         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
43014         * tests/test-printf-frexpl.c: Include fpucw.h.
43015         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
43016         * modules/frexpl (Depends-on): Add fpucw.
43017         * modules/printf-frexpl (Depends-on): Likewise.
43018         * modules/fprintf-posix (Depends-on): Likewise.
43019         * modules/snprintf-posix (Depends-on): Likewise.
43020         * modules/sprintf-posix (Depends-on): Likewise.
43021         * modules/vasnprintf-posix (Depends-on): Likewise.
43022         * modules/vasprintf-posix (Depends-on): Likewise.
43023         * modules/vfprintf-posix (Depends-on): Likewise.
43024         * modules/vsnprintf-posix (Depends-on): Likewise.
43025         * modules/vsprintf-posix (Depends-on): Likewise.
43026         * modules/frexpl-tests (Depends-on): Likewise.
43027         * modules/printf-frexpl-tests (Depends-on): Likewise.
43028
43029 2007-03-24  Bruno Haible  <bruno@clisp.org>
43030
43031         * lib/float+.h: New file.
43032         * lib/isnan.c: Include float+.h.
43033         (SIZE): New macro.
43034         (FUNC): Compare only SIZE bytes of the value.
43035         * lib/vasnprintf.c: Include float+.h.
43036         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
43037         SIZEOF_LDBL or SIZEOF_DBL bytes.
43038         * modules/isnan-nolibm (Files): Add lib/float+.h.
43039         * modules/isnanl-nolibm (Files): Add lib/float+.h.
43040         * modules/isnanl (Files): Add lib/float+.h.
43041         * modules/vasnprintf (Files): Add lib/float+.h.
43042
43043 2007-03-24  Bruno Haible  <bruno@clisp.org>
43044
43045         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
43046         include isnanl-nolibm.h.
43047
43048 2007-03-24  Bruno Haible  <bruno@clisp.org>
43049
43050         * tests/test-read-file.c (main): Don't produce spurious output for
43051         expected situations. Make the test fail if it encountered unexpected
43052         results.
43053
43054 2007-03-24  Bruno Haible  <bruno@clisp.org>
43055
43056         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
43057         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
43058
43059 2007-03-24  Bruno Haible  <bruno@clisp.org>
43060
43061         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
43062
43063 2007-03-24  Bruno Haible  <bruno@clisp.org>
43064
43065         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
43066         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
43067
43068         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
43069         * modules/utf8-ucs4: Turn into a symbolic link to module
43070         unistr/u8-mbtouc.
43071
43072         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
43073         utf8-ucs4-unsafe.
43074         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
43075         unistr/u8-mbtouc-unsafe.
43076
43077         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
43078         * modules/utf16-ucs4: Turn into a symbolic link to module
43079         unistr/u16-mbtouc.
43080
43081         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
43082         utf16-ucs4-unsafe.
43083         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
43084         unistr/u16-mbtouc-unsafe.
43085
43086         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
43087         * modules/ucs4-utf8: Turn into a symbolic link to module
43088         unistr/u8-ubtomb.
43089
43090         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
43091         * modules/ucs4-utf16: Turn into a symbolic link to module
43092         unistr/u16-ubtomb.
43093
43094 2007-03-24  Bruno Haible  <bruno@clisp.org>
43095
43096         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
43097         Enable the function only if HAVE_INLINE.
43098         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
43099         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
43100         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
43101         Enable the function only if HAVE_INLINE.
43102         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
43103         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
43104         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
43105         Enable the function only if HAVE_INLINE.
43106         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
43107         Enable the function only if HAVE_INLINE.
43108         * modules/utf8-ucs4: Update.
43109         * modules/utf8-ucs4-unsafe: Update.
43110         * modules/utf16-ucs4: Update.
43111         * modules/utf16-ucs4-unsafe: Update.
43112         * modules/ucs4-utf8: Update.
43113         * modules/ucs4-utf16: Update.
43114
43115 2007-03-24  Bruno Haible  <bruno@clisp.org>
43116
43117         * lib/utf8-ucs4.h: Remove file.
43118         * lib/utf8-ucs4-unsafe.h: Remove file.
43119         * lib/utf16-ucs4.h: Remove file.
43120         * lib/utf16-ucs4-unsafe.h: Remove file.
43121         * lib/ucs4-utf8.h: Remove file.
43122         * lib/ucs4-utf16.h: Remove file.
43123         * lib/unistr.h: Include their previous contents.
43124         * m4/utf-ucs4.m4: Remove file.
43125         * m4/ucs4-utf.m4: Remove file.
43126         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
43127         (Depends-on): Add unistr/base.
43128         (configure.ac): Remove gl_UTF_UCS4.
43129         (Makefile.am): Update.
43130         (Include): Change to unistr.h.
43131         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
43132         (Depends-on): Add unistr/base.
43133         (configure.ac): Remove gl_UTF_UCS4.
43134         (Makefile.am): Update.
43135         (Include): Change to unistr.h.
43136         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
43137         (Depends-on): Add unistr/base.
43138         (configure.ac): Remove gl_UTF_UCS4.
43139         (Makefile.am): Update.
43140         (Include): Change to unistr.h.
43141         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
43142         (Depends-on): Add unistr/base.
43143         (configure.ac): Remove gl_UTF_UCS4.
43144         (Makefile.am): Update.
43145         (Include): Change to unistr.h.
43146         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
43147         (Depends-on): Add unistr/base.
43148         (configure.ac): Remove gl_UCS4_UTF.
43149         (Makefile.am): Update.
43150         (Include): Change to unistr.h.
43151         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
43152         (Depends-on): Add unistr/base.
43153         (configure.ac): Remove gl_UCS4_UTF.
43154         (Makefile.am): Update.
43155         (Include): Change to unistr.h.
43156         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
43157         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
43158         utf8-ucs4-unsafe.h.
43159         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
43160         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
43161         utf16-ucs4-unsafe.h.
43162         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
43163         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
43164         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
43165         * lib/unistr/u8-strchr.c: Likewise.
43166         * lib/unistr/u8-strrchr.c: Likewise.
43167         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
43168         * lib/unistr/u16-strchr.c: Likewise.
43169         * lib/unistr/u16-strrchr.c: Likewise.
43170         * lib/striconveh.c: Update.
43171         * lib/linebreak.c: Update.
43172
43173 2007-03-24  Bruno Haible  <bruno@clisp.org>
43174
43175         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
43176         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
43177
43178 2007-03-22  Bruno Haible  <bruno@clisp.org>
43179
43180         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
43181
43182 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
43183
43184         * MODULES.html.sh (File system functions): New module write-any-file.
43185         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
43186         * m4/write-any-file.m4: New files.
43187
43188 2007-03-23  Eric Blake  <ebb9@byu.net>
43189
43190         * gnulib-tool: Rearrange space-tab sequences, since some editors
43191         like to eat them.
43192
43193 2007-03-23  Eric Blake  <ebb9@byu.net>
43194
43195         * lib/version-etc.c (version_etc_va): Update license wording to
43196         be more concise.  Recommended by Richard Stallman.
43197
43198 2007-03-22  Bruno Haible  <bruno@clisp.org>
43199
43200         * lib/poll.c (MSG_PEEK): New fallback definition.
43201
43202 2007-03-22  Bruno Haible  <bruno@clisp.org>
43203
43204         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
43205         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
43206         (main): Update.
43207         Fixes a compilation error on BeOS.
43208
43209 2007-03-22  Bruno Haible  <bruno@clisp.org>
43210
43211         * modules/frexpl-tests: New file.
43212         * tests/test-frexpl.c: New file.
43213
43214         * modules/frexpl: New file.
43215         * m4/frexpl.m4: New file.
43216         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
43217         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
43218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
43219         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
43220         (Depends-on): Add frexpl. Remove isnanl-nolibm.
43221         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
43222
43223 2007-03-22  Bruno Haible  <bruno@clisp.org>
43224
43225         * lib/frexpl.c: Share code with lib/frexp.c.
43226         * modules/mathl (Files): Add lib/frexp.c.
43227         (Depends-on): Add isnanl-nolibm.
43228
43229 2007-03-22  Bruno Haible  <bruno@clisp.org>
43230
43231         * modules/printf-frexp (Files): Add m4/frexp.m4.
43232         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
43233         only if the found frexp function actually works.
43234
43235 2007-03-22  Bruno Haible  <bruno@clisp.org>
43236
43237         * lib/frexp.c: Remove older implementation that uses divisions.
43238
43239 2007-03-21  Bruno Haible  <bruno@clisp.org>
43240
43241         * modules/frexp-tests: New file.
43242         * tests/test-frexp.c: New file.
43243
43244         * modules/frexp: New file.
43245         * lib/frexp.c: New file.
43246         * m4/frexp.m4: New file.
43247         * lib/math_.h (frexp): New declaration.
43248         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
43249         REPLACE_FREXP.
43250         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
43251
43252 2007-03-21  Bruno Haible  <bruno@clisp.org>
43253
43254         * modules/isnanl-tests: New file.
43255         * tests/test-isnanl.c: New file.
43256
43257         * modules/isnanl: New file.
43258         * lib/isnanl.h: New file.
43259         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
43260         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
43261         gl_FUNC_ISNANL_WORKS.
43262         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
43263         New macros.
43264
43265 2007-03-21  Bruno Haible  <bruno@clisp.org>
43266
43267         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
43268         lib/isnanl.h.
43269         (Include): Update.
43270         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
43271         * lib/vasnprintf.c: Update.
43272         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
43273         tests/test-isnanl.h, remove tests/test-isnanl.c.
43274         (Makefile.am): Update.
43275         * tests/test-isnanl-nolibm.c: New file.
43276         * tests/test-isnanl.h: New file.
43277         * tests/test-isnanl.c: Remove file.
43278
43279 2007-03-21  Jim Meyering  <jim@meyering.net>
43280
43281         When trying to open ".", treat ESTALE like EACCES.
43282         * lib/savewd.c (savewd_save): Resort to forking not just upon
43283         failure with EACCES, but also when errno is ESTALE.
43284
43285 2007-03-20  Bruno Haible  <bruno@clisp.org>
43286
43287         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
43288         Needed on AIX 5.1. Reported by Matthew Woehlke.
43289
43290 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43291
43292         Suggestions by Bruno Haible:
43293         * lib/acl-internal.h: Include "gettext.h" rather than rolling
43294         our own.
43295         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
43296         * modules/acl (Depends-on): Add gettext.
43297
43298 2007-03-19  Bruno Haible  <bruno@clisp.org>
43299
43300         * modules/iconvme: Remove file.
43301         * lib/iconvme.h: Remove file.
43302         * lib/iconvme.c: Remove file.
43303         * m4/iconvme.m4: Remove file.
43304
43305 2007-03-19  Bruno Haible  <bruno@clisp.org>
43306
43307         * doc/relocatable-maint.texi: Break long shell script line.
43308         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43309
43310 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43311
43312         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
43313         handle file_has_acl.
43314         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
43315         * lib/acl.c: Move header inclusions and related macro defns into
43316         lib/acl-internal.h.
43317         (S_ISLNK): Remove defn, since that's now done for us.
43318         (file_has_acl): Move to lib/file-has-acl.c.
43319         Call acl_trivial if available.  This is the crucial part of the fix.
43320         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
43321         shared within the library.  Rewrite a bit, partly to make it compatible
43322         with the GNU coding style.
43323         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
43324         Remove unnecessary double-quotes.
43325         Don't test for acl_to_text; the build will catch that.
43326         Replace acl_entries if it doesn't exist and it is needed.
43327         Check for -lsec and acl_trivial (as used on Solaris 10).
43328         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
43329         lib/file-has-acl.c.
43330         (Depends-on): Add sys_stat, for S_ISLNK.
43331
43332 2007-03-19  Ben Pfaff  <blp@gnu.org>
43333
43334         * doc/gnulib.texi: Fix typos.
43335         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43336
43337 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43338
43339         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
43340         If size is zero here, buf must be zero.
43341
43342 2007-03-19  Simon Josefsson  <simon@josefsson.org>
43343
43344         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
43345         <bruno@clisp.org>.
43346
43347 2007-03-18  Bruno Haible  <bruno@clisp.org>
43348
43349         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
43350         Suggested by Eric Blake.
43351
43352 2007-03-18  Ben Pfaff  <blp@gnu.org>
43353
43354         * doc/relocatable.texi: Recommend using as prefix a directory
43355         that does not exist and will never be created.  Based on
43356         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
43357         and others.
43358
43359 2007-03-17  Bruno Haible  <bruno@clisp.org>
43360
43361         * lib/fchownat.c: Include lchown.h.
43362
43363 2007-03-17  Bruno Haible  <bruno@clisp.org>
43364
43365         Fix endless loop when the given allocated size was > INT_MAX.
43366         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
43367         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
43368         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
43369         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
43370         * lib/sprintf.c (sprintf): Likewise.
43371
43372 2007-03-17  Bruno Haible  <bruno@clisp.org>
43373
43374         * tests/test-argp-2.sh (func_compare): Output a context diff.
43375
43376 2007-03-17  Bruno Haible  <bruno@clisp.org>
43377
43378         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
43379         locale's decimal-point character.
43380
43381 2007-03-17  Bruno Haible  <bruno@clisp.org>
43382
43383         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
43384         before comparing it. Needed because on some platforms (e.g. x86) a
43385         'long double' occupies less bytes than sizeof (long double).
43386
43387 2007-03-17  Bruno Haible  <bruno@clisp.org>
43388
43389         * tests/test-crc.c (main): Make printf statements 64-bit clean.
43390         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
43391         * tests/test-getaddrinfo.c (simple): Likewise.
43392         * tests/test-read-file.c (main): Likewise.
43393
43394 2007-03-17  Bruno Haible  <bruno@clisp.org>
43395
43396         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
43397
43398 2007-03-17  Bruno Haible  <bruno@clisp.org>
43399
43400         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
43401         unused variable.
43402
43403 2007-03-17  Bruno Haible  <bruno@clisp.org>
43404
43405         * tests/test-c-strcasecmp.c: Include c-strcase.h.
43406         * tests/test-c-strncasecmp.c: Likewise.
43407
43408 2007-03-17  Bruno Haible  <bruno@clisp.org>
43409
43410         * modules/stdlib (Depends-on): Add unistd.
43411         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
43412         Needed for MacOS X 10.3.
43413
43414 2007-03-17  Bruno Haible  <bruno@clisp.org>
43415
43416         * lib/unistr/u-strdup.h: Include <stdlib.h>.
43417
43418 2007-03-17  Bruno Haible  <bruno@clisp.org>
43419
43420         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
43421
43422 2007-03-17  Bruno Haible  <bruno@clisp.org>
43423
43424         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
43425         to reflect files copied from gnulib (with or without modifications).
43426         Suggested by Jim Meyering.
43427
43428 2007-03-17  Eric Blake  <ebb9@byu.net>
43429
43430         * NEWS: Document stdlib change from 2007-02-18.
43431
43432 2007-03-17  Jim Meyering  <jim@meyering.net>
43433
43434         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
43435         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
43436         someone uses a name containing shell meta-characters.
43437         Reported by Alfred M. Szmidt.
43438
43439         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
43440
43441 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43442
43443         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
43444         and copy gettext configuration files only if configure.ac contains
43445         a use of AM_GNU_GETTEXT_VERSION.
43446
43447 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43448
43449         * build-aux/bootstrap (gnulib_name): New variable.
43450         (gnulib_tool_options): Use it.
43451
43452 2007-03-13  Simon Josefsson  <simon@josefsson.org>
43453
43454         * tests/test-des.c: Use new namespace.
43455
43456 2007-03-15  Bruno Haible  <bruno@clisp.org>
43457
43458         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
43459         Reported by James Youngman <jay@gnu.org>.
43460
43461 2007-03-15  Bruno Haible  <bruno@clisp.org>
43462
43463         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
43464         declared prototype. Needed with cc on OSF/1 5.1.
43465
43466 2007-03-15  Bruno Haible  <bruno@clisp.org>
43467
43468         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
43469         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
43470         (struct gl_list_implementation): Add dispose_fn argument to the
43471         'create_empty', 'create' methods.
43472         (struct gl_list_impl_base): Add field 'dispose_fn'.
43473         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
43474         argument.
43475         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
43476         dispose_fn argument.
43477         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
43478         dispose_fn on the dropped values.
43479         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
43480         dispose_fn argument.
43481         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
43482         dropped values.
43483         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
43484         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43485         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
43486         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43487         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
43488         argument.
43489         (gl_tree_list_free): Call dispose_fn on the dropped values.
43490         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
43491         the dropped values.
43492         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
43493         Add dispose_fn argument.
43494         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
43495         Call dispose_fn on the dropped values.
43496         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
43497         Add dispose_fn argument.
43498         (gl_sublist_create): Initialize the 'dispose_fn' field.
43499         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
43500         * tests/test-array_list.c (main): Update.
43501         * tests/test-carray_list.c (main): Update.
43502         * tests/test-avltree_list.c (main): Update.
43503         * tests/test-rbtree_list.c (main): Update.
43504         * tests/test-avltreehash_list.c (main): Update.
43505         * tests/test-rbtreehash_list.c (main): Update.
43506         * tests/test-linked_list.c (main): Update.
43507         * tests/test-linkedhash_list.c (main): Update.
43508         * tests/test-array_oset.c (main): Update.
43509
43510 2007-03-15  Bruno Haible  <bruno@clisp.org>
43511
43512         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
43513         (gl_oset_create_empty): Add dispose_fn argument.
43514         (struct gl_oset_implementation): Add dispose_fn argument to
43515         'create_empty' method.
43516         (struct gl_oset_impl_base): Add dispose_fn field.
43517         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
43518         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
43519         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
43520         values.
43521         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
43522         (gl_tree_oset_free): Call dispose_fn on the dropped values.
43523         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43524         dropped value.
43525         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43526         dropped value.
43527         * tests/test-array_oset.c (main): Update.
43528         * tests/test-avltree_oset.c (main): Update.
43529         * tests/test-rbtree_oset.c (main): Update.
43530         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
43531
43532 2007-03-13  Bruno Haible  <bruno@clisp.org>
43533
43534         * tests/test-stdbool.c (i): Update after last patch.
43535
43536 2007-03-12  Bruno Haible  <bruno@clisp.org>
43537
43538         * lib/quotearg.c: Include <wctype.h> early, before the definition of
43539         the iswprint macro. Needed on Solaris 2.5.1.
43540
43541 2007-03-12  Bruno Haible  <bruno@clisp.org>
43542
43543         * tests/test-printf-frexp.c (main): Declare x as volatile.
43544
43545 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43546
43547         * doc/gnulib.texi (Build robot for gnulib): New section.
43548
43549 2007-03-12  Jim Meyering  <jim@meyering.net>
43550
43551         * build-aux/bootstrap: New file.
43552         * build-aux/bootstrap.conf: New file, from coreutils.
43553
43554 2007-03-11  Bruno Haible  <bruno@clisp.org>
43555
43556         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
43557
43558 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43559
43560         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
43561         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
43562         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
43563
43564 2007-03-11  Bruno Haible  <bruno@clisp.org>
43565
43566         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
43567         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
43568
43569 2007-03-11  Bruno Haible  <bruno@clisp.org>
43570
43571         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
43572         formula. Needed for SunPRO C 5.0.
43573
43574 2007-03-11  Bruno Haible  <bruno@clisp.org>
43575
43576         * modules/long-options (Depends-on): Add getopt.
43577
43578 2007-03-11  Bruno Haible  <bruno@clisp.org>
43579
43580         * modules/modechange (Depends-on): Add stdbool.
43581
43582 2007-03-11  Bruno Haible  <bruno@clisp.org>
43583
43584         * modules/i-ring (Depends-on): Add stdbool.
43585
43586 2007-03-11  Bruno Haible  <bruno@clisp.org>
43587
43588         * modules/gc-des (Depends-on): Add stdbool.
43589
43590 2007-03-11  Bruno Haible  <bruno@clisp.org>
43591
43592         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
43593
43594 2007-03-11  Bruno Haible  <bruno@clisp.org>
43595
43596         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
43597
43598 2007-03-11  Bruno Haible  <bruno@clisp.org>
43599
43600         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
43601
43602 2007-03-11  Bruno Haible  <bruno@clisp.org>
43603
43604         * lib/vasnprintf.c (sprintf): Undefine.
43605
43606 2007-03-11  Bruno Haible  <bruno@clisp.org>
43607
43608         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
43609         initializers in SunPRO C and Compaq C compilers.
43610
43611 2007-03-11  Bruno Haible  <bruno@clisp.org>
43612
43613         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
43614         decrementing code ANSI C compliant.
43615
43616 2007-03-11  Bruno Haible  <bruno@clisp.org>
43617
43618         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
43619         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
43620
43621 2007-03-11  Bruno Haible  <bruno@clisp.org>
43622
43623         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
43624         <stdbool.h> substitute doesn't pass.
43625
43626 2007-03-11  Bruno Haible  <bruno@clisp.org>
43627
43628         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
43629
43630 2007-03-11  Bruno Haible  <bruno@clisp.org>
43631
43632         * gnulib-tool (func_create_megatestdir): Create also an autobuild
43633         script, for submission to autobuild.josefsson.org.
43634
43635 2007-03-10  Bruno Haible  <bruno@clisp.org>
43636
43637         * modules/canonicalize-lgpl-tests: New file.
43638         * tests/test-canonicalize-lgpl.sh: New file.
43639         * tests/test-canonicalize-lgpl.c: New file.
43640
43641         * modules/c-strcase-tests: New file.
43642         * tests/test-c-strcase.sh: New file.
43643         * tests/test-c-strcasecmp.c: New file.
43644         * tests/test-c-strncasecmp.c: New file.
43645
43646         * modules/atexit-tests: New file.
43647         * tests/test-atexit.sh: New file.
43648         * tests/test-atexit.c: New file.
43649
43650 2007-03-10  Bruno Haible  <bruno@clisp.org>
43651
43652         * tests/test-binary-io.sh: Use temporary filenames that are not so
43653         likely to clash with those of other tests (in a parallel make).
43654         * tests/test-binary-io.c: Likewise.
43655
43656 2007-03-10  Bruno Haible  <bruno@clisp.org>
43657
43658         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
43659         fallback; use #error instead.
43660         Suggested by Simon Josefsson.
43661
43662 2007-03-10  Bruno Haible  <bruno@clisp.org>
43663
43664         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
43665         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
43666         first and the last.
43667
43668 2007-03-10  Bruno Haible  <bruno@clisp.org>
43669
43670         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
43671
43672 2007-03-10  Bruno Haible  <bruno@clisp.org>
43673
43674         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
43675         "make distcheck".
43676         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
43677         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
43678         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
43679
43680 2007-03-10  Bruno Haible  <bruno@clisp.org>
43681
43682         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
43683         variable.
43684         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
43685         variable.
43686
43687 2007-03-09  Eric Blake  <ebb9@byu.net>
43688         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
43689
43690         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
43691         types are not being provided by gnulib.
43692         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
43693         types are supported.
43694
43695 2007-03-10  Bruno Haible  <bruno@clisp.org>
43696
43697         * lib/stdio_.h (__attribute__): New macro.
43698         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
43699         vsprintf): Specify __attribute__ __format__ for GCC.
43700         Suggested by Eric Blake.
43701
43702 2007-03-09  Bruno Haible  <bruno@clisp.org>
43703
43704         * modules/printf-posix-tests: New file.
43705         * tests/test-printf-posix.sh: New file.
43706         * tests/test-printf-posix.c: New file.
43707
43708         * modules/printf-posix: New file.
43709         * lib/printf.c: New file.
43710         * m4/printf-posix-rpl.m4: New file.
43711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
43712         REPLACE_PRINTF.
43713         * lib/stdio_.h (printf): New declaration.
43714         (format, __format__, ____printf____, ____scanf____, ____strftime____,
43715         ____strfmon____): New macros.
43716         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
43717         REPLACE_PRINTF.
43718
43719 2007-03-09  Bruno Haible  <bruno@clisp.org>
43720
43721         * tests/test-vasnprintf-posix2.sh: New file.
43722         * tests/test-vasnprintf-posix2.c: New file.
43723         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
43724         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43725         (Makefile.am): Activate test-vasnprintf-posix2.sh.
43726
43727         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
43728         a locale dependent decimal point, rather than always '.'.
43729
43730 2007-03-09  Eric Blake  <ebb9@byu.net>
43731
43732         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
43733         spite of platforms like Tandem/NSK that define it to -1.
43734
43735 2007-03-08  Bruno Haible  <bruno@clisp.org>
43736
43737         * modules/vprintf-posix-tests: New file.
43738         * tests/test-vprintf-posix.sh: New file.
43739         * tests/test-vprintf-posix.c: New file.
43740         * tests/test-printf-posix.h: New file.
43741
43742         * modules/vprintf-posix: New file.
43743         * lib/vprintf.c: New file.
43744         * m4/vprintf-posix.m4: New file.
43745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
43746         REPLACE_VPRINTF.
43747         * lib/stdio_.h (vprintf): New declaration.
43748         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
43749         REPLACE_VPRINTF.
43750
43751 2007-03-08  Bruno Haible  <bruno@clisp.org>
43752
43753         * modules/fprintf-posix-tests: New file.
43754         * tests/test-fprintf-posix.sh: New file.
43755         * tests/test-fprintf-posix.c: New file.
43756
43757         * modules/fprintf-posix: New file.
43758         * lib/fprintf.c: New file.
43759         * m4/fprintf-posix.m4: New file.
43760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
43761         REPLACE_FPRINTF.
43762         * lib/stdio_.h (fprintf): New declaration.
43763         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
43764         REPLACE_FPRINTF.
43765
43766 2007-03-08  Bruno Haible  <bruno@clisp.org>
43767
43768         * modules/vfprintf-posix-tests: New file.
43769         * tests/test-vfprintf-posix.sh: New file.
43770         * tests/test-vfprintf-posix.c: New file.
43771         * tests/test-fprintf-posix.h: New file.
43772         * tests/test-fprintf-posix.out: New file.
43773
43774         * modules/vfprintf-posix: New file.
43775         * lib/vfprintf.c: New file.
43776         * m4/vfprintf-posix.m4: New file.
43777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
43778         REPLACE_VFPRINTF.
43779         * lib/stdio_.h (vfprintf): New declaration.
43780         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
43781         REPLACE_VFPRINTF.
43782
43783 2007-03-08  Bruno Haible  <bruno@clisp.org>
43784
43785         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
43786
43787 2007-03-08  Bruno Haible  <bruno@clisp.org>
43788
43789         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
43790         instead of 'expr' invocations.
43791         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43792         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43793         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43794         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43795         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43796         Suggested by Paul Eggert.
43797
43798 2007-03-08  Bruno Haible  <bruno@clisp.org>
43799
43800         * modules/fseterr-tests: New file.
43801         * tests/test-fseterr.c: New file.
43802
43803         * modules/fseterr: New file.
43804         * lib/fseterr.h: New file.
43805         * lib/fseterr.c: New file.
43806
43807 2007-03-08  Bruno Haible  <bruno@clisp.org>
43808
43809         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
43810         * lib/getopt_.h: Likewise.
43811         * lib/mbswidth.h: Likewise.
43812         * lib/setenv.h: Likewise.
43813         * lib/vasnprintf.h: Likewise.
43814         * lib/vasprintf.h: Likewise.
43815         * lib/verror.h: Likewise.
43816         * lib/xsetenv.h: Likewise.
43817         * lib/xvasprintf.h: Likewise.
43818
43819 2007-03-08  Jim Meyering  <jim@meyering.net>
43820
43821         * users.txt: Add parted.
43822
43823         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
43824
43825 2007-03-07  Bruno Haible  <bruno@clisp.org>
43826
43827         * m4/printf.m4: Make the shell script snippets copy&pastable.
43828
43829 2007-03-02  Bruno Haible  <bruno@clisp.org>
43830
43831         * lib/netinet_in_.h: New file.
43832         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
43833         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
43834         * modules/netinet_in (Files): Add lib/netinet_in_.h.
43835         (Depends-on): Add absolute-header.
43836         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
43837         into netinet/in.h.
43838
43839 2007-03-03  Bruno Haible  <bruno@clisp.org>
43840
43841         * lib/sys_select_.h: New file.
43842         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
43843         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
43844         * modules/sys_select (Files): Add lib/sys_select_.h.
43845         (Depends-on): Add absolute-header.
43846         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
43847         into sys/select.h.
43848
43849 2007-03-02  Bruno Haible  <bruno@clisp.org>
43850
43851         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
43852         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
43853         values.
43854         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
43855         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
43856         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
43857         * modules/sys_socket (Depends-on): Add absolute-header.
43858         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
43859         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
43860         (Include): Remove requirement of inclusion of <sys/types.h>.
43861
43862 2007-03-02  Bruno Haible  <bruno@clisp.org>
43863
43864         * lib/byteswap_.h (bswap_32): Fix formula.
43865
43866 2007-03-06  Bruno Haible  <bruno@clisp.org>
43867
43868         * modules/sprintf-posix-tests: New file.
43869         * tests/test-sprintf-posix.c: New file.
43870
43871         * modules/sprintf-posix: New file.
43872         * lib/sprintf.c: New file.
43873         * m4/sprintf-posix.m4: New file.
43874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
43875         REPLACE_SPRINTF.
43876         * lib/stdio_.h (sprintf): New declaration.
43877         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
43878         REPLACE_SPRINTF.
43879
43880 2007-03-06  Bruno Haible  <bruno@clisp.org>
43881
43882         * modules/vsprintf-posix-tests: New file.
43883         * tests/test-vsprintf-posix.c: New file.
43884         * tests/test-sprintf-posix.h: New file.
43885
43886         * modules/vsprintf-posix: New file.
43887         * lib/vsprintf.c: New file.
43888         * m4/vsprintf-posix.m4: New file.
43889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
43890         REPLACE_VSPRINTF.
43891         * lib/stdio_.h (vsprintf): New declaration.
43892         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
43893         REPLACE_VSPRINTF.
43894
43895 2007-03-06  Bruno Haible  <bruno@clisp.org>
43896
43897         * modules/vsnprintf (Depend-on): Remove minmax.
43898
43899 2007-03-06  Bruno Haible  <bruno@clisp.org>
43900
43901         * modules/snprintf-posix-tests: New file.
43902         * tests/test-snprintf-posix.c: New file.
43903
43904         * modules/snprintf-posix: New file.
43905         * m4/snprintf-posix.m4: New file.
43906         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
43907         gl_FUNC_SNPRINTF.
43908         (gl_FUNC_SNPRINTF): Invoke it.
43909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
43910         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
43911         is set.
43912         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
43913
43914 2007-03-06  Bruno Haible  <bruno@clisp.org>
43915
43916         * modules/vsnprintf-posix-tests: New file.
43917         * tests/test-vsnprintf-posix.c: New file.
43918         * tests/test-snprintf-posix.h: New file.
43919
43920         * modules/vsnprintf-posix: New file.
43921         * m4/vsnprintf-posix.m4: New file.
43922         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
43923         gl_FUNC_VSNPRINTF.
43924         (gl_FUNC_VSNPRINTF): Invoke it.
43925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
43926         * lib/stdio_.h (vsnprintf): Define as a replacement if
43927         REPLACE_VSNPRINTF is set.
43928         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
43929
43930 2007-03-06  Bruno Haible  <bruno@clisp.org>
43931
43932         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
43933         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
43934
43935 2007-03-06  Bruno Haible  <bruno@clisp.org>
43936
43937         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
43938         (asinl): Declare also if HAVE_DECL_ASINL is set.
43939         (atanl): Declare also if HAVE_DECL_ATANL is set.
43940         (ceill): Declare also if HAVE_DECL_CEILL is set.
43941         (cosl): Declare also if HAVE_DECL_COSL is set.
43942         (expl): Declare also if HAVE_DECL_EXPL is set.
43943         (floorl): Declare also if HAVE_DECL_FLOORL is set.
43944         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
43945         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
43946         (logl): Declare also if HAVE_DECL_LOGL is set.
43947         (sinl): Declare also if HAVE_DECL_SINL is set.
43948         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
43949         (tanl): Declare also if HAVE_DECL_TANL is set.
43950         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
43951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
43952         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
43953         declaration of frexpl, ldexpl.
43954         * modules/printf-frexpl (Depends-on): Add math.
43955         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
43956
43957 2007-03-05  Bruno Haible  <bruno@clisp.org>
43958
43959         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
43960         frexpl and ldexpl are declared.
43961         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
43962
43963 2007-03-05  Bruno Haible  <bruno@clisp.org>
43964
43965         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
43966         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
43967
43968 2007-03-05  Bruno Haible  <bruno@clisp.org>
43969
43970         * lib/stdio_.h: Include <stddef.h>.
43971
43972 2007-03-05  Bruno Haible  <bruno@clisp.org>
43973
43974         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
43975
43976 2007-03-05  Bruno Haible  <bruno@clisp.org>
43977
43978         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
43979         NetBSD 4, from Ralf Wildenhues.
43980
43981 2007-03-04  Bruno Haible  <bruno@clisp.org>
43982
43983         * lib/vasprintf.h: Update #if logic for the case when the functions
43984         exist but are overridden.
43985
43986 2007-03-04  Bruno Haible  <bruno@clisp.org>
43987
43988         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
43989         implementations: glibc-2.4 and MacOS X 10.3.
43990         * tests/test-vasnprintf-posix.c (test_function): Test also the case
43991         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
43992         * tests/test-vasprintf-posix.c (test_function): Likewise.
43993
43994 2007-03-04  Bruno Haible  <bruno@clisp.org>
43995
43996         * modules/vasprintf-posix-tests: New file.
43997         * tests/test-vasprintf-posix.c: New file.
43998
43999         * modules/vasprintf-posix: New file.
44000         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
44001         defined.
44002         * m4/vasprintf-posix.m4: New file.
44003         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
44004         gl_FUNC_VASPRINTF.
44005         (gl_FUNC_VASPRINTF): Invoke it.
44006         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
44007         here.
44008         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
44009
44010 2007-03-04  Bruno Haible  <bruno@clisp.org>
44011
44012         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
44013         REPLACE_GETTIMEOFDAY.
44014         * modules/sys_time (Makefile.am): Likewise.
44015         * m4/sys_time_h.m4: Likewise.
44016         * m4/gettimeofday.m4: Likewise.
44017
44018 2007-03-04  Bruno Haible  <bruno@clisp.org>
44019
44020         * modules/vasnprintf-posix-tests: New file.
44021         * tests/test-vasnprintf-posix.c: New file.
44022
44023         * modules/vasnprintf-posix: New file.
44024         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
44025         printf-frexpl.h.
44026         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
44027         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
44028         REPLACE_VASNPRINTF is defined.
44029         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
44030         gl_FUNC_VASNPRINTF.
44031         (gl_FUNC_VASNPRINTF): Invoke it.
44032         * m4/vasnprintf-posix.m4: New file.
44033         * m4/printf.m4: New file.
44034
44035 2007-03-04  Bruno Haible  <bruno@clisp.org>
44036
44037         Compile progreloc.c only if --enable-relocatable is specified.
44038         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
44039         if --enable-relocatable was specified.
44040         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
44041         lib_SOURCES.
44042
44043 2007-03-04  Jim Meyering  <jim@meyering.net>
44044
44045         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
44046         Use it consistently, rather than enumerating errno constants.
44047
44048 2007-03-04  Bruno Haible  <bruno@clisp.org>
44049
44050         * modules/xvasprintf-tests: New file.
44051         * tests/test-xvasprintf.c: New file.
44052
44053         * modules/vasprintf-tests: New file.
44054         * tests/test-vasprintf.c: New file.
44055
44056         * modules/vasnprintf-tests: New file.
44057         * tests/test-vasnprintf.c: New file.
44058
44059         * modules/vsnprintf-tests: New file.
44060         * tests/test-vsnprintf.c: New file.
44061
44062         * modules/snprintf-tests: New file.
44063         * tests/test-snprintf.c: New file.
44064
44065 2007-03-04  Bruno Haible  <bruno@clisp.org>
44066
44067         Compile relocatable.c only if --enable-relocatable is specified.
44068         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
44069         gl_RELOCATABLE_LIBRARY.
44070         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
44071         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
44072         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
44073         gl_RELOCATABLE_LIBRARY.
44074         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
44075         (Makefile.am): Remove lib_SOURCES.
44076         * modules/relocatable-lib-lgpl (configure.ac): Invoke
44077         gl_RELOCATABLE_LIBRARY.
44078         (Makefile.am): Remove lib_SOURCES.
44079         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
44080         always.
44081         * modules/relocatable-prog-wrapper (configure.ac): Invoke
44082         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
44083
44084 2007-03-04  Bruno Haible  <bruno@clisp.org>
44085
44086         * modules/argmatch-tests: New file.
44087         * tests/test-argmatch.c: New file.
44088
44089         * tests/test-allocsa.c (main): Halve the number of loop runs.
44090
44091         * modules/alloca-opt-tests: New file.
44092         * tests/test-alloca-opt.c: New file.
44093
44094 2007-03-04  Jim Meyering  <jim@meyering.net>
44095
44096         Work around difference between Linux ACLs and Solaris 10 ZFS.
44097         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
44098         for EINVAL.
44099
44100 2007-03-03  Bruno Haible  <bruno@clisp.org>
44101
44102         * modules/relocatable-prog (Depends-on): Add back progreloc's
44103         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
44104
44105 2007-03-03  Bruno Haible  <bruno@clisp.org>
44106
44107         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
44108         * modules/relocatable-lib: New file.
44109
44110 2007-03-03  Bruno Haible  <bruno@clisp.org>
44111
44112         * modules/relocatable-prog: Renamed from modules/relocatable.
44113         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
44114
44115 2007-03-03  Bruno Haible  <bruno@clisp.org>
44116
44117         * modules/relocatable-script (Files): Add doc/relocatable.texi,
44118         m4/relocatable-lib.m4.
44119         (Depends-on): Remove 'relocatable'.
44120         (configure.ac): Add gl_RELOCATABLE_NOP.
44121
44122 2007-03-03  Bruno Haible  <bruno@clisp.org>
44123
44124         * modules/relocatable-prog-wrapper: New file.
44125         * modules/relocatable (Depends-on): Add it. Remove all other
44126         dependencies except progname.
44127         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
44128
44129         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
44130         (gl_FUNC_STRERROR): Nop.
44131         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
44132
44133         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
44134         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
44135
44136         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
44137         (gl_FUNC_READLINK): Update.
44138
44139         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
44140
44141 2007-03-03  Bruno Haible  <bruno@clisp.org>
44142
44143         * lib/xreadlink.c: Include <unistd.h> unconditionally.
44144         * modules/xreadlink (Depends-on): Add unistd.
44145         * modules/xreadlink-with-size (Depends-on): Likewise.
44146
44147 2007-03-03  Bruno Haible  <bruno@clisp.org>
44148
44149         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
44150         extracted from gt_FUNC_SETENV.
44151         (gt_FUNC_SETENV): Remove macro.
44152         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
44153         remove gt_FUNC_SETENV.
44154
44155 2007-03-03  Bruno Haible  <bruno@clisp.org>
44156
44157         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
44158         ENABLE_RELOCATABLE here.
44159         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
44160
44161 2007-03-03  Bruno Haible  <bruno@clisp.org>
44162
44163         * modules/rbtreehash-list-tests (Depends-on): Add progname.
44164         * tests/test-rbtreehash_list.c: Include progname.h.
44165         (main): Call set_program_name.
44166
44167         * modules/rbtree-oset-tests (Depends-on): Add progname.
44168         * tests/test-rbtree_oset.c: Include progname.h.
44169         (main): Call set_program_name.
44170
44171         * modules/rbtree-list-tests (Depends-on): Add progname.
44172         * tests/test-rbtree_list.c: Include progname.h.
44173         (main): Call set_program_name.
44174
44175         * modules/linked-list-tests (Depends-on): Add progname.
44176         * tests/test-linked_list.c: Include progname.h.
44177         (main): Call set_program_name.
44178
44179 2007-03-03  Bruno Haible  <bruno@clisp.org>
44180
44181         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
44182         All uses of __restrict changed to _Restrict_.
44183         * lib/glob_.h (__restrict): Remove macro.
44184
44185 2007-03-02  Bruno Haible  <bruno@clisp.org>
44186
44187         * modules/gettext (configure.ac): Require gettext infrastructure
44188         from version 0.16.1.
44189
44190 2007-03-02  Bruno Haible  <bruno@clisp.org>
44191
44192         * modules/linkedhash-list-tests (Depends-on): Add progname.
44193         * tests/test-linkedhash_list.c: Include progname.h.
44194         (main): Call set_program_name.
44195
44196         * modules/carray-list-tests (Depends-on): Add progname.
44197         * tests/test-carray_list.c: Include progname.h.
44198         (main): Call set_program_name.
44199
44200         * modules/avltreehash-list-tests (Depends-on): Add progname.
44201         * tests/test-avltreehash_list.c: Include progname.h.
44202         (main): Call set_program_name.
44203
44204         * modules/avltree-oset-tests (Depends-on): Add progname.
44205         * tests/test-avltree_oset.c: Include progname.h.
44206         (main): Call set_program_name.
44207
44208         * modules/avltree-list-tests (Depends-on): Add progname.
44209         * tests/test-avltree_list.c: Include progname.h.
44210         (main): Call set_program_name.
44211
44212         * modules/array-oset-tests (Depends-on): Add progname.
44213         * tests/test-array_oset.c: Include progname.h.
44214         (main): Call set_program_name.
44215
44216         * modules/array-list-tests (Depends-on): Add progname.
44217         * tests/test-array_list.c: Include progname.h.
44218         (main): Call set_program_name.
44219
44220         * modules/argp-tests (Depends-on): Add progname.
44221         * tests/test-argp.c: Include argp.h first. Include progname.h.
44222         (main): Call set_program_name.
44223
44224 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
44225
44226         * doc/gnulib-tool.texi (Initial import): Reword description of
44227         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
44228         limited effect even if defined after the first system include.
44229
44230 2007-03-01  Bruno Haible  <bruno@clisp.org>
44231
44232         * build-aux/config.libpath: Update to libtool-1.5.22.
44233         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44234
44235 2007-03-01  Bruno Haible  <bruno@clisp.org>
44236
44237         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
44238         foo_CFLAGS.
44239         Reported by Ralf Wildenhues.
44240
44241 2007-03-01  Bruno Haible  <bruno@clisp.org>
44242
44243         * build-aux/install-reloc: Remove object files left over by some
44244         compilers.
44245         Reported by Ralf Wildenhues.
44246
44247 2007-03-01  Bruno Haible  <bruno@clisp.org>
44248
44249         * build-aux/install-reloc: Break long lines.
44250
44251 2007-03-01  Bruno Haible  <bruno@clisp.org>
44252
44253         * doc/relocatable.texi: Document that it may not work on OpenBSD.
44254         Reported by Ralf Wildenhues.
44255
44256 2007-03-01  Bruno Haible  <bruno@clisp.org>
44257
44258         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
44259         include ordering constraints.
44260
44261 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44262
44263         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
44264         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
44265         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
44266         as another example.
44267         * lib/time_.h: Fix misspelling.
44268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44269         Require gl_HEADER_TIME_H_DEFAULTS.
44270         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
44271         * m4/time_r.m4 (gl_TIME_R): Likewise.
44272         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
44273
44274 2007-03-01  Bruno Haible  <bruno@clisp.org>
44275
44276         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
44277         * m4/utimens.m4 (gl_UTIMENS): Likewise.
44278
44279 2007-03-01  Jim Meyering  <jim@meyering.net>
44280
44281         * modules/xreadlink (Maintainer): Add my name.
44282         * modules/xreadlink-with-size (Depends-on): Alphabetize.
44283
44284 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
44285             Bruno Haible  <bruno@clisp.org>
44286
44287         * build-aux/install-reloc: Compile also c-ctype.c.
44288         * build-aux/relocatable.sh.in: New file.
44289         * doc/relocatable.texi: New file.
44290         * doc/relocatable-maint.texi: New file.
44291         * doc/gnulib.texi: Include relocatable-maint.texi.
44292         * lib/progreloc.c: Include unistd.h unconditionally.
44293         * lib/relocwrapper.c: Include unistd.h unconditionally.
44294         Include c-ctype.h.
44295         (add_dotbin): Use c_tolower.
44296         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
44297         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
44298         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
44299         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
44300         to m4/relocatable-lib.m4.
44301         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
44302         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
44303         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
44304         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
44305         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
44306         * modules/relocatable: New file.
44307         * modules/relocatable-lib: New file.
44308         * modules/relocatable-script: New file.
44309
44310 2007-02-28  Bruno Haible  <bruno@clisp.org>
44311
44312         Import --enable-relocatable infrastructure.
44313         * build-aux/config.libpath: New file, from GNU gettext.
44314         * build-aux/install-reloc: New file, from GNU gettext.
44315         * build-aux/reloc-ldflags: New file, from GNU gettext.
44316         * lib/relocatable.h: New file, from GNU gettext.
44317         * lib/relocatable.c: New file, from GNU gettext.
44318         * lib/relocwrapper.c: New file, from GNU gettext.
44319         * m4/relocatable.m4: New file, from GNU gettext.
44320
44321 2007-02-28  Bruno Haible  <bruno@clisp.org>
44322
44323         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
44324
44325         * modules/xreadlink: New file, from GNU gettext with modifications.
44326         * lib/xreadlink.c: New file, from GNU gettext.
44327         * lib/xreadlink.h: Add comments.
44328         (xreadlink): New declaration.
44329
44330         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
44331         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
44332         lib/xreadlink-with-size.c.
44333         (configure.ac): Remove gl_XREADLINK invocation.
44334         (Makefile.am): Augment lib_SOURCES.
44335         * m4/xreadlink.m4: Remove file.
44336         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
44337         (xreadlink_with_size): Renamed from xreadink.
44338         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
44339         * modules/canonicalize (Depends-on): Replace xreadlink with
44340         xreadlink-with-size.
44341         * lib/canonicalize.c (canonicalize_filename_mode): Update.
44342
44343 2007-02-25  Jim Meyering  <jim@meyering.net>
44344
44345         * build-aux/announce-gen: When complaining about excess arguments,
44346         list them.
44347
44348 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
44349
44350         * README: Document signed integer overflow situation more
44351         accurately.
44352
44353 2007-02-25  Bruno Haible  <bruno@clisp.org>
44354
44355         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
44356         'a' or 'A' conversion.
44357
44358 2007-02-25  Bruno Haible  <bruno@clisp.org>
44359
44360         * modules/filename: Renamed from modules/pathname.
44361         (Files): Replace lib/pathname.h with lib/filename.h. Replace
44362         lib/concatpath.c with lib/concat-filename.c.
44363         (Makefile.am): Update.
44364         (Include): Replace pathname.h with filename.h.
44365         * lib/filename.h: Renamed from lib/pathname.h.
44366         (concatenated_filename): Renamed from concatenated_pathname.
44367         * lib/concat-filename.c: Renamed from lib/concatpath.c.
44368         (concatenated_filename): Renamed from concatenated_pathname.
44369         * lib/findprog.c: Include filename.h instead of pathname.h.
44370         (find_in_path): Update.
44371         * lib/javacomp.c: Include filename.h instead of pathname.h.
44372         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44373         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44374         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44375         is_oldgcj_14_13_usable, is_javac_usable): Update.
44376         * lib/javaexec.c: Include filename.h instead of pathname.h.
44377         (execute_java_class): Update.
44378         * modules/findprog: Update.
44379         * modules/javacomp: Update.
44380         * modules/javaexec: Update.
44381         * MODULES.html.sh (File system functions): Add 'filename', remove
44382         'pathname'.
44383
44384 2007-02-25  Bruno Haible  <bruno@clisp.org>
44385
44386         * modules/printf-frexpl-tests: New file.
44387         * tests/test-printf-frexpl.c: New file.
44388
44389         * modules/printf-frexpl: New file.
44390         * lib/printf-frexpl.h: New file.
44391         * lib/printf-frexpl.c: New file.
44392         * m4/printf-frexpl.m4: New file.
44393
44394 2007-02-25  Bruno Haible  <bruno@clisp.org>
44395
44396         * modules/printf-frexp-tests: New file.
44397         * tests/test-printf-frexp.c: New file.
44398
44399         * modules/printf-frexp: New file.
44400         * lib/printf-frexp.h: New file.
44401         * lib/printf-frexp.c: New file.
44402         * m4/printf-frexp.m4: New file.
44403
44404 2007-02-25  Bruno Haible  <bruno@clisp.org>
44405
44406         Assume automake >= 1.10 for the tests.
44407         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
44408         * modules/arctwo-tests: Likewise.
44409         * modules/argp-tests: Likewise.
44410         * modules/avltree-list-tests: Likewise.
44411         * modules/avltree-oset-tests: Likewise.
44412         * modules/avltreehash-list-tests: Likewise.
44413         * modules/carray-list-tests: Likewise.
44414         * modules/crc-tests: Likewise.
44415         * modules/des-tests: Likewise.
44416         * modules/gc-arcfour-tests: Likewise.
44417         * modules/gc-arctwo-tests: Likewise.
44418         * modules/gc-des-tests: Likewise.
44419         * modules/gc-hmac-md5-tests: Likewise.
44420         * modules/gc-hmac-sha1-tests: Likewise.
44421         * modules/gc-md2-tests: Likewise.
44422         * modules/gc-md4-tests: Likewise.
44423         * modules/gc-md5-tests: Likewise.
44424         * modules/gc-pbkdf2-sha1-tests: Likewise.
44425         * modules/gc-rijndael-tests: Likewise.
44426         * modules/gc-sha1-tests: Likewise.
44427         * modules/gc-tests: Likewise.
44428         * modules/getaddrinfo-tests: Likewise.
44429         * modules/hmac-md5-tests: Likewise.
44430         * modules/hmac-sha1-tests: Likewise.
44431         * modules/linked-list-tests: Likewise.
44432         * modules/linkedhash-list-tests: Likewise.
44433         * modules/lock-tests: Likewise.
44434         * modules/md2-tests: Likewise.
44435         * modules/md4-tests: Likewise.
44436         * modules/md5-tests: Likewise.
44437         * modules/rbtree-list-tests: Likewise.
44438         * modules/rbtree-oset-tests: Likewise.
44439         * modules/rbtreehash-list-tests: Likewise.
44440         * modules/read-file-tests: Likewise.
44441         * modules/rijndael-tests: Likewise.
44442         * modules/stdint-tests: Likewise.
44443         * modules/tls-tests: Likewise.
44444
44445 2007-02-24  Bruno Haible  <bruno@clisp.org>
44446
44447         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
44448         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
44449         function; instead check whether isnan with a double argument links.
44450         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
44451         function; instead check whether isnan with a 'long double' argument
44452         links.
44453         Reported by Eric Blake <ebb9@byu.net>.
44454
44455 2007-02-24  Bruno Haible  <bruno@clisp.org>
44456
44457         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
44458         defined.
44459         * lib/isnanl.c: Remove all code. Just include isnan.c.
44460         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
44461
44462 2007-02-25  Jim Meyering  <jim@meyering.net>
44463
44464         Avoid conflicting types for 'unsetenv' on FreeBSD.
44465         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
44466         conflicting with FreeBSD's (5.0 and 6.1) function declaration
44467         in stdlib.h.
44468
44469 2007-02-24  Bruno Haible  <bruno@clisp.org>
44470
44471         * modules/isnanl-nolibm-tests: New file.
44472         * tests/test-isnanl.c: New file.
44473
44474         * modules/isnanl-nolibm: New file.
44475         * lib/isnanl.h: New file.
44476         * lib/isnanl.c: New file.
44477         * m4/isnanl.m4: New file.
44478
44479 2007-02-24  Bruno Haible  <bruno@clisp.org>
44480
44481         * modules/isnan-nolibm-tests: New file.
44482         * tests/test-isnan.c: New file.
44483
44484         * modules/isnan-nolibm: New file.
44485         * lib/isnan.h: New file.
44486         * lib/isnan.c: New file.
44487         * m4/isnan.m4: New file.
44488
44489 2007-02-24  Bruno Haible  <bruno@clisp.org>
44490
44491         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
44492         assume that an exponent fits in 20 bits.
44493
44494 2007-02-24  Jim Meyering  <jim@meyering.net>
44495
44496         * m4/regex.m4: Update the description of the configure-time option,
44497         --without-included-regex, to state accurately what the defaults are,
44498         and perhaps to give people an idea why using this option is risky.
44499
44500 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44501
44502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
44503         loops on small arguments.  This attempts to avoid the problem
44504         Bruno Haible reported for AIX 4.3.2 in
44505         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
44506
44507 2007-02-23  Bruno Haible  <bruno@clisp.org>
44508
44509         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
44510         Needed for help2man.
44511
44512 2007-02-23  Karl Berry  <karl@gnu.org>
44513
44514         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
44515         exists, foo.h should be cvs-ignored, not committed.
44516
44517 2007-02-23  Eric Blake  <ebb9@byu.net>
44518
44519         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
44520         * lib/stat-time.h (includes): Likewise.
44521         * lib/utimecmp.c (includes): Likewise.
44522         * lib/utimens.h (includes): Likewise.
44523         * lib/getdate.y (includes): Also include "timespec.h" for use
44524         internal to the module.
44525         * modules/utimens (Depends-on): Revert yesterday's patch.
44526         * modules/nanosleep (Depends-on): Add missing dependency.
44527
44528 2007-02-22  Bruno Haible  <bruno@clisp.org>
44529
44530         * lib/glob.c: Don't include getlogin_r.h.
44531
44532 2007-02-22  Jim Meyering  <jim@meyering.net>
44533
44534         * modules/utimens (Depends-on): Add timespec, required for
44535         utimens.h's inclusion of timespec.h.
44536
44537 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
44538
44539         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
44540         long unreadable paths in GNU/Linux.  Problem reported by Andreas
44541         Schwab in
44542         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
44543         I'll try to think of a better way to fix the Solaris problem.
44544
44545         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
44546         like glibc; on Solaris 10, it fails with errno == EINVAL.
44547         POSIX says the behavior is unspecified if the first argument is NULL,
44548         so play it safe and never pass NULL to the system getcwd.
44549
44550 2007-02-21  Jim Meyering  <jim@meyering.net>
44551
44552         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
44553         of gettimeofday.  It would conflict with the one now always
44554         provided via sys_time_.h.  Reported by Matthew Woehlke, as
44555         an IRIX 6.5 build failure.
44556
44557 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
44558
44559         Minor fixups to port to Solaris 10 with Sun C 5.8.
44560         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
44561         * modules/getcwd (Depends-on): Add dirfd.
44562         * lib/putenv.c (putenv): #undef it.
44563         (rpl_putenv): New decl.
44564         (malloc, free): Include <stdlib.h> rather than prototyping separately.
44565
44566 2007-02-20  Bruno Haible  <bruno@clisp.org>
44567
44568         * modules/stdio-tests: New file.
44569         * tests/test-stdio.c: New file.
44570
44571         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
44572         (Depends-on): Add stdio.
44573         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44574         (Include): Use <stdio.h> instead of vsnprintf.h.
44575         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44576         HAVE_DECL_VSNPRINTF.
44577         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
44578
44579         * modules/snprintf (Files): Remove lib/snprintf.h.
44580         (Depends-on): Add stdio.
44581         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44582         (Include): Use <stdio.h> instead of snprintf.h.
44583         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44584         HAVE_DECL_SNPRINTF.
44585         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
44586         * lib/getaddrinfo.c: Likewise.
44587
44588         * modules/stdio: New file.
44589         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
44590         * lib/snprintf.h: Remove file.
44591         * lib/vsnprintf.h: Remove file.
44592         * lib/.cppi-disable: Remove snprintf.h.
44593         * m4/stdio_h.m4: New file.
44594         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
44595
44596 2007-02-20  Jim Meyering  <jim@meyering.net>
44597
44598         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
44599         used by e.g., mingw.  From Bruno Haible.
44600
44601 2007-02-19  Bruno Haible  <bruno@clisp.org>
44602
44603         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
44604         warnings.
44605         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44606
44607 2007-02-19  Bruno Haible  <bruno@clisp.org>
44608
44609         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
44610         from mingw users.
44611
44612 2007-02-19  Bruno Haible  <bruno@clisp.org>
44613
44614         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
44615         warnings.
44616         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
44617
44618 2007-02-19  Jim Meyering  <jim@meyering.net>
44619
44620         Don't use FD after a successful "fdopendir (fd)".
44621         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
44622         Reset it by calling dirfd on the just-obtained DIR*.
44623
44624         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
44625         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
44626
44627 2007-02-18  Bruno Haible  <bruno@clisp.org>
44628
44629         * lib/readlink.c: Include <unistd.h>.
44630         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
44631         HAVE_READLINK.
44632         * modules/readlink (Depends-on): Add unistd.
44633         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44634         (Include): Add <unistd.h>.
44635
44636         * lib/getlogin_r.h: Remove file.
44637         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
44638         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
44639         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
44640         HAVE_DECL_GETLOGIN_R.
44641         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
44642         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44643         (Include): Use <unistd.h> instead of getlogin_r.h.
44644
44645         * lib/getcwd.h: Remove file.
44646         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
44647         * lib/xgetcwd.c: Likewise.
44648         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
44649         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
44650         * modules/getcwd (Files): Remove lib/getcwd.h.
44651         (Depends-on): Add unistd.
44652         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44653         (Include): Use <unistd.h> instad of getcwd.h.
44654
44655         * lib/ftruncate.c: Include <unistd.h> first.
44656         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
44657         Set HAVE_FTRUNCATE.
44658         * modules/ftruncate (Depends-on): Add unistd.
44659         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44660
44661         * lib/fchdir.c: Include <unistd.h> first.
44662         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
44663         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
44664         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
44665         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44666         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
44667
44668         * lib/dup2.c: Include <unistd.h> first.
44669         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
44670         HAVE_DUP2.
44671         * modules/dup2 (Depends-on): Add unistd.
44672         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44673
44674         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
44675         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
44676         REPLACE_CHOWN. Don't define chown as a macro here.
44677         * modules/chown (Depends-on): Add unistd.
44678         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44679
44680         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
44681         Add definition for GL_LINK_WARNING.
44682         (chown, dup2): New declarations.
44683         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
44684         link warning.
44685         (ftruncate): New declaration.
44686         (getcwd): New declaration, taken from old getcwd.h.
44687         (getlogin_r): New declaration, taken from old getlogin_r.h.
44688         (readlink): New declaration.
44689         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
44690         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
44691         (gl_PREREQ_UNISTD): Remove macro.
44692         (gl_UNISTD_MODULE_INDICATOR): New macro.
44693         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
44694         many new variables. Don't set UNISTD_H.
44695         * modules/unistd (Description): Change.
44696         (Depends-on): Add link-warning.
44697         (configure.ac): Update.
44698         (Makefile.am): Create unistd.h always. Substitute many new variables
44699         into it.
44700
44701 2007-02-18  Bruno Haible  <bruno@clisp.org>
44702
44703         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
44704         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
44705         HAVE_GETSUBOPT.
44706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
44707         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
44708         * lib/getsubopt.h: Remove file.
44709         * modules/getsubopt (Files): Remove lib/getsubopt.h.
44710         (Depends-on): Add stdlib.
44711         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44712         (Includes): Use <stdlib.h> instead of getsubopt.h.
44713         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
44714         Set HAVE_GETSUBOPT.
44715         * lib/getsubopt.c: Don't include getsubopt.h.
44716
44717 2007-02-18  Bruno Haible  <bruno@clisp.org>
44718
44719         * modules/fchdir (Depends-on): Add dup2.
44720
44721 2007-02-18  Bruno Haible  <bruno@clisp.org>
44722
44723         * lib/stdlib_.h: Handle glibc's special invocation convention
44724         specially.
44725
44726 2007-02-18  Bruno Haible  <bruno@clisp.org>
44727
44728         * modules/stdlib-tests: New file.
44729         * tests/test-stdlib.c: New file.
44730
44731         * modules/mkstemp (Files): Remove lib/mkstemp.h.
44732         (Depends-on): Add stdlib.
44733         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44734         (Includes): Use <stdlib.h> instead of mkstemp.h.
44735         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44736         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
44737         * lib/mkstemp.c: Don't include mkstemp.h.
44738         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
44739         * lib/stdlib--.h: Don't include mkstemp.h.
44740
44741         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
44742         (Depends-on): Add stdlib.
44743         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44744         (Includes): Use <stdlib.h> instead of mkdtemp.h.
44745         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44746         HAVE_MKDTEMP.
44747         * lib/mkdtemp.c: Don't include mkdtemp.h.
44748         * lib/clean-temp.c: Don't include mkdtemp.h.
44749
44750         * modules/exit (Files): Remove lib/exit.h.
44751         (Depends-on): Add stdlib.
44752         (Makefile.am): Remove lib_SOURCES.
44753         (Include): Use <stdlib.h> instead of exit.h.
44754         * lib/argmatch.c: Don't include exit.h.
44755         * lib/execute.c: Likewise.
44756         * lib/pagealign_alloc.c: Likewise.
44757         * lib/pipe.c: Likewise.
44758         * lib/wait-process.c: Likewise.
44759         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
44760         * lib/exitfail.c: Likewise.
44761         * lib/savewd.c: Likewise.
44762         * lib/xsetenv.c: Likewise.
44763
44764         * modules/stdlib: New file.
44765         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
44766         and extra comments about mkstemp().
44767         * lib/exit.h: Remove file.
44768         * lib/mkdtemp.h: Remove file.
44769         * lib/mkstemp.h: Remove file.
44770         * m4/stdlib_h.m4: New file.
44771         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
44772
44773 2007-02-18  Bruno Haible  <bruno@clisp.org>
44774
44775         * modules/math-tests: New file.
44776         * tests/test-math.c: New file.
44777
44778         * modules/math: New file.
44779         * modules/mathl (Files): Remove lib/mathl.h.
44780         (Depends-on): Add math.
44781         (Makefile.am): Don't mention mathl.h.
44782         (Include): Use <math.h> instead of mathl.h.
44783         * lib/math_.h: New file.
44784         * lib/mathl.h: Remove file.
44785         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
44786         mathl.h.
44787         * lib/asinl.c: Likewise.
44788         * lib/atanl.c: Likewise.
44789         * lib/ceill.c: Likewise.
44790         * lib/cosl.c: Likewise.
44791         * lib/expl.c: Likewise.
44792         * lib/floorl.c: Likewise.
44793         * lib/frexpl.c: Likewise.
44794         * lib/ldexpl.c: Likewise.
44795         * lib/logl.c: Likewise.
44796         * lib/sincosl.c: Likewise.
44797         * lib/sinl.c: Likewise.
44798         * lib/sqrtl.c: Likewise.
44799         * lib/tanl.c: Likewise.
44800         * lib/trigl.c: Likewise.
44801         * m4/math_h.m4: New file.
44802         * MODULES.html.sh (Mathematics): Add math.
44803
44804 2007-02-17  Bruno Haible  <bruno@clisp.org>
44805
44806         * modules/wctype-tests: New file.
44807         * tests/test-wctype.c: New file.
44808
44809         * modules/wchar-tests: New file.
44810         * tests/test-wchar.c: New file.
44811
44812         * modules/unistd-tests: New file.
44813         * tests/test-unistd.c: New file.
44814
44815         * modules/time-tests: New file.
44816         * tests/test-time.c: New file.
44817
44818         * modules/sysexits-tests: New file.
44819         * tests/test-sysexits.c: New file.
44820
44821         * modules/sys_time-tests: New file.
44822         * tests/test-sys_time.c: New file.
44823
44824         * modules/sys_stat-tests: New file.
44825         * tests/test-sys_stat.c: New file.
44826
44827         * modules/sys_socket-tests: New file.
44828         * tests/test-sys_socket.c: New file.
44829
44830         * modules/sys_select-tests: New file.
44831         * tests/test-sys_select.c: New file.
44832
44833         * modules/string-tests: New file.
44834         * tests/test-string.c: New file.
44835
44836         * modules/stdbool-tests: New file.
44837         * tests/test-stdbool.c: New file.
44838
44839         * modules/netinet_in-tests: New file.
44840         * tests/test-netinet_in.c: New file.
44841
44842         * modules/inttypes-tests: New file.
44843         * tests/test-inttypes.c: New file.
44844
44845         * modules/fcntl-tests: New file.
44846         * tests/test-fcntl.c: New file.
44847
44848         * modules/byteswap-tests: New file.
44849         * tests/test-byteswap.c: New file.
44850
44851         * modules/arpa_inet-tests: New file.
44852         * tests/test-arpa_inet.c: New file.
44853
44854 2007-02-17  Bruno Haible  <bruno@clisp.org>
44855
44856         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
44857         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
44858         if the corresponding module is not enabled. Emit link warnings if
44859         the function is used nevertheless.
44860         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
44861         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
44862         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
44863         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
44864         * modules/inttypes (Depends-on): Add link-warning.
44865         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44866         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
44867         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
44868         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
44869         * modules/imaxdiv (configure.ac): Likewise.
44870         * modules/strtoimax (configure.ac): Likewise.
44871         * modules/strtoumax (configure.ac): Likewise.
44872
44873 2007-02-17  Bruno Haible  <bruno@clisp.org>
44874
44875         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
44876         gl_STRING_MODULE_INDICATOR_DEFAULTS.
44877         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
44878         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
44879
44880 2007-02-17  Bruno Haible  <bruno@clisp.org>
44881
44882         * modules/link-warning: New file.
44883         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
44884         * lib/string_.h (GL_LINK_WARNING): Remove definition.
44885         * modules/string (Depends-on): Add link-warning.
44886         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44887         string.h.
44888         * MODULES.html.sh (Support for building libraries and executables): Add
44889         link-warning.
44890
44891 2007-02-17  Bruno Haible  <bruno@clisp.org>
44892
44893         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
44894         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
44895         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
44896         long lines.
44897
44898 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
44899             Bruno Haible  <bruno@clisp.org>
44900
44901         * modules/tmpfile: New file.
44902         * lib/tmpfile.c: New file.
44903         * m4/tmpfile.m4: New file.
44904         * MODULES.html.sh (func_all_modules): New section "Input/output".
44905
44906 2007-02-15  Bruno Haible  <bruno@clisp.org>
44907
44908         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
44909         (supports_delete_on_close): New function.
44910         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
44911
44912 2007-02-14  Bruno Haible  <bruno@clisp.org>
44913
44914         * modules/mbspcasecmp-tests: New file.
44915         * tests/test-mbspcasecmp.sh: New file.
44916         * tests/test-mbspcasecmp.c: New file.
44917
44918         New module mbspcasecmp.
44919         * modules/mbspcasecmp: New file.
44920         * lib/mbspcasecmp.c: New file.
44921         * lib/string_.h (strncasecmp): Change warning message.
44922         (mbspcasecmp): New declaration.
44923         * m4/mbspcasecmp.m4: New file.
44924         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44925         GNULIB_MBSPCASECMP.
44926         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
44927         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
44928
44929 2007-02-14  Bruno Haible  <bruno@clisp.org>
44930
44931         * modules/mbsncasecmp-tests: New file.
44932         * tests/test-mbsncasecmp.sh: New file.
44933         * tests/test-mbsncasecmp.c: New file.
44934
44935         New module mbsncasecmp.
44936         * modules/mbsncasecmp: New file.
44937         * lib/mbsncasecmp.c: New file.
44938         * lib/string_.h (mbsncasecmp): New declaration.
44939         * m4/mbsncasecmp.m4: New file.
44940         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44941         GNULIB_MBSNCASECMP.
44942         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
44943         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
44944
44945 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
44946
44947         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
44948         Verify that it doesn't overlap with our flags.
44949         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
44950         do not have the desired effect in multibyte locales; instead, use
44951         mbscasecmp.
44952         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
44953         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
44954         we don't require GNU fnmatch ourselves (if our users require it, they
44955         should do so explicitly).
44956
44957         Fix regex code so it doesn't rely on strcasecmp.
44958         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
44959         Otherwise, include gnulib's langinfo.h.
44960         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
44961         undesirable behavior in non-C locales.  Instead, rely on localecharset.
44962         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
44963         * modules/regex (FILES): Remove m4/codeset.m4.
44964         (Depends-on): Add localcharset.  Remove strcase.
44965
44966 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44967
44968         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
44969         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
44970
44971 2007-02-13  Bruno Haible  <bruno@clisp.org>
44972
44973         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
44974         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44975
44976 2007-02-12  Bruno Haible  <bruno@clisp.org>
44977
44978         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
44979         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
44980         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
44981         time warning rather than a link error.
44982
44983 2007-02-12  Bruno Haible  <bruno@clisp.org>
44984
44985         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
44986         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44987         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44988
44989 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44990
44991         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
44992         args, not 2.
44993
44994 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44995
44996         New module 'time', so that apps can include <time.h> as per
44997         POSIX and GNU instead of separate include files like time_r.h
44998         and timegm.h.  This implementation tries out a simpler approach
44999         for replacing decls in standard include files (as compared to
45000         the string module), somewhat as an experiment.
45001
45002         * config/srclist.txt: Comment out mktime.c for now.
45003         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
45004         since it doesn't apply any more.  Use generic wording instead.
45005         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
45006         'time'.
45007         * lib/time_.h, m4/time_h.m4, modules/time: New files.
45008         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
45009         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
45010         Don't include <sys/types.h>; no longer needed since we assume C89.
45011         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
45012         * lib/strftime.c: Likewise.
45013         * lib/time_r.c: Likewise.
45014         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
45015         * lib/nanosleep.c: Include <time.h> first, to check interface.
45016         * lib/strptime.c: Likewise.
45017         * lib/time_r.c: Likewise.
45018         * lib/timegm.c: Likewise.
45019         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
45020         needed.
45021         * lib/timegm.c: Don't include timegm.h; no longer needed.
45022         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
45023         time.h now handles any problems in that area.
45024         (struct timespec, nanosleep): Remove; time.h now arranges for these.
45025         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
45026         that time.h defines struct timespec.
45027         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
45028         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
45029         handles that.
45030         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
45031         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
45032         needed.  Set REPLACE_LOCALTIME.
45033         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
45034         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
45035         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
45036         nanosleep; time_h.m4 now does that.  Don't require
45037         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
45038         module handles this now.
45039         * modules/getdate (Depends-on): Remove timespec.  Add time.
45040         * modules/nanosleep (Depends-on): Likewise.
45041         * modules/stat-time (Depends-on): Likewise.
45042         * modules/nanosleep (Include): Include time.h, not timespec.h.
45043         * modules/strptime (Files): Remove lib/strptime.h.
45044         (Depends-on): Add extensions, time.
45045         (Include): Include time.h, not strptime.h.
45046         * modules/time_r (Files): Remove lib/time_r.h.
45047         (Depends-on): Add time.
45048         (Include): Include time.h, not time_r.h.
45049         * modules/timegm: Likewise.
45050         * modules/timespec (Description): Now does timespec-related decls
45051         of our own, instead of struct timespec itself.
45052         (Depends-on): Add time; remove extensions.
45053         (Maintainer): Add self.
45054         * modules/utimecmp (Depends-on): Add time; remove timespec.
45055         * modules/utimens (Depends-on): Likewise.
45056         * modules/xnanosleep (Depends-on): Likewise.
45057
45058 2007-02-11  Bruno Haible  <bruno@clisp.org>
45059
45060         * lib/c-strstr.c: Include allocsa.h.
45061         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45062         * lib/c-strcasestr.c: Include allocsa.h.
45063         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45064         * lib/strcasestr.c: Include allocsa.h.
45065         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45066         * lib/mbsstr.c: Include allocsa.h.
45067         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
45068         allocsa/freesa instead of malloc/free.
45069         * lib/mbscasestr.c: Include allocsa.h.
45070         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
45071         allocsa/freesa instead of malloc/free.
45072         * modules/c-strstr (Depends-on): Add allocsa.
45073         * modules/c-strcasestr (Depends-on): Likewise.
45074         * modules/strcasestr (Depends-on): Likewise.
45075         * modules/mbsstr (Depends-on): Likewise.
45076         * modules/mbscasestr (Depends-on): Likewise.
45077
45078 2007-02-11  Bruno Haible  <bruno@clisp.org>
45079
45080         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
45081
45082         * modules/mbsspn-tests: New file.
45083         * tests/test-mbsspn.sh: New file.
45084         * tests/test-mbsspn.c: New file.
45085
45086 2007-02-11  Bruno Haible  <bruno@clisp.org>
45087
45088         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
45089
45090         * modules/mbspbrk-tests: New file.
45091         * tests/test-mbspbrk.sh: New file.
45092         * tests/test-mbspbrk.c: New file.
45093
45094 2007-02-11  Bruno Haible  <bruno@clisp.org>
45095
45096         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
45097         unneeded cast.
45098
45099         * modules/mbscspn-tests: New file.
45100         * tests/test-mbscspn.sh: New file.
45101         * tests/test-mbscspn.c: New file.
45102
45103 2007-02-11  Bruno Haible  <bruno@clisp.org>
45104
45105         * modules/mbscasecmp-tests: New file.
45106         * tests/test-mbscasecmp.sh: New file.
45107         * tests/test-mbscasecmp.c: New file.
45108
45109 2007-02-11  Bruno Haible  <bruno@clisp.org>
45110
45111         Ensure O(n) worst-case complexity of mbscasestr.
45112         * lib/mbscasestr.c: Include stdbool.h.
45113         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
45114         functions.
45115         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
45116         the bookkeeping indicates that it's worth it.
45117         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
45118
45119         * modules/mbscasestr-tests: New file.
45120         * tests/test-mbscasestr1.c: New file.
45121         * tests/test-mbscasestr2.sh: New file.
45122         * tests/test-mbscasestr2.c: New file.
45123         * tests/test-mbscasestr3.sh: New file.
45124         * tests/test-mbscasestr3.c: New file.
45125         * tests/test-mbscasestr4.sh: New file.
45126         * tests/test-mbscasestr4.c: New file.
45127         * m4/locale-tr.m4: New file.
45128
45129 2007-02-11  Bruno Haible  <bruno@clisp.org>
45130
45131         Ensure O(n) worst-case complexity of mbsstr.
45132         * lib/mbsstr.c: Include stdbool.h.
45133         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
45134         functions.
45135         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
45136         bookkeeping indicates that it's worth it.
45137         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
45138
45139         * modules/mbsstr-tests: New file.
45140         * tests/test-mbsstr1.c: New file.
45141         * tests/test-mbsstr2.sh: New file.
45142         * tests/test-mbsstr2.c: New file.
45143         * tests/test-mbsstr3.sh: New file.
45144         * tests/test-mbsstr3.c: New file.
45145         * m4/locale-fr.m4: New file.
45146
45147 2007-02-11  Bruno Haible  <bruno@clisp.org>
45148
45149         * lib/mbsrchr.c (mbsrchr): Fix bug.
45150
45151         * modules/mbsrchr-tests: New file.
45152         * tests/test-mbsrchr.sh: New file.
45153         * tests/test-mbsrchr.c: New file.
45154
45155 2007-02-11  Bruno Haible  <bruno@clisp.org>
45156
45157         * lib/mbschr.c (mbschr): Fix bug.
45158
45159         * modules/mbschr-tests: New file.
45160         * tests/test-mbschr.sh: New file.
45161         * tests/test-mbschr.c: New file.
45162         * m4/locale-zh.m4: New file.
45163
45164 2007-02-11  Bruno Haible  <bruno@clisp.org>
45165
45166         Support for copying multibyte string iterators.
45167         * lib/mbiter.h: Include <string.h>.
45168         (mbiter_multi_copy): New function.
45169         (mbi_copy): New macro.
45170         * lib/mbuiter.h: Include <string.h>.
45171         (mbuiter_multi_copy): New function.
45172         (mbui_copy): New macro.
45173
45174 2007-02-11  Bruno Haible  <bruno@clisp.org>
45175
45176         New module mbslen.
45177         * modules/mbslen: New file.
45178         * lib/mbslen.c: New file.
45179         * lib/string_.h (mbslen): New declaration.
45180         * m4/mbslen.m4: New file.
45181         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45182         GNULIB_MBSLEN.
45183         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
45184         * MODULES.html.sh (Internationalization functions): Add mbslen.
45185
45186 2007-02-11  Bruno Haible  <bruno@clisp.org>
45187
45188         Ensure O(n) worst-case complexity of strcasestr substitute.
45189         * lib/strcasestr.c: Include stdbool.h.
45190         (knuth_morris_pratt): New function.
45191         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
45192         bookkeeping indicates that it's worth it.
45193         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
45194
45195         * modules/strcasestr-tests: New file.
45196         * tests/test-strcasestr.c: New file.
45197
45198 2007-02-11  Bruno Haible  <bruno@clisp.org>
45199
45200         Ensure O(n) worst-case complexity of c_strcasestr.
45201         * lib/c-strcasestr.c: Include stdbool.h, string.h.
45202         (knuth_morris_pratt): New function.
45203         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
45204         the bookkeeping indicates that it's worth it.
45205         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
45206
45207         * modules/c-strcasestr-tests: New file.
45208         * tests/test-c-strcasestr.c: New file.
45209
45210 2007-02-11  Bruno Haible  <bruno@clisp.org>
45211
45212         Ensure O(n) worst-case complexity of c_strstr.
45213         * lib/c-strstr.c: Include stdbool.h, string.h.
45214         (knuth_morris_pratt): New function.
45215         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
45216         bookkeeping indicates that it's worth it.
45217         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
45218
45219         * lib/c-strstr.c: Complete rewrite for maintainability.
45220
45221         * modules/c-strstr-tests: New file.
45222         * tests/test-c-strstr.c: New file.
45223
45224 2007-02-11  Bruno Haible  <bruno@clisp.org>
45225
45226         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
45227         5.2.1 and earlier, whereby \055 was treated just like the range
45228         delimiter '-'.
45229         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45230
45231 2007-02-08  Bruno Haible  <bruno@clisp.org>
45232
45233         * modules/regex (Depends-on): Add stdbool.
45234         Reported by Dalibor Topic <robilad@kaffe.org>.
45235
45236 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45237
45238         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
45239         Prefer returning from main to exiting from it.
45240         Remove unnecessary parens after sizeof.
45241
45242 2007-02-05  Bruno Haible  <bruno@clisp.org>
45243
45244         New module mbssep.
45245         * modules/mbssep: New file.
45246         * lib/mbssep.c: New file.
45247         * lib/string_.h (strsep): Add a conditional link warning.
45248         (mbssep): New declaration.
45249         * m4/mbssep.m4: New file.
45250         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45251         GNULIB_MBSSEP.
45252         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
45253         * MODULES.html.sh (Internationalization functions): Add mbssep.
45254
45255 2007-02-05  Bruno Haible  <bruno@clisp.org>
45256
45257         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
45258         Optimize search in case of 1 delimiter.
45259
45260 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45261
45262         * lib/acl.h: Include sys/types.h before sys/acl.h.
45263
45264 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45265
45266         Merge upstream fix for glibc bugzilla #3957:
45267
45268         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
45269
45270         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
45271         bit for RE_HAT_LISTS_NOT_NEWLINE.
45272         (build_charclass_op): Remove bogus comment.
45273
45274 2007-02-05  Simon Josefsson  <simon@josefsson.org>
45275
45276         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
45277
45278 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45279
45280         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
45281         * lib/memmem.c [!defined _LIBC]: Include config.h.
45282
45283 2007-02-04  Bruno Haible  <bruno@clisp.org>
45284
45285         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
45286         warning message.
45287
45288 2007-02-04  Bruno Haible  <bruno@clisp.org>
45289
45290         New module mbstok_r.
45291         * modules/mbstok_r: New file.
45292         * lib/mbstok_r.c: New file.
45293         * lib/string_.h (strtok_r): Change argument names to match the
45294         comments. Add a conditional link warning.
45295         (mbstok_r): New declaration.
45296         * m4/mbstok_r.m4: New file.
45297         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45298         GNULIB_MBSTOK_R.
45299         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
45300         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
45301
45302 2007-02-04  Bruno Haible  <bruno@clisp.org>
45303
45304         New module mbsspn.
45305         * modules/mbsspn: New file.
45306         * lib/mbsspn.c: New file.
45307         * lib/string_.h (strspn): Add a conditional link warning.
45308         (mbsspn): New declaration.
45309         * m4/mbsspn.m4: New file.
45310         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45311         GNULIB_MBSSPN.
45312         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
45313         * MODULES.html.sh (Internationalization functions): Add mbsspn.
45314
45315 2007-02-04  Bruno Haible  <bruno@clisp.org>
45316
45317         New module mbspbrk.
45318         * modules/mbspbrk: New file.
45319         * lib/mbspbrk.c: New file.
45320         * lib/string_.h (strpbrk): Add a conditional link warning.
45321         (mbspbrk): New declaration.
45322         * m4/mbspbrk.m4: New file.
45323         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45324         GNULIB_MBSPBRK.
45325         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
45326         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
45327
45328 2007-02-04  Bruno Haible  <bruno@clisp.org>
45329
45330         New module mbscspn.
45331         * modules/mbscspn: New file.
45332         * lib/mbscspn.c: New file.
45333         * lib/string_.h (strcspn): Add a conditional link warning.
45334         (mbscspn): New declaration.
45335         * m4/mbscspn.m4: New file.
45336         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45337         GNULIB_MBSCSPN.
45338         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
45339         * MODULES.html.sh (Internationalization functions): Add mbscspn.
45340
45341 2007-02-04  Bruno Haible  <bruno@clisp.org>
45342
45343         New module mbscasestr, reduced goal of strcasestr.
45344         * modules/mbscasestr: New file.
45345         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
45346         (mbscasestr): Renamed from strcasestr.
45347         * lib/strcasestr.c: Don't include mbuiter.h.
45348         (strcasestr): Remove support for multibyte locales.
45349         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
45350         Change the conditional link warning.
45351         (mbscasestr): New declaration.
45352         * m4/mbscasestr.m4: New file.
45353         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
45354         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
45355         REPLACE_STRCASESTR.
45356         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
45357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45358         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45359         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
45360         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
45361         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45362         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
45363         (Depends-on): Remove mbuiter.
45364         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
45365
45366 2007-02-04  Bruno Haible  <bruno@clisp.org>
45367
45368         Simplify handling of strncasecmp.
45369         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
45370         the conditional link warning.
45371         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45372         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
45373         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
45374         * modules/strcase (configure.ac): Don't invoke
45375         gl_STRING_MODULE_INDICATOR.
45376         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
45377
45378 2007-02-04  Bruno Haible  <bruno@clisp.org>
45379
45380         New module mbscasecmp, reduced goal of strcasecmp.
45381         * modules/mbscasecmp: New file.
45382         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
45383         (mbscasecmp): Renamed from strcasecmp.
45384         * lib/strcasecmp.c: Don't include mbuiter.h.
45385         (strcasecmp): Remove support for multibyte locales.
45386         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
45387         Change the conditional link warning.
45388         (mbscasecmp): New declaration.
45389         * m4/mbscasecmp.m4: New file.
45390         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
45391         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
45392         REPLACE_STRCASECMP.
45393         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
45394         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45395         GNULIB_MBSCASECMP.
45396         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
45397         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
45398         * modules/strcase (Files): Remove m4/mbrtowc.m4.
45399         (Depends-on): Remove mbuiter.
45400         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
45401
45402 2007-02-04  Bruno Haible  <bruno@clisp.org>
45403
45404         New module mbsstr. Remove module strstr.
45405         * modules/mbsstr: New file.
45406         * modules/strstr: Remove file.
45407         * lib/mbsstr.c: Renamed from lib/strstr.c.
45408         (mbsstr): Renamed from strstr.
45409         * lib/string_.h (strstr): Remove declaration. Change the conditional
45410         link warning.
45411         (mbsstr): New declaration.
45412         * m4/mbsstr.m4: New file.
45413         * m4/strstr.m4: Remove file.
45414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
45415         REPLACE_STRSTR.
45416         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
45417         Don't initialize GNULIB_STRSTR.
45418         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
45419         substitute GNULIB_STRSTR and REPLACE_STRSTR.
45420         * MODULES.html.sh (Internationalization functions): Add mbsstr.
45421         (Support for systems lacking ANSI C 89): Remove strstr.
45422
45423 2007-02-04  Bruno Haible  <bruno@clisp.org>
45424
45425         New module mbsrchr.
45426         * modules/mbsrchr: New file.
45427         * lib/mbsrchr.c: New file.
45428         * lib/string_.h (strrchr): Add a conditional link warning.
45429         (mbsrchr): New declaration.
45430         * m4/mbsrchr.m4: New file.
45431         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45432         GNULIB_MBSRCHR.
45433         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
45434         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
45435
45436 2007-02-04  Bruno Haible  <bruno@clisp.org>
45437
45438         New module mbschr.
45439         * modules/mbschr: New file.
45440         * lib/mbschr.c: New file.
45441         * lib/string_.h (strchr): Add a conditional link warning.
45442         (mbschr): New declaration.
45443         * m4/mbschr.m4: New file.
45444         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45445         GNULIB_MBSCHR.
45446         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
45447         * MODULES.html.sh (Internationalization functions): Add mbschr.
45448
45449 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45450
45451         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
45452
45453         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
45454
45455 2007-02-04  Bruno Haible  <bruno@clisp.org>
45456
45457         New module description section 'configure.ac-early'.
45458         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
45459         (func_get_autoconf_early_snippet): New function.
45460         (func_import, func_create_testdir): Use it. Remove special cases for
45461         modules 'extensions' and 'lock'.
45462         * modules/extensions (configure.ac-early): Require
45463         gl_USE_SYSTEM_EXTENSIONS.
45464         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
45465
45466 2007-02-04  Bruno Haible  <bruno@clisp.org>
45467
45468         Make use of gcj-4.3's -fsource and -ftarget option.
45469         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
45470         and if so try the options -fsource and -ftarget.
45471         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
45472         source_version, ftarget_option, target_version arguments.
45473         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
45474         (is_envjavac_oldgcj_14_14_usable): Renamed from
45475         is_envjavac_gcj_14_14_usable.
45476         (is_envjavac_oldgcj_14_13_usable): Renamed from
45477         is_envjavac_gcj_14_13_usable.
45478         (is_gcj_present): Update.
45479         (is_gcj_43, is_gcj43_usable): New functions.
45480         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
45481         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
45482         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
45483         try the options -fsource and -ftarget.
45484
45485 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
45486
45487         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
45488         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
45489         larger value.
45490
45491 2007-02-03  Jim Meyering  <jim@meyering.net>
45492
45493         Give tools a better chance to allocate space for very large buffers.
45494         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
45495
45496         Make pwd and readlink work also when run with an unreadable parent dir
45497         on systems with openat support.
45498         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
45499         provided getcwd function, even when we have openat support.
45500         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
45501
45502 2007-02-02  Bruno Haible  <bruno@clisp.org>
45503
45504         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45505         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
45506         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
45507         portability problems if one of these functions is only used on specific
45508         platforms.
45509         Reported by Paul Eggert.
45510
45511 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
45512
45513         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
45514         is causing more trouble than it's curing.
45515         * lib/regex_internal.h (__mempcpy): Remove.
45516         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
45517         (and make the code a tad smaller to boot).
45518         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
45519
45520 2007-02-02  Jim Meyering  <jim@meyering.net>
45521
45522         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
45523         section, not in the Makefile.am: one.
45524
45525 2007-02-02  Eric Blake  <ebb9@byu.net>
45526
45527         * lib/strchrnul.c: Always include config.h first.
45528
45529         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
45530         gnulib strstr is not necessary here.
45531
45532 2007-02-02  Simon Josefsson  <simon@josefsson.org>
45533
45534         * m4/socklen.m4: Fix typo.
45535
45536 2007-02-02  Eric Blake  <ebb9@byu.net>
45537
45538         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
45539         * modules/netinet_in (Makefile.am): Likewise.
45540
45541 2007-02-01  Bruno Haible  <bruno@clisp.org>
45542
45543         * lib/string_.h (GL_LINK_WARNING): New macro.
45544         (strcasecmp, strstr, strcasestr): If provided by the system,
45545         conditionally define as a macro that leads to a warning instead of to
45546         an error.
45547         (strncasecmp): Conditionally define as a macro that leads to a warning.
45548
45549 2007-02-01  Karl Berry  <karl@gnu.org>
45550
45551         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
45552
45553 2007-02-01  Bruno Haible  <bruno@clisp.org>
45554
45555         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
45556         renamings.
45557
45558 2007-02-01  Eric Blake  <ebb9@byu.net>
45559
45560         * modules/regex (Depends-on): Revert dependence on mempcpy.
45561         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
45562         module's definition of mempcpy.
45563         Reported by Paul Eggert.
45564
45565 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
45566
45567         * lib/string_.h: If the gnulib module XYZ is not present, undefine
45568         the symbol XYZ before redefining it.  This fixes a problem with
45569         programs that don't use XYZ, when compiled on systems that define
45570         XYZ to something else.
45571
45572 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
45573
45574         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
45575         occurs when "mkdir -m foo" creates a setgid directory that is (1)
45576         writeable to group or other and (2) is intended to have a special
45577         mode bit that is set or cleared.  In such a case, the directory
45578         should be neither group- nor other-writeable until the special
45579         mode bits are right.
45580
45581 2007-01-31  Eric Blake  <ebb9@byu.net>
45582
45583         * modules/mountlist (Depends-on): Add strstr.
45584
45585         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
45586         bug.
45587         * modules/string (Makefile.am): Remove redundant replacement.
45588         * modules/regex (Depends-on): Add mempcpy.
45589
45590 2007-01-31  Bruno Haible  <bruno@clisp.org>
45591
45592         New module description field 'Link'.
45593         * gnulib-tool (func_usage): Document --extract-link-directive.
45594         (sed_extract_prog): Recognize 'Link' directive.
45595         (func_get_link_directive): New function.
45596         (func_import): Show summary of link directives.
45597         Handle --extract-link-directive option.
45598         * modules/acl (Link): New section.
45599         * modules/clock-time (Link): New section.
45600         * modules/euidaccess (Link): New section.
45601         * modules/gettext (Link): New section.
45602         * modules/iconv (Link): New section.
45603         * modules/lock (Link): New section.
45604         * modules/nanosleep (Link): New section.
45605         * modules/readline (Link): New section.
45606
45607 2007-01-27  Bruno Haible  <bruno@clisp.org>
45608
45609         Enforce the use of gnulib modules for unportable <string.h> functions.
45610         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
45611         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
45612         (gl_HEADER_STRING_H_BODY): Require it.
45613         * lib/string_.h: If the gnulib module XYZ is not present, redefine
45614         the symbol XYZ to one that gives a link error.
45615         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
45616         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
45617         * modules/mempcpy (configure.ac): Likewise.
45618         * modules/memrchr (configure.ac): Likewise.
45619         * modules/stpcpy (configure.ac): Likewise.
45620         * modules/stpncpy (configure.ac): Likewise.
45621         * modules/strcase (configure.ac): Likewise.
45622         * modules/strcasestr (configure.ac): Likewise.
45623         * modules/strchrnul (configure.ac): Likewise.
45624         * modules/strdup (configure.ac): Likewise.
45625         * modules/strndup (configure.ac): Likewise.
45626         * modules/strnlen (configure.ac): Likewise.
45627         * modules/strpbrk (configure.ac): Likewise.
45628         * modules/strsep (configure.ac): Likewise.
45629         * modules/strstr (configure.ac): Likewise.
45630         * modules/strtok_r (configure.ac): Likewise.
45631
45632 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
45633
45634         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
45635
45636 2007-01-30  Jim Meyering  <jim@meyering.net>
45637
45638         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
45639
45640 2007-01-29  Bruno Haible  <bruno@clisp.org>
45641
45642         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
45643         * lib/execute.c: Likewise.
45644         * lib/pipe.c: Likewise.
45645         * lib/printf-args.h: Likewise.
45646         * lib/printf-args.c: Likewise.
45647         * lib/printf-parse.c: Likewise.
45648         * lib/vasnprintf.c: Likewise.
45649
45650 2007-01-29  Eric Blake  <ebb9@byu.net>
45651
45652         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
45653         declaration.
45654
45655 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
45656
45657         * lib/strptime.h (strptime): Use 'restrict' for args where
45658         POSIX requires this.
45659         * lib/strptime.c (strptime): Likewise.
45660         Change license notice from LGPL to GPL, since gnulib-tool will
45661         change this as needed.
45662         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
45663         defined.
45664         Include "strptime.h" first, to check interface.
45665         Do not #undef _LIBC and _NL_CURRENT.
45666         Do not include <stdlib.h>; no longer needed.
45667         Include "time_r.h" and declare ptime_locale_status
45668         only if _LIBC is not defined.
45669         (__P): Remove unused macro.
45670         (match_string): Bring back glibc version, but use it only if _LIBC
45671         is defined.
45672         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
45673         Remove unnecessary assertion and abort() call.
45674         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
45675         * m4/strptime.m4: Fix serial number comment.
45676         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
45677         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
45678         (Depends-on): Add time_r.
45679
45680 2007-01-29  Bruno Haible  <bruno@clisp.org>
45681
45682         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45683         strptime.
45684         * modules/strptime (Depends-on): Add stdbool.
45685         * lib/strptime.h: Include <time.h> always. Add comments.
45686
45687 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45688
45689         * modules/strptime: New file.
45690         * lib/strptime.h: New file.
45691         * lib/strptime.c: New file.
45692         * m4/strptime.m4: New file.
45693
45694 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
45695
45696         * MODULES.html.sh: New module mpsort.
45697         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
45698
45699         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
45700         a circularity problem with HP-UX ia64 reported by Bob Proulx in
45701         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
45702         All uses changed.
45703         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
45704         All uses changed.
45705         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
45706         to _Restrict_.
45707         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
45708         the parameter matches the prototype.
45709
45710 2007-01-28  Jim Meyering  <jim@meyering.net>
45711
45712         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
45713         sys/time.h here, reverting that part of the previous patch:
45714         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
45715
45716 2007-01-28  Bruno Haible  <bruno@clisp.org>
45717
45718         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
45719         value of $(SYS_TIME_H).
45720         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
45721         remove it conditionally, too. [added by Jim Meyering]
45722         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
45723         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
45724         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
45725         GETTIMEOFDAY_REPLACEMENT to 1.
45726
45727 2007-01-28  Bruno Haible  <bruno@clisp.org>
45728
45729         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
45730         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
45731         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
45732         Set UNISTD_H instead of UNISTD_H2.
45733         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
45734
45735 2007-01-28  Bruno Haible  <bruno@clisp.org>
45736
45737         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
45738         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
45739
45740 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45741
45742         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
45743         (func_create_testdir): Ensure C locale for `grep' and `tr'
45744         character ranges.
45745         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
45746         ACLOCAL_AMFLAGS parsing state machine.
45747
45748 2007-01-27  Bruno Haible  <bruno@clisp.org>
45749
45750         * modules/unistr/base: Update.
45751
45752 2007-01-27  Bruno Haible  <bruno@clisp.org>
45753
45754         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
45755         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
45756         * modules/unistr/u32-mbtouc-unsafe: Renamed from
45757         modules/unistr/u32-mbtouc.
45758         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
45759         * lib/unistr.h: Update.
45760         * lib/linebreak.c: Update.
45761         * modules/unistr/u32-mbtouc: Renamed from
45762         modules/unistr/u32-mbtouc-safe.
45763         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
45764         * lib/unistr.h: Update.
45765         * lib/unistr/u32-to-u8.c: Update.
45766         * lib/unistr/u32-to-u16.c: Update.
45767
45768 2007-01-27  Bruno Haible  <bruno@clisp.org>
45769
45770         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
45771         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
45772         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
45773         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
45774         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
45775         * modules/unistr/u16-mbtouc-unsafe: Renamed from
45776         modules/unistr/u16-mbtouc.
45777         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
45778         * lib/unistr.h: Update.
45779         * lib/linebreak.c: Update.
45780         * modules/linebreak: Update.
45781         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
45782         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
45783         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
45784         * modules/unistr/u16-mbtouc: Renamed from
45785         modules/unistr/u16-mbtouc-safe.
45786         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
45787         * lib/unistr.h: Update.
45788         * lib/unistr/u16-to-u8.c: Update.
45789         * modules/unistr/u16-to-u8: Update.
45790         * lib/unistr/u16-to-u32.c: Update.
45791         * modules/unistr/u16-to-u32: Update.
45792
45793 2007-01-27  Bruno Haible  <bruno@clisp.org>
45794
45795         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
45796         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
45797         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
45798         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
45799         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
45800         * modules/unistr/u8-mbtouc-unsafe: Renamed from
45801         modules/unistr/u8-mbtouc.
45802         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
45803         * lib/unistr.h: Update.
45804         * lib/striconveh.c: Update.
45805         * modules/striconveh: Update.
45806         * lib/linebreak.c: Update.
45807         * modules/linebreak: Update.
45808         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
45809         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
45810         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
45811         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
45812         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
45813         * lib/unistr.h: Update.
45814         * lib/striconveh.c: Update.
45815         * modules/striconveh: Update.
45816         * lib/unistr/u8-to-u16.c: Update.
45817         * modules/unistr/u8-to-u16: Update.
45818         * lib/unistr/u8-to-u32.c: Update.
45819         * modules/unistr/u8-to-u32: Update.
45820
45821 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45822
45823         Sync from Libtool.
45824         * lib/argz.c: Do not include strings.h nor memory.h, include
45825         string.h unconditionally.  Patch by Simon Josefsson.
45826
45827 2007-01-27  Bruno Haible  <bruno@clisp.org>
45828
45829         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
45830         from gl_HEADER_STRING_H_BODY.
45831         (gl_HEADER_STRING_H_BODY): Require it.
45832         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
45833         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45834         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45835         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45836         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45837         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
45838         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45839         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45840         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
45841         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45842         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45843         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
45844         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45845         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45846         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45847
45848 2007-01-27  Bruno Haible  <bruno@clisp.org>
45849
45850         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
45851         check_PROGRAMS into noinst_PROGRAMS.
45852         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
45853         check_PROGRAMS in this case.
45854         (func_import): Set for_test to false.
45855         (func_create_testdir): Set for_test to true.
45856
45857 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45858             Bruno Haible  <bruno@clisp.org>
45859
45860         * modules/strcasestr (Files): Remove lib/strcasestr.h.
45861         (Depends-on): Add string.
45862         (Includes): Use <string.h> instead of strcasestr.h.
45863         * modules/string (Makefile.am): Also substitute the value of
45864         REPLACE_STRCASESTR.
45865         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
45866         assume strcasestr is declared in <string.h> not <strings.h>. Also
45867         set REPLACE_STRCASESTR.
45868         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
45869         REPLACE_STRCASESTR.
45870         * lib/strcasestr.h: Remove file.
45871         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
45872         * lib/string_.h (strcasestr): New declaration.
45873
45874 2007-01-27  Bruno Haible  <bruno@clisp.org>
45875
45876         * lib/string_.h: Use 'extern'.
45877
45878 2007-01-27  Jim Meyering  <jim@meyering.net>
45879
45880         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
45881         of set-but-not-used local, "q".
45882
45883         * lib/mempcpy.c: Include <config.h> before <string.h>.
45884         This fixes a compilation error on HP-UX, due to the system's
45885         "restrict"-using mempcpy prototype.
45886
45887 2007-01-26  Bruno Haible  <bruno@clisp.org>
45888
45889         Small optimization.
45890         * lib/javacomp.c: Include c-strstr.h.
45891          (is_envjavac_gcj): Use c_strstr instead of strstr.
45892         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
45893
45894 2007-01-26  Bruno Haible  <bruno@clisp.org>
45895
45896         * MODULES.html.sh (Unicode string functions): Add the new modules.
45897
45898         * modules/uniconv/u32-strconv-to-locale: New file.
45899         * lib/uniconv/u32-strconv-to-locale.c: New file.
45900
45901         * modules/uniconv/u16-strconv-to-locale: New file.
45902         * lib/uniconv/u16-strconv-to-locale.c: New file.
45903
45904         * modules/uniconv/u8-strconv-to-locale: New file.
45905         * lib/uniconv/u8-strconv-to-locale.c: New file.
45906
45907         * modules/uniconv/u32-strconv-from-locale: New file.
45908         * lib/uniconv/u32-strconv-from-locale.c: New file.
45909
45910         * modules/uniconv/u16-strconv-from-locale: New file.
45911         * lib/uniconv/u16-strconv-from-locale.c: New file.
45912
45913         * modules/uniconv/u8-strconv-from-locale: New file.
45914         * lib/uniconv/u8-strconv-from-locale.c: New file.
45915
45916         * modules/uniconv/u32-strconv-to-enc: New file.
45917         * lib/uniconv/u32-strconv-to-enc.c: New file.
45918         * modules/uniconv/u32-strconv-to-enc-tests: New file.
45919         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
45920
45921         * modules/uniconv/u16-strconv-to-enc: New file.
45922         * lib/uniconv/u16-strconv-to-enc.c: New file.
45923         * lib/uniconv/u-strconv-to-enc.h: New file.
45924         * modules/uniconv/u16-strconv-to-enc-tests: New file.
45925         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
45926
45927         * modules/uniconv/u8-strconv-to-enc: New file.
45928         * lib/uniconv/u8-strconv-to-enc.c: New file.
45929         * modules/uniconv/u8-strconv-to-enc-tests: New file.
45930         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
45931
45932         * modules/uniconv/u32-strconv-from-enc: New file.
45933         * lib/uniconv/u32-strconv-from-enc.c: New file.
45934         * modules/uniconv/u32-strconv-from-enc-tests: New file.
45935         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
45936
45937         * modules/uniconv/u16-strconv-from-enc: New file.
45938         * lib/uniconv/u16-strconv-from-enc.c: New file.
45939         * modules/uniconv/u16-strconv-from-enc-tests: New file.
45940         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
45941
45942         * modules/uniconv/u8-strconv-from-enc: New file.
45943         * lib/uniconv/u8-strconv-from-enc.c: New file.
45944         * lib/uniconv/u-strconv-from-enc.h: New file.
45945         * modules/uniconv/u8-strconv-from-enc-tests: New file.
45946         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
45947
45948         * modules/uniconv/u32-conv-from-enc: New file.
45949         * lib/uniconv/u32-conv-from-enc.c: New file.
45950         * modules/uniconv/u32-conv-from-enc-tests: New file.
45951         * tests/uniconv/test-u32-conv-from-enc.c: New file.
45952
45953         * modules/uniconv/u16-conv-from-enc: New file.
45954         * lib/uniconv/u16-conv-from-enc.c: New file.
45955         * lib/uniconv/u-conv-from-enc.h: New file.
45956         * modules/uniconv/u16-conv-from-enc-tests: New file.
45957         * tests/uniconv/test-u16-conv-from-enc.c: New file.
45958
45959         * modules/uniconv/u8-conv-from-enc: New file.
45960         * lib/uniconv/u8-conv-from-enc.c: New file.
45961         * modules/uniconv/u8-conv-from-enc-tests: New file.
45962         * tests/uniconv/test-u8-conv-from-enc.c: New file.
45963
45964         * modules/uniconv/base: New file.
45965         * lib/uniconv.h: New file.
45966
45967 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45968
45969         * doc/gnulib-tool.texi (Initial import): Update to match current
45970         behavior with strdup module.
45971         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
45972         * lib/memmem.h: Remove; all uses removed.  This is now done
45973         by <string.h>.
45974         * lib/mempcpy.h: Likewise.
45975         * lib/memrchr.h: Likewise.
45976         * lib/stpcpy.h: Likewise.
45977         * lib/stpncpy.h: Likewise.
45978         * lib/strcase.h: Likewise.
45979         * lib/strchrnul.h: Likewise.
45980         * lib/strdup.h: Likewise.
45981         * lib/strndup.h: Likewise.
45982         * lib/strnlen.h: Likewise.
45983         * lib/strpbrk.h: Likewise.
45984         * lib/strsep.h: Likewise.
45985         * lib/strstr.h: Likewise.
45986         * lib/strtok_r.h: Likewise.
45987         * lib/string_.h: New file.
45988         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
45989         Rely on <string.h> instead.
45990         * lib/canon-host.c: Likewise.
45991         * lib/chdir-long.c: Likewise.
45992         * lib/concatpath.c: Likewise.
45993         * lib/exclude.c: Likewise.
45994         * lib/fchdir.c: Likewise.
45995         * lib/getaddrinfo.c: Likewise.
45996         * lib/getcwd.c: Likewise.
45997         * lib/getsubopt.c: Likewise.
45998         * lib/glob.c: Likewise.
45999         * lib/hard-locale.c: Likewise.
46000         * lib/iconvme.c: Likewise.
46001         * lib/javacomp.c: Likewise.
46002         * lib/mempcpy.c: Likewise.
46003         * lib/memrchr.c: Likewise.
46004         * lib/regex_internal.h: Likewise.
46005         * lib/stpncpy.c: Likewise.
46006         * lib/strcasecmp.c: Likewise.
46007         * lib/strchrnul.c: Likewise.
46008         * lib/strdup.c: Likewise.
46009         * lib/striconv.c: Likewise.
46010         * lib/striconveh.c: Likewise.
46011         * lib/striconveha.c: Likewise.
46012         * lib/strncasecmp.c: Likewise.
46013         * lib/strndup.c: Likewise.
46014         * lib/strnlen.c: Likewise.
46015         * lib/strsep.c: Likewise.
46016         * lib/strstr.c: Likewise.
46017         * lib/strtok_r.c: Likewise.
46018         * lib/userspec.c: Likewise.
46019         * lib/w32spawn.h: Likewise.
46020         * lib/xstrndup.c: Likewise.
46021         * lib/mountlist.c (strstr): Remove decl.
46022         * m4/string_h.m4: New file.
46023         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
46024         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
46025         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
46026         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
46027         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
46028         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
46029         Set REPLACE_STRCASECMP if necessary.
46030         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
46031         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
46032         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
46033         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
46034         HAVE_DECL_STRDUP if necessary.
46035         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
46036         since gl_FUNC_STRNDUP does that now.
46037         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
46038         Check for decl here...
46039         (gl_PREREQ_STRNLEN): ... not here.
46040         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
46041         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
46042         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
46043         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
46044         necessary.
46045         * modules/string: New file.
46046         * modules/memmem (Files): Remove special-purpose include file.
46047         (Depends-on): Add string.
46048         (Include): Include <string.h>, not the removed file.
46049         * modules/mempcpy: Likewise.
46050         * modules/memrchr: Likewise.
46051         * modules/stpcpy: Likewise.
46052         * modules/stpncpy: Likewise.
46053         * modules/strcase: Likewise.
46054         * modules/strchrnul: Likewise.
46055         * modules/strdup: Likewise.
46056         * modules/strndup: Likewise.
46057         * modules/strnlen: Likewise.
46058         * modules/strpbrk: Likewise.
46059         * modules/strsep: Likewise.
46060         * modules/strstr: Likewise.
46061         * modules/strtok_r: Likewise.
46062         * tests/test-dirname.c: Don't include "strdup.h", since
46063         <string.h> now suffices.
46064         * tests/test-memmem.c: Don't include "memmem.h", since
46065         <string.h> now suffices.
46066
46067 2007-01-25  Bruno Haible  <bruno@clisp.org>
46068
46069         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
46070         *resultp is 0.
46071
46072         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
46073         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
46074         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
46075         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
46076
46077         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
46078         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
46079         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
46080         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
46081         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
46082         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
46083
46084 2007-01-24  Bruno Haible  <bruno@clisp.org>
46085
46086         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
46087         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
46088         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
46089         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
46090         gl_FUNC_FTS_CORE.
46091         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
46092         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
46093         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
46094         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
46095         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
46096         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
46097         gl_FUNC_FCHOWNAT.
46098         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
46099         gl_FUNC_STRFTIME.
46100         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
46101         Reported by Ralf Wildenhues.
46102
46103 2007-01-24  Bruno Haible  <bruno@clisp.org>
46104
46105         Drop AC_REQUIRE calls that are redundant with the module dependencies.
46106         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
46107         gl_GETADDRINFO.
46108         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
46109         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
46110         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
46111
46112 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
46113
46114         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
46115         Don't use 'exit'; just return from 'main'.
46116         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
46117
46118         * lib/fnmatch_.h: Readjust white space and comments to match
46119         glibc, to avoid spurious diffs.
46120
46121 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46122
46123         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
46124         2004-12-01 change by Jakub Jelinek, since this code won't compile
46125         if !LIBC.  Problem reported by Bob Proulx.
46126
46127 2007-01-23  Bruno Haible  <bruno@clisp.org>
46128
46129         * lib/striconveh.c: Include c-strcaseeq.h.
46130         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
46131         * modules/striconveh (Depends-on): Add c-strcaseeq.
46132
46133 2007-01-23  Bruno Haible  <bruno@clisp.org>
46134
46135         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
46136
46137         * modules/c-strcaseeq: New file.
46138         * lib/c-strcaseeq.h: New file.
46139
46140         * modules/streq: New file.
46141         * lib/streq.h: New file.
46142
46143 2007-01-23  Bruno Haible  <bruno@clisp.org>
46144
46145         * modules/striconveha-tests: New file.
46146         * tests/test-striconveha.c: New file.
46147
46148         * lib/striconveha.h: Include <stdbool.h>.
46149         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
46150         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
46151         (mem_iconveha_notranslit): Renamed from mem_iconveha.
46152         (mem_iconveha): New function.
46153         (str_iconveha_notranslit): Renamed from str_iconveha.
46154         (str_iconveha): New function.
46155         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
46156         c-strcase.
46157
46158 2007-01-23  Bruno Haible  <bruno@clisp.org>
46159
46160         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
46161         encodings without forgiving before trying any encoding with handler.
46162         (str_iconveha): Try all encodings without forgiving before trying any
46163         encoding with handler.
46164
46165 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46166
46167         Import the following changes from libc.
46168
46169         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46170
46171         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
46172
46173         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
46174
46175         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
46176         normal_bracket label.
46177
46178         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
46179
46180         [BZ #361]
46181         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
46182         to normal_bracket after fetching the next character.
46183
46184 2007-01-22  Bruno Haible  <bruno@clisp.org>
46185
46186         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
46187         argument.
46188         * lib/striconveh.c (iconv_carefully_1): New function.
46189         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
46190         argument.
46191         (str_cd_iconveh): Update.
46192         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
46193         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
46194         * tests/test-striconveh.c (MAGIC): New macro.
46195         (new_offsets): New function.
46196         (main): Test call with and without offsets.
46197
46198 2007-01-22  Bruno Haible  <bruno@clisp.org>
46199
46200         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
46201         * modules/sys_select (Makefile.am): Likewise.
46202         * modules/sys_socket (Makefile.am): Likewise.
46203         * modules/sys_time (Makefile.am): Likewise.
46204
46205 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
46206
46207         * modules/gettimeofday (License): Change from GPL to LGPL, since
46208         gettimeofday is a library function.
46209
46210 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46211
46212         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
46213
46214 2007-01-21  Bruno Haible  <bruno@clisp.org>
46215
46216         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
46217
46218 2007-01-21  Bruno Haible  <bruno@clisp.org>
46219
46220         * modules/striconveha: New file.
46221         * lib/striconveha.h: New file.
46222         * lib/striconveha.c: New file.
46223         * MODULES.html.sh (Internationalization functions): Add striconveha.
46224         * lib/striconv.c (str_iconv): Optimize the case of an empty input
46225         string.
46226         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
46227
46228 2007-01-21  Bruno Haible  <bruno@clisp.org>
46229
46230         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
46231         * lib/striconveh.c (str_iconveh): Likewise.
46232
46233 2007-01-21  Bruno Haible  <bruno@clisp.org>
46234
46235         * lib/striconveh.h (mem_iconveh): New declaration.
46236         * lib/striconveh.c (mem_iconveh): New function.
46237         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
46238
46239 2007-01-21  Bruno Haible  <bruno@clisp.org>
46240
46241         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
46242
46243         * lib/striconveh.h (mem_cd_iconveh): Change specification.
46244         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
46245         original result buffer.
46246         (str_cd_iconveh): Update.
46247         * tests/test-striconveh.c (main): Update.
46248
46249         * lib/striconv.h (mem_cd_iconv): Change specification.
46250         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
46251         result buffer.
46252         (str_cd_iconv): Update.
46253         * tests/test-striconv.c (main): Update.
46254
46255 2007-01-21  Bruno Haible  <bruno@clisp.org>
46256
46257         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
46258
46259 2007-01-20  Jim Meyering  <jim@meyering.net>
46260
46261         * lib/userspec.c (parse_with_separator): If a user or group string
46262         starts with "+", skip the corresponding name-to-ID look-up, since
46263         such a look-up must fail: user and group names may not include "+".
46264
46265 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
46266
46267         * lib/poll.c: Include sys/time.h and time.h unconditionally,
46268         since we now assume the sys_time module.
46269         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
46270         check for sys/time.h; no longer needed.
46271         * modules/poll (Depends-on): Depend on sys_time.
46272
46273 2007-01-18  Bruno Haible  <bruno@clisp.org>
46274
46275         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
46276         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46277
46278         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
46279         gettimeofday.
46280
46281         * tests/test-gettimeofday.c: Include <time.h>.
46282         (dummy): Remove variable.
46283
46284         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
46285         gl_HEADER_SYS_TIME_H.
46286         (gl_HEADER_SYS_TIME_H): New macro.
46287
46288         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
46289         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46290         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
46291         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
46292         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46293         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
46294         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
46295         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46296         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
46297         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
46298         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46299
46300         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
46301         last change; it caused a compilation error when cross-compiling to
46302         Cygwin.
46303
46304 2007-01-18  Jim Meyering  <jim@meyering.net>
46305
46306         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
46307         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
46308         than the race-prone "test -d sys || mkdir sys".
46309         (configure.ac): Use AC_PROG_MKDIR_P.
46310         * modules/sys_select: Likewise.
46311         * modules/sys_socket: Likewise.
46312         * modules/sys_time: Likewise.
46313
46314 2007-01-18  Eric Blake  <ebb9@byu.net>
46315
46316         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
46317         replace gettimeofday.
46318         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
46319         name, to avoid infinite recursion.
46320
46321 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
46322
46323         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
46324         module sys_time.
46325         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
46326         assume timespec.h defines struct timeval.
46327         * lib/settime.c: Likewise.
46328         * lib/utimens.c: Likewise.
46329         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
46330         since we now assume the gettimeofday module.
46331         * lib/tempname.c (__gen_tempname): Likewise.
46332         * lib/gettimeofday.h: Remove.
46333         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
46334         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
46335         Include <time.h>, for 'time()'.
46336         (localtime_buffer_addr): Also use this workaround if
46337         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
46338         to simplify the uses.  All uses changed.
46339         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
46340         that #undef is inside {}, and 'const' follows type name consistently.
46341         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
46342         (gettimeofday): Do not use the maximum possible value for
46343         tv->tv_usec, since that might break usages other than ls.c.
46344         Instead, we'll leave ls.c alone.  This undoes today's patch
46345         by Bruno.  Add a compile-time warning for 1s-clock resolution;
46346         we've never observed the problem but might as well keep the
46347         canary.
46348         * lib/nanosleep.c: Include timespec.h first, for interface check.
46349         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
46350         now assume the sys_time module.
46351         * lib/tempname.c: Likewise.
46352         * lib/timespec.h: Likewise.
46353         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
46354         needed.
46355         * lib/strftime.c: Likewise.
46356         * lib/timespec.h: Likewise.
46357         * lib/posixtm.c: Include posixtm.h first, for interface check.
46358         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
46359         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
46360         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
46361         * lib/sys_time_.h: New file.
46362         * lib/timespec.h (struct timespec): Use long int, not long.
46363         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46364         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
46365         Remove obsolescent call to AC_HEADER_TIME.
46366         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
46367         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46368         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46369         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
46370         Likewise.
46371         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
46372         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
46373         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
46374         into the sys_time module.  Check for gettimeofday just once.
46375         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
46376         for gettimeofday signature to just check the signature.  Merely
46377         compile it, since linking doesn't test signature.  Improve test for
46378         whether gettimeofday.o is actually needed.
46379         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
46380         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
46381         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
46382         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46383         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
46384         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
46385         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
46386         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
46387         than worrying about sys/time.h.
46388         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46389         Don't bother worrying about TIME_WITH_SYS_TIME.
46390         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46391         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
46392         * m4/sys_time_h.m4: New file.
46393         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
46394         Don't include sys/time.h.  Return from main rather than exiting.
46395         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
46396         all uses changed.
46397         * modules/gethrxtime (Depends-on): Add sys_time.
46398         * modules/gettime (Depends-on): Likewise.
46399         * modules/gettimeofday (Depends-on): Likewise.
46400         * modules/nanosleep (Depends-on): Likewise.
46401         * modules/settime (Depends-on): Likewise.
46402         * modules/tempname (Depends-on): Likewise.
46403         * modules/utimens (Depends-on): Likewise.
46404         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
46405         (Include:) Change back to <sys/time.h>.
46406         (Maintainer:) Add self.
46407         * modules/sys_time: New file.
46408         * modules/tempname (Depends-on): Add gettimeofday.
46409         * tests/test-gettimeofday.c: Include <sys/time.h>
46410         rather than gettimeofday.h.
46411
46412 2007-01-17  Bruno Haible  <bruno@clisp.org>
46413
46414         * gnulib-tool (func_get_license): Revert last patch. Instead, let
46415         the license default to GPL.
46416         (func_create_testdir): Don't complain if a module is LGPL and its
46417         tests module depends on GPLed modules.
46418
46419 2007-01-17  Bruno Haible  <bruno@clisp.org>
46420
46421         * lib/gettimeofday.c (gettimeofday): Add code for the case
46422         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
46423         maximum possible value for tv->tv_usec, rather than the minimum one.
46424
46425 2005-10-08  Martin Lambers  <marlam@marlam.de>
46426 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46427 2007-01-16  Bruno Haible  <bruno@clisp.org>
46428
46429         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
46430         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
46431         gl_FUNC_GETTIMEOFDAY.
46432         (Include): Add gettimeofday.h.
46433         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
46434         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
46435         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
46436         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
46437         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
46438         * lib/gettimeofday.h: New file.
46439         * lib/gettimeofday.c: Include <sys/timeb.h>.
46440         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
46441         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46442         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
46443         fall back on time().
46444
46445         * tests/test-gettimeofday.c: New file.
46446         * modules/gettimeofday-tests: New file.
46447
46448 2007-01-16  Eric Blake  <ebb9@byu.net>
46449
46450         * modules/fnmatch (Depends-on): Depend on wchar.
46451         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
46452         * m4/fnmatch.m4: Likewise.
46453         * modules/mbchar (Makefile.am): Assume <wchar.h>.
46454         * m4/mbchar.m4: Likewise.
46455         * modules/mbswidth (Depends-on): Depend on wchar.
46456         * lib/mbswidth.c: Assume <wchar.h>.
46457         * m4/mbswidth.m4: Likewise.
46458         * modules/quotearg (Depends-on): Depend on wchar.
46459         * lib/quotearg.c: Assume <wchar.h>.
46460         * m4/quotearg.m4: Likewise.
46461         * modules/regex (Depends-on): Depend on wchar.
46462         * lib/regex_internal.h: Assume <wchar.h>.
46463         * m4/regex.m4: Likewise.
46464         * modules/stdint (Depends-on): Depend on wchar.
46465         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
46466         * m4/stdint.m4: Likewise.
46467         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
46468         * modules/strftime (Depends-on): Depend on wchar.
46469         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
46470         * modules/strtol (Depends-on): Depend on wchar.
46471         * lib/strtol.c: Assume <wchar.h>.
46472         * modules/wcwidth (Depends-on): Depend on wchar.
46473         * lib/wcwidth.h: Assume <wchar.h>.
46474         * m4/wcwidth.m4: Likewise.
46475
46476 2007-01-16  Bruno Haible  <bruno@clisp.org>
46477
46478         * modules/csharpexec-script: New, created from...
46479         * modules/csharpexec: ... this.
46480
46481 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46482
46483         * modules/javaexec-script: New, created from...
46484         * modules/javaexec: ... this.
46485
46486 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46487
46488         * modules/poll (Dependencies): Add sys_select.
46489
46490 2007-01-15  Jim Meyering  <jim@meyering.net>
46491
46492         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
46493         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
46494         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
46495         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
46496
46497 2007-01-15  Bruno Haible  <bruno@clisp.org>
46498
46499         * modules/striconveh: New file.
46500         * lib/striconveh.h: New file.
46501         * lib/striconveh.c: New file.
46502         * MODULES.html.sh (Internationalization functions): Add striconveh.
46503
46504         * modules/striconveh-tests: New file.
46505         * tests/test-striconveh.c: New file.
46506
46507 2007-01-15  Bruno Haible  <bruno@clisp.org>
46508
46509         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
46510         not from GNU libiconv or GNU libc.
46511
46512 2007-01-15  Bruno Haible  <bruno@clisp.org>
46513
46514         * doc/gnulib-intro.texi (Copyright): Explain the different license
46515         terms for module descriptions, autoconf macros, tests, documentation.
46516
46517 2007-01-14  Bruno Haible  <bruno@clisp.org>
46518
46519         * modules/striconv-tests: New file.
46520         * tests/test-striconv.c: New file.
46521
46522 2007-01-14  Bruno Haible  <bruno@clisp.org>
46523
46524         * modules/iconv-tests: New file.
46525         * tests/test-iconv.c: New file.
46526
46527 2007-01-14  Bruno Haible  <bruno@clisp.org>
46528
46529         * gnulib-tool (func_get_license): For test modules, use the license of
46530         the main module.
46531
46532 2007-01-14  Bruno Haible  <bruno@clisp.org>
46533
46534         * modules/iconv (Include): Clarify that <iconv.h> can only be included
46535         if iconv is found to exist.
46536
46537 2007-01-14  Bruno Haible  <bruno@clisp.org>
46538
46539         * modules/c-ctype-tests: New file.
46540         * tests/test-c-ctype.c: New file.
46541
46542 2007-01-14  Bruno Haible  <bruno@clisp.org>
46543
46544         * modules/binary-io-tests: New file.
46545         * tests/test-binary-io.sh: New file.
46546         * tests/test-binary-io.c: New file.
46547
46548 2007-01-14  Bruno Haible  <bruno@clisp.org>
46549
46550         * modules/array-oset-tests: New file.
46551         * tests/test-array_oset.c: New file.
46552
46553 2007-01-14  Bruno Haible  <bruno@clisp.org>
46554
46555         * modules/array-list-tests: New file.
46556         * tests/test-array_list.c: New file.
46557
46558 2007-01-14  Bruno Haible  <bruno@clisp.org>
46559
46560         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
46561         and make.
46562         Reported by Simon Josefsson in
46563         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
46564
46565 2007-01-14  Bruno Haible  <bruno@clisp.org>
46566
46567         * modules/allocsa-tests: New file.
46568         * tests/test-allocsa.c: New file.
46569
46570 2007-01-14  Bruno Haible  <bruno@clisp.org>
46571
46572         * modules/fchdir (Depends-on): Add absolute-header.
46573         * modules/unistd (Depends-on): Likewise.
46574
46575 2006-12-30  Bruno Haible  <bruno@clisp.org>
46576
46577         * modules/fchdir: New file.
46578         * modules/unistd (Files): Add lib/unistd_.h.
46579         (Makefile.am): Generate unistd.h from unistd_.h.
46580         * lib/fchdir.c: New file.
46581         * lib/dirent_.h: New file.
46582         * lib/unistd_.h: New file.
46583         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
46584         * m4/fchdir.m4: New file.
46585         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
46586         (gl_HEADER_UNISTD): Invoke it.
46587         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
46588         function.
46589         * lib/backupfile.c (opendir, closedir): Undefine.
46590         * lib/chown.c (open, close): Undefine.
46591         * lib/clean-temp.c (open, close): Undefine.
46592         * lib/copy-file.c (open, close): Undefine.
46593         * lib/execute.c (open, close): Undefine.
46594         * lib/fsusage.c (open, close): Undefine.
46595         * lib/gc-gnulib.c (open, close): Undefine.
46596         * lib/getcwd.c (opendir, closedir): Undefine.
46597         * lib/glob.c (opendir, closedir): Undefine.
46598         * lib/javacomp.c (open, close): Undefine.
46599         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
46600         * lib/openat-proc.c (open, close): Undefine.
46601         * lib/pagealign_alloc.c (open, close): Undefine.
46602         * lib/pipe.c (open, close): Undefine.
46603         * lib/progreloc.c (open, close): Undefine.
46604         * lib/savedir.c (opendir, closedir): Undefine.
46605         * lib/utime.c (open, close): Undefine.
46606         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
46607
46608 2007-01-10  Bruno Haible  <bruno@clisp.org>
46609
46610         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
46611
46612 2007-01-12  Eric Blake  <ebb9@byu.net>
46613
46614         Provide a robust <wchar.h>.  Further simplifications are now
46615         possible in other modules, but not included here.
46616         * modules/wchar: New module.
46617         * m4/wchar.m4: New file.
46618         * lib/wchar_.h: Likewise.
46619         * modules/mbchar (Depends-on): Depend on wchar, as the first use
46620         of the new module.
46621         * MODULES.html.sh (Extended multibyte and wide character utilities):
46622         New section.
46623
46624 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
46625
46626         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
46627         to a reasonable default for memory allocation.
46628         (xreadlink): Don't allocate a huge buffer, to work around a buggy
46629         file system that reports garbage st_size values for symlinks.
46630         Problem reported by Liyang Hu.
46631
46632 2007-01-11  Simon Josefsson  <simon@josefsson.org>
46633
46634         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
46635         Emacs .#* auto-save files).
46636
46637 2007-01-11  Bruno Haible  <bruno@clisp.org>
46638
46639         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
46640         directory.
46641
46642 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46643
46644         Use @...@ consistently in lib/wctype_.h.
46645         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
46646         on it being set to 1 or 0.
46647         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
46648         go back to AC_SUBSTing it.
46649         * modules/wctype (Makefile.am): Undo previous change.
46650
46651 2007-01-10  Eric Blake  <ebb9@byu.net>
46652
46653         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
46654         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
46655         * modules/wctype (Makefile.am): Likewise.
46656         Reported by Chris McGuire.
46657
46658 2007-01-10  Jim Meyering  <jim@meyering.net>
46659
46660         fts.c: a small readability/maintainability improvement
46661         * lib/fts.c (fts_read): Make this code slightly more readable and
46662         maintainable by hoisting the "sp->fts_cur = p" assignments to
46663         immediately follow the statements that set P.  Derived from
46664         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
46665
46666 2007-01-10  Eric Blake  <ebb9@byu.net>
46667
46668         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
46669         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
46670         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46671         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46672         Reported by Chris McGuire.
46673
46674 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46675
46676         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
46677         in sed script.
46678
46679 2007-01-09  Bruno Haible  <bruno@clisp.org>
46680
46681         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
46682         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
46683         variables.
46684         (func_module): Use them.
46685
46686 2007-01-09  Bruno Haible  <bruno@clisp.org>
46687
46688         * modules/unistr/base: New file.
46689         * lib/unistr.h: New file.
46690
46691         * modules/unistr/u8-to-u16: New file.
46692         * lib/unistr/u8-to-u16.c: New file.
46693
46694         * modules/unistr/u8-to-u32: New file.
46695         * lib/unistr/u8-to-u32.c: New file.
46696
46697         * modules/unistr/u16-to-u8: New file.
46698         * lib/unistr/u16-to-u8.c: New file.
46699
46700         * modules/unistr/u16-to-u32: New file.
46701         * lib/unistr/u16-to-u32.c: New file.
46702
46703         * modules/unistr/u32-to-u8: New file.
46704         * lib/unistr/u32-to-u8.c: New file.
46705
46706         * modules/unistr/u32-to-u16: New file.
46707         * lib/unistr/u32-to-u16.c: New file.
46708
46709         * modules/unistr/u8-check: New file.
46710         * modules/unistr/u16-check: New file.
46711         * modules/unistr/u32-check: New file.
46712         * lib/unistr/u8-check.c: New file.
46713         * lib/unistr/u16-check.c: New file.
46714         * lib/unistr/u32-check.c: New file.
46715
46716         * modules/unistr/u8-chr: New file.
46717         * modules/unistr/u16-chr: New file.
46718         * modules/unistr/u32-chr: New file.
46719         * lib/unistr/u8-chr.c: New file.
46720         * lib/unistr/u16-chr.c: New file.
46721         * lib/unistr/u32-chr.c: New file.
46722
46723         * modules/unistr/u8-cmp: New file.
46724         * modules/unistr/u16-cmp: New file.
46725         * modules/unistr/u32-cmp: New file.
46726         * lib/unistr/u8-cmp.c: New file.
46727         * lib/unistr/u16-cmp.c: New file.
46728         * lib/unistr/u32-cmp.c: New file.
46729
46730         * modules/unistr/u8-cpy: New file.
46731         * modules/unistr/u16-cpy: New file.
46732         * modules/unistr/u32-cpy: New file.
46733         * lib/unistr/u8-cpy.c: New file.
46734         * lib/unistr/u16-cpy.c: New file.
46735         * lib/unistr/u32-cpy.c: New file.
46736         * lib/unistr/u-cpy.h: New file.
46737
46738         * modules/unistr/u8-cpy-alloc: New file.
46739         * modules/unistr/u16-cpy-alloc: New file.
46740         * modules/unistr/u32-cpy-alloc: New file.
46741         * lib/unistr/u8-cpy-alloc.c: New file.
46742         * lib/unistr/u16-cpy-alloc.c: New file.
46743         * lib/unistr/u32-cpy-alloc.c: New file.
46744         * lib/unistr/u-cpy-alloc.h: New file.
46745
46746         * modules/unistr/u8-endswith: New file.
46747         * modules/unistr/u16-endswith: New file.
46748         * modules/unistr/u32-endswith: New file.
46749         * lib/unistr/u8-endswith.c: New file.
46750         * lib/unistr/u16-endswith.c: New file.
46751         * lib/unistr/u32-endswith.c: New file.
46752         * lib/unistr/u-endswith.h: New file.
46753
46754         * modules/unistr/u8-mblen: New file.
46755         * modules/unistr/u16-mblen: New file.
46756         * modules/unistr/u32-mblen: New file.
46757         * lib/unistr/u8-mblen.c: New file.
46758         * lib/unistr/u16-mblen.c: New file.
46759         * lib/unistr/u32-mblen.c: New file.
46760
46761         * modules/unistr/u8-mbtouc: New file.
46762         * modules/unistr/u16-mbtouc: New file.
46763         * modules/unistr/u32-mbtouc: New file.
46764         * lib/unistr/u8-mbtouc.c: New file.
46765         * lib/unistr/u16-mbtouc.c: New file.
46766         * lib/unistr/u32-mbtouc.c: New file.
46767
46768         * modules/unistr/u8-mbtouc-safe: New file.
46769         * modules/unistr/u16-mbtouc-safe: New file.
46770         * modules/unistr/u32-mbtouc-safe: New file.
46771         * lib/unistr/u8-mbtouc-safe.c: New file.
46772         * lib/unistr/u16-mbtouc-safe.c: New file.
46773         * lib/unistr/u32-mbtouc-safe.c: New file.
46774
46775         * modules/unistr/u8-move: New file.
46776         * modules/unistr/u16-move: New file.
46777         * modules/unistr/u32-move: New file.
46778         * lib/unistr/u8-move.c: New file.
46779         * lib/unistr/u16-move.c: New file.
46780         * lib/unistr/u32-move.c: New file.
46781         * lib/unistr/u-move.h: New file.
46782
46783         * modules/unistr/u8-next: New file.
46784         * modules/unistr/u16-next: New file.
46785         * modules/unistr/u32-next: New file.
46786         * lib/unistr/u8-next.c: New file.
46787         * lib/unistr/u16-next.c: New file.
46788         * lib/unistr/u32-next.c: New file.
46789
46790         * modules/unistr/u8-prev: New file.
46791         * modules/unistr/u16-prev: New file.
46792         * modules/unistr/u32-prev: New file.
46793         * lib/unistr/u8-prev.c: New file.
46794         * lib/unistr/u16-prev.c: New file.
46795         * lib/unistr/u32-prev.c: New file.
46796
46797         * modules/unistr/u8-set: New file.
46798         * modules/unistr/u16-set: New file.
46799         * modules/unistr/u32-set: New file.
46800         * lib/unistr/u8-set.c: New file.
46801         * lib/unistr/u16-set.c: New file.
46802         * lib/unistr/u32-set.c: New file.
46803         * lib/unistr/u-set.h: New file.
46804
46805         * modules/unistr/u8-startswith: New file.
46806         * modules/unistr/u16-startswith: New file.
46807         * modules/unistr/u32-startswith: New file.
46808         * lib/unistr/u8-startswith.c: New file.
46809         * lib/unistr/u16-startswith.c: New file.
46810         * lib/unistr/u32-startswith.c: New file.
46811         * lib/unistr/u-startswith.h: New file.
46812
46813         * modules/unistr/u8-stpcpy: New file.
46814         * modules/unistr/u16-stpcpy: New file.
46815         * modules/unistr/u32-stpcpy: New file.
46816         * lib/unistr/u8-stpcpy.c: New file.
46817         * lib/unistr/u16-stpcpy.c: New file.
46818         * lib/unistr/u32-stpcpy.c: New file.
46819         * lib/unistr/u-stpcpy.h: New file.
46820
46821         * modules/unistr/u8-stpncpy: New file.
46822         * modules/unistr/u16-stpncpy: New file.
46823         * modules/unistr/u32-stpncpy: New file.
46824         * lib/unistr/u8-stpncpy.c: New file.
46825         * lib/unistr/u16-stpncpy.c: New file.
46826         * lib/unistr/u32-stpncpy.c: New file.
46827         * lib/unistr/u-stpncpy.h: New file.
46828
46829         * modules/unistr/u8-strcat: New file.
46830         * modules/unistr/u16-strcat: New file.
46831         * modules/unistr/u32-strcat: New file.
46832         * lib/unistr/u8-strcat.c: New file.
46833         * lib/unistr/u16-strcat.c: New file.
46834         * lib/unistr/u32-strcat.c: New file.
46835         * lib/unistr/u-strcat.h: New file.
46836
46837         * modules/unistr/u8-strchr: New file.
46838         * modules/unistr/u16-strchr: New file.
46839         * modules/unistr/u32-strchr: New file.
46840         * lib/unistr/u8-strchr.c: New file.
46841         * lib/unistr/u16-strchr.c: New file.
46842         * lib/unistr/u32-strchr.c: New file.
46843
46844         * modules/unistr/u8-strcmp: New file.
46845         * modules/unistr/u16-strcmp: New file.
46846         * modules/unistr/u32-strcmp: New file.
46847         * lib/unistr/u8-strcmp.c: New file.
46848         * lib/unistr/u16-strcmp.c: New file.
46849         * lib/unistr/u32-strcmp.c: New file.
46850
46851         * modules/unistr/u8-strcpy: New file.
46852         * modules/unistr/u16-strcpy: New file.
46853         * modules/unistr/u32-strcpy: New file.
46854         * lib/unistr/u8-strcpy.c: New file.
46855         * lib/unistr/u16-strcpy.c: New file.
46856         * lib/unistr/u32-strcpy.c: New file.
46857         * lib/unistr/u-strcpy.h: New file.
46858
46859         * modules/unistr/u8-strcspn: New file.
46860         * modules/unistr/u16-strcspn: New file.
46861         * modules/unistr/u32-strcspn: New file.
46862         * lib/unistr/u8-strcspn.c: New file.
46863         * lib/unistr/u16-strcspn.c: New file.
46864         * lib/unistr/u32-strcspn.c: New file.
46865         * lib/unistr/u-strcspn.h: New file.
46866
46867         * modules/unistr/u8-strdup: New file.
46868         * modules/unistr/u16-strdup: New file.
46869         * modules/unistr/u32-strdup: New file.
46870         * lib/unistr/u8-strdup.c: New file.
46871         * lib/unistr/u16-strdup.c: New file.
46872         * lib/unistr/u32-strdup.c: New file.
46873         * lib/unistr/u-strdup.h: New file.
46874
46875         * modules/unistr/u8-strlen: New file.
46876         * modules/unistr/u16-strlen: New file.
46877         * modules/unistr/u32-strlen: New file.
46878         * lib/unistr/u8-strlen.c: New file.
46879         * lib/unistr/u16-strlen.c: New file.
46880         * lib/unistr/u32-strlen.c: New file.
46881         * lib/unistr/u-strlen.h: New file.
46882
46883         * modules/unistr/u8-strmblen: New file.
46884         * modules/unistr/u16-strmblen: New file.
46885         * modules/unistr/u32-strmblen: New file.
46886         * lib/unistr/u8-strmblen.c: New file.
46887         * lib/unistr/u16-strmblen.c: New file.
46888         * lib/unistr/u32-strmblen.c: New file.
46889
46890         * modules/unistr/u8-strmbtouc: New file.
46891         * modules/unistr/u16-strmbtouc: New file.
46892         * modules/unistr/u32-strmbtouc: New file.
46893         * lib/unistr/u8-strmbtouc.c: New file.
46894         * lib/unistr/u16-strmbtouc.c: New file.
46895         * lib/unistr/u32-strmbtouc.c: New file.
46896
46897         * modules/unistr/u8-strncat: New file.
46898         * modules/unistr/u16-strncat: New file.
46899         * modules/unistr/u32-strncat: New file.
46900         * lib/unistr/u8-strncat.c: New file.
46901         * lib/unistr/u16-strncat.c: New file.
46902         * lib/unistr/u32-strncat.c: New file.
46903         * lib/unistr/u-strncat.h: New file.
46904
46905         * modules/unistr/u8-strncmp: New file.
46906         * modules/unistr/u16-strncmp: New file.
46907         * modules/unistr/u32-strncmp: New file.
46908         * lib/unistr/u8-strncmp.c: New file.
46909         * lib/unistr/u16-strncmp.c: New file.
46910         * lib/unistr/u32-strncmp.c: New file.
46911
46912         * modules/unistr/u8-strncpy: New file.
46913         * modules/unistr/u16-strncpy: New file.
46914         * modules/unistr/u32-strncpy: New file.
46915         * lib/unistr/u8-strncpy.c: New file.
46916         * lib/unistr/u16-strncpy.c: New file.
46917         * lib/unistr/u32-strncpy.c: New file.
46918         * lib/unistr/u-strncpy.h: New file.
46919
46920         * modules/unistr/u8-strnlen: New file.
46921         * modules/unistr/u16-strnlen: New file.
46922         * modules/unistr/u32-strnlen: New file.
46923         * lib/unistr/u8-strnlen.c: New file.
46924         * lib/unistr/u16-strnlen.c: New file.
46925         * lib/unistr/u32-strnlen.c: New file.
46926         * lib/unistr/u-strnlen.h: New file.
46927
46928         * modules/unistr/u8-strpbrk: New file.
46929         * modules/unistr/u16-strpbrk: New file.
46930         * modules/unistr/u32-strpbrk: New file.
46931         * lib/unistr/u8-strpbrk.c: New file.
46932         * lib/unistr/u16-strpbrk.c: New file.
46933         * lib/unistr/u32-strpbrk.c: New file.
46934         * lib/unistr/u-strpbrk.h: New file.
46935
46936         * modules/unistr/u8-strrchr: New file.
46937         * modules/unistr/u16-strrchr: New file.
46938         * modules/unistr/u32-strrchr: New file.
46939         * lib/unistr/u8-strrchr.c: New file.
46940         * lib/unistr/u16-strrchr.c: New file.
46941         * lib/unistr/u32-strrchr.c: New file.
46942
46943         * modules/unistr/u8-strspn: New file.
46944         * modules/unistr/u16-strspn: New file.
46945         * modules/unistr/u32-strspn: New file.
46946         * lib/unistr/u8-strspn.c: New file.
46947         * lib/unistr/u16-strspn.c: New file.
46948         * lib/unistr/u32-strspn.c: New file.
46949         * lib/unistr/u-strspn.h: New file.
46950
46951         * modules/unistr/u8-strstr: New file.
46952         * modules/unistr/u16-strstr: New file.
46953         * modules/unistr/u32-strstr: New file.
46954         * lib/unistr/u8-strstr.c: New file.
46955         * lib/unistr/u16-strstr.c: New file.
46956         * lib/unistr/u32-strstr.c: New file.
46957         * lib/unistr/u-strstr.h: New file.
46958
46959         * modules/unistr/u8-strtok: New file.
46960         * modules/unistr/u16-strtok: New file.
46961         * modules/unistr/u32-strtok: New file.
46962         * lib/unistr/u8-strtok.c: New file.
46963         * lib/unistr/u16-strtok.c: New file.
46964         * lib/unistr/u32-strtok.c: New file.
46965         * lib/unistr/u-strtok.h: New file.
46966
46967         * modules/unistr/u8-uctomb: New file.
46968         * modules/unistr/u16-uctomb: New file.
46969         * modules/unistr/u32-uctomb: New file.
46970         * lib/unistr/u8-uctomb.c: New file.
46971         * lib/unistr/u16-uctomb.c: New file.
46972         * lib/unistr/u32-uctomb.c: New file.
46973
46974         * MODULES.html.sh (Unicode string functions): Add the new modules.
46975
46976 2007-01-08  Bruno Haible  <bruno@clisp.org>
46977
46978         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
46979         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
46980         subdirectories.
46981
46982 2007-01-08  Karl Berry  <karl@gnu.org>
46983
46984         * doc/error.texi: mention that main() fns must set program_name
46985         when progname is used.
46986
46987 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
46988
46989         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
46990         WCTYPE_H is empty, for the benefit of builds from non-distclean
46991         directories.  Problem reported by Eric Blake in
46992         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
46993
46994 2007-01-08  Bruno Haible  <bruno@clisp.org>
46995
46996         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
46997         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
46998         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
46999         PROVIDE_CANONICALIZE_FILENAME_MODE.
47000         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
47001
47002 2007-01-08  Bruno Haible  <bruno@clisp.org>
47003
47004         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
47005         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
47006         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
47007         * lib/fts.c: Likewise.
47008         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
47009
47010 2006-12-25  Bruno Haible  <bruno@clisp.org>
47011
47012         * modules/utf8-ucs4-safe: New file.
47013         * lib/utf8-ucs4-safe.h: New file.
47014         * lib/unistr/utf8-ucs4-safe.c: New file.
47015
47016         * modules/utf16-ucs4-safe: New file.
47017         * lib/utf16-ucs4-safe.h: New file.
47018         * lib/unistr/utf16-ucs4-safe.c: New file.
47019
47020         * MODULES.html.sh (Unicode string functions): Add the new modules.
47021
47022 2007-01-08  Bruno Haible  <bruno@clisp.org>
47023
47024         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
47025         (Depends-on): Add unitypes.
47026         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
47027         (u8_mbtouc_aux): Move out to separate file.
47028         (u8_mbtouc): Use ucs4_t, uint8_t types.
47029         * lib/unistr/utf8-ucs4.c: New file.
47030
47031         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
47032         (Depends-on): Add unitypes.
47033         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
47034         (u16_mbtouc_aux): Move out to separate file.
47035         (u16_mbtouc): Use ucs4_t, uint16_t types.
47036         * lib/unistr/utf16-ucs4.c: New file.
47037
47038         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
47039         (Depends-on): Add unitypes.
47040         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
47041         (u8_uctomb_aux): Move out to separate file.
47042         (u8_uctomb): Use ucs4_t, uint8_t types.
47043         * lib/unistr/ucs4-utf8.c: New file.
47044
47045         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
47046         (Depends-on): Add unitypes.
47047         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
47048         (u16_uctomb_aux): Move out to separate file.
47049         (u16_uctomb): Use ucs4_t, uint16_t types.
47050         * lib/unistr/ucs4-utf16.c: New file.
47051
47052 2006-12-25  Bruno Haible  <bruno@clisp.org>
47053
47054         * modules/unitypes: New file.
47055         * lib/unitypes.h: New file.
47056         * MODULES.html.sh (func_all_modules): New section "Unicode string
47057         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
47058         this section. Add unitypes.
47059
47060 2007-01-08  Bruno Haible  <bruno@clisp.org>
47061
47062         Avoid variable names that conflict with those from libtool.
47063         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
47064         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
47065         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
47066         library_names_spec to acl_library_names_spec, hardcode_* to
47067         acl_hardcode_*.
47068         Reported by Ralf Wildenhues.
47069
47070 2007-01-08  Bruno Haible  <bruno@clisp.org>
47071
47072         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
47073         definition.
47074         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
47075         definition.
47076         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
47077         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
47078         definition.
47079         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
47080         definition.
47081         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
47082         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
47083         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
47084         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
47085         definition.
47086         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
47087         definition.
47088         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
47089         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
47090         GC_USE_<algorithm>.
47091         * lib/gc-libgcrypt.c: Likewise.
47092         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
47093         * modules/gc-arctwo (configure.ac): Likewise.
47094         * modules/gc-des (configure.ac): Likewise.
47095         * modules/gc-hmac-md5 (configure.ac): Likewise.
47096         * modules/gc-hmac-sha1 (configure.ac): Likewise.
47097         * modules/gc-md2 (configure.ac): Likewise.
47098         * modules/gc-md4 (configure.ac): Likewise.
47099         * modules/gc-md5 (configure.ac): Likewise.
47100         * modules/gc-random (configure.ac): Likewise.
47101         * modules/gc-rijndael (configure.ac): Likewise.
47102         * modules/gc-sha1 (configure.ac): Likewise.
47103
47104 2007-01-08  Bruno Haible  <bruno@clisp.org>
47105
47106         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
47107         macro definition.
47108         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
47109         definition.
47110         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
47111         definition.
47112         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
47113         * modules/fcntl-safer (configure.ac): Likewise.
47114         * modules/fopen-safer (configure.ac): Likewise.
47115         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
47116         GNULIB_FWRITEERROR macro definition.
47117
47118 2007-01-08  Bruno Haible  <bruno@clisp.org>
47119
47120         * m4/gnulib-common.m4: New file.
47121         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
47122         (func_get_filelist): Add m4/gnulib-common.m4.
47123
47124 2007-01-08  Bruno Haible  <bruno@clisp.org>
47125
47126         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
47127         command.
47128
47129 2007-01-08  Jim Meyering  <jim@meyering.net>
47130
47131         Use a more robust test for a "can't happen" condition.
47132         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
47133         narrowed the st_size value.  Presuming the "can't happen" condition
47134         is true, that narrowing could conceivably convert an invalid st_size
47135         value into a valid one.  Instead, use a change based on Matthew
47136         Woehlke's original patch.
47137
47138         Slight readability improvement: use an assert-like macro
47139         in place of literal "abort ()" uses.
47140         * lib/fts.c (fts_assert): Define.
47141         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
47142         Use this macro instead of a bare 'abort'.
47143
47144 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
47145
47146         Don't worry about using IRIX 5.3's wctype.h broken definitions;
47147         simply work around them.
47148         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
47149         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
47150         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
47151         declaring.
47152         Don't bother to define as macros, since the standard doesn't require it.
47153         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
47154         longer worry about IRIX 5.3.
47155         (HAVE_WCTYPE_CTMP_BUG): Remove.
47156
47157 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47158
47159         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
47160         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
47161         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47162         Problems reported by Georg Schwarz for IRIX 5.3.
47163
47164         * gnulib-tool (autoconf_minversion): Take the maximum version number
47165         found, not the minimum.  Problem reported by James Youngman.
47166
47167 2007-01-03  Karl Berry  <karl@gnu.org>
47168
47169         * doc/error.texi: new file, explaining interaction with progname.
47170         * doc/gnulib.texi: include it.  Update copyright.
47171
47172 2007-01-03  Simon Josefsson  <simon@josefsson.org>
47173
47174         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
47175         AC_CANONICAL_HOST, to improve autobuild outputs.
47176
47177 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
47178             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
47179
47180         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
47181         sockets, server sockets, and other file descriptors.  Count errors
47182         to compute the return value.  Reorder the code a bit to be easier
47183         to follow.  Don't set event bits that were not requested (except
47184         POLLERR and POLLHUP).
47185
47186 2007-01-01  Bruno Haible  <bruno@clisp.org>
47187
47188         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
47189
47190 2007-01-03  Jim Meyering  <jim@meyering.net>
47191
47192         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
47193
47194 2007-01-02  Bruno Haible  <bruno@clisp.org>
47195
47196         * modules/settime (Include): Require timespec.h.
47197         * modules/nanosleep (Include): Likewise.
47198
47199 2007-01-01  Bruno Haible  <bruno@clisp.org>
47200
47201         * gnulib-tool (func_emit_copyright_notice): Bump year.
47202         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
47203
47204 2007-01-01  Bruno Haible  <bruno@clisp.org>
47205
47206         Improve support for OpenBSD.
47207         * build-aux/config.rpath (libname_spec): Export.
47208         (library_names_spec): New variable. Export.
47209         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
47210         library_names_spec from the config.rpath output. Locate shared library
47211         through the name pattern in library_names_spec.
47212
47213 2007-01-01  Eric Blake  <ebb9@byu.net>
47214
47215         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
47216
47217 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
47218
47219         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
47220         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
47221         assume the C locale, and avoid an "eval" that could cause trouble.
47222         Problem with SORT reported by Bob Proulx.
47223
47224         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
47225         Define.  Trivial patch from Henning Nielsen Lund, originally
47226         sent to bug-grep@gnu.org today.
47227
47228 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47229
47230         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
47231         struct stat.  Problem reported by Henning Nielsen Lund.
47232         * lib/acl.c: Include acl.h first, to check interface.  Don't
47233         bother to include sys/types.h and sys/stat.h again.
47234
47235 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
47236
47237         Import the following change from libc; problem reported by
47238         Sven Verdoolaege.
47239
47240         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
47241
47242         [BZ #1373]
47243         * lib/argp.h: Remove __NTH for __argp_usage inline function.
47244
47245 2006-12-28  Jim Meyering  <jim@meyering.net>
47246
47247         * build-aux/announce-gen: Do not assume that the package
47248         builds any of tar.gz, tar.bz2, and .xdelta files.
47249         Suggestion from Simon Josefsson.
47250
47251 2006-12-28  Simon Josefsson  <simon@josefsson.org>
47252
47253         * modules/announce-gen: New file.
47254
47255 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
47256
47257         * lib/mbchar.h: Just include <wctype.h>; the wctype module
47258         handles its gotchas now.
47259         * lib/mbswidth.c: Likewise.
47260         * lib/wcwidth.h: Likewise.
47261         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
47262         and iswcntrl; the wctype module does this stuff now.
47263         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47264         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47265         * modules/mbchar (Depends-on): Add wctype.
47266         * modules/mbswidth (Depends-on): Likewise.
47267         * modules/wcwidth (Depends-on): Likewise.
47268
47269 2006-12-27  Eric Blake  <ebb9@byu.net>
47270
47271         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
47272         module uses more than what <wctype.h> is required to provide.
47273
47274 2006-12-26  Eric Blake  <ebb9@byu.net>
47275
47276         * gnulib-tool (sed_extract_prog): Avoid space-tab.
47277
47278 2006-12-26  Eric Blake  <ebb9@byu.net>
47279
47280         * modules/absolute-header: New module.
47281         * modules/fcntl (Depends-on): Depend on it.
47282         * modules/inttypes (Depends-on): Likewise.
47283         * modules/stdint (Depends-on): Likewise.
47284         * modules/sys_stat (Depends-on): Likewise.
47285         * modules/wctype (Depends-on): Likewise.
47286         * MODULES.html.sh (Support for building libraries and
47287         executables): Document it.
47288
47289 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47290
47291         * gnulib-tool (SED): Remove, undoing previous change.
47292         The problem was that it broke coreutils on Solaris, because
47293         "sed --posix" leaked into a makefile.
47294         (sed): New alias, if 'alias' and GNU sed.
47295
47296 2006-12-24  Jim Meyering  <jim@meyering.net>
47297
47298         Work around an fchownat bug in glibc-2.4:
47299         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
47300         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
47301         in spite of the -P option.
47302         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
47303         New macros.
47304         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
47305         * modules/openat (Files): Add lib/fchownat.c.
47306         * lib/openat.c (fchownat): Don't define here.  Move to...
47307         * lib/fchownat.c: ...this new file.
47308
47309 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
47310
47311         Fix bug reported by Bruno Haible in
47312         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
47313         where quotearg.c didn't compile on Mac OS X 10.2 because it
47314         lacks <wchar.h> and wint_t.
47315         * lib/wctype_.h (__wctype_wint_t): New type.
47316         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
47317         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
47318         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
47319         Arg is now of type __wctype_wint_t, not wint_t.
47320         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
47321         substitute HAVE_WINT_T.
47322         * modules/wctype (Files): Add m4/wint_t.m4.
47323         (wctype.h): Substitute HAVE_WINT_T.
47324
47325 2006-12-23  Bruno Haible  <bruno@clisp.org>
47326
47327         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
47328
47329 2006-12-23  Bruno Haible  <bruno@clisp.org>
47330
47331         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
47332         S_ISLNK.
47333         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
47334         mingw.
47335
47336 2006-12-22  Bruno Haible  <bruno@clisp.org>
47337
47338         * lib/copy-file.c: Include acl.h.
47339         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
47340         Close the file descriptors only after being done with copy_acl.
47341         * modules/copy-file (Depends-on): Add acl.
47342
47343 2006-12-22  Bruno Haible  <bruno@clisp.org>
47344
47345         * gnulib-tool (SED): New variable.
47346         Use $SED instead of sed everywhere.
47347
47348 2006-12-22  Bruno Haible  <bruno@clisp.org>
47349
47350         * modules/no-c++: New file.
47351         * m4/no-c++.m4: New file.
47352         * MODULES.html.sh (Support for building libraries and executables):
47353         Add no-c++.
47354
47355 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
47356
47357         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47358         Include <limits.h>, and use its INT_MAX to rewrite the
47359         j loop so that it does not overflow 'int'.  Problem reported by
47360         Ralf Wildenhues in
47361         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
47362         Play it safe by shifting left by 1 rather than multiplying by 2,
47363         as GCC is less likely to optimize this away when the value
47364         is signed (when it assumes overflow leads to undefined behavior).
47365         Also, don't assume time_t uses two's complement.
47366
47367 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
47368
47369         * MODULES.html.sh: New module wctype.
47370         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
47371         * lib/fnmatch.c: Don't bother to include <wchar.h> before
47372         <wctype.h>, since the new wctype module should fix this.
47373         * lib/quotearg.c: Include <wctype.h> unconditionally, since
47374         the wctype module should arrange for it.
47375         * lib/regex_internal.h: Likewise.
47376         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
47377         since the wctype module should handle this now.
47378         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
47379         * modules/fnmatch (Depends-on): Add wctype.
47380         * modules/quotearg (Depends-on): Likewise.
47381         * modules/regex (Depends-on): Likewise.
47382
47383 2006-12-19  Bruno Haible  <bruno@clisp.org>
47384
47385         * lib/strdup.h [C++]: Wrap definitions in extern "C".
47386         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
47387
47388 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47389
47390         * modules/savewd (Depends-on): Fix dependency on fcntl.
47391
47392 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47393
47394         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
47395         conforms to C99, rather than relying on the user's environment
47396         setting of STDINT_H.
47397
47398 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47399         and Eric Blake  <ebb9@byu.net>
47400
47401         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
47402         This is more consistent with the other defines here.
47403         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
47404         Port to z/OS.  Problem reported by Paul Gilmartin.
47405         Change local vars to use gl_ prefix rather than ac_.
47406         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
47407         with other defines.
47408         * modules/double-slash-root: New module.
47409         * modules/dirname (Files): Remove m4/double-slash-root.m4.
47410         (Depends-on): Add double-slash-root.
47411         * MODULES.html.sh (File system functions): Mention new module.
47412
47413 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
47414
47415         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
47416         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
47417         This is for the benefit of gzip, which doesn't do i18n.
47418
47419 2006-12-12  Jim Meyering  <jim@meyering.net>
47420
47421         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
47422         Reported by Andreas Schwab <schwab@suse.de>.
47423
47424 2006-12-12  Bruno Haible  <bruno@clisp.org>
47425
47426         Merge these changes.
47427         2006-09-05  Bruno Haible  <bruno@clisp.org>
47428         * lib/iconvme.c (iconv_string): No need to save and restore errno when
47429         iconv_alloc succeeded.
47430         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
47431         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
47432         test for " && dest " at the end - dest is always != NULL there. Call
47433         iconv with 4xNULL arguments initially, to reset the state. Call iconv
47434         with 2xNULL arguments, also to flush the state storage. Handle the
47435         IRIX iconv behaviour. Realloc the final result, to throw away unused
47436         memory.
47437
47438 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
47439
47440         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
47441         and fchmodat unconditionally, since glibc 2.4 has them.
47442         Problem reported by Arkadiusz Miskiewicz.
47443
47444 2006-12-10  Bruno Haible  <bruno@clisp.org>
47445
47446         * gnulib-tool (func_import): Show the include files only for those
47447         modules that are copied and specified.
47448         Reported by Karl Berry.
47449
47450 2006-12-08  Jim Meyering  <jim@meyering.net>
47451
47452         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
47453         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
47454
47455         * build-aux/announce-gen: Add two new options, both optional:
47456         --bootstrap-tools=TOOL_LIST
47457               a comma-separated list of tools, e.g.,
47458               autoconf,automake,bison,gnulib
47459         --gnulib-snapshot-date=DATE
47460               if gnulib is in the bootstrap tool list,
47461               then report this as the snapshot date.
47462               If not specified, use the current date/time.
47463               If you specify a date here, be sure it's UTC.
47464
47465 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47466
47467         * tests/test-argp-2.sh: Fix test to match actual output.
47468         (func_compare): Fix sed script to be portable.
47469
47470 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
47471
47472         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
47473         workaround for this case.  It is not autoconfigured now; offhand
47474         it's hard to see how to autoconfigure it.
47475
47476 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47477
47478         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
47479         a directory that is about to be chowned.  Such a directory's
47480         initial file permissions should permit the owner only and this
47481         should not be changed until after the chown, since the group and
47482         other bits would be incorrect if they granted permission before
47483         the chown.
47484
47485         Fix porting problem for iswctype reported by Georg Schwarz in:
47486         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
47487         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
47488         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
47489         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
47490         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47491
47492 2006-12-03  Jim Meyering  <jim@meyering.net>
47493
47494         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
47495         p->fts_statp may not yet be defined.
47496         (fts_read): Instead, set it in the caller, once p->fts_statp is
47497         sure to be defined, and corresponds to a top-level directory.
47498         This bug made du -x fail.  Here's the coreutils test case:
47499         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
47500         Reported by Mike Frysinger.
47501
47502 2006-12-01  Jim Meyering  <jim@meyering.net>
47503
47504         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
47505         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
47506         Reported by Simon Josefsson.
47507
47508 2006-11-30  Jim Meyering  <jim@meyering.net>
47509
47510         * m4/warning.m4: Use the all-permissive copyright notice
47511         recommended by RMS (rather than LGPL).
47512         * m4/vararrays.m4: Likewise.
47513         * m4/flexmember.m4: Likewise.
47514
47515 2006-11-29  Bruno Haible  <bruno@clisp.org>
47516
47517         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47518         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
47519         using +=.
47520         Reported by Simon Josefsson <simon@josefsson.org>.
47521
47522 2006-11-28  James Youngman <jay@gnu.org>
47523
47524         * README: Advise users that they might find the bug-gnulib@gnu.org
47525         and autotools-announce@gnu.org mailing lists useful.
47526
47527 2006-11-28  Bruno Haible  <bruno@clisp.org>
47528
47529         * m4/ptrdiff_max.m4: Remove file.
47530
47531 2006-11-21  Bruno Haible  <bruno@clisp.org>
47532
47533         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
47534         _AC_COMPUTE_INT.
47535         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47536         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
47537         _AC_COMPUTE_INT.
47538         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47539         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
47540         _AC_COMPUTE_INT.
47541         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47542
47543 2006-11-28  Jim Meyering  <jim@meyering.net>
47544
47545         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
47546         warning from "gcc -Wshadow" about shadowing the builtin.
47547
47548 2006-11-27  Bruno Haible  <bruno@clisp.org>
47549
47550         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
47551         _AC_COMPUTE_INT.
47552         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47553
47554 2006-11-27  Bruno Haible  <bruno@clisp.org>
47555             Paul Eggert  <eggert@cs.ucla.edu>
47556
47557         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
47558
47559 2006-11-26  Bruno Haible  <bruno@clisp.org>
47560
47561         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47562         noinst_LTLIBRARIES.
47563
47564 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
47565             Bruno Haible  <bruno@clisp.org>
47566
47567         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
47568         if compiling with "gcc -ansi".
47569
47570 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
47571
47572         Fix some incompatibilities with gcc -ansi -pedantic.
47573         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
47574         if compiling pedantically with GCC, unless it's C99 or later.
47575         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
47576         it mishandles gcc -ansi -pedantic as well.
47577         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
47578         if gcc -pedantic.
47579         * lib/regexec.c (check_node_accept_bytes): Don't use auto
47580         initializers for struct if -pedantic, unless it's C99 or later.
47581
47582 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
47583
47584         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
47585         Don't close an fd more than once. Identical atimes indicate
47586         success, not failure.
47587
47588 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
47589
47590         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
47591
47592 2006-11-23  Jim Meyering  <jim@meyering.net>
47593
47594         * build-aux/announce-gen: New file.  From coreutils.
47595
47596 2006-11-22  Jim Meyering  <jim@meyering.net>
47597
47598         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
47599         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
47600         (fts_read): Use a temporary to narrow the overused st_size member
47601         before using it in a switch statement.  Reported by Matthew Woehlke.
47602
47603         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
47604         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
47605
47606 2006-11-20  Bruno Haible  <bruno@clisp.org>
47607
47608         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
47609         changequote instead of pairs of brackets.
47610         Reported by Andreas Schwab <schwab@suse.de>.
47611
47612 2006-11-21  Jim Meyering  <jim@meyering.net>
47613
47614         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
47615         so as to remain compatible with older compilers.
47616         Patch from Michael Deutschmann.
47617
47618 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47619
47620         * MODULES.html.sh (File system functions): Add openat.
47621
47622         * lib/openat.h (rpl_fstatat): New macro, if
47623         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
47624         (fstatat): Define to rpl_fstatat under the same conditions,
47625         unless COMPILING_FSTATAT.
47626         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
47627         seems to have the bug.
47628         * lib/fstatat.c: New file.
47629         * modules/openat (Files): Add it.
47630
47631 2006-11-20  Bruno Haible  <bruno@clisp.org>
47632
47633         * Makefile: New file.
47634
47635 2006-11-20  Jim Meyering  <jim@meyering.net>
47636
47637         The beginnings of syntax-related checks for gnulib.
47638         * lib/Makefile: New file.
47639         * lib/t-idcache: New script.  Ensure that the two halves of
47640         idcache.c stay in sync.
47641
47642         * lib/idcache.c: Adjust comments in user- and group- portions to
47643         be more accurate, and to be consistent with one another.
47644
47645 2006-11-20  Jim Meyering  <jim@meyering.net>
47646
47647         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
47648         continue using the flexible array member (thus, this module performs
47649         half as many malloc calls), with the addition that...
47650         (getgroup, getuser): Consistently record a non-match via an empty
47651         "name" string, and map an empty string match to a NULL return value.
47652         * modules/idcache (Depends-on): Re-add flexmember.
47653
47654         * lib/idcache.c (getuser): Remove all uses of the register keyword.
47655         (getuidbyname, getgroup, getgidbyname): Likewise.
47656
47657         Use cleaner syntax: NULL rather than 0.
47658         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
47659
47660 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47661
47662         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
47663         It mishandled the case where the group was missing.
47664         Problem reported by Greg Schafer.
47665         * modules/idcache: Likewise.
47666
47667 2006-11-18  Jim Meyering  <jim@meyering.net>
47668
47669         * check-module (%exempt_header): Add exception for some
47670         conditionally-included headers.
47671
47672         * modules/i-ring (Depends-on): Add verify.
47673         (License): Change to LGPL.
47674
47675 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47676
47677         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
47678         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
47679         and inttostr.h.  Use snprintf rather than uinttostr, so that
47680         LGPLed code doesn't depend on GPLed.
47681
47682 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47683
47684         * modules/inline (License): Change from GPL to LGPL.
47685
47686 2006-11-17  Jim Meyering  <jim@meyering.net>
47687
47688         * modules/d-type (License): Switch to LGPL.
47689
47690 2006-11-15  Bruno Haible  <bruno@clisp.org>
47691
47692         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
47693
47694 2006-11-15  Eric Blake  <ebb9@byu.net>
47695
47696         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
47697         the module dependency.
47698
47699 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47700             Bruno Haible  <bruno@clisp.org>
47701
47702         * gnulib-tool (func_create_testdir): Add license consistency check.
47703
47704 2006-11-15  Eric Blake  <ebb9@byu.net>
47705
47706         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
47707         random "(cached)" in configure output.
47708
47709 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47710
47711         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
47712         test for conforming inttypes.h is both announced and cached.
47713
47714         * MODULES.html.sh (seen_modules, seen_files): New variables.
47715         (func_module): Rewrite to use a few less gnulib-tool and sed
47716         invocations.  Avoid a couple of quadratic algorithms for ...
47717         (missed_modules, missed_files): ... these, with ...
47718         (func_append, func_tmpdir): ... these new functions, from
47719         gnulib-tool.  Analogously, install traps for cleanup.
47720
47721         * tests/test-gc.c (main): Remove unused variables.
47722         * tests/test-read-file.c: Include stdlib.h, for 'free'.
47723
47724 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
47725
47726         * modules/inttostr (License): Change to LGPL.
47727
47728 2006-11-14  Eric Blake  <ebb9@byu.net>
47729
47730         * modules/tempname (License): Change to LGPL.
47731
47732 2006-11-14  Eric Blake  <ebb9@byu.net>
47733
47734         * doc/functions.texi (Function Portability): *printf functions on
47735         Cygwin now understand all POSIX size specifiers.
47736
47737 2006-11-14  Bruno Haible  <bruno@clisp.org>
47738
47739         * modules/c-ctype (License): Change to LGPL.
47740
47741 2006-11-12  Bruno Haible  <bruno@clisp.org>
47742
47743         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47744         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
47745         for GNOME libraries, for which the include files are installed in
47746         subdirectories of $prefix/include.
47747
47748 2006-11-12  Bruno Haible  <bruno@clisp.org>
47749
47750         * m4/lib-link.m4: Require at least autoconf-2.54.
47751         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
47752         name to underscores for the --with option.
47753
47754 2006-11-13  Bruno Haible  <bruno@clisp.org>
47755
47756         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
47757         the tests directory.
47758         Reported by Ralf Wildenhues.
47759
47760 2006-11-13  Bruno Haible  <bruno@clisp.org>
47761
47762         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
47763         (func_emit_initmacro_end): Undo the override here.
47764         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
47765         Works around the famous automake error in coreutils.
47766
47767 2006-11-13  Eric Blake  <ebb9@byu.net>
47768
47769         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
47770         element, not its node.
47771
47772 2006-11-12  Bruno Haible  <bruno@clisp.org>
47773
47774         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
47775         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
47776
47777 2006-11-12  Bruno Haible  <bruno@clisp.org>
47778
47779         * gnulib-tool: New option --local-symlink.
47780         (func_usage): Document it.
47781         (lsymbolic): New variable.
47782         (func_import, func_create_testdir): If --symlink was not specified,
47783         test whether --local-symlink was specified and the file comes from
47784         the local_gnulib_dir.
47785
47786 2006-11-12  Bruno Haible  <bruno@clisp.org>
47787
47788         * gnulib-tool (func_ln): New function.
47789         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
47790
47791 2006-11-12  Bruno Haible  <bruno@clisp.org>
47792
47793         Finish support for source files in subdirectories.
47794         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
47795         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
47796         AUTOMAKE_OPTIONS.
47797         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
47798
47799 2006-11-12  Bruno Haible  <bruno@clisp.org>
47800
47801         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47802         EXTRA_lib_SOURCES augmentation.
47803         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
47804
47805 2006-11-12  Jim Meyering  <jim@meyering.net>
47806
47807         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
47808         file descriptors.  This also averts a failure on systems with
47809         native openat support when a traversed directory lacks "x" access.
47810         * lib/fts_.h: Include "i-ring.h"
47811         (struct FTS) [fts_fd_ring]: New member.
47812         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
47813         (FCHDIR): Add parentheses.
47814         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
47815         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
47816         When descending, rather than simply closing the previous
47817         fts_cwd_fd value, push that file descriptor onto the ring.
47818         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
47819         (fts_open): Initialize the new fd_ring member.
47820         (fts_close): Clear the ring.
47821         (fts_safe_changedir): When possible, use our new fd_ring to skip
47822         the diropen and fstat and dev/ino comparison that would normally
47823         accompany a virtual `chdir ("..")'.
47824
47825         * modules/fts (Depends-on): Add i-ring.
47826         * modules/i-ring: New module.
47827         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
47828         * m4/i-ring.m4: New file.
47829
47830 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47831
47832         * gnulib-tool (func_create_testdir): Fix replacement of
47833         `build-aux' in configure.ac.  Run autotools in gltests
47834         subdirectory.
47835         (func_create_testdir, func_create_megatestdir, test): There is
47836         no need for '--force' in most autotool invocations in a new
47837         tree.  Actually fail the whole test if any of the tools, or the
47838         configure or make stages fail.
47839
47840         Sync from Automake.
47841         * build-aux/gnupload: Revert last change.  Add pointer to upload
47842         instructions of the GNU Maintenance Instructions.
47843         Suggestion by Karl Berry.
47844
47845 2006-11-10  Jim Meyering  <jim@meyering.net>
47846
47847         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
47848
47849 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47850
47851         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
47852         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
47853         (bind_textdomain_codeset) [! ENABLE_NLS]:
47854         Evaluate all the arguments.  That way, callers get compatible behavior
47855         if the arguments have side effects.  Also, it avoids some GCC
47856         diagnostics in some cases; Joel E. Denny reported problems when Bison
47857         was configured with --enable-gcc-warnigs.
47858
47859 2006-11-10  Jim Meyering  <jim@meyering.net>
47860
47861         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
47862         relevant options in CFLAGS (like -O, -fno-inline) are taken into
47863         account.
47864
47865 2006-11-10  Jim Meyering  <jim@meyering.net>
47866
47867         * modules/inline: New file/module.
47868         * modules/xalloc (Files): Remove m4/inline.m4.
47869         (Depends-on): Add inline, instead.
47870         * modules/oset: Likewise.
47871         * modules/list: Likewise.
47872
47873 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47874
47875         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
47876         Problem reported by Matthew Woehlke.
47877
47878 2006-11-09  Bruno Haible  <bruno@clisp.org>
47879
47880         * lib/tempname.c (gen_tempname): Remove variant that invokes
47881         __gen_tempname.
47882         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
47883         __gen_tempname.
47884
47885 2006-11-08  Bruno Haible  <bruno@clisp.org>
47886
47887         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
47888         to 'yes' instead of 'cross-compiling'.
47889
47890 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
47891
47892         * lib/quotearg.h (quotearg_free): New decl.
47893         * lib/quotearg.c (quotearg_free): New function.
47894         (slot0, nslots, slotvec0, slotvec):
47895         Now file-scope so that quotearg_free can get at them.
47896
47897 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47898
47899         Sync from Automake.
47900         * build-aux/gnupload: Add missing 'gnu' to example URL.
47901         Report by Karl Berry.
47902
47903 2006-11-08  Bruno Haible  <bruno@clisp.org>
47904
47905         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
47906         Suggested by Paul Eggert.
47907
47908 2006-11-08  Jim Meyering  <jim@meyering.net>
47909
47910         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
47911         It's already included if !_LIBC.
47912         (fts_safe_changedir): Add a comment.
47913
47914 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47915
47916         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
47917         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
47918         Matthew Woehlke.
47919
47920         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
47921         definitions up, to avoid colliding with change below.
47922         (static_inline) [HAVE_INLINE]: New macro.
47923         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
47924         Provide extern decls when !HAVE_INLINE.  Do not define unless
47925         static_inline is defined, either by us or by xmalloc.c.  Use
47926         static_inline rather than static inline.
47927         (XCALLOC): Optimize sizeof(T) = 1 case.
47928         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
47929
47930 2006-11-07  Bruno Haible  <bruno@clisp.org>
47931
47932         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
47933         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
47934         AC_C_INLINE.
47935         * modules/xalloc (Files): Add m4/inline.m4.
47936
47937 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47938
47939         * README: Fix typo.
47940         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
47941         (Miscellanous Notes): ...from this.
47942
47943 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47944
47945         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
47946         Mention that offsetof should be used instead of sizeof.
47947         From Bruno Haible.
47948
47949 2006-11-07  Bruno Haible  <bruno@clisp.org>
47950
47951         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
47952
47953 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47954
47955         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47956         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
47957         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47958         (gl_tree_add_before, gl_tree_add_after):
47959         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
47960         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
47961         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47962         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
47963         (gl_linked_add_after, gl_linked_add_at): Likewise.
47964         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
47965         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47966         (gl_tree_add_before, gl_tree_add_after): Likewise.
47967         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
47968         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
47969         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
47970
47971 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47972
47973         * lib/gl_oset.h: Use C comment style, not C++ comment style.
47974
47975 2006-11-06  Bruno Haible  <bruno@clisp.org>
47976
47977         * m4/inline.m4: New file.
47978         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
47979         * modules/list (Files): Add m4/inline.m4.
47980         * modules/oset (Files): Likewise.
47981
47982 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47983
47984         * lib/idcache.c: Include <stddef.h>, for offsetof.
47985         (struct userid.name): Change from char * to a flexible array member.
47986         All uses changed.
47987         * modules/idcache (Depends-on): Add flexmember.
47988
47989         * MODULES.html.sh (Core language properties): New module flexmember.
47990         * modules/flexmember, m4/flexmember.m4: New files.
47991
47992         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
47993         inline functions that are identical with the old xnmalloc_inline,
47994         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
47995         that we can avoid some unnecessary integer multiplications and
47996         divisions in the common case where the element size is known at
47997         compile time.
47998         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
47999         needed.
48000         (xnboundedmalloc): Remove.
48001         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
48002         arguments, for consistency with rest of this header.
48003         (xcharalloc): Rewrite using XNMALLOC.
48004         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
48005         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
48006         versions have been moved to lib/xalloc.h and renamed to be the
48007         non-*_inline versions.
48008         (xmalloc, xrealloc): Implement without reference to the xnmalloc
48009         and xnrealloc functions, since those functions are now inline and
48010         now call us.
48011         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
48012         renaming described above.
48013         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
48014         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
48015         captures the dependency in AC_C_INLINE.
48016
48017         New module canonicalize-lgpl, proposed by Charles Wilson in
48018         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
48019         with a few small changes afterwards.
48020         * MODULES.html.sh (File system functions): New module
48021         canonicalize-lgpl.
48022         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
48023         and canonicalize_file_name.
48024         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
48025         * modules/canonicalize-lgpl: New files.
48026
48027 2006-11-05  Bruno Haible  <bruno@clisp.org>
48028
48029         * gnulib-tool (func_import, func_create_testdir): Create directories
48030         also for files in subdirectories of lib/.
48031
48032 2006-11-05  Bruno Haible  <bruno@clisp.org>
48033
48034         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
48035         ANSI C compliant.
48036
48037 2006-11-03  Bruno Haible  <bruno@clisp.org>
48038
48039         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
48040         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
48041         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
48042         (xnboundedmalloc): New inline function.
48043         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
48044         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
48045         xmalloc.
48046         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
48047         xmalloc.
48048         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
48049         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
48050         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
48051         xmalloc.
48052         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
48053         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
48054         xmalloc.
48055         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
48056         gl_tree_add_after): Use XMALLOC instead of xmalloc.
48057         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
48058         xmalloc.
48059         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
48060         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
48061         gl_tree_add_after): Use XMALLOC instead of xmalloc.
48062         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
48063         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
48064         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
48065         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
48066
48067 2006-11-03  Bruno Haible  <bruno@clisp.org>
48068
48069         * lib/c-ctype.h [C++]: Define functions without name mangling.
48070         * lib/fwriteerror.h [C++]: Likewise.
48071         * lib/gcd.h [C++]: Likewise.
48072         * lib/linebreak.h [C++]: Likewise.
48073
48074 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
48075
48076         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
48077         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
48078         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
48079         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
48080         Check for functions and headers just once.
48081         Check for declaration of canonicalize_file_name.
48082         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
48083
48084 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48085
48086         * gnulib-tool (func_import): Fix typo in actioncmd.
48087
48088 2006-11-02  Bruno Haible  <bruno@clisp.org>
48089
48090         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
48091         newline sequence in the Makefile.am snippet as a space, like "make"
48092         does.
48093         Reported by Roger Persson <perrog@gmail.com>.
48094
48095 2006-11-01  Bruno Haible  <bruno@clisp.org>
48096
48097         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
48098         already declared in <string.h>.
48099         * lib/strcase.h (strncasecmp): Don't declare it if yes.
48100
48101 2006-11-01  Bruno Haible  <bruno@clisp.org>
48102
48103         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
48104         * lib/strcase.h: Include <string.h>.
48105         (strcasecmp): Define to rpl_strcasecmp here.
48106
48107 2006-11-01  Bruno Haible  <bruno@clisp.org>
48108
48109         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
48110
48111 2006-11-01  Eric Blake  <ebb9@byu.net>
48112
48113         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
48114
48115         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
48116
48117 2006-10-29  Bruno Haible  <bruno@clisp.org>
48118
48119         Make it compile in C++ mode.
48120         * lib/full-write.c (full_rw): Add a cast.
48121
48122 2006-11-01  Bruno Haible  <bruno@clisp.org>
48123
48124         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
48125         be POSIX compliant.
48126         Reported by Roger Persson <perrog@gmail.com>.
48127
48128 2006-11-01  Eric Blake  <ebb9@byu.net>
48129
48130         * lib/getopt_.h: Fix comments.
48131
48132 2006-10-31  Eric Blake  <ebb9@byu.net>
48133
48134         * modules/tmpdir (Depends-on): Add sys_stat.
48135         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
48136         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
48137         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
48138         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
48139         tempname.
48140
48141 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
48142
48143         Avoid some C++ diagnostics reported by Bruno Haible.
48144         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
48145         xmalloc.
48146         (quotearg_alloc): Use xcharalloc rather than xmalloc.
48147         (struct slotvec): Move to top level.
48148         (quotearg_n_options): Rewrite to avoid xmalloc.
48149         * lib/xalloc.h (xcharalloc): New function.
48150         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
48151         [defined __cplusplus]: Add function template that provides result
48152         type propagation.  This part of the change is from Bruno Haible.
48153
48154 2006-10-29  Bruno Haible  <bruno@clisp.org>
48155
48156         Make it compile in C++ mode.
48157         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
48158         * lib/strnlen1.c (strnlen1): Cast memchr result.
48159         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
48160         * lib/clean-temp.c (string_equals, string_hash): Add casts.
48161         (create_temp_dir): Rename local variable 'template'.
48162         (compile_csharp_using_sscli): Add cast.
48163         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
48164         * lib/findprog.c (find_in_path): Likewise.
48165         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
48166         * lib/wait-process.c (register_slave_subprocess): Likewise.
48167
48168 2006-10-22  Bruno Haible  <bruno@clisp.org>
48169
48170         * modules/tsearch: New file.
48171         * lib/tsearch.h: New file.
48172         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
48173         * m4/tsearch.m4: New file.
48174         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
48175
48176 2006-10-29  Eric Blake  <ebb9@byu.net>
48177
48178         * lib/arcfour.c: Assume config.h.
48179         * lib/arctwo.c: Likewise.
48180         * lib/base64.c: Likewise.
48181         * lib/check-version.c: Likewise.
48182         * lib/crc.c: Likewise.
48183         * lib/des.c: Likewise.
48184         * lib/gc-gnulib.c: Likewise.
48185         * lib/gc-libgcrypt.c: Likewise.
48186         * lib/gc-pbkdf2-sha1.c: Likewise.
48187         * lib/getaddrinfo.c: Likewise.
48188         * lib/getdelim.c: Likewise.
48189         * lib/getline.c: Likewise.
48190         * lib/hmac-md5.c: Likewise.
48191         * lib/hmac-sha1.c: Likewise.
48192         * lib/iconvme.c: Likewise.
48193         * lib/md2.c: Likewise.
48194         * lib/md4.c: Likewise.
48195         * lib/memxor.c: Likewise.
48196         * lib/read-file.c: Likewise.
48197         * lib/readline.c: Likewise.
48198         * lib/rijndael-alg-fst.c: Likewise.
48199         * lib/rijndael-api-fst.c: Likewise.
48200         * lib/xgetdomainname.c: Likewise.
48201
48202 2006-10-28  Eric Blake  <ebb9@byu.net>
48203
48204         * lib/xstrndup.c: Assume config.h.
48205
48206 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48207
48208         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
48209         stat-macros.h is now for our own macros, whereas stat_h is for
48210         macros in the <sys/stat.h> name space.
48211         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
48212         (STAT_MACROS_H): Remove.
48213         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
48214         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
48215         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
48216         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
48217         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
48218         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
48219         Move these macros to ...
48220         * lib/stat_.h: here.  Don't include stat-macros.h.
48221         * lib/canonicalize.c: Don't include stat-macros.h.
48222         * lib/chown.c: Likewise.
48223         * lib/euidaccess.c: Likewise.
48224         * lib/file-type.c: Likewise.
48225         * lib/filemode.c: Likewise.
48226         * lib/glob.c: Likewise.
48227         * lib/isapipe.c: Likewise.
48228         * lib/lchown.c: Likewise.
48229         * lib/lstat.c: Likewise.
48230         * lib/mkdir-p.c: Likewise.
48231         * lib/rmdir.c: Likewise.
48232         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
48233         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
48234         unless mkdir isn't declared, to speed up 'configure'.
48235         Always create sys/stat.h, since it's unlikely any real sys/stat.h
48236         would define all the S_* symbols.
48237         * modules/canonicalize (Depends-on):
48238         Depend on sys_stat, not stat-macros.
48239         * modules/chown: Likewise.
48240         * modules/euidaccess: Likewise.
48241         * modules/filemode: Likewise.
48242         * modules/file-type: Likewise.
48243         * modules/glob: Likewise.
48244         * modules/isapipe: Likewise.
48245         * modules/lchown: Likewise.
48246         * modules/lstat: Likewise.
48247         * modules/mkancesdirs: Likewise.
48248         * modules/rmdir: Likewise.
48249         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
48250         * modules/modechange: Likewise.
48251         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
48252         (configure.ac): Remove gl_STAT_MACROS.
48253         * modules/sys_stat (Depends-on): Remove stat-macros.
48254
48255 2006-10-27  Bruno Haible  <bruno@clisp.org>
48256
48257         * m4/signed.m4: Remove file.
48258         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
48259         invocation.
48260         * modules/vasnprintf (Files): Remove m4/signed.m4.
48261
48262 2006-10-27  Bruno Haible  <bruno@clisp.org>
48263
48264         Update to GNU gettext 0.16.
48265         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
48266         m4/inttypes-h.m4, m4/signed.m4.
48267         * m4/gettext.m4: Update to GNU gettext 0.16.
48268         * m4/intl.m4: New file, from GNU gettext.
48269         * m4/intldir.m4: New file, from GNU gettext.
48270         * config/srclist.txt: Update
48271
48272 2006-10-27  Eric Blake  <ebb9@byu.net>
48273
48274         * MODULES.html.sh: Document tempname.
48275         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
48276         dependencies.
48277         (Files): Move lib/tempname.c...
48278         * modules/tempname: ...to this new module.
48279         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
48280         (gl_PREREQ_TEMPNAME): Move...
48281         * m4/tempname.m4: ...to this new file.
48282         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
48283         * modules/sys_stat (Depends-on): Add stat-macros.
48284         * lib/stat_.h (includes): Pick up stat macros.
48285         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
48286         if stat macros are broken.
48287         * lib/tempname.c (includes): No need to include "stat-macros.h".
48288         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
48289         (direxists, __path_search) [!_LIBC]: Don't compile these in
48290         gnulib; the tmpdir module covers that.
48291         * lib/tempname.h: New file.
48292
48293 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
48294
48295         * COPYING: Explain how gnulib-tool converts licence headers.
48296         Almost all wording by Eric Blake.
48297
48298 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
48299
48300         * lib/mbchar.h (is_basic_table): Make read-only.
48301         * lib/mbchar.c (is_basic_table): Likewise.
48302         Reported by John Darrington.
48303
48304 2006-10-25  Bruno Haible  <bruno@clisp.org>
48305
48306         * lib/progname.h (set_program_name): Undefine before defining.
48307
48308 2006-10-25  Bruno Haible  <bruno@clisp.org>
48309
48310         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
48311         false for non-gcc C++ compilers.
48312         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48313
48314 2006-10-24  Bruno Haible  <bruno@clisp.org>
48315
48316         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
48317         iconv implementations like Irix iconv.
48318
48319 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48320
48321         * modules/vararrays: New file.
48322         * m4/vararrays.m4: New file, taken from diffutils.
48323         * MODULES.html.sh: New module vararrays.
48324
48325 2006-10-24  Karl Berry  <karl@gnu.org>
48326
48327         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
48328         Don't call GNU Unix.
48329
48330 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48331
48332         * users.txt: Add Libtool.
48333
48334         Sync from Libtool:
48335
48336         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48337
48338         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
48339         to gnulib's policy of including config.h unconditionally.
48340
48341 2006-10-24  Bruno Haible  <bruno@clisp.org>
48342
48343         * modules/wcwidth (Files): Add m4/wint_t.m4.
48344         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
48345         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
48346
48347 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48348
48349         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
48350         to pacify GCC with some -W flags enabled.  Problem reported by
48351         Bruno Haible.
48352
48353 2006-10-24  Jim Meyering  <jim@meyering.net>
48354
48355         * MODULES.html.sh: Remove uinttostr.  It's not a module.
48356         Reported by Karl Berry.
48357
48358 2006-10-23  Bruno Haible  <bruno@clisp.org>
48359
48360         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
48361
48362 2006-10-24  Bruno Haible  <bruno@clisp.org>
48363
48364         * lib/gl_list.h: Use C comment style, not C++ comment style.
48365
48366 2006-10-23  Eric Blake  <ebb9@byu.net>
48367
48368         * lib/getaddrinfo.c (includes): Add missing include.
48369
48370 2006-10-23  Bruno Haible  <bruno@clisp.org>
48371             Paul Eggert  <eggert@cs.ucla.edu>
48372
48373         Ability to rename obstack_free.
48374         * lib/obstack.h (__obstack_free): New macro. Declare instead of
48375         obstack_free.
48376         (obstack_free): Invoke the __obstack_free macro.
48377         * lib/obstack.c (obstack_free): Use __obstack_free macro.
48378
48379 2006-10-23  Bruno Haible  <bruno@clisp.org>
48380             Paul Eggert  <eggert@cs.ucla.edu>
48381
48382         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
48383         __argc, __argv from the declaration. (They are defined as macros on
48384         mingw.)
48385
48386 2006-10-22  Bruno Haible  <bruno@clisp.org>
48387
48388         * doc/gnulib-intro.texi: New file.
48389         * doc/gnulib.texi: Include it.
48390
48391 2006-10-21  Bruno Haible  <bruno@clisp.org>
48392
48393         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
48394         "Introduction", "Miscellanous Notes", "Particular Modules".
48395
48396 2006-10-21  Bruno Haible  <bruno@clisp.org>
48397
48398         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48399         Change mostlyclean-local rule to avoid sh syntax error from bash
48400         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
48401
48402 2006-10-23  Jim Meyering  <jim@meyering.net>
48403
48404         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
48405         in place of snprintf.
48406
48407         * modules/inttostr (Files): Add lib/uinttostr.c.
48408         * lib/uinttostr.c (inttostr): New file/function.
48409         * lib/inttostr.h (uinttostr): Declare.
48410         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
48411         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48412         Add uinttostr.
48413         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
48414
48415 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48416
48417         * lib/canonicalize.c (ELOOP): Define if not already defined.
48418         Problem reported by Bruno Haible in
48419         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
48420
48421 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48422
48423         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
48424         Problem reported by Perry Smith and Ville Laurikari.
48425
48426         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
48427         uses.
48428
48429 2006-10-19  Bruno Haible  <bruno@clisp.org>
48430
48431         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
48432         for mingw.
48433
48434 2006-10-19  Bruno Haible  <bruno@clisp.org>
48435
48436         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
48437         Needed for mingw.
48438
48439 2006-10-19  Bruno Haible  <bruno@clisp.org>
48440
48441         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
48442
48443 2006-10-19  Bruno Haible  <bruno@clisp.org>
48444
48445         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
48446         it.
48447
48448 2006-10-19  Bruno Haible  <bruno@clisp.org>
48449
48450         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
48451         invocation.
48452
48453 2006-10-19  Bruno Haible  <bruno@clisp.org>
48454
48455         * gnulib-tool (func_create_testdir): Don't include ftruncate and
48456         mountlist by default.
48457
48458 2006-10-16  Bruno Haible  <bruno@clisp.org>
48459
48460         * lib/c-strstr.c: Include c-strstr.h.
48461
48462 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48463
48464         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
48465         in a slash.
48466
48467 2006-10-18  Bruno Haible  <bruno@clisp.org>
48468
48469         * lib/lock.h [C++]: Wrap definitions in extern "C".
48470
48471 2006-10-18  Bruno Haible  <bruno@clisp.org>
48472
48473         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
48474         gl_LIBOBJS list.
48475
48476 2006-10-18  Bruno Haible  <bruno@clisp.org>
48477
48478         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
48479
48480 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
48481
48482         * lib/xstrtol.h: Include gettext.h.
48483         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
48484         Problem reported by Eric Blake.
48485         * modules/xstrtol (Depends-on): Add gettext-h.
48486
48487 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
48488
48489         * lib/strftime.c (advance): New macro.
48490         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
48491         incomplete type, so you can't add 0 to it.  Problem and patch
48492         reported by Eelco Dolstra for dietlibc.
48493
48494 2006-10-18  Jim Meyering  <jim@meyering.net>
48495
48496         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
48497         type for a local, and rename it: s/up/user_proc/.
48498
48499 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48500
48501         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
48502         READ_UTMP_USER_PROCESS.
48503         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
48504
48505 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48506
48507         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
48508         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
48509
48510 2006-10-17  Eric Blake  <ebb9@byu.net>
48511
48512         * lib/sigprocmask.c (sigprocmask): Fix typo.
48513
48514         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
48515
48516         * modules/clean-temp (Makefile.am): Don't add to make output...
48517         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
48518         config.h.
48519
48520 2006-10-17  Bruno Haible  <bruno@clisp.org>
48521
48522         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
48523         differently if DEFAULT_TEXT_DOMAIN is set.
48524
48525 2006-10-16  Bruno Haible  <bruno@clisp.org>
48526
48527         * lib/clean-temp.c: Include fwriteerror.h.
48528
48529 2006-10-16  Bruno Haible  <bruno@clisp.org>
48530
48531         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
48532
48533 2006-10-16  Bruno Haible  <bruno@clisp.org>
48534
48535         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
48536         * lib/sigprocmask.h: Include <sys/types.h>.
48537         (sigset_t): Use the system's definition if present.
48538
48539 2006-10-17  Eric Blake  <ebb9@byu.net>
48540
48541         * lib/xvasprintf.c (includes): Assume config.h.
48542         * lib/xasprintf.c (includes): Likewise.
48543
48544 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48545
48546         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
48547         at least as wide as intmax_t.
48548
48549 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
48550
48551         (Imported from Automake.)
48552         * build-aux/gnupload: Update to version 1.1 of directive file.
48553
48554 2006-10-16  Eric Blake  <ebb9@byu.net>
48555
48556         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
48557         match Automake 1.10a.
48558
48559 2006-10-14  Bruno Haible  <bruno@clisp.org>
48560
48561         * modules/sigprocmask: New file.
48562         * lib/sigprocmask.h: New file.
48563         * lib/sigprocmask.c: New file.
48564         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
48565         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
48566         request sigprocmask.o.
48567         (gl_PREREQ_SIGPROCMASK): New macro.
48568         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
48569         (Depends-on): Add sigprocmask.
48570         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
48571         gt_SIGNALBLOCKING. Test for 'raise' only once.
48572         * lib/fatal-signal.c: Include sigprocmask.h.
48573         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
48574         unblock_fatal_signals): Define always.
48575         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48576         sigprocmask.
48577
48578 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48579
48580         Sync from Automake.
48581         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
48582         which incorrectly sets the mode of an existing destination
48583         directory.  In some cases the unpatched install-sh could do the
48584         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
48585         system.  We hope this is rare in practice, but it's clearly worth
48586         fixing.  Problem reported by Alex Unleashed in
48587         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
48588         Also, don't bother to check for -m bugs unless we're using -m;
48589         suggested by Stepan Kasal.
48590
48591 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48592
48593         Sync from Automake.
48594         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
48595         `-c' flag, so they appear at the same position as in %FASTDEP%
48596         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
48597         which ignores unknown options only after the first non-option.
48598         Bug report against M4 by Nelson H. F. Beebe.
48599
48600 2006-10-13  Jim Meyering  <jim@meyering.net>
48601
48602         Fix a bug in yesterday's change.
48603         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
48604         p->fts_statp->st_dev would be used uninitialized.
48605         Ensures that we always call fts_stat on the very first entry.
48606         Miklos Szeredi reported that find -xdev stopped working.
48607
48608 2006-10-12  Bruno Haible  <bruno@clisp.org>
48609
48610         * gnulib-tool (func_get_automake_snippet): Append an automatically
48611         computed EXTRA_DIST augmentation.
48612         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
48613         * modules/alloca-opt (Makefile.am): Likewise.
48614         * modules/allocsa (Makefile.am): Likewise.
48615         * modules/arcfour (Makefile.am): Likewise.
48616         * modules/arctwo (Makefile.am): Likewise.
48617         * modules/argmatch (Makefile.am): Likewise.
48618         * modules/argz (Makefile.am): Likewise.
48619         * modules/atexit (Makefile.am): Likewise.
48620         * modules/backupfile (Makefile.am): Likewise.
48621         * modules/byteswap (Makefile.am): Likewise.
48622         * modules/c-strtod (Makefile.am): Likewise.
48623         * modules/c-strtold (Makefile.am): Likewise.
48624         * modules/calloc (Makefile.am): Likewise.
48625         * modules/canon-host (Makefile.am): Likewise.
48626         * modules/canonicalize (Makefile.am): Likewise.
48627         * modules/chdir-long (Makefile.am): Likewise.
48628         * modules/chdir-safer (Makefile.am): Likewise.
48629         * modules/check-version (Makefile.am): Likewise.
48630         * modules/chown (Makefile.am): Likewise.
48631         * modules/cloexec (Makefile.am): Likewise.
48632         * modules/close-stream (Makefile.am): Likewise.
48633         * modules/closeout (Makefile.am): Likewise.
48634         * modules/crc (Makefile.am): Likewise.
48635         * modules/csharpexec (Makefile.am): Likewise.
48636         * modules/cycle-check (Makefile.am): Likewise.
48637         * modules/des (Makefile.am): Likewise.
48638         * modules/dev-ino (Makefile.am): Likewise.
48639         * modules/dirfd (Makefile.am): Likewise.
48640         * modules/dirname (Makefile.am): Likewise.
48641         * modules/dup2 (Makefile.am): Likewise.
48642         * modules/eealloc (Makefile.am): Likewise.
48643         * modules/error (Makefile.am): Likewise.
48644         * modules/euidaccess (Makefile.am): Likewise.
48645         * modules/exclude (Makefile.am): Likewise.
48646         * modules/exitfail (Makefile.am): Likewise.
48647         * modules/fcntl-safer (Makefile.am): Likewise.
48648         * modules/fcntl (Makefile.am): Likewise.
48649         * modules/file-type (Makefile.am): Likewise.
48650         * modules/fileblocks (Makefile.am): Likewise.
48651         * modules/filemode (Makefile.am): Likewise.
48652         * modules/filenamecat (Makefile.am): Likewise.
48653         * modules/fnmatch (Makefile.am): Likewise.
48654         * modules/fopen-safer (Makefile.am): Likewise.
48655         * modules/fpending (Makefile.am): Likewise.
48656         * modules/fprintftime (Makefile.am): Likewise.
48657         * modules/free (Makefile.am): Likewise.
48658         * modules/fsusage (Makefile.am): Likewise.
48659         * modules/ftruncate (Makefile.am): Likewise.
48660         * modules/fts (Makefile.am): Likewise.
48661         * modules/gc-arcfour (Makefile.am): Likewise.
48662         * modules/gc-des (Makefile.am): Likewise.
48663         * modules/gc-hmac-md5 (Makefile.am): Likewise.
48664         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
48665         * modules/gc-md4 (Makefile.am): Likewise.
48666         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48667         * modules/gc-sha1 (Makefile.am): Likewise.
48668         * modules/gc (Makefile.am): Likewise.
48669         * modules/getaddrinfo (Makefile.am): Likewise.
48670         * modules/getcwd (Makefile.am): Likewise.
48671         * modules/getdelim (Makefile.am): Likewise.
48672         * modules/getdomainname (Makefile.am): Likewise.
48673         * modules/getgroups (Makefile.am): Likewise.
48674         * modules/gethostname (Makefile.am): Likewise.
48675         * modules/gethrxtime (Makefile.am): Likewise.
48676         * modules/getline (Makefile.am): Likewise.
48677         * modules/getloadavg (Makefile.am): Likewise.
48678         * modules/getlogin_r (Makefile.am): Likewise.
48679         * modules/getndelim2 (Makefile.am): Likewise.
48680         * modules/getopt (Makefile.am): Likewise.
48681         * modules/getpagesize (Makefile.am): Likewise.
48682         * modules/getpass-gnu (Makefile.am): Likewise.
48683         * modules/getpass (Makefile.am): Likewise.
48684         * modules/getsubopt (Makefile.am): Likewise.
48685         * modules/gettime (Makefile.am): Likewise.
48686         * modules/gettimeofday (Makefile.am): Likewise.
48687         * modules/getugroups (Makefile.am): Likewise.
48688         * modules/getusershell (Makefile.am): Likewise.
48689         * modules/glob (Makefile.am): Likewise.
48690         * modules/group-member (Makefile.am): Likewise.
48691         * modules/hard-locale (Makefile.am): Likewise.
48692         * modules/hash (Makefile.am): Likewise.
48693         * modules/hmac-md5 (Makefile.am): Likewise.
48694         * modules/hmac-sha1 (Makefile.am): Likewise.
48695         * modules/human (Makefile.am): Likewise.
48696         * modules/idcache (Makefile.am): Likewise.
48697         * modules/imaxabs (Makefile.am): Likewise.
48698         * modules/imaxdiv (Makefile.am): Likewise.
48699         * modules/inet_ntop (Makefile.am): Likewise.
48700         * modules/inet_pton (Makefile.am): Likewise.
48701         * modules/intprops (Makefile.am): Likewise.
48702         * modules/inttostr (Makefile.am): Likewise.
48703         * modules/inttypes (Makefile.am): Likewise.
48704         * modules/isapipe (Makefile.am): Likewise.
48705         * modules/javaversion (Makefile.am): Likewise.
48706         * modules/lchmod (Makefile.am): Likewise.
48707         * modules/lchown (Makefile.am): Likewise.
48708         * modules/localcharset (Makefile.am): Likewise.
48709         * modules/long-options (Makefile.am): Likewise.
48710         * modules/lstat (Makefile.am): Likewise.
48711         * modules/malloc (Makefile.am): Likewise.
48712         * modules/mathl (Makefile.am): Likewise.
48713         * modules/mbchar (Makefile.am): Likewise.
48714         * modules/md2 (Makefile.am): Likewise.
48715         * modules/md4 (Makefile.am): Likewise.
48716         * modules/md5 (Makefile.am): Likewise.
48717         * modules/memcasecmp (Makefile.am): Likewise.
48718         * modules/memchr (Makefile.am): Likewise.
48719         * modules/memcmp (Makefile.am): Likewise.
48720         * modules/memcoll (Makefile.am): Likewise.
48721         * modules/memcpy (Makefile.am): Likewise.
48722         * modules/memmem (Makefile.am): Likewise.
48723         * modules/memmove (Makefile.am): Likewise.
48724         * modules/mempcpy (Makefile.am): Likewise.
48725         * modules/memrchr (Makefile.am): Likewise.
48726         * modules/memset (Makefile.am): Likewise.
48727         * modules/memxor (Makefile.am): Likewise.
48728         * modules/mkancesdirs (Makefile.am): Likewise.
48729         * modules/mkdir-p (Makefile.am): Likewise.
48730         * modules/mkdir (Makefile.am): Likewise.
48731         * modules/mkdtemp (Makefile.am): Likewise.
48732         * modules/mkstemp (Makefile.am): Likewise.
48733         * modules/mktime (Makefile.am): Likewise.
48734         * modules/modechange (Makefile.am): Likewise.
48735         * modules/mountlist (Makefile.am): Likewise.
48736         * modules/nanosleep (Makefile.am): Likewise.
48737         * modules/obstack (Makefile.am): Likewise.
48738         * modules/openat (Makefile.am): Likewise.
48739         * modules/pagealign_alloc (Makefile.am): Likewise.
48740         * modules/pathmax (Makefile.am): Likewise.
48741         * modules/physmem (Makefile.am): Likewise.
48742         * modules/poll (Makefile.am): Likewise.
48743         * modules/posixtm (Makefile.am): Likewise.
48744         * modules/posixver (Makefile.am): Likewise.
48745         * modules/putenv (Makefile.am): Likewise.
48746         * modules/quote (Makefile.am): Likewise.
48747         * modules/quotearg (Makefile.am): Likewise.
48748         * modules/raise (Makefile.am): Likewise.
48749         * modules/read-file (Makefile.am): Likewise.
48750         * modules/readline (Makefile.am): Likewise.
48751         * modules/readlink (Makefile.am): Likewise.
48752         * modules/readtokens (Makefile.am): Likewise.
48753         * modules/readutmp (Makefile.am): Likewise.
48754         * modules/realloc (Makefile.am): Likewise.
48755         * modules/regex (Makefile.am): Likewise.
48756         * modules/rename-dest-slash (Makefile.am): Likewise.
48757         * modules/rename (Makefile.am): Likewise.
48758         * modules/rijndael (Makefile.am): Likewise.
48759         * modules/rmdir (Makefile.am): Likewise.
48760         * modules/rpmatch (Makefile.am): Likewise.
48761         * modules/safe-read (Makefile.am): Likewise.
48762         * modules/safe-write (Makefile.am): Likewise.
48763         * modules/same-inode (Makefile.am): Likewise.
48764         * modules/same (Makefile.am): Likewise.
48765         * modules/save-cwd (Makefile.am): Likewise.
48766         * modules/savedir (Makefile.am): Likewise.
48767         * modules/setenv (Makefile.am): Likewise.
48768         * modules/settime (Makefile.am): Likewise.
48769         * modules/sha1 (Makefile.am): Likewise.
48770         * modules/sig2str (Makefile.am): Likewise.
48771         * modules/snprintf (Makefile.am): Likewise.
48772         * modules/stat-macros (Makefile.am): Likewise.
48773         * modules/stat-time (Makefile.am): Likewise.
48774         * modules/stdbool (Makefile.am): Likewise.
48775         * modules/stdint (Makefile.am): Likewise.
48776         * modules/stdlib-safer (Makefile.am): Likewise.
48777         * modules/stpcpy (Makefile.am): Likewise.
48778         * modules/stpncpy (Makefile.am): Likewise.
48779         * modules/strcase (Makefile.am): Likewise.
48780         * modules/strcasestr (Makefile.am): Likewise.
48781         * modules/strchrnul (Makefile.am): Likewise.
48782         * modules/strcspn (Makefile.am): Likewise.
48783         * modules/strdup (Makefile.am): Likewise.
48784         * modules/strerror (Makefile.am): Likewise.
48785         * modules/strftime (Makefile.am): Likewise.
48786         * modules/strndup (Makefile.am): Likewise.
48787         * modules/strnlen (Makefile.am): Likewise.
48788         * modules/strpbrk (Makefile.am): Likewise.
48789         * modules/strsep (Makefile.am): Likewise.
48790         * modules/strstr (Makefile.am): Likewise.
48791         * modules/strtod (Makefile.am): Likewise.
48792         * modules/strtoimax (Makefile.am): Likewise.
48793         * modules/strtok_r (Makefile.am): Likewise.
48794         * modules/strtol (Makefile.am): Likewise.
48795         * modules/strtoll (Makefile.am): Likewise.
48796         * modules/strtoul (Makefile.am): Likewise.
48797         * modules/strtoull (Makefile.am): Likewise.
48798         * modules/strtoumax (Makefile.am): Likewise.
48799         * modules/strverscmp (Makefile.am): Likewise.
48800         * modules/sys_socket (Makefile.am): Likewise.
48801         * modules/sys_stat (Makefile.am): Likewise.
48802         * modules/sysexits (Makefile.am): Likewise.
48803         * modules/time_r (Makefile.am): Likewise.
48804         * modules/timegm (Makefile.am): Likewise.
48805         * modules/timespec (Makefile.am): Likewise.
48806         * modules/tmpfile-safer (Makefile.am): Likewise.
48807         * modules/trim (Makefile.am): Likewise.
48808         * modules/unistd-safer (Makefile.am): Likewise.
48809         * modules/unlinkdir (Makefile.am): Likewise.
48810         * modules/unlocked-io (Makefile.am): Likewise.
48811         * modules/userspec (Makefile.am): Likewise.
48812         * modules/utime (Makefile.am): Likewise.
48813         * modules/utimecmp (Makefile.am): Likewise.
48814         * modules/utimens (Makefile.am): Likewise.
48815         * modules/vasnprintf (Makefile.am): Likewise.
48816         * modules/vasprintf (Makefile.am): Likewise.
48817         * modules/vsnprintf (Makefile.am): Likewise.
48818         * modules/xalloc (Makefile.am): Likewise.
48819         * modules/xgetcwd (Makefile.am): Likewise.
48820         * modules/xnanosleep (Makefile.am): Likewise.
48821         * modules/xreadlink (Makefile.am): Likewise.
48822         * modules/xstrtod (Makefile.am): Likewise.
48823         * modules/xstrtol (Makefile.am): Likewise.
48824         * modules/xstrtold (Makefile.am): Likewise.
48825         * modules/yesno (Makefile.am): Likewise.
48826         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
48827
48828 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48829
48830         * modules/error (Makefile.am): Distribute files through
48831         EXTRA_DIST, not lib_SOURCES.
48832
48833 2006-10-12  Eric Blake  <ebb9@byu.net>
48834
48835         * modules/error (Makefile.am): Distribute files in /lib.
48836         * modules/obstack (Makefile.am): Likewise.
48837
48838 2006-10-12  Bruno Haible  <bruno@clisp.org>
48839
48840         * modules/acl (Makefile.am): Distribute all files in lib/ through
48841         EXTRA_DIST.
48842         * modules/arcfour (Makefile.am): Likewise.
48843         * modules/arctwo (Makefile.am): Likewise.
48844         * modules/argmatch (Makefile.am): Likewise.
48845         * modules/argz (Makefile.am): Likewise.
48846         * modules/atexit (Makefile.am): Likewise.
48847         * modules/backupfile (Makefile.am): Likewise.
48848         * modules/c-strtod (Makefile.am): Likewise.
48849         * modules/c-strtold (Makefile.am): Likewise.
48850         * modules/calloc (Makefile.am): Likewise.
48851         * modules/canon-host (Makefile.am): Likewise.
48852         * modules/canonicalize (Makefile.am): Likewise.
48853         * modules/chdir-long (Makefile.am): Likewise.
48854         * modules/chdir-safer (Makefile.am): Likewise.
48855         * modules/check-version (Makefile.am): Likewise.
48856         * modules/chown (Makefile.am): Likewise.
48857         * modules/cloexec (Makefile.am): Likewise.
48858         * modules/close-stream (Makefile.am): Likewise.
48859         * modules/closeout (Makefile.am): Likewise.
48860         * modules/crc (Makefile.am): Likewise.
48861         * modules/cycle-check (Makefile.am): Likewise.
48862         * modules/des (Makefile.am): Likewise.
48863         * modules/dirfd (Makefile.am): Likewise.
48864         * modules/dirname (Makefile.am): Likewise.
48865         * modules/dup2 (Makefile.am): Likewise.
48866         * modules/euidaccess (Makefile.am): Likewise.
48867         * modules/exclude (Makefile.am): Likewise.
48868         * modules/exitfail (Makefile.am): Likewise.
48869         * modules/fcntl-safer (Makefile.am): Likewise.
48870         * modules/file-type (Makefile.am): Likewise.
48871         * modules/fileblocks (Makefile.am): Likewise.
48872         * modules/filemode (Makefile.am): Likewise.
48873         * modules/filenamecat (Makefile.am): Likewise.
48874         * modules/fnmatch (Makefile.am): Likewise.
48875         * modules/fopen-safer (Makefile.am): Likewise.
48876         * modules/fpending (Makefile.am): Likewise.
48877         * modules/fprintftime (Makefile.am): Likewise.
48878         * modules/free (Makefile.am): Likewise.
48879         * modules/fsusage (Makefile.am): Likewise.
48880         * modules/ftruncate (Makefile.am): Likewise.
48881         * modules/fts (Makefile.am): Likewise.
48882         * modules/gc (Makefile.am): Likewise.
48883         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48884         * modules/getaddrinfo (Makefile.am): Likewise.
48885         * modules/getcwd (Makefile.am): Likewise.
48886         * modules/getdelim (Makefile.am): Likewise.
48887         * modules/getdomainname (Makefile.am): Likewise.
48888         * modules/getgroups (Makefile.am): Likewise.
48889         * modules/gethostname (Makefile.am): Likewise.
48890         * modules/gethrxtime (Makefile.am): Likewise.
48891         * modules/getline (Makefile.am): Likewise.
48892         * modules/getloadavg (Makefile.am): Likewise.
48893         * modules/getlogin_r (Makefile.am): Likewise.
48894         * modules/getopt (Makefile.am): Likewise.
48895         * modules/getpass (Makefile.am): Likewise.
48896         * modules/getpass-gnu (Makefile.am): Likewise.
48897         * modules/getsubopt (Makefile.am): Likewise.
48898         * modules/gettime (Makefile.am): Likewise.
48899         * modules/gettimeofday (Makefile.am): Likewise.
48900         * modules/getugroups (Makefile.am): Likewise.
48901         * modules/getusershell (Makefile.am): Likewise.
48902         * modules/glob (Makefile.am): Likewise.
48903         * modules/group-member (Makefile.am): Likewise.
48904         * modules/hard-locale (Makefile.am): Likewise.
48905         * modules/hash (Makefile.am): Likewise.
48906         * modules/hmac-md5 (Makefile.am): Likewise.
48907         * modules/hmac-sha1 (Makefile.am): Likewise.
48908         * modules/human (Makefile.am): Likewise.
48909         * modules/idcache (Makefile.am): Likewise.
48910         * modules/imaxabs (Makefile.am): Likewise.
48911         * modules/imaxdiv (Makefile.am): Likewise.
48912         * modules/inet_ntop (Makefile.am): Likewise.
48913         * modules/inet_pton (Makefile.am): Likewise.
48914         * modules/inttostr (Makefile.am): Likewise.
48915         * modules/isapipe (Makefile.am): Likewise.
48916         * modules/lchown (Makefile.am): Likewise.
48917         * modules/long-options (Makefile.am): Likewise.
48918         * modules/lstat (Makefile.am): Likewise.
48919         * modules/malloc (Makefile.am): Likewise.
48920         * modules/mathl (Makefile.am): Likewise.
48921         * modules/mbchar (Makefile.am): Likewise.
48922         * modules/md2 (Makefile.am): Likewise.
48923         * modules/md4 (Makefile.am): Likewise.
48924         * modules/md5 (Makefile.am): Likewise.
48925         * modules/memcasecmp (Makefile.am): Likewise.
48926         * modules/memchr (Makefile.am): Likewise.
48927         * modules/memcmp (Makefile.am): Likewise.
48928         * modules/memcoll (Makefile.am): Likewise.
48929         * modules/memcpy (Makefile.am): Likewise.
48930         * modules/memmem (Makefile.am): Likewise.
48931         * modules/memmove (Makefile.am): Likewise.
48932         * modules/mempcpy (Makefile.am): Likewise.
48933         * modules/memrchr (Makefile.am): Likewise.
48934         * modules/memset (Makefile.am): Likewise.
48935         * modules/memxor (Makefile.am): Likewise.
48936         * modules/mkancesdirs (Makefile.am): Likewise.
48937         * modules/mkdir (Makefile.am): Likewise.
48938         * modules/mkdir-p (Makefile.am): Likewise.
48939         * modules/mkdtemp (Makefile.am): Likewise.
48940         * modules/mkstemp (Makefile.am): Likewise.
48941         * modules/mktime (Makefile.am): Likewise.
48942         * modules/modechange (Makefile.am): Likewise.
48943         * modules/mountlist (Makefile.am): Likewise.
48944         * modules/nanosleep (Makefile.am): Likewise.
48945         * modules/openat (Makefile.am): Likewise.
48946         * modules/pagealign_alloc (Makefile.am): Likewise.
48947         * modules/physmem (Makefile.am): Likewise.
48948         * modules/poll (Makefile.am): Likewise.
48949         * modules/posixtm (Makefile.am): Likewise.
48950         * modules/posixver (Makefile.am): Likewise.
48951         * modules/putenv (Makefile.am): Likewise.
48952         * modules/quote (Makefile.am): Likewise.
48953         * modules/quotearg (Makefile.am): Likewise.
48954         * modules/raise (Makefile.am): Likewise.
48955         * modules/read-file (Makefile.am): Likewise.
48956         * modules/readline (Makefile.am): Likewise.
48957         * modules/readlink (Makefile.am): Likewise.
48958         * modules/readtokens (Makefile.am): Likewise.
48959         * modules/readutmp (Makefile.am): Likewise.
48960         * modules/realloc (Makefile.am): Likewise.
48961         * modules/regex (Makefile.am): Likewise.
48962         * modules/rename (Makefile.am): Likewise.
48963         * modules/rename-dest-slash (Makefile.am): Likewise.
48964         * modules/rijndael (Makefile.am): Likewise.
48965         * modules/rmdir (Makefile.am): Likewise.
48966         * modules/rpmatch (Makefile.am): Likewise.
48967         * modules/safe-read (Makefile.am): Likewise.
48968         * modules/safe-write (Makefile.am): Likewise.
48969         * modules/same (Makefile.am): Likewise.
48970         * modules/save-cwd (Makefile.am): Likewise.
48971         * modules/savedir (Makefile.am): Likewise.
48972         * modules/setenv (Makefile.am): Likewise.
48973         * modules/settime (Makefile.am): Likewise.
48974         * modules/sha1 (Makefile.am): Likewise.
48975         * modules/sig2str (Makefile.am): Likewise.
48976         * modules/snprintf (Makefile.am): Likewise.
48977         * modules/stdlib-safer (Makefile.am): Likewise.
48978         * modules/stpcpy (Makefile.am): Likewise.
48979         * modules/stpncpy (Makefile.am): Likewise.
48980         * modules/strcase (Makefile.am): Likewise.
48981         * modules/strcasestr (Makefile.am): Likewise.
48982         * modules/strchrnul (Makefile.am): Likewise.
48983         * modules/strcspn (Makefile.am): Likewise.
48984         * modules/strdup (Makefile.am): Likewise.
48985         * modules/strerror (Makefile.am): Likewise.
48986         * modules/strftime (Makefile.am): Likewise.
48987         * modules/strndup (Makefile.am): Likewise.
48988         * modules/strnlen (Makefile.am): Likewise.
48989         * modules/strpbrk (Makefile.am): Likewise.
48990         * modules/strsep (Makefile.am): Likewise.
48991         * modules/strstr (Makefile.am): Likewise.
48992         * modules/strtod (Makefile.am): Likewise.
48993         * modules/strtoimax (Makefile.am): Likewise.
48994         * modules/strtok_r (Makefile.am): Likewise.
48995         * modules/strtol (Makefile.am): Likewise.
48996         * modules/strtoll (Makefile.am): Likewise.
48997         * modules/strtoul (Makefile.am): Likewise.
48998         * modules/strtoull (Makefile.am): Likewise.
48999         * modules/strtoumax (Makefile.am): Likewise.
49000         * modules/strverscmp (Makefile.am): Likewise.
49001         * modules/time_r (Makefile.am): Likewise.
49002         * modules/timegm (Makefile.am): Likewise.
49003         * modules/tmpfile-safer (Makefile.am): Likewise.
49004         * modules/unistd-safer (Makefile.am): Likewise.
49005         * modules/unlinkdir (Makefile.am): Likewise.
49006         * modules/userspec (Makefile.am): Likewise.
49007         * modules/utime (Makefile.am): Likewise.
49008         * modules/utimecmp (Makefile.am): Likewise.
49009         * modules/utimens (Makefile.am): Likewise.
49010         * modules/vasnprintf (Makefile.am): Likewise.
49011         * modules/vasprintf (Makefile.am): Likewise.
49012         * modules/vsnprintf (Makefile.am): Likewise.
49013         * modules/xalloc (Makefile.am): Likewise.
49014         * modules/xgetcwd (Makefile.am): Likewise.
49015         * modules/xnanosleep (Makefile.am): Likewise.
49016         * modules/xreadlink (Makefile.am): Likewise.
49017         * modules/xstrtod (Makefile.am): Likewise.
49018         * modules/xstrtol (Makefile.am): Likewise.
49019         * modules/xstrtold (Makefile.am): Likewise.
49020         * modules/yesno (Makefile.am): Likewise.
49021
49022 2006-10-12  Jim Meyering  <jim@meyering.net>
49023
49024         * m4/getloadavg.m4: Revert the change below.
49025
49026         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
49027         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
49028         fail with a symlink, which is what coreutils' ./bootstrap now
49029         creates by default.
49030
49031 2006-10-12  Bruno Haible  <bruno@clisp.org>
49032
49033         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
49034         mingw.
49035         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
49036         MSVC and mingw explicitly.
49037
49038 2006-10-11  Simon Josefsson  <jas@extundo.com>
49039             Bruno Haible  <bruno@clisp.org>
49040
49041         Add support for multiple gnulib-tool invocations in the scope of a
49042         single configure.ac file.
49043         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
49044         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
49045         with the same contents as the _LIBADD variable.
49046         (func_emit_initmacro_start, func_emit_initmacro_end,
49047         func_emit_initmacro_done): New functions.
49048         (func_import, func_create_testdir): Invoke them. Allow the identifiers
49049         gl_LIBOBJS and gl_LTLIBOBJS.
49050
49051 2006-10-11  Bruno Haible  <bruno@clisp.org>
49052
49053         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
49054         (func_create_testdir): Don't create po/Makefile.am, don't invoke
49055         autoreconf. Instead, invoke autopoint explicitly but move back the
49056         *.m4 files from gnulib.
49057
49058 2006-10-11  Bruno Haible  <bruno@clisp.org>
49059
49060         * gnulib-tool (func_usage): Make module names after --create-testdir
49061         optional.
49062         (func_create_testdir): If no module was specified, use nearly all
49063         modules.
49064
49065 2006-10-12  Jim Meyering  <jim@meyering.net>
49066
49067         Big performance improvement for fts-based tools that use FTS_NOSTAT.
49068         Avoid spurious inode-mismatch problems on non-POSIX file systems.
49069         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
49070         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
49071         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
49072         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
49073         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
49074         (fts_set_stat_required): New function.
49075         (fts_open): Defer the calls to fts_stat, if possible or requested.
49076         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
49077         into fts_stat itself.
49078         (fts_read): Perform any required (deferred) fts_stat call.
49079         (fts_build): Likewise, for the directory we're about to open and read.
49080         In the readdir loop, carefully decide whether each entry will require
49081         an eventual call to fts_stat, using dirent.d_type info if available.
49082         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
49083         a command line argument into this function.  Update all callers.
49084         Map a return value of FTS_DOT to FTS_D for a command line argument.
49085         * modules/fts (Depends-on): Add d-type.  Alphabetize.
49086         Thanks to Miklos Szeredi for his tenacity and for the initial
49087         bug report about "find" failing on a FUSE-based file system.
49088
49089         * lib/fts.c (fts_open): Use consistent indentation.
49090
49091 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49092
49093         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
49094         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
49095         reported by Jim Meyering.  All uses of cache variables renamed
49096         to match Autoconf's.
49097         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
49098         the other one.
49099
49100         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
49101         Fix misspelling in diagnostic.
49102
49103 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49104
49105         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
49106         defined.  Problem reported by Matthew Woehlke.
49107
49108         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
49109         Add support for Tandem NonStop R series.
49110         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
49111         Use new macro.
49112
49113         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
49114         (has_trailing_slash): Omit size arg; all callers changed.
49115         Omit 'inline', since it doesn't help performance and we'd
49116         need to configure it.
49117         Don't count //, ///, etc. as having a trailing slash.
49118         As a side effect, this removes a C99ism reported by Matthew Woehlke.
49119         (rpl_rename_dest_slash): On failure, use rename's errno rather
49120         than (in some cases) an incorrect or junk errno.
49121         Simplify code by removing need to compute length; this does
49122         cause it to make two passes instead of one over the file name,
49123         but it's worth it.
49124
49125         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
49126         change, since Autoconf's version may no longer be appropriate now
49127         that we are using CVS Autoconf's version.  Add support for Tandem.
49128
49129 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49130             Bruno Haible  <bruno@clisp.org>
49131
49132         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
49133         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
49134         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
49135         gl_AC_TYPE_LONG_LONG.
49136
49137         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
49138         instead of HAVE_LONG_LONG.
49139         * lib/printf-args.c (printf_fetchargs): Likewise.
49140         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
49141         * lib/vasnprintf.c (VASNPRINTF): Likewise.
49142         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
49143         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
49144         gl_AC_TYPE_LONG_LONG.
49145
49146 2006-10-11  Bruno Haible  <bruno@clisp.org>
49147
49148         * m4/longlong.m4: Add comments.
49149         * m4/ulonglong.m4: Likewise.
49150
49151 2006-10-10  Bruno Haible  <bruno@clisp.org>
49152
49153         Make it possible to #define stpcpy, strdup to aliases.
49154         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
49155         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
49156
49157 2006-10-10  Bruno Haible  <bruno@clisp.org>
49158
49159         Make it possible to #define gcd to an alias.
49160         * lib/gcd.c: Include config.h.
49161
49162 2006-10-10  Bruno Haible  <bruno@clisp.org>
49163
49164         Make it possible to #define c_isascii to an alias.
49165         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
49166         defined. Undefine the macros before defining them, to avoid gcc
49167         warnings.
49168         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
49169         define NO_C_CTYPE_MACROS early.
49170
49171 2006-10-10  Bruno Haible  <bruno@clisp.org>
49172
49173         Make it possible to #define set_program_name to an alias.
49174         * lib/progname.c: Don't undefine set_program_name; instead, undefine
49175         ENABLE_RELOCATABLE early.
49176
49177 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49178
49179         Port to Tandem NSK OSS, which has 64-bit signed int but at most
49180         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
49181         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
49182         More generally, don't assume that 64-bit signed int is available
49183         if unsigned int is, and vice versa.
49184         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
49185         unsigned symbols, not on their signed counterparts.
49186         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
49187         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
49188         (UINT64_C, UINTMAX_C):
49189         Likewise.
49190         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
49191         unsigned counterparts.
49192         (Have_long_long, Unsigned): New macros.
49193         (Int): Renamed from INT.
49194         (strtoimax): Use the new macros.
49195         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
49196         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
49197         * modules/inttypes (inttypes.h): Substitute
49198         HAVE_UNSIGNED_LONG_LONG_INT.
49199         * modules/stdint (stdint.h): Likewise.
49200         (Files): Add m4/ulonglong.m4.
49201
49202 2006-10-10  Bruno Haible  <bruno@clisp.org>
49203
49204         Fix a gcc -Wshadow warning.
49205         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
49206         to 'bucket'.
49207         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
49208         gl_linked_indexof_from_to): Likewise.
49209         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
49210         Likewise.
49211         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
49212         Likewise.
49213         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
49214         Reported by Eric Blake.
49215
49216 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
49217
49218         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
49219         for NetBSD.  Problem reported by Bruno Haible.
49220
49221 2006-10-09  Jim Meyering  <jim@meyering.net>
49222
49223         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
49224         Patch from Bruno Haible.
49225
49226 2006-10-09  Jim Meyering  <jim@meyering.net>
49227
49228         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
49229         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
49230         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
49231
49232 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49233
49234         Don't include <config.h> twice; this doesn't work in some cases,
49235         e.g., when config.h has "#define intmax_t long long int" and
49236         we include <config.h>, <inttypes.h>, <config.h> in that order.
49237         Problem reported by Matthew Woehlke in:
49238         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
49239         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
49240         * lib/fts-cycle.c: Don't include config.h.
49241         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
49242         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
49243         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
49244         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
49245         inttypes.h.
49246         * lib/xstrtoumax.c: Likewise.
49247         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
49248         __strtol and the like, so that this module is more like its siblings.
49249         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
49250         Remove; no longer needed now that we assume gnulib inttypes.h.
49251
49252 2006-10-08  Bruno Haible  <bruno@clisp.org>
49253
49254         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
49255         option.
49256
49257 2006-10-07  Jim Meyering  <jim@meyering.net>
49258
49259         * modules/inttypes (inttypes.h): Revert what seems to have been
49260         an inadvertent part of today's change: use "|", not "/" in the
49261         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
49262
49263 2006-10-07  Bruno Haible  <bruno@clisp.org>
49264
49265         * modules/sublist: New file.
49266
49267 2006-10-07  Bruno Haible  <bruno@clisp.org>
49268
49269         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
49270         * modules/argz (argz.h): Likewise.
49271         * modules/arpa_inet (arpa/inet.h): Likewise.
49272         * modules/byteswap (byteswap.h): Likewise.
49273         * modules/configmake (configmake.h): Likewise.
49274         * modules/fcntl (fcntl.h): Likewise.
49275         * modules/fnmatch (fnmatch.h): Likewise.
49276         * modules/getopt (getopt.h): Likewise.
49277         * modules/glob (glob.h): Likewise.
49278         * modules/inttypes (inttypes.h): Likewise.
49279         * modules/netinet_in (netinet/in.h): Likewise.
49280         * modules/poll (poll.h): Likewise.
49281         * modules/stdbool (stdbool.h): Likewise.
49282         * modules/stdint (stdint.h): Likewise.
49283         * modules/sys_select (sys/select.h): Likewise.
49284         * modules/sys_socket (sys/socket.h): Likewise.
49285         * modules/sys_stat (sys/stat.h): Likewise.
49286         * modules/sysexits (sysexits.h): Likewise.
49287         * modules/unistd (unistd.h): Likewise.
49288         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49289         Add a "DO NOT EDIT" comment to the generated file.
49290         (func_import): Likewise for gnulib-comp.m4.
49291
49292 2006-10-07  Bruno Haible  <bruno@clisp.org>
49293
49294         * lib/gl_sublist.h: New file.
49295         * lib/gl_sublist.c: New file.
49296
49297 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49298
49299         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
49300         name (relative to the original working directory) and the file
49301         name component (relative to the temporary working directory).  All
49302         callers changed.
49303         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
49304         * lib/mkdir-p.c (make_dir_parents): Likewise.
49305         * lib/mkdir-p.h (make_dir_parents): Likewise.
49306
49307 2006-10-06  Eric Blake  <ebb9@byu.net>
49308
49309         Define several macros for use by the clean-temp module.
49310         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
49311         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
49312         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
49313
49314         * lib/clean-temp.h (close_stream_temp): New declaration.
49315         * lib/clean-temp.c (includes): Pull in headers according to what
49316         other modules are in use.
49317         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
49318
49319 2006-10-06  Bruno Haible  <bruno@clisp.org>
49320
49321         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
49322         instead of fopen, fwriteerror.
49323
49324 2006-10-06  Bruno Haible  <bruno@clisp.org>
49325
49326         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
49327         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
49328         int.
49329         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
49330         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
49331         Return an error indicator.
49332         Suggested by Eric Blake.
49333
49334 2006-10-06  Bruno Haible  <bruno@clisp.org>
49335
49336         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
49337         Reported by Eric Blake.
49338
49339 2006-10-06  Bruno Haible  <bruno@clisp.org>
49340
49341         * modules/closeout (Description): Mention stderr too.
49342
49343 2006-10-06  Bruno Haible  <bruno@clisp.org>
49344         and Paul Eggert  <eggert@cs.ucla.edu>
49345
49346         * lib/closeout.c (close_stdout): Also close stderr.
49347         * lib/closeout.h: Update comment.
49348
49349 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49350
49351         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
49352         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
49353         * lib/dirchownmod.c: Include lchown.h.
49354         * lib/lchown.c: Don't include files that lchown.h now includes.
49355         Don't declare chown, since lchown.h now does that.
49356         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
49357         (lchown): Define to rpl_chown if lchown is declared but
49358         does not exist.  Declare using a prototype if lchown is not
49359         declared.  Add a copyright notice.
49360         * lib/mkstemp.h: Include <unistd.h>.
49361         * lib/openat.c: Include lchown.h.
49362
49363         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
49364         we now test for that separately.
49365         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
49366         rather than O_NOFOLLOW, when testing whether it's possible to
49367         avoid a race condition reliably.
49368         * lib/savewd.c (savewd_chdir): Likewise.
49369
49370         Remove macros that are no longer needed now that stdint.h is
49371         reliable.
49372         * lib/fsusage.c (UINTMAX_MAX): Remove.
49373         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
49374         * lib/utimecmp.c (SIZE_MAX): Remove.
49375
49376         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
49377
49378         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
49379         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
49380         O_NOATIME works.
49381
49382 2006-10-05  Bruno Haible  <bruno@clisp.org>
49383
49384         * lib/gl_list.h (gl_sortedlist_search_from_to,
49385         gl_sortedlist_indexof_from_to): New declarations.
49386         (gl_list_implementation): New fields sortedlist_search_from_to,
49387         sortedlist_indexof_from_to.
49388         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
49389         inline functions.
49390         * lib/gl_list.c (gl_sortedlist_search_from_to,
49391         gl_sortedlist_indexof_from_to): New functions.
49392         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
49393         function.
49394         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
49395         (gl_array_sortedlist_search_from_to): New function.
49396         (gl_array_list_implementation): Update.
49397         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
49398         function.
49399         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
49400         (gl_carray_sortedlist_search_from_to): New function.
49401         (gl_carray_list_implementation): Update.
49402         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
49403         gl_linked_sortedlist_indexof_from_to): New functions.
49404         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49405         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49406         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
49407         gl_tree_sortedlist_indexof_from_to): New functions.
49408         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49409         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49410         Update.
49411         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49412         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
49413         Update.
49414
49415 2006-10-05  Bruno Haible  <bruno@clisp.org>
49416
49417         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
49418         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
49419         (struct gl_list_implementation): Add fields search_from_to,
49420         indexof_from_to. Remove fields search, indexof.
49421         (gl_list_search): Use the search_from_to method.
49422         (gl_list_search_from, gl_list_search_from_to): New functions.
49423         (gl_list_indexof): Use the indexof_from_to method.
49424         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49425         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
49426         (gl_list_search_from, gl_list_search_from_to): New functions.
49427         (gl_list_indexof): Use the indexof_from_to method.
49428         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49429         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
49430         gl_array_indexof. Add start_index, end_index arguments.
49431         (gl_array_search_from_to): Renamed from gl_array_search. Add
49432         start_index, end_index arguments.
49433         (gl_array_remove, gl_array_list_implementation): Update.
49434         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
49435         gl_carray_indexof. Add start_index, end_index arguments.
49436         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
49437         start_index, end_index arguments.
49438         (gl_carray_remove, gl_carray_list_implementation): Update.
49439         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
49440         gl_linked_search. Add start_index, end_index arguments.
49441         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
49442         start_index, end_index arguments.
49443         (gl_linked_remove): Update.
49444         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49445         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49446         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
49447         field to 'size_t'.
49448         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
49449         gl_tree_search. Add start_index, end_index arguments.
49450         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49451         start_index, end_index arguments.
49452         (gl_tree_remove): Update.
49453         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49454         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49455         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
49456         function.
49457         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
49458         gl_tree_search. Add start_index, end_index arguments.
49459         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49460         start_index, end_index arguments.
49461         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49462         Update.
49463         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49464
49465 2006-10-05  Bruno Haible  <bruno@clisp.org>
49466
49467         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
49468
49469         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
49470         fwriteerror_temp): New declarations.
49471         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
49472         (descriptors): New variable.
49473         (cleanup): First, close the descriptors.
49474         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
49475         fclose_temp, fwriteerror_temp): New functions.
49476
49477 2006-10-04  Jim Meyering  <jim@meyering.net>
49478
49479         * lib/fts.c (fts_open): Tiny comment change.
49480
49481 2006-10-04  Bruno Haible  <bruno@clisp.org>
49482
49483         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
49484         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
49485         gl_LOCK_BODY.
49486         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
49487         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
49488         gl_LOCK_EARLY_BODY.
49489         (gl_LOCK): Require gl_LOCK_BODY.
49490
49491 2006-10-04  Bruno Haible  <bruno@clisp.org>
49492
49493         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
49494         (gl_oset_search_atleast): New declaration.
49495         (struct gl_oset_implementation): Add field 'search_atleast'.
49496         (gl_oset_search_atleast): New inline function.
49497         * lib/gl_oset.c (gl_oset_search_atleast): New function.
49498         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
49499         (gl_array_oset_implementation): Update.
49500         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
49501         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
49502         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
49503
49504 2006-10-04  Bruno Haible  <bruno@clisp.org>
49505
49506         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
49507
49508 2006-10-03  Bruno Haible  <bruno@clisp.org>
49509
49510         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
49511         from gl_avltreehash_list_implementation.
49512
49513 2006-10-03  Bruno Haible  <bruno@clisp.org>
49514
49515         * lib/gl_oset.c (gl_oset_add): Fix return type.
49516
49517 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
49518
49519         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
49520
49521 2006-10-02  Eric Blake  <ebb9@byu.net>
49522
49523         * modules/strnlen (Depends-on): Add extensions.
49524
49525 2006-10-02  Eric Blake  <ebb9@byu.net>
49526
49527         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
49528         definition in 2.60+.
49529
49530 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
49531
49532         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
49533         checks.
49534
49535 2006-10-02  Bruno Haible  <bruno@clisp.org>
49536
49537         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
49538         to the AUTOMAKE_OPTIONS.
49539         Reported by Jim Meyering.
49540
49541 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49542
49543         Work around bug in Solaris 10 /proc file system:
49544         /proc/self/fd/NNN/.. isn't the parent directory of
49545         the directory whose file descriptor is NNN.  This needs to
49546         be worked around at run time, not compile time, since a
49547         program might be built on Solaris 8, where things work, and
49548         run on Solaris 10.
49549         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
49550         to use the following interface instead:
49551         (OPENAT_BUFFER_SIZE): New macro.
49552         (openat_proc_name): New function.
49553         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
49554         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
49555         Likewise.
49556         * lib/openat-proc.c: New file.
49557         * modules/openat (Files): Add lib/openat-proc.c.
49558         (Depends-on): Add same-inode, stdbool.
49559         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
49560
49561 2006-09-29  Bruno Haible  <bruno@clisp.org>
49562
49563         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
49564         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
49565         argument. Set stdout_closed before testing for ferror, not after.
49566         (fwriteerror, fwriteerror_no_ebadf): New functions.
49567
49568 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49569
49570         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
49571
49572 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
49573
49574         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
49575         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
49576
49577 2006-09-28  Jim Meyering  <jim@meyering.net>
49578
49579         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
49580         Include <unistd.h>.
49581
49582 2006-09-28  Bruno Haible  <bruno@clisp.org>
49583
49584         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
49585         * modules/linkedhash-list (Depends-on): Likewise.
49586         * modules/rbtreehash-list (Depends-on): Likewise.
49587
49588 2006-09-28  Bruno Haible  <bruno@clisp.org>
49589
49590         * lib/strndup.h: Simplify the redefinition of strndup.
49591         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
49592         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
49593
49594 2006-09-28  Bruno Haible  <bruno@clisp.org>
49595
49596         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
49597         * lib/gl_linkedhash_list.c: Likewise.
49598         * lib/gl_rbtreehash_list.c: Likewise.
49599
49600 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49601
49602         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
49603         getaddrinfo.
49604
49605         * lib/__fpending.h: Don't include <stdio_ext.h> unless
49606         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
49607         it causes <stdio_ext.h> to cause a compile-time error.
49608         Problem reported by Nelson H. F. Beebe.
49609         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
49610         of HAVE_DECL___PENDING.
49611
49612         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
49613         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
49614         declaration.
49615
49616 2006-09-27  Jim Meyering  <jim@meyering.net>
49617
49618         This file could end up with a definition for a function
49619         named __strndup, rather than rpl_strndup on a system with
49620         incomplete weak_alias support.
49621         * lib/strndup.c (strndup): Rename from __strndup.
49622         Remove #defines that used to map __strndup to strndup.
49623         Don't use K&R prototypes.
49624         Remove LIBC-related code, since this file is not sync'd with glibc.
49625         * lib/strndup.h: Revamp, accordingly.
49626         * m4/strndup.m4: Modernize.
49627
49628 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49629
49630         * modules/savewd (Depends-on): Add 'raise'.
49631         * lib/savewd.c: Include <signal.h>, for 'raise'.
49632
49633 2006-09-26  Jim Meyering  <jim@meyering.net>
49634
49635         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
49636         when we detect Darwin 8.7.0's acl_get_file bug.
49637         Rearrange to perform the new (below) run-test while $LIBS
49638         contains any acl-related library.  Set USE_ACL at the end.
49639         (gl_ACL_GET_FILE): New function.
49640
49641 2006-09-26  Eric Blake  <ebb9@byu.net>
49642
49643         * lib/verror.c: Include <config.h> unconditionally.
49644
49645 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
49646
49647         * modules/clock-time (Maintainer): Add self.
49648         * modules/getlogin_r (Depends-on): Add extensions.
49649
49650 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49651
49652         * modules/clock-time: New module.
49653         * modules/nanosleep (Depends-on): Add clock-time.
49654         * modules/gethrxtime (Depends-on): Likewise.
49655         * modules/gettime (Depends-on): Likewise.
49656         * modules/settime (Depends-on): Likewise.
49657
49658         * modules/fts-lgpl: Depend on openat.
49659         * modules/mkancesdirs: Depend on savewd.
49660         * modules/mkdir-p: Likewise.
49661
49662 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49663
49664         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
49665
49666         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
49667         `gl_have_arbitrary_file_name_length_limit' to
49668         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
49669         actually works between configure runs.
49670
49671 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49672             Bruno Haible  <bruno@clisp.org>
49673
49674         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
49675
49676 2006-09-25  Jim Meyering  <jim@meyering.net>
49677
49678         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
49679         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
49680
49681 2006-09-25  Eric Blake  <ebb9@byu.net>
49682
49683         * gnulib-tool (func_import, func_create_testdir): Fix typos in
49684         exec's in 2006-09-18 patch when shuffling fds.
49685
49686 2006-09-25  Bruno Haible  <bruno@clisp.org>
49687
49688         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
49689         Reported by Jim Meyering.
49690
49691 2006-09-24  Jim Meyering  <jim@meyering.net>
49692
49693         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
49694         compare a pointer against a literal "0".  That caused failures with
49695         at least HP-UX's hpcc.
49696
49697 2006-09-22  Simon Josefsson  <jas@extundo.com>
49698
49699         * modules/gc-sha1:
49700         * modules/gc-md4:
49701         * modules/gc-hmac-sha1:
49702         * modules/gc-hmac-md5:
49703         * modules/gc-des:
49704         * modules/gc-arcfour: Distribute more files.
49705
49706 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49707
49708         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
49709         (gl_linked_iterator_from_to): Initialize struct completely.
49710         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
49711         (gl_tree_iterator_from_to): Likewise
49712         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
49713         * lib/gl_array_list.c [lint] (gl_array_iterator)
49714         (gl_array_iterator_from_to): Likewise.
49715         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
49716         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
49717         (gl_carray_iterator_from_to): Likewise.
49718
49719         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
49720         * lib/md4.c (md4_process_block): Remove unused variable.
49721         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
49722         parentheses for clarity.
49723
49724 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49725
49726         * modules/bison-i18n (Depends-on): Add gettext.
49727
49728 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49729
49730         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
49731         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
49732         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
49733         also add missing comma that caused broken test.
49734         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
49735         stdlib.h, for `abort'.
49736         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
49737         variables.
49738         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
49739         include unistd.h if present, for `rmdir'.
49740         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
49741         variables.
49742         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
49743         in the process include standard headers for prototypes.
49744         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
49745         gets declared on GNU/Linux.
49746         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
49747         unistd.h, for `rmdir'.
49748         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
49749
49750         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
49751         always true.
49752         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
49753
49754         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
49755
49756 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49757
49758         * gnulib-tool (func_version): Create output all at once.  This
49759         may help avoid triggering unnecessary SIGPIPEs, and at any
49760         rate it doesn't hurt.
49761
49762 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49763             Bruno Haible  <bruno@clisp.org>
49764
49765         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
49766         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49767         * m4/signed.m4 (bh_C_SIGNED): Likewise.
49768
49769         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
49770         (gl_FUNC_VASPRINTF): Invoke it.
49771
49772 2006-09-22  Bruno Haible  <bruno@clisp.org>
49773
49774         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
49775         getloadavg.c as first argument.
49776
49777 2006-09-22  Bruno Haible  <bruno@clisp.org>
49778
49779         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
49780         at the beginning of the gl_INIT macro.
49781         * modules/getloadavg (configure.ac): Pass $gl_source_base to
49782         gl_GETLOADAVG.
49783
49784 2006-09-22  Bruno Haible  <bruno@clisp.org>
49785
49786         * gnulib-tool (func_create_megatestdir): Don't include the config-h
49787         module.
49788         Suggested by Ralf Wildenhues.
49789
49790 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
49791
49792         Import this patch from libc:
49793
49794         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
49795
49796         * lib/regex_internal.c (re_string_reconstruct): Handle
49797         offset < pstr->valid_raw_len && pstr->offsets_needed case.
49798         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
49799         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
49800         re_string_context_at.
49801
49802         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
49803         now requires it.
49804         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
49805         gl_REGEX now does it for us.
49806         (gl_REGEX): Add test taken from
49807         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
49808
49809         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
49810         Check that large offsets work.  Modernize Autoconf usages.
49811         Prefer "yes" to mean a good thing rather than a bad.
49812         Don't put "#define mkstemp" in config.h, as this might interfere
49813         with standard system headers that "#define mkstemp mkstemp64".
49814
49815         * modules/mkstemp (Depends-on): Add extensions, so that
49816         mkstemp is visible on some platforms.
49817         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
49818         (Include): Change to "mkstemp.h" from <stdlib.h>.
49819         (Files): Add mkstemp.h.
49820
49821         * lib/mkstemp.h: New file, since some standard headers
49822         #define mkstemp.
49823         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
49824         Include "mkstemp.h".
49825         Make the _LIBC code resemble glibc original more,
49826         e.g., use K&R style.
49827         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
49828         (mkstemp): Remove, since mkstemp.h does this for us.
49829         * lib/stdlib--.h: Include mkstemp.h.
49830
49831         Import this patch from libc:
49832
49833         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49834
49835         * lib/tempname.c (__gen_tempname): Change attempts_min
49836         into a macro.  Use preprocessor to decide how to initialize
49837         attempts [Coverity CID 67].
49838
49839 2006-09-20  Bruno Haible  <bruno@clisp.org>
49840
49841         * lib/mkdtemp.c: Import from libc.
49842         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49843                 * sysdeps/posix/tempname.c (__gen_tempname): Change
49844                 attempts_min into a macro.  Use preprocessor to decide how to
49845                 initialize attempts [Coverity CID 67].
49846         2001-11-27  Paul Eggert  <eggert@twinsun.com>
49847                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
49848                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
49849
49850 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49851
49852         * gnulib-tool (func_exit): New function, to allow to pass the
49853         exit status portably through the trap.  Use everywhere.
49854         (--help, --version): Signal a write error.
49855         (trap): catch SIGPIPE, for write errors.
49856         Exit at the end of the trap, with the correct exit status.
49857
49858 2006-09-19  Karl Berry  <karl@gnu.org>
49859
49860         * doc/gnulib.texi: note about the license texinfo files.
49861
49862 2006-09-19  Eric Blake  <ebb9@byu.net>
49863
49864         * gnulib-tool: Avoid space-tab.
49865
49866 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49867
49868         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
49869         that prevented coreutils 6.1 from building.  Problem reported
49870         by Petter Reinholdtsen.
49871
49872 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49873
49874         * gnulib-tool (avoidlist): Fix typo that broke options like
49875         --avoid=lock that are used by coreutils bootstrap.
49876
49877 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
49878
49879         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
49880         more systematically.
49881
49882 2006-09-18  Jim Meyering  <jim@meyering.net>
49883
49884         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
49885
49886 2006-09-18  Bruno Haible  <bruno@clisp.org>
49887
49888         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
49889
49890 2006-09-18  Bruno Haible  <bruno@clisp.org>
49891
49892         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
49893         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
49894         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
49895         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
49896         * m4/gettext.m4: Require autoconf >= 2.52.
49897         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
49898         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
49899         of gl_cv_header_inttypes_h.
49900
49901 2006-09-18  Bruno Haible  <bruno@clisp.org>
49902
49903         * lib/javaversion.c: Include configmake.h.
49904
49905 2006-09-18  Bruno Haible  <bruno@clisp.org>
49906
49907         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
49908         avoid that the while loops be executed in a subshell.
49909
49910 2006-09-18  Bruno Haible  <bruno@clisp.org>
49911
49912         * MODULES.html.sh (func_module): Break long lines.
49913         Suggested by Bruce Korb <bkorb@gnu.org>.
49914
49915 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49916
49917         Speed up by a factor of 1.12.
49918         * gnulib-tool (nl): New variable.
49919         (func_import): Rewrite include directive extraction to only read each
49920         directive once.
49921
49922 2006-09-17  Bruno Haible  <bruno@clisp.org>
49923
49924         * modules/javaversion (Makefile.am): Remove DEFS setting.
49925         (Depends-on): Add configmake, for PKGDATADIR definition.
49926
49927 2006-09-17  Bruno Haible  <bruno@clisp.org>
49928
49929         * gnulib-tool (func_create_testdir): Rewrite all files at once.
49930
49931 2006-09-17  Bruno Haible  <bruno@clisp.org>
49932
49933         * gnulib-tool (func_append): New function, stolen from libtool.m4.
49934         (func_modules_transitive_closure, func_modules_add_dummy,
49935         func_modules_to_filelist, func_import, func_create_testdir,
49936         func_create_megatestdir, ...): Use it wherever possible.
49937         Suggested by Ralf Wildenhues.
49938
49939 2006-09-16  Karl Berry  <karl@gnu.org>
49940
49941         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
49942         to avoid sectioning errors.
49943         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
49944         [ifinfo]: blank line after @center-ed titles.
49945         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
49946         Spell FSF address consistently with others.
49947         (These changes approved by rms.)
49948
49949 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49950
49951         Speed up by a factor of 1.61.
49952         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
49953         already checked module names again.
49954
49955 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49956
49957         Speed up by a factor of 1.13.
49958         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
49959         for new_files, and the input to func_add_or_update.
49960
49961 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49962
49963         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
49964         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
49965
49966 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49967
49968         * modules/mkancesdirs (Depends-on): Add fcntl.
49969         * modules/savewd: New file.
49970         * MODULES.html.sh (File system functions): Add savewd.
49971
49972         * modules/configmake (Makefile.am): Add support for the
49973         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
49974
49975 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49976
49977         * m4/savewd.m4: New file.
49978
49979 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49980
49981         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
49982         (dirchownmod): New arg FD.  All callers changed.
49983         Use FD rather than opening the directory ourself, as opening is
49984         now the caller's responsibility.
49985         * lib/dirchownmod.h: Likewise.
49986         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
49987         hosts that require <sys/types.h> before <sys/stat.h>.  Include
49988         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
49989         (test_dir): Remove.
49990         (mkancesdirs): Return length of prefix of FILE that has already
49991         been made, or -2 if there is a child doing the work.  Redo
49992         algorithm so that it is O(N) rather than O(N**2).  Optimize away
49993         ".", and treat ".." specially since it might stray back into
49994         already-created areas.  Use a subprocess if necessary.  New arg
49995         WD; all users changed.  MAKE_DIR function should now return 1
49996         if it creates a directory that is not readable.  Return -2 if
49997         a child process is spun off.
49998         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
49999         Adjust signature to match code.
50000         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
50001         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
50002         all users changed.
50003         * lib/savewd.c, lib/savewd.h: New files.
50004
50005 2006-09-15  Jim Meyering  <jim@meyering.net>
50006
50007         * modules/rename-dest-slash: New module.
50008         * MODULES.html.sh (posix_compat): Add it here.
50009
50010         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
50011
50012 2006-09-15  Jim Meyering  <jim@meyering.net>
50013
50014         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
50015         file.
50016
50017         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
50018
50019 2006-09-15  Jim Meyering  <jim@meyering.net>
50020
50021         * lib/rename-dest-slash.c (has_trailing_slash): Use
50022         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
50023         (rpl_rename_dest_slash): Perform the cheaper trailing slash
50024         test before testing whether SRC is a directory.
50025         Suggestions from Bruno Haible.
50026
50027         Avoid a warning about an unused variable.
50028         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
50029         into the #ifdef block where it's used.
50030
50031         * lib/rename-dest-slash.c: New file.
50032
50033 2006-09-14  Bruno Haible  <bruno@clisp.org>
50034
50035         * lib/allocsa.c: Include <config.h> unconditionally.
50036         * lib/asnprintf.c: Likewise.
50037         * lib/asprintf.c: Likewise.
50038         * lib/c-strcasecmp.c: Likewise.
50039         * lib/c-strcasestr.c: Likewise.
50040         * lib/c-strncasecmp.c: Likewise.
50041         * lib/c-strstr.c: Likewise.
50042         * lib/classpath.c: Likewise.
50043         * lib/clean-temp.c: Likewise.
50044         * lib/concatpath.c: Likewise.
50045         * lib/copy-file.c: Likewise.
50046         * lib/csharpcomp.c: Likewise.
50047         * lib/csharpexec.c: Likewise.
50048         * lib/execute.c: Likewise.
50049         * lib/fatal-signal.c: Likewise.
50050         * lib/findprog.c: Likewise.
50051         * lib/fwriteerror.c: Likewise.
50052         * lib/gl_array_list.c: Likewise.
50053         * lib/gl_array_oset.c: Likewise.
50054         * lib/gl_avltree_list.c: Likewise.
50055         * lib/gl_avltree_oset.c: Likewise.
50056         * lib/gl_avltreehash_list.c: Likewise.
50057         * lib/gl_carray_list.c: Likewise.
50058         * lib/gl_linked_list.c: Likewise.
50059         * lib/gl_linkedhash_list.c: Likewise.
50060         * lib/gl_list.c: Likewise.
50061         * lib/gl_oset.c: Likewise.
50062         * lib/gl_rbtree_list.c: Likewise.
50063         * lib/gl_rbtree_oset.c: Likewise.
50064         * lib/gl_rbtreehash_list.c: Likewise.
50065         * lib/imaxabs.c: Likewise.
50066         * lib/imaxdiv.c: Likewise.
50067         * lib/javacomp.c: Likewise.
50068         * lib/javaexec.c: Likewise.
50069         * lib/javaversion.c: Likewise.
50070         * lib/linebreak.c: Likewise.
50071         * lib/localcharset.c: Likewise.
50072         * lib/lock.c: Likewise.
50073         * lib/mbchar.c: Likewise.
50074         * lib/mbswidth.c: Likewise.
50075         * lib/mkdtemp.c: Likewise.
50076         * lib/pipe.c: Likewise.
50077         * lib/printf-args.c: Likewise.
50078         * lib/printf-parse.c: Likewise.
50079         * lib/progname.c: Likewise.
50080         * lib/progreloc.c: Likewise.
50081         * lib/readlink.c: Likewise.
50082         * lib/sh-quote.c: Likewise.
50083         * lib/stpcpy.c: Likewise.
50084         * lib/stpncpy.c: Likewise.
50085         * lib/strcasecmp.c: Likewise.
50086         * lib/strcasestr.c: Likewise.
50087         * lib/strcspn.c: Likewise.
50088         * lib/striconv.c: Likewise.
50089         * lib/strncasecmp.c: Likewise.
50090         * lib/strnlen1.c: Likewise.
50091         * lib/strstr.c: Likewise.
50092         * lib/strtok_r.c: Likewise.
50093         * lib/tls.c: Likewise.
50094         * lib/tmpdir.c: Likewise.
50095         * lib/unicodeio.c: Likewise.
50096         * lib/unsetenv.c: Likewise.
50097         * lib/vasnprintf.c: Likewise.
50098         * lib/vasprintf.c: Likewise.
50099         * lib/wait-process.c: Likewise.
50100         * lib/xallocsa.c: Likewise.
50101         * lib/xsetenv.c: Likewise.
50102         * lib/xstriconv.c: Likewise.
50103
50104 2006-09-13  Simon Josefsson  <jas@extundo.com>
50105
50106         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
50107         that internally, suggested by Ralf Wildenhues
50108         <Ralf.Wildenhues@gmx.de>.
50109
50110 2006-09-13  Simon Josefsson  <jas@extundo.com>
50111
50112         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
50113         @LIBOBJS@.
50114         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50115
50116 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
50117
50118         * lib/_fpending.c: Include <config.h> unconditionally, since we no
50119         longer worry about uses that don't define HAVE_CONFIG_H.
50120         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
50121         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
50122         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
50123         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
50124         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
50125         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
50126         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
50127         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
50128         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
50129         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
50130         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
50131         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
50132         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
50133         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
50134         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
50135         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
50136         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
50137         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
50138         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
50139         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
50140         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
50141         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
50142         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
50143         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
50144         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
50145         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
50146         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
50147         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
50148         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
50149         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
50150         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
50151         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
50152         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
50153         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
50154         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
50155         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
50156         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
50157         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
50158         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
50159         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
50160         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
50161         Likewise.
50162
50163 2006-09-13  Eric Blake  <ebb9@byu.net>
50164
50165         * lib/getopt.c: Fix typo in last commit.
50166
50167 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50168
50169         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
50170         dgettext.
50171
50172 2006-09-12  Jim Meyering  <jim@meyering.net>
50173
50174         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
50175         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
50176         Reported by Nelson H. F. Beebe.
50177
50178 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50179
50180         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
50181         program_invocation_name and program_invocation_short_name are
50182         initialized.
50183         * lib/argp-namefrob.h: Move declarations of program_invocation_name
50184         and program_invocation_short_name to argp.h, so they are visible
50185         to user programs.
50186         * lib/argp.h: Likewise
50187
50188 2006-09-10  Bruno Haible  <bruno@clisp.org>
50189
50190         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
50191         m4/inttypes_h.m4, m4/uintmax_t.m4.
50192
50193 2006-09-10  Bruno Haible  <bruno@clisp.org>
50194
50195         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
50196         gl_AC_TYPE_UINTMAX_T.
50197
50198 2006-09-10  Bruno Haible  <bruno@clisp.org>
50199
50200         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
50201
50202 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50203
50204         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
50205         convention.  Text proposed by Bruno Haible.
50206         (struct argp_option): Document the use of N_() wrappers.
50207
50208         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
50209         '\v', and translate the two parts separately, instead of feeding
50210         the whole string to gettext.  This allows to exclude
50211         '\v' from the strings visible to the translator by writing doc
50212         strings as N_("..") "\v" N_("..").
50213
50214 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
50215
50216         * config/srclist.txt: Undo latest change; the bug was fixed.
50217
50218 2006-09-09  Bruno Haible  <bruno@clisp.org>
50219
50220         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
50221         assignments if building a library without libtool.
50222         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
50223         in func_emit_lib_Makefile_am.
50224         (func_import): When building a static library libfoo.a, arrange to
50225         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
50226         (func_create_testdir): Likewise.
50227         * modules/gc (configure.ac, Makefile.am): If building statically,
50228         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
50229         * modules/iconvme (configure.ac, Makefile.am): Likewise.
50230         * modules/striconv (configure.ac, Makefile.am): Likewise.
50231         Based on a suggestion by Ralf Wildenhues.
50232
50233 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50234
50235         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50236         Check for unistd.h too, since Autoconf doesn't assume POSIX.
50237         Also:
50238
50239         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50240         Add year_2050_test to catch glibc bug 2821
50241         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50242
50243         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50244         Prefer #ifdef to #if.
50245
50246         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
50247         Return from 'main' instead of calling 'exit'.
50248
50249 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50250
50251         * lib/mktime.c (guess_time_tm): Fix bug where mktime
50252         returned the maximum time_t value rather than (time_t) -1.
50253         Problem originally reported by William Bardwell
50254         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50255
50256         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50257         Moved to here ...
50258         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50259         ... from here.
50260
50261 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50262
50263         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
50264         2821 is fixed.
50265
50266 2006-09-08  Jim Meyering  <jim@meyering.net>
50267
50268         Don't make generated files read-only.  That would bother too many
50269         people.  However, do retain the ability to work when targets are
50270         read-only: remove the destination and temporary files before writing
50271         them (when generated via sed or echo), or by using the -f option for
50272         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
50273         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50274         * modules/byteswap, modules/configmake, modules/fcntl:
50275         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50276         * modules/localcharset, modules/netinet_in, modules/poll:
50277         * modules/stdbool, modules/stdint, modules/sys_select:
50278         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50279
50280 2006-09-08  Jim Meyering  <jim@meyering.net>
50281
50282         Avoid new build failure on FreeBSD 6.0.
50283         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
50284         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
50285         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
50286
50287 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50288
50289         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
50290
50291 2006-09-07  Jim Meyering  <jim@meyering.net>
50292
50293         Fix global typo in last change: use chmod u-w, not chmod u-x.
50294         Spotted by Paul Eggert and Bruce Korb.
50295         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50296         * modules/byteswap, modules/configmake, modules/fcntl:
50297         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50298         * modules/localcharset, modules/netinet_in, modules/poll:
50299         * modules/stdbool, modules/stdint, modules/sys_select:
50300         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50301
50302 2006-09-06  Jim Meyering  <jim@meyering.net>
50303
50304         Make generated files be read-only.
50305         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
50306         Ensure that each generated file is now read-only.
50307         * modules/argz: Likewise.
50308         * modules/arpa_inet: Likewise.
50309         * modules/byteswap: Likewise.
50310         * modules/configmake: Likewise.
50311         * modules/fcntl: Likewise.
50312         * modules/fnmatch: Likewise.
50313         * modules/getopt: Likewise.
50314         * modules/glob: Likewise.
50315         * modules/inttypes: Likewise.
50316         * modules/netinet_in: Likewise.
50317         * modules/poll: Likewise.
50318         * modules/stdbool: Likewise.
50319         * modules/stdint: Likewise.
50320         * modules/sys_select: Likewise.
50321         * modules/sys_socket: Likewise.
50322         * modules/sys_stat: Likewise.
50323         * modules/sysexits: Likewise.
50324         * modules/localcharset: Same as above, but continue using temporary
50325         file named "t-$@" (why different?) rather than the "$@-t" used
50326         everywhere else.
50327
50328         * modules/sysexits (Makefile.am): Replace literal occurrences
50329         of "sysexit.h" more readable, and more consistent, "$@".
50330
50331 2006-09-06  Bruno Haible  <bruno@clisp.org>
50332
50333         * modules/striconv: New file.
50334         * modules/xstriconv: New file.
50335         * MODULES.html.sh (Internationalization functions): Add striconv,
50336         xstriconv.
50337
50338 2006-09-06  Bruno Haible  <bruno@clisp.org>
50339
50340         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
50341         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
50342         not using libtool correctly.
50343
50344 2006-09-06  Bruno Haible  <bruno@clisp.org>
50345
50346         * lib/striconv.h: New file.
50347         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
50348         iconvstring.c.
50349         * lib/xstriconv.h: New file.
50350         * lib/xstriconv.c: New file.
50351
50352 2006-09-06  Bruno Haible  <bruno@clisp.org>
50353
50354         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50355         lib_..._LDFLAGS.
50356
50357 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50358
50359         * lib/argz_.h: Sync from Libtool.
50360
50361         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
50362                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50363
50364         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
50365
50366 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50367
50368         * modules/trim: New file.
50369
50370 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50371
50372         * lib/trim.h: New file.
50373         * lib/trim.c: New file.
50374
50375 2006-09-05  Bruno Haible  <bruno@clisp.org>
50376
50377         * MODULES.html.sh (String handling): Add trim.
50378
50379 2006-09-04  Karl Berry  <karl@gnu.org>
50380
50381         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
50382         until next release.
50383
50384 2006-09-03  Bruno Haible  <bruno@clisp.org>
50385
50386         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
50387         correctly.
50388
50389 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50390
50391         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
50392         not gl_GETLOADAVG.  Omit unneeded semicolons.
50393         Problems reported by Ralf Wildenhues in
50394         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50395         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
50396         at the end, which is the usual gnulib style.
50397
50398         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
50399         of doing all the work ourselves.
50400         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
50401         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
50402
50403 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50404
50405         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
50406         Problem reported by Ralf Wildenhues in
50407         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50408
50409         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
50410         HAVE_STRUCT_STATFS_F_FSTYPENAME.
50411
50412 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50413
50414         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
50415         yesterday's patch by changing test -n to test -z.
50416
50417 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50418
50419         * modules/getloadavg (Files): Add m4/getloadavg.m4.
50420         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
50421         the former is now obsolescent.
50422
50423         * modules/chdir-long (Depends-on): Add fcntl.
50424
50425 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50426
50427         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
50428         obsolescent, and programs should use gnulib instead.
50429         * m4/getloadavg.m4: New file, with contents taken from Autoconf
50430         but with prefixes changed.
50431
50432 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50433
50434         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
50435         or stdbool.h, because they might not exist while configuring.
50436
50437         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
50438         Don't include unistd.h or limits.h; not needed, since chdir-long.h
50439         does that for us.
50440         (O_DIRECTORY): Remove.
50441
50442 2006-08-31  Eric Blake  <ebb9@byu.net>
50443
50444         * gnulib-tool: Don't let emacs change spaces to TAB.
50445
50446 2006-08-31  Bruno Haible  <bruno@clisp.org>
50447
50448         * gnulib-tool: When calling func_import more than once, do it in a
50449         subshell.
50450         Reported by Eric Blake <ebb9@byu.net>.
50451
50452 2006-08-31  Bruno Haible  <bruno@clisp.org>
50453
50454         * gnulib-tool (nl): Remove variable.
50455         (sed_transform_lib_file): Use more robust test for config-h module.
50456         (func_import): Fix typo in 2006-08-25 patch.
50457
50458 2006-08-31  Bruno Haible  <bruno@clisp.org>
50459
50460         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
50461         specified, augment Makefile.am variables instead of assigning them.
50462
50463 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50464
50465         Work around a bug in both the Linux and SunOS 64-bit kernels:
50466         nanosleep mishandles sleeps for longer than 2**31 seconds.
50467         Problem reported by Frank v Waveren in
50468         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50469         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
50470         Check for nanosleep bug.
50471         (LIB_NANOSLEEP): Append clock_gettime library if needed.
50472
50473 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50474
50475         Work around a bug in both the Linux and SunOS 64-bit kernels:
50476         nanosleep mishandles sleeps for longer than 2**31 seconds.
50477         Problem reported by Frank v Waveren in
50478         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50479         * lib/nanosleep.c (BILLION): New constant.
50480         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
50481         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
50482         implementation.
50483
50484 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50485
50486         * modules/nanosleep (Depends-on): Add gettime.
50487
50488 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50489         and Simon Josefsson  <jas@extundo.com>
50490         and Oskar Liljeblad  <oskar@osk.mine.nu>
50491
50492         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
50493         * gnulib-tool (func_import): New license type 'unmodifiable license
50494         text'.
50495         * modules/fdl: Use it.  Longer description.
50496         * module/gpl, module/lgpl: New files.
50497
50498 2006-08-30  Jim Meyering  <jim@meyering.net>
50499
50500         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
50501         shadowing the parameter.
50502
50503 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50504
50505         Sync from Libtool:
50506
50507         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50508
50509         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
50510         sharing with gnulib.  Report by Eric Blake.
50511
50512 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50513
50514         * modules/isapipe: New file.
50515         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
50516
50517 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50518
50519         * modules/configmake (Makefile.am): Add a comment, and omit
50520         the CONFIGMAKE_ prefix from generated macro names.  Suggested
50521         by Bruno Haible.
50522
50523 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50524
50525         * m4/isapipe.m4: New file.
50526
50527 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50528
50529         * lib/isapipe.c, lib/isapipe.h: New files.
50530
50531 2006-08-29  Jim Meyering  <jim@meyering.net>
50532
50533         * modules/configmake (Makefile.am): Make configmake.h depend on
50534         Makefile.  Otherwise, a stale configmake.h could hang around.
50535
50536 2006-08-29  Eric Blake  <ebb9@byu.net>
50537
50538         * lib/error.c (error_at_line, print_errno_message): Match libc, after
50539         resolution of upstream bug 3044.
50540
50541 2006-08-29  Bruno Haible  <bruno@clisp.org>
50542
50543         * modules/localcharset (Depends-on): Add configmake.
50544         (Makefile.am): Remove setting of LIBDIR through DEFS.
50545
50546 2006-08-29  Bruno Haible  <bruno@clisp.org>
50547
50548         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
50549         defined.
50550
50551 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50552
50553         * modules/fcntl: New file.
50554         * modules/chdir-safer (Depends-on): Add fcntl.
50555         * modules/fts: Likewise.
50556         * modules/mkdir-p: Likewise.
50557
50558         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
50559         This undoes the most recent change, since we're now addressing the
50560         problem in a different way.
50561
50562         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
50563         into output, since the output might be called Makefile.am even
50564         if $makefile_name is something different.
50565         (func_import): Use $makefile_am rather than
50566         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
50567         empty.
50568
50569         * modules/inttypes (Files): Add m4/inttypes-h.m4.
50570
50571 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50572
50573         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
50574         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
50575         recent change to stdint.m4, since we're now addressing the problem in a
50576         different way.
50577
50578 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50579
50580         * m4/fcntl_h.m4: New file.
50581
50582 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50583
50584         * lib/fcntl_.h: New file.
50585         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
50586         the fcntl module.
50587         * lib/dirchownmod.c: Likewise.
50588         * lib/fts.c: Likewise.
50589
50590         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
50591         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
50592         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
50593         just before including <inttypes.h>, to avoid circular inclusion.
50594
50595 2006-08-28  Jim Meyering  <jim@meyering.net>
50596
50597         * doc/visibility.texi: Actually read and correct the grammar of the
50598         sentence affected by yesterday's change.
50599
50600 2006-08-28  Eric Blake  <ebb9@byu.net>
50601
50602         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
50603         needs wrapper.
50604
50605 2006-08-28  Eric Blake  <ebb9@byu.net>
50606
50607         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
50608
50609 2006-08-28  Eric Blake  <ebb9@byu.net>
50610
50611         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
50612
50613 2006-08-28  Bruno Haible  <bruno@clisp.org>
50614
50615         * modules/c-strstr: New file, from GNU gettext.
50616         * MODULES.html.sh (String handling): Add c-strstr.
50617
50618 2006-08-28  Bruno Haible  <bruno@clisp.org>
50619
50620         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
50621         macros.
50622         Reported by Eric Blake.
50623
50624 2006-08-28  Bruno Haible  <bruno@clisp.org>
50625
50626         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
50627         (VASNPRINTF): Return a string of length > INT_MAX without failing.
50628         * lib/vasprintf.c: Include errno.h, limits.h.
50629         (EOVERFLOW): New fallback definition.
50630         (vasprintf): Test here whether the string length is > INT_MAX.
50631         * lib/vsnprintf.c: Include errno.h, limits.h.
50632         (EOVERFLOW): New fallback definition.
50633         (vsnprintf): Fix bug when generated string was too long for the buffer.
50634         Test here whether the string length is > INT_MAX.
50635
50636 2006-08-28  Bruno Haible  <bruno@clisp.org>
50637
50638         * lib/inttypes_.h (SCNX*): Remove definitions.
50639         Reported by Eric Blake.
50640
50641 2006-08-28  Bruno Haible  <bruno@clisp.org>
50642
50643         * lib/c-strstr.h: New file, from GNU gettext.
50644         * lib/c-strstr.c: New file, from GNU gettext.
50645
50646 2006-08-28  Bruno Haible  <bruno@clisp.org>
50647
50648         * gnulib-tool: Reorder some statements.
50649
50650 2006-08-28  Bruno Haible  <bruno@clisp.org>
50651
50652         * gnulib-tool: New option --makefile-name.
50653         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
50654         $makefile_name.
50655         (func_import): Write $makefile_name to the cache file, and read it from
50656         there unless explicitly specified. Use $makefile_name as file name
50657         instead of Makefile.am. Adjust the recommendations accordingly.
50658
50659 2006-08-28  Bruno Haible  <bruno@clisp.org>
50660
50661         * gnulib-tool (func_verify_module): Check against misapplying patch.
50662
50663 2006-08-28  Bruno Haible  <bruno@clisp.org>
50664
50665         * gnulib-tool (func_relativize, func_relconcat): New functions.
50666         Give an error if --local-dir is given with --update.
50667         Remove trailing slashes from $local_gnulib_dir.
50668         (func_import): Store the relativized $local_gnulib_dir in
50669         gnulib-cache.m4, and read it from there if not specified explicitly.
50670
50671 2006-08-28  Bruno Haible  <bruno@clisp.org>
50672
50673         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
50674         is the current directory. Respect also $local_gnulib_dir.
50675
50676 2006-08-28  Bruno Haible  <bruno@clisp.org>
50677             Simon Josefsson  <jas@extundo.com>
50678
50679         BeOS portability.
50680         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
50681
50682 2006-08-27  Jim Meyering  <jim@meyering.net>
50683
50684         * doc/visibility.texi: Remove duplicate word: "pointer".
50685
50686 2006-08-26  Bruno Haible  <bruno@clisp.org>
50687
50688         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
50689         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
50690         (Makefile.am): Create inttypes.h from inttypes_.h.
50691         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
50692
50693         * modules/imaxabs: New file.
50694
50695         * modules/imaxdiv: New file.
50696
50697 2006-08-26  Bruno Haible  <bruno@clisp.org>
50698
50699         * m4/inttypes.m4: New file.
50700         * m4/_inttypes_h.m4: Remove file.
50701         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
50702         PRI_MACROS_BROKEN.
50703         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
50704
50705         * m4/imaxabs.m4: New file.
50706
50707         * m4/imaxdiv.m4: New file.
50708
50709 2006-08-26  Bruno Haible  <bruno@clisp.org>
50710
50711         * lib/inttypes_.h: New file.
50712         * lib/inttypes.h: Remove file.
50713         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
50714
50715         * lib/imaxabs.c: New file.
50716
50717         * lib/imaxdiv.c: New file.
50718
50719 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50720
50721         New config-h module, so that "make" output needn't be cluttered
50722         by -DHAVE_CONFIG_H.
50723         * MODULES.html.sh (Support for building libraries and executables):
50724         Add config-h.
50725         * modules/config-h: New file.
50726         * gnulib-tool (nl, sed_transform_lib_file): New vars.
50727         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
50728         the config-h module is used.
50729
50730         New configmake module, so that "make" output needn't be cluttered
50731         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
50732         * MODULES.html.sh (Support for building libraries and executables):
50733         Add configmake.
50734         * modules/configmake: New file.
50735
50736 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50737
50738         * m4/config-h.m4: New file.
50739
50740 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50741
50742         * config/srclist.txt: Add elisp-comp.
50743
50744 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50745
50746         * MODULES.html.sh (Support for building libraries and executables):
50747         Add elisp-comp.
50748         * build-aux/elisp-comp: New file.
50749         * modules/elisp-comp: New file.
50750
50751 2006-08-24  Bruno Haible  <bruno@clisp.org>
50752
50753         * gnulib-tool (func_create_testdir): Use non-default values of
50754         sourcebase and m4base.
50755
50756 2006-08-24  Bruno Haible  <bruno@clisp.org>
50757
50758         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
50759         HTML structure.
50760
50761 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50762
50763         * modules/openat (Depends-on): Add lchown.
50764
50765 2006-08-23  Bruno Haible  <bruno@clisp.org>
50766
50767         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
50768         of gl_LOCK_EARLY instead of gl_LOCK.
50769
50770 2006-08-23  Bruno Haible  <bruno@clisp.org>
50771
50772         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
50773         on OSF/1 to no.
50774         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
50775
50776 2006-08-23  Bruno Haible  <bruno@clisp.org>
50777
50778         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
50779         as unusable.
50780
50781         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
50782         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
50783         (gl_LOCK): New macro.
50784
50785 2006-08-22  Simon Josefsson  <jas@extundo.com>
50786
50787         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
50788         to md5 module.
50789
50790 2006-08-22  Simon Josefsson  <jas@extundo.com>
50791
50792         * MODULES.html.sh: Add "Support for maintaining and release
50793         projects".
50794
50795         * build-aux/gnupload: New file, from coreutils.
50796
50797 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50798
50799         Avoid the need for AC_LIBSOURCES in m4 macros.
50800         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
50801         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
50802         * modules/check-version (EXTRA_DIST): Add check-version.h.
50803         * modules/crc (EXTRA_DIST): Add crc.h.
50804         * modules/des (EXTRA_DIST): Add des.h.
50805         * modules/gc (EXTRA_DIST): Add gc.h.
50806         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
50807         * modules/getline (EXTRA_DIST): Add getline.h.
50808         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
50809         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
50810         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
50811         * modules/md2 (EXTRA_DIST): Add md2.h.
50812         * modules/md4 (EXTRA_DIST): Add md4.h.
50813         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
50814         * modules/read-file (EXTRA_DIST): Add read-file.h.
50815         * modules/readline (EXTRA_DIST): Add readline.h.
50816         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
50817         rijndael-api-fst.h.
50818
50819 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50820
50821         * m4/rijndael.m4 (gl_ARCFOUR):
50822         * m4/arctwo.m4 (gl_ARCTWO):
50823         * m4/check-version.m4 (gl_CHECK_VERSION):
50824         * m4/crc.m4 (gl_CRC):
50825         * m4/des.m4 (gl_DES):
50826         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
50827         * m4/gc.m4 (gl_GC):
50828         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
50829         * m4/getline.m4 (gl_FUNC_GETLINE):
50830         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
50831         * m4/hmac-md5.m4 (gl_HMAC_MD5):
50832         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
50833         * m4/md2.m4 (gl_MD2):
50834         * m4/md4.m4 (gl_MD4):
50835         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
50836         * m4/read-file.m4 (gl_FUNC_READ_FILE):
50837         * m4/readline.m4 (gl_FUNC_READLINE):
50838         * m4/rijndael.m4 (gl_RIJNDAEL):
50839         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50840         to get the necessary .h files and whatnot.
50841
50842 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50843
50844         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
50845         gnulib rather than the other way around.
50846         * config/srclistvars.sh (COREUTILS): Remove.
50847
50848 2006-08-22  Jim Meyering  <jim@meyering.net>
50849
50850         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
50851
50852         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
50853
50854 2006-08-22  Eric Blake  <ebb9@byu.net>
50855
50856         * modules/regexprops-generic: New file.
50857         * MODULES.html.sh (Support for building documentation): List it.
50858
50859 2006-08-22  Eric Blake  <ebb9@byu.net>
50860
50861         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
50862         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50863         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
50864         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
50865
50866 2006-08-22  Bruno Haible  <bruno@clisp.org>
50867
50868         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
50869         and lib_LTLIBRARIES like the other lib_* variables.
50870
50871 2006-08-22  Bruno Haible  <bruno@clisp.org>
50872
50873         * build-aux/x-to-1.in: New file, from GNU gettext.
50874
50875 2006-08-22  Bruno Haible  <bruno@clisp.org>
50876
50877         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
50878         <utmpx.h> exists.
50879
50880 2006-08-22  Bruno Haible  <bruno@clisp.org>
50881
50882         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
50883         <utmpx.h> exists.
50884
50885 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50886
50887         BeOS portability.
50888         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
50889         exist.
50890         Problem reported by Bruno Haible.
50891
50892 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50893
50894         Avoid the need for AC_LIBSOURCES in m4 macros.
50895         * modules/acl (EXTRA_DIST): Add acl.h.
50896         * modules/argmatch (Files): Add m4/argmatch.m4.
50897         (configure.ac): Add gl_ARGMATCH.
50898         (EXTRA_DIST): Renamed from lib_SOURCES, for
50899         consistency with the other modules.  Remove argmatch.c.
50900         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
50901         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
50902         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
50903         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
50904         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
50905         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
50906         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
50907         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
50908         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
50909         * modules/closeout (EXTRA_DIST): Add closeout.h.
50910         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
50911         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
50912         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
50913         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
50914         dirname.h; remove basename.c and stripslash.c.
50915         * modules/exclude (EXTRA_DIST): Add exclude.h.
50916         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
50917         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
50918         * modules/file-type (EXTRA_DIST): Add file-type.h.
50919         * modules/filemode (EXTRA_DIST): Add filemode.h.
50920         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
50921         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50922         * modules/fpending (EXTRA_DIST): Add __fpending.h.
50923         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
50924         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
50925         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
50926         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
50927         * modules/getdate (EXTRA_DIST): Add getdate.c.
50928         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
50929         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
50930         * modules/getpass (EXTRA_DIST): Add getpass.h.
50931         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
50932         * modules/group-member (EXTRA_DIST): Add group-member.h.
50933         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
50934         * modules/hash (EXTRA_DIST): Add hash.h.
50935         * modules/human (EXTRA_DIST): Add human.h.
50936         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
50937         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
50938         * modules/lchown (EXTRA_DIST): Add lchown.h.
50939         * modules/long-options (EXTRA_DIST): Add long-options.h.
50940         * modules/lstat (EXTRA_DIST): Add lstat.h.
50941         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
50942         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
50943         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
50944         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
50945         * modules/memxor (EXTRA_DIST): Add memxor.h.
50946         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
50947         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
50948         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
50949         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
50950         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
50951         * modules/physmem (EXTRA_DIST): Add physmem.h.
50952         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
50953         * modules/posixver (EXTRA_DIST): Add posixver.h.
50954         * modules/quote (EXTRA_DIST): Add quote.h.
50955         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
50956         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
50957         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
50958         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
50959         regex_internal.h regexec.c.
50960         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
50961         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
50962         * modules/same (EXTRA_DIST): Add same.h.
50963         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
50964         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
50965         * modules/savedir (EXTRA_DIST): Add savedir.h.
50966         * modules/sha1 (EXTRA_DIST): Add sha1.h.
50967         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
50968         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
50969         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
50970         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
50971         * modules/strdup (EXTRA_DIST): Add strdup.h.
50972         * modules/strftime (EXTRA_DIST): Add strftime.h.
50973         * modules/strndup (EXTRA_DIST): Add strndup.h.
50974         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
50975         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
50976         * modules/time_r (EXTRA_DIST): Add time_r.h.
50977         * modules/timespec (EXTRA_DIST): Add timespec.h.
50978         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50979         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
50980         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
50981         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
50982         * modules/userspec (EXTRA_DIST): Add userspec.h.
50983         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
50984         * modules/utimens (EXTRA_DIST): Add utimens.h.
50985         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
50986         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
50987         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
50988         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
50989         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
50990         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
50991         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
50992         * modules/yesno (EXTRA_DIST): Add yesno.h.
50993
50994 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50995
50996         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
50997
50998         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
50999         * m4/dev-ino.m4, same-inode.m4: Remove.
51000
51001         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
51002         * m4/acl.m4 (AC_FUNC_ACL):
51003         * m4/backupfile.m4 (gl_BACKUPFILE):
51004         * m4/c-strtod.m4 (gl_C99_STRTOLD):
51005         * m4/canon-host.m4 (gl_CANON_HOST):
51006         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
51007         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
51008         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
51009         * m4/cloexec.m4 (gl_CLOEXEC):
51010         * m4/close-stream.m4 (gl_CLOSE_STREAM):
51011         * m4/closeout.m4 (gl_CLOSEOUT):
51012         * m4/dirfd.m4 (gl_FUNC_DIRFD):
51013         * m4/dirname.m4 (gl_DIRNAME):
51014         * m4/exclude.m4 (gl_EXCLUDE):
51015         * m4/exitfail.m4 (gl_EXITFAIL):
51016         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
51017         * m4/file-type.m4 (gl_FILE_TYPE):
51018         * m4/filemode.m4 (gl_FILEMODE):
51019         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
51020         * m4/fpending.m4 (gl_FUNC_FPENDING):
51021         * m4/fprintftime.m4 (gl_FPRINTFTIME):
51022         * m4/fts.m4 (gl_FUNC_FTS):
51023         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
51024         * m4/getdate.m4 (gl_GETDATE):
51025         * m4/gethrxtime.m4 (gl_GETHRXTIME):
51026         * m4/getpagesize.m4 (gl_GETPAGESIZE):
51027         * m4/getpass.m4 (gl_FUNC_GETPASS):
51028         * m4/gettime.m4 (gl_GETTIME):
51029         * m4/getugroups.m4 (gl_GETUGROUPS):
51030         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
51031         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
51032         * m4/hard-locale.m4 (gl_HARD_LOCALE):
51033         * m4/hash.m4 (gl_HASH):
51034         * m4/idcache.m4 (gl_IDCACHE):
51035         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
51036         * m4/lchown.m4 (gl_FUNC_LCHOWN):
51037         * m4/long-options.m4 (gl_LONG_OPTIONS):
51038         * m4/lstat.m4 (gl_FUNC_LSTAT):
51039         * m4/md5.m4 (gl_MD5):
51040         * m4/memcasecmp.m4 (gl_MEMCASECMP):
51041         * m4/memcoll.m4 (gl_MEMCOLL):
51042         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
51043         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
51044         * m4/memxor.m4 (gl_MEMXOR):
51045         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
51046         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
51047         * m4/modechange.m4 (gl_MODECHANGE):
51048         * m4/mountlist.m4 (gl_MOUNTLIST):
51049         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51050         * m4/openat.m4 (gl_FUNC_OPENAT):
51051         * m4/pathmax.m4 (gl_PATHMAX):
51052         * m4/physmem.m4 (gl_PHYSMEM):
51053         * m4/posixtm.m4 (gl_POSIXTM):
51054         * m4/posixver.m4 (gl_POSIXVER):
51055         * m4/quote.m4 (gl_QUOTE):
51056         * m4/quotearg.m4 (gl_QUOTEARG):
51057         * m4/readtokens.m4 (gl_READTOKENS):
51058         * m4/readutmp.m4 (gl_READUTMP):
51059         * m4/regex.m4 (gl_REGEX):
51060         * m4/safe-read.m4 (gl_SAFE_READ):
51061         * m4/safe-write.m4 (gl_SAFE_WRITE):
51062         * m4/same.m4 (gl_SAME):
51063         * m4/save-cwd.m4 (gl_SAVE_CWD):
51064         * m4/savedir.m4 (gl_SAVEDIR):
51065         * m4/settime.m4 (gl_SETTIME):
51066         * m4/sha1.m4 (gl_SHA1):
51067         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
51068         * m4/stat-macros.m4 (gl_STAT_MACROS):
51069         * m4/stat-time.m4 (gl_STAT_TIME):
51070         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
51071         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
51072         * m4/strdup.m4 (gl_FUNC_STRDUP):
51073         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
51074         * m4/strndup.m4 (gl_FUNC_STRNDUP):
51075         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
51076         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
51077         * m4/time_r.m4 (gl_TIME_R):
51078         * m4/timespec.m4 (gl_TIMESPEC):
51079         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
51080         * m4/unlinkdir.m4 (gl_UNLINKDIR):
51081         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
51082         * m4/userspec.m4 (gl_USERSPEC):
51083         * m4/utimecmp.m4 (gl_UTIMECMP):
51084         * m4/utimens.m4 (gl_UTIMENS):
51085         * m4/xalloc.m4 (gl_XALLOC):
51086         * m4/xgetcwd.m4 (gl_XGETCWD):
51087         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
51088         * m4/xreadlink.m4 (gl_XREADLINK):
51089         * m4/xstrtod.m4 (gl_XSTRTOD):
51090         * m4/yesno.m4 (gl_YESNO):
51091         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
51092         to get the necessary .h files and whatnot.
51093
51094 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
51095             Bruno Haible  <bruno@clisp.org>
51096
51097         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
51098         /bin/sh understanding of '!' conditional negation.
51099
51100 2006-08-21  Jim Meyering  <jim@meyering.net>
51101
51102         * modules/openat (Depends-on): Really alphabetize.
51103
51104         * modules/acl (Depends-on): Add error and quote.
51105
51106         * check-module (find_included_lib_files): Add at-func.c to the
51107         ok-to-include-more-than-once white list.
51108
51109         * modules/openat (Depends-on): Add lstat.  Alphabetize.
51110
51111 2006-08-21  Bruno Haible  <bruno@clisp.org>
51112
51113         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51114         Emit a pkgdata_DATA variable only if some snippets add contents to it.
51115         Reported by Martin Lambers <marlam@marlam.de>.
51116
51117 2006-08-21  Bruno Haible  <bruno@clisp.org>
51118
51119         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
51120         specify an installation location, don't emit a noinst_LIBRARIES or
51121         noinst_LTLIBRARIES assignment.
51122
51123 2006-08-21  Bruno Haible  <bruno@clisp.org>
51124
51125         BeOS portability.
51126         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
51127         BeOS has mbrtowc() but no <wctype.h>.
51128
51129 2006-08-21  Bruno Haible  <bruno@clisp.org>
51130
51131         BeOS portability.
51132         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
51133         exist.
51134
51135 2006-08-21  Bruno Haible  <bruno@clisp.org>
51136
51137         BeOS portability.
51138         * lib/mbchar.h: Include <wctype.h> only if it exists.
51139
51140 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51141
51142         Remove files that are no longer needed by their respective modules.
51143         * m4/obstack.m4: Remove.
51144         * m4/strerror_r.m4: Remove.
51145         * m4/uint32_t.m4: Remove.
51146         * m4/uintptr_t.m4: Remove.
51147         * m4/ullong_max.m4: Remove.
51148         * m4/xstrtoimax.m4: Remove.
51149         * m4/xstrtoumax.m4: Remove.
51150
51151         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
51152         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
51153         dependencies now capture this.
51154
51155         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
51156         Do not use AC_LIBSOURCES, since gnulib modules now do this.
51157         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
51158         * m4/human.m4 (gl_HUMAN): Likewise.
51159         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
51160         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
51161
51162         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
51163
51164         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
51165         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
51166         stdint.
51167         * m4/human.m4 (gl_HUMAN): Likewise.
51168         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
51169         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
51170         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
51171         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
51172         * m4/xstrtol (gl_XSTRTOL): Likewise.
51173
51174         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
51175         AC_TYPE_LONG_LONG_INT.
51176         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
51177         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
51178         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
51179         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
51180
51181         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
51182         on stdbool.
51183
51184         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
51185         (gl_PREREQ_XSTRTOUL): Remove.
51186
51187         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
51188
51189         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
51190         mode.
51191
51192 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51193
51194         Add and change modules to make it easier for coreutils to use
51195         gnulib-tool.
51196         * modules/backupfile (Files): Remove m4/d-ino.m4.
51197         (Depends-on): Add d-ino.
51198         * modules/cycle-check (Depends-on): Add stdint.
51199         (lib_SOURCES): Add cycle-check.h.
51200         * modules/d-ino: New module.
51201         * modules/d-type: New module.
51202         * modules/error (Files): Remove m4/strerror_r.m4.
51203         * modules/filemode (Files): Add m4/st_dm_mode.m4.
51204         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51205         m4/inttypes_h.m4, m4/uintmax_t.m4.
51206         (Depends-on): Add stdint.
51207         (lib_SOURCES): Add fsusage.h.
51208         * modules/getcwd (Files): Remove d-ino.m4.
51209         (Depends-on): Add d-ino.
51210         * modules/getndelim2 (Depends-on): Add stdint.
51211         * modules/glob (Files): Remove m4/d-type.m4.
51212         (Depends-on): Add d-type.
51213         * modules/host-os: New module.
51214         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
51215         m4/inttypes_h.m4, m4/uintmax_t.m4.
51216         * Depends-on: Add stdint.
51217         (lib_SOURCES): Add human.h.
51218         * modules/inttostr (Files): Remove m4/intmax_t.m4,
51219         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
51220         m4/uintmax_t.m4, m4/ulonglong.m4.
51221         (Depends-on): Add stdint.
51222         (EXTRA_DIST): Add inttostr.h.
51223         * modules/lchmod: New module.
51224         * modules/link-follow: New module.
51225         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
51226         (Depends-on): Add lchmod.
51227         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
51228         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
51229         (Depends-on): Add stdint.
51230         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
51231         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
51232         (Depends-on): Add stdint.
51233         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
51234         * modules/perl: New module.
51235         * modules/regex (Depends-on): Add stdint.
51236         * modules/rmdir-errno: New module.
51237         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51238         m4/intmax_t.m4.
51239         (Depends-on): Add stdint.
51240         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51241         m4/uintmax_t.m4.
51242         (Depends-on): Add stdint.
51243         * modules/unlink-busy: New module.
51244         * modules/utimecmp (Depends-on): Add stdint.
51245         * modules/uptime: New module.
51246         * modules/winsz-ioctl: New module.
51247         * modules/winsz-termios: New module.
51248         * modules/xnanosleep (Depends-on): Add nanosleep.
51249         * modules/ullong_max: Remove.
51250         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
51251         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
51252         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
51253         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
51254         (Depends-on): Add inttypes.
51255         (lib_SOURCES): Add xstrtol.h.
51256         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
51257         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
51258         * MODULES.html.sh: Move 'assert' into the assert section.
51259         Move 'dummy' into the linking section.
51260         Remove ullong_max.
51261         Add section for compatibility checks for POSIX:2001 functions,
51262         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
51263         winsz-ioctl, and winsz-termios into it.
51264         Add lchmod.
51265         Add top-level Misc section and put host-os, perl, and uptime
51266         into it.
51267
51268 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51269
51270         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
51271         now assume the stdint module.  Do not include inttypes.h.
51272         * lib/fsusage.h: Likewise.
51273         * lib/getndelim2.c: Likewise.
51274         * lib/human.h: Likewise.
51275         * lib/inttostr.h: Likewise.
51276         * lib/obstack.c: Likewise.
51277         * lib/regex_internal.h: Likewise.
51278         * lib/tempname.c: Likewise.
51279         * lib/utimecmp.c: Likewise.
51280         * lib/xstrtol.h: Likewise.
51281
51282         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
51283
51284         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
51285         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
51286         * lib/xtime.h: Likewise.
51287
51288 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51289
51290         * modules/openat (Files): Add lib/fchmodat.c.
51291         Fixes problem reported by Jay Youngman.
51292
51293 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51294
51295         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
51296         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
51297
51298 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
51299             Bruno Haible  <bruno@clisp.org>
51300
51301         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
51302         and is a script that invokes bison. Tighten the code. Add comments.
51303
51304 2006-08-18  Jim Meyering  <jim@meyering.net>
51305
51306         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
51307         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
51308         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
51309         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
51310
51311 2006-08-18  Bruno Haible  <bruno@clisp.org>
51312
51313         * modules/bison-i18n: New file.
51314         * MODULES.html.sh (Internationalization functions): Add it.
51315
51316 2006-08-18  Bruno Haible  <bruno@clisp.org>
51317
51318         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
51319         sys/statvfs.h. When getmntinfo was found, check its declaration and
51320         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
51321
51322 2006-08-18  Bruno Haible  <bruno@clisp.org>
51323
51324         * m4/bison-i18n.m4: New file, from bison.
51325
51326 2006-08-18  Bruno Haible  <bruno@clisp.org>
51327
51328         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
51329         (ME_DUMMY): Treat "kernfs" as a dummy.
51330         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
51331
51332 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51333
51334         Update from coreutils.
51335
51336         2006-08-15  Jim Meyering  <jim@meyering.net>
51337
51338         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
51339
51340         2006-01-17  Jim Meyering  <jim@meyering.net>
51341
51342         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
51343
51344         2006-01-11  Jim Meyering  <jim@meyering.net>
51345
51346         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
51347         Check for the lchmod function.
51348
51349 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51350
51351         Update from coreutils.
51352
51353         * lib/__fpending.h: Add copyright notice.
51354         * lib/fprintftime.h: Likewise.
51355         * lib/savedir.c: Use (C) in copyright notice.
51356         * lib/savedir.h: Likewise.
51357
51358         2006-08-15  Jim Meyering  <jim@meyering.net>
51359
51360         * lib/at-func.c: New file, with the logic of all emulated at-functions.
51361         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
51362         in support of the EXPECTED_ERRNO macro.
51363         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
51364         definitions.  Instead, define the appropriate symbols and include
51365         "at-func.c".
51366         * lib/mkdirat.c (mkdirat): Likewise.
51367         * lib/fchmodat.c (fchmodat): Likewise.
51368         (ENOSYS): Remove definition.
51369         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
51370         it.  Don't include "unistd--.h" -- it wasn't ever used.
51371
51372         2006-01-17  Jim Meyering  <jim@meyering.net>
51373
51374         Rewrite fts.c not to change the current working directory,
51375         by using openat, fstatat, fdopendir, etc..
51376
51377         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
51378         (HAVE_OPENAT_SUPPORT): Define.
51379         [_LIBC] (fchdir): Don't undef or define; no longer used.
51380         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
51381         Now, this `function' always succeeds, and consumes its file descriptor
51382         parameter -- so callers must not close such FDs.  Update callers.
51383         (diropen_fd, opendirat, cwd_advance_fd): New functions.
51384         (diropen): Add parameter, SP.  Adjust all callers.
51385         Implement using diropen_fd, rather than open.
51386         (fts_open): Initialize new member, fts_cwd_fd.
51387         Remove fts_rft-setting code.
51388         (fts_close): Close fts_cwd_fd, if necessary.
51389         (__opendir2): Define in terms of opendir or opendirat,
51390         depending on whether the FST_NOCHDIR flag is set.
51391         (fts_build): Since fts_safe_changedir consumes its FD, and since
51392         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
51393         and close the dup'd file descriptor upon failure.
51394         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
51395         (fts_safe_changedir): Tweak semantics to reflect that this function
51396         now calls cwd_advance_fd and hence consumes its FD argument.
51397         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
51398         [struct FTS] (fts_rft): Remove now-unused member.
51399         [struct FTS] (fts_cycle.state): Improve comment.
51400
51401         * lib/openat.c (openat_needs_fchdir): New function.
51402         * lib/openat.h (openat_needs_fchdir): Declare it.
51403
51404 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51405
51406         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
51407         Problem and fix reported by Pádraig Brady in
51408         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
51409
51410 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51411
51412         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
51413
51414 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51415
51416         * lib/memcoll.c (memcoll): Optimize for the common case where the
51417         arguments are bytewise equal.
51418
51419 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51420
51421         * doc/regexprops-generic.texi: Add a copyright notice.
51422
51423 2006-08-15  Bruno Haible  <bruno@clisp.org>
51424
51425         * modules/tmpdir (License): Change to LGPL.
51426
51427 2006-08-15  Bruno Haible  <bruno@clisp.org>
51428
51429         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
51430         module.
51431
51432 2006-08-14  Simon Josefsson  <jas@extundo.com>
51433
51434         * config/srclist.txt: Add gnupload.
51435
51436 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51437
51438         Change copyright notice from LGPL 2 to GPL 2, since that's the
51439         standard form used in the gnulib repository.
51440         * tests/test-lock.c: Likewise.
51441         * tests/test-stdint.c: Likewise.
51442         * tests/test-tls.c: Likewise.
51443
51444         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
51445         prelude-manager.  User shorter URLs for GNU projects, without '?'.
51446         Add copyright notice.
51447
51448         * check-module: Add copyright notice.  Output a copyright
51449         notice if "--version" is specified.
51450         * modules/COPYING: New file.
51451         * tests/test-getaddrinfo.c: Add copyright notice.
51452         * tests/test-verify.c: Likewise.
51453
51454 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51455
51456         Change copyright notice from LGPL 2 to GPL 2, since that's the
51457         standard form used in the gnulib repository.
51458         * lib/lock.c: LGPL -> GPL.
51459         * lib/lock.h: Likewise.
51460         * lib/strnlen1.c: Likewise.
51461         * lib/strnlen1.h: Likewise.
51462         * lib/tls.c: Likewise.
51463         * lib/tls.h: Likewise.
51464         * lib/tmpdir.c: Likewise.
51465
51466         * lib/TODO: Remove; this belongs only in coreutils.
51467
51468 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51469
51470         Add copyright notices to long-enough files that lack them, since
51471         otherwise the files aren't clearly free.  Use the same notice that
51472         getdate.texi already uses.
51473         * doc/alloca-opt.texi: Add copyright notice.
51474         * doc/alloca.texi: Likewise.
51475         * doc/ctime.texi: Likewise.
51476         * doc/functions.texi: Likewise.
51477         * doc/gcd.texi: Likewise.
51478         * doc/gnulib-tool.texi: Likewise.
51479         * doc/inet_ntoa.texi: Likewise.
51480         * doc/visibility.texi: Likewise.
51481
51482         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
51483         * doc/quote.texi: Add copyright notice.
51484
51485         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
51486         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
51487         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
51488         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
51489         is now obsolete, and give a pointer to the Sun list.
51490         Add copyright notice.
51491
51492 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51493
51494         * config/srclistvars.sh: Add copyright notice.
51495
51496 2006-08-14  Eric Blake  <ebb9@byu.net>
51497
51498         Import the following change from libc:
51499
51500         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
51501
51502         Upstream bug 2997.
51503         * lib/misc/error.c: Add space between program name and message if file
51504         name is missing.
51505
51506 2006-08-12  Karl Berry  <karl@gnu.org>
51507
51508         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
51509         remove, these originate in gnulib now.
51510
51511 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51512
51513         * doc/Makefile (standards.info standards.html standards.dvi):
51514         Also depend on make-stds.texi.
51515
51516 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51517
51518         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
51519         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
51520
51521         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
51522         in wchar_t.  Problem reported by Eric Blake.
51523
51524         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
51525         LEN is smaller than SIZE.  Suggested by Bruno Haible.
51526         Also, help the compiler to keep LEN in a register.
51527
51528 2006-08-11  Eric Blake  <ebb9@byu.net>
51529
51530         * users.txt: Sort.  Add tar.
51531
51532 2006-08-11  Bruno Haible  <bruno@clisp.org>
51533
51534         * users.txt: New file.
51535
51536 2006-08-11  Bruno Haible  <bruno@clisp.org>
51537
51538         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
51539         before <wchar.h>. Needed for OSF/1 and BSD/OS.
51540
51541 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51542
51543         * modules/snprintf (Depends-on): Remove minmax.
51544         (Maintainer): Add self and Bruno.
51545
51546 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51547
51548         * lib/.cppi-disable: Add snprintf.h, socket_.h.
51549         * lib/snprintf.c: Include <errno.h> and <limits.h>.
51550         (EOVERFLOW): Define if the system does not.
51551         Do not include "minmax.h"; it wasn't used.
51552         (snprintf): Don't assume size_t promotes to an unsigned type.
51553         Fix bug when generated string was too long for the buffer: the
51554         buffer's contents are supposed to be the initial prefix of the
51555         output.  Don't assume vasnprintf returns EOVERFLOW if the size
51556         exceeds INT_MAX; do the check ourselves.
51557
51558         Import the following changes from libc:
51559
51560         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
51561
51562         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
51563         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
51564         set wc to the byte which couldn't be converted.
51565         (re_string_reconstruct): Don't clear valid_raw_len before calling
51566         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
51567         tip_context using re_string_context_at.
51568
51569         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
51570
51571         * lib/posix/regex.h: g++ still cannot handled [restrict].
51572
51573         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
51574
51575         * lib/posix/regex.h: Remove special handling for VMS.
51576
51577 2006-08-10  Jim Meyering  <jim@meyering.net>
51578
51579         * modules/same-inode: New module.
51580         * modules/dev-ino: New module.
51581         * modules/cycle-check: Depend on these modules, rather than simply
51582         including their .h files.
51583         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
51584         required via m4/cycle-check.m4.
51585         * modules/same: Depend on new same-inode module, rather than
51586         including same-inode.h.
51587         * modules/chdir-safer: New file.
51588
51589         * modules/chown (Depends-on): Add stat-macros.
51590
51591 2006-08-10  Jim Meyering  <jim@meyering.net>
51592
51593         * m4/cycle-check.m4: New file.
51594         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
51595         * m4/dev-ino.m4, m4/same-inode.m4: New files.
51596
51597 2006-08-10  Eric Blake  <ebb9@byu.net>
51598
51599         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
51600         in from original proposal.
51601
51602 2006-08-10  Eric Blake  <ebb9@byu.net>
51603         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51604
51605         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
51606         namespace.
51607
51608 2006-08-10  Bruno Haible  <bruno@clisp.org>
51609
51610         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
51611         as well.
51612
51613 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51614
51615         Sync from coreutils.
51616
51617         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
51618
51619         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
51620         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
51621
51622 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51623
51624         * modules/restrict: Remove; no longer needed now that we assume
51625         Autoconf 2.59 or later.
51626         * MODULES.html.sh: Remove 'restrict'.
51627         * modules/argp (Depends-on): Remove 'restrict'.
51628         * modules/base64 (Depends-on): Likewise.
51629         * modules/gc (Depends-on): Likewise.
51630         * modules/getaddrinfo (Depends-on): Likewise.
51631         * modules/glob (Depends-on): Likewise.
51632         * modules/inet_ntop (Depends-on): Likewise.
51633         * modules/inet_pton (Depends-on): Likewise.
51634         * modules/memxor (Depends-on): Likewise.
51635         * modules/regex (Depends-on): Likewise.
51636         * modules/strtok_r (Depends-on): Likewise.
51637         * modules/time_r (Depends-on): Likewise.
51638
51639 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51640
51641         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
51642         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
51643         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51644         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
51645         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
51646         * m4/memxor.m4 (gl_MEMXOR): Likewise.
51647         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
51648         gl_C_RESTRICT replaced by AC_C_RESTRICT.
51649
51650         Merge from coreutils.
51651         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
51652         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
51653         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51654         * m4/time_r.m4 (gl_TIME_R): Likewise.
51655
51656 2006-08-09  Karl Berry  <karl@gnu.org>
51657
51658         * config/srclist.txt: no more gettext-tools, per Bruno.
51659
51660 2006-08-08  Eric Blake  <ebb9@byu.net>
51661
51662         * modules/verror: New module.
51663         * MODULES.html.sh: Document it.
51664
51665 2006-08-08  Eric Blake  <ebb9@byu.net>
51666
51667         * lib/verror.h, lib/verror.c: New files.
51668
51669 2006-08-08  Eric Blake  <ebb9@byu.net>
51670
51671         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
51672         verror_at_line output complies with GNU Coding Standards even when
51673         file is NULL.
51674
51675 2006-08-07  Bruno Haible  <bruno@clisp.org>
51676
51677         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
51678         versions of AIX.
51679         Reported by Ralf Wildenhues.
51680
51681 2006-08-07  Bruno Haible  <bruno@clisp.org>
51682
51683         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
51684         in an AC_DEFUN. Needed so that the autoconf snippets can use
51685         AC_REQUIRE.
51686
51687 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51688
51689         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51690         Initialize pkgdata_DATA.
51691         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
51692         overriding it.
51693
51694 2006-08-06  Eric Blake  <ebb9@byu.net>
51695
51696         * lib/error.h: Fold in some upstream changes from glibc.
51697         * lib/error.c: Likewise.
51698
51699 2006-08-04  Bruno Haible  <bruno@clisp.org>
51700
51701         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51702         Make the mostlyclean-local rule depend on mostlyclean-generic.
51703         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
51704
51705 2006-07-31  Bruno Haible  <bruno@clisp.org>
51706
51707         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
51708         <stdlib.h>, <string.h>.
51709
51710 2006-07-30  Bruno Haible  <bruno@clisp.org>
51711
51712         * modules/readlink (License): Change to LGPL.
51713
51714 2006-07-30  Bruno Haible  <bruno@clisp.org>
51715
51716         * modules/javaversion (Makefile.am): Distribute javaversion.java and
51717         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
51718         set PKGDATADIR to point to it.
51719
51720 2006-07-30  Bruno Haible  <bruno@clisp.org>
51721
51722         * modules/csharpexec (configure.ac): Comment out macro invocation.
51723         * modules/javaexec (configure.ac): Likewise.
51724         * modules/javacomp-script (configure.ac): Likewise.
51725
51726         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
51727
51728 2006-07-30  Bruno Haible  <bruno@clisp.org>
51729
51730         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
51731         linked-list.
51732
51733 2006-07-30  Bruno Haible  <bruno@clisp.org>
51734
51735         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
51736
51737 2006-07-30  Bruno Haible  <bruno@clisp.org>
51738
51739         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51740         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
51741         get removed.
51742
51743 2006-07-29  Bruno Haible  <bruno@clisp.org>
51744
51745         Make it possible for gnulib-tool to work with locally modified or
51746         augmented gnulib repositories.
51747         * gnulib-tool (func_usage): Document --local-dir option.
51748         (local_gnulib_dir): New variable.
51749         Handle --local-dir option.
51750         (func_lookup_file): New function.
51751         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
51752         (func_get_description, func_get_filelist, func_get_description,
51753         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
51754         func_get_automake_snippet, func_get_include_directive,
51755         func_get_license, func_get_maintainer): Use func_lookup_file.
51756         (func_import, func_create_testdir): Use func_lookup_file.
51757
51758 2006-07-29  Bruno Haible  <bruno@clisp.org>
51759
51760         * modules/setenv (Depends-on): Add unistd.
51761
51762 2006-07-29  Bruno Haible  <bruno@clisp.org>
51763
51764         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
51765
51766 2006-07-29  Bruno Haible  <bruno@clisp.org>
51767
51768         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
51769
51770 2006-07-29  Bruno Haible  <bruno@clisp.org>
51771
51772         * gnulib-tool (import, update): If there is no Makefile.am, look at
51773         aclocal.m4, instead of bailing out.
51774
51775 2006-07-29  Bruno Haible  <bruno@clisp.org>
51776
51777         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
51778         Categorize the options by when they are useful.
51779
51780 2006-07-29  Bruno Haible  <bruno@clisp.org>
51781
51782         * gnulib-tool (func_usage): Document option --no-libtool.
51783         Handle option --no-libtool.
51784         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
51785         for changed semantics of $libtool variable.
51786         (func_import): Likewise. If libtool is not used, show this through
51787         an option --no-libtool.
51788         (func_create_testdir): Update.
51789
51790 2006-07-29  Bruno Haible  <bruno@clisp.org>
51791
51792         * gnulib-tool (func_import): Extend error message about missing
51793         --doc-base.
51794
51795 2006-07-29  Bruno Haible  <bruno@clisp.org>
51796
51797         * gnulib-tool (func_import): Don't create the $docbase directory if
51798         there is no file to store there.
51799
51800 2006-07-29  Bruno Haible  <bruno@clisp.org>
51801
51802         * gnulib-tool (autoconf_minversion): If a --dir option is given and
51803         relevant, look for configure.ac there, not in the current directory.
51804         Also use a simple search for AC_PREREQ, not "autoconf --trace".
51805
51806 2006-07-29  Bruno Haible  <bruno@clisp.org>
51807
51808         * gnulib-tool (SORT): New variable.
51809         (func_usage): Undocument --assume-autoconf option.
51810         Remove --assume-autoconf option handling.
51811         (autoconf_minversion): Determine from the contents of configure.ac.
51812         (func_import): Remove autoconf_minversion handling.
51813         Suggested by Eric Blake.
51814
51815 2006-07-29  Bruno Haible  <bruno@clisp.org>
51816
51817         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
51818
51819 2006-07-29  Bruno Haible  <bruno@clisp.org>
51820
51821         * config/srclist.txt (*setenv.[ch]): Remove rules.
51822
51823 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51824
51825         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
51826
51827 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51828
51829         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
51830         arpa/inet.h.
51831
51832 2006-07-28  Simon Josefsson  <jas@extundo.com>
51833
51834         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
51835         * modules/inet_pton (Depends-on): Likewise.
51836
51837 2006-07-28  Simon Josefsson  <jas@extundo.com>
51838
51839         * m4/netinet_in_h.m4: New file.
51840
51841 2006-07-28  Simon Josefsson  <jas@extundo.com>
51842
51843         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
51844         #include's.
51845
51846 2006-07-28  Simon Josefsson  <jas@extundo.com>
51847
51848         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
51849         #include's.
51850
51851 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
51852
51853         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
51854         setgid on directories only if they set these bits.
51855         * lib/modechange.h: Remove obsolete comment about masks.
51856
51857 2006-07-28  Eric Blake  <ebb9@byu.net>
51858
51859         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
51860         macro expansion.
51861
51862 2006-07-28  Bruno Haible  <bruno@clisp.org>
51863
51864         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
51865
51866 2006-07-28  Bruno Haible  <bruno@clisp.org>
51867
51868         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
51869
51870 2006-07-28  Bruno Haible  <bruno@clisp.org>
51871
51872         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51873         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51874         Define fallbacks.
51875         Avoids link error on FreeBSD 4.x.
51876         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51877
51878         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
51879         encoding.
51880         * lib/mbswidth.c (iswcntrl): Likewise.
51881
51882 2006-07-27  Bruno Haible  <bruno@clisp.org>
51883
51884         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
51885         test.
51886
51887 2006-07-27  Bruno Haible  <bruno@clisp.org>
51888
51889         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
51890         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
51891         defined.
51892
51893 2006-07-26  Eric Blake  <ebb9@byu.net>
51894
51895         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
51896
51897 2006-07-26  Eric Blake  <ebb9@byu.net>
51898
51899         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
51900         like mingw that lack mkstemp.
51901         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
51902         avoid compilation warning on mingw.
51903
51904 2006-07-26  Bruno Haible  <bruno@clisp.org>
51905
51906         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
51907         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
51908         INT_FAST*_MIN, INTPTR_MIN.
51909
51910 2006-07-25  Bruno Haible  <bruno@clisp.org>
51911
51912         * modules/version-etc (Depends-on): Add stdarg.
51913
51914 2006-07-25  Bruno Haible  <bruno@clisp.org>
51915
51916         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
51917         complex commands.
51918
51919 2006-07-25  Bruno Haible  <bruno@clisp.org>
51920
51921         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
51922         defined in <stdarg.h> or config.h.
51923
51924 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51925
51926         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
51927         (gl_STDIO_SAFER): Remove.
51928
51929 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51930
51931         * MODULES.html.sh (File stream based Input/Output):
51932         Add fopen-safer, tmpfile-safer; remove stdio-safer.
51933         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
51934         * modules/fopen-safer, modules/tmpfile-safer: New files.
51935         * modules/stdio-safer: Remove.
51936
51937 2006-07-24  Bruno Haible  <bruno@clisp.org>
51938
51939         * modules/tmpdir: New file.
51940         * MODULES.html.sh (File system functions): Add it.
51941
51942 2006-07-24  Bruno Haible  <bruno@clisp.org>
51943
51944         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
51945         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
51946
51947 2006-07-24  Bruno Haible  <bruno@clisp.org>
51948
51949         * modules/clean-temp: New file.
51950
51951 2006-07-24  Bruno Haible  <bruno@clisp.org>
51952
51953         * m4/tmpdir.m4: New file, from GNU gettext.
51954
51955 2006-07-24  Bruno Haible  <bruno@clisp.org>
51956
51957         * lib/tmpdir.h: New file, from GNU gettext.
51958         * lib/tmpdir.c: New file, from GNU gettext.
51959
51960 2006-07-24  Bruno Haible  <bruno@clisp.org>
51961
51962         * lib/clean-temp.h: New file, from GNU gettext.
51963         * lib/clean-temp.c: New file, from GNU gettext.
51964
51965 2006-07-23  Eric Blake  <ebb9@byu.net>
51966
51967         * modules/stdio-safer (Files): Add tmpfile-safer.c.
51968         (Depends-on): Add binary-io.
51969
51970 2006-07-23  Eric Blake  <ebb9@byu.net>
51971
51972         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
51973
51974 2006-07-23  Eric Blake  <ebb9@byu.net>
51975
51976         * lib/tmpfile-safer.c: New file.
51977         * lib/stdio-safer.h (fopen_safer): Add prototype.
51978         * lib/stdio--.h (tmpfile): Make safer.
51979
51980 2006-07-23  Bruno Haible  <bruno@clisp.org>
51981
51982         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
51983         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
51984         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
51985         gl_linked_remove_at): Use it.
51986
51987 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51988         and Simon Josefsson <jas@extundo.com>
51989
51990         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
51991
51992         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
51993
51994 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51995
51996         * modules/close-stream: New file.
51997         * modules/closeout (Description): Make it clear that it exits
51998         with a diagnostic on error.
51999         (Depends-on): Add close-stream.  Remove fpending, stdbool.
52000         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
52001
52002 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52003
52004         * m4/close-stream.m4: New file.
52005
52006 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52007
52008         * lib/close-stream.c, lib/close-stream.h: New files.
52009
52010 2006-07-22  Bruno Haible  <bruno@clisp.org>
52011
52012         Merge from GNU gettext 0.15.
52013
52014         2006-05-01  Bruno Haible  <bruno@clisp.org>
52015
52016                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
52017
52018         2006-07-22  Bruno Haible  <bruno@clisp.org>
52019
52020                 * modules/javaversion: New file.
52021                 * MODULES.html.sh (Java): Add javaversion.
52022
52023         2006-03-12  Bruno Haible  <bruno@clisp.org>
52024
52025                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
52026
52027         2005-12-04  Bruno Haible  <bruno@clisp.org>
52028
52029                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
52030                 (untested).
52031
52032         2006-06-21  Bruno Haible  <bruno@clisp.org>
52033
52034                 Avoid warnings from recent versions of mcs.
52035                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
52036                 -o, -L, -r any more. Use options documented since mcs-1.0
52037                 instead. Similarly for -g.
52038
52039         2005-12-04  Bruno Haible  <bruno@clisp.org>
52040
52041                 * build-aux/csharpcomp.sh.in: Suffix for resources is
52042                 .resources, not .resource.
52043
52044         2005-07-09  Bruno Haible  <bruno@clisp.org>
52045
52046                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
52047                 add a .dll suffix.
52048                 Reported by Mark Junker <mjscod@gmx.de>.
52049
52050         2006-07-22  Bruno Haible  <bruno@clisp.org>
52051
52052                 * modules/gettext: Upgrade to gettext-0.15.
52053                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
52054                 m4/visibility.m4.
52055                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
52056
52057 2006-07-22  Bruno Haible  <bruno@clisp.org>
52058
52059         Merge from GNU gettext 0.15.
52060
52061         2006-03-25  Bruno Haible  <bruno@clisp.org>
52062
52063                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
52064
52065         2006-07-21  Bruno Haible  <bruno@clisp.org>
52066
52067                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
52068                 "1.1".
52069
52070         2006-05-09  Bruno Haible  <bruno@clisp.org>
52071
52072                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
52073                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
52074                 for the conftestver execution.
52075
52076         2006-05-01  Bruno Haible  <bruno@clisp.org>
52077
52078                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
52079                 optional target-version argument. Verify that the compiler
52080                 groks source of the specified source-version, or add -source
52081                 option as necessary. Verify that the compiler produces
52082                 bytecode in the specified target-version, or add -target and
52083                 -source options as necessary. Make the result of the test
52084                 available as variable CONF_JAVAC. Also log error output in
52085                 config.log.
52086
52087         2006-03-11  Bruno Haible  <bruno@clisp.org>
52088
52089                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
52090
52091         2006-05-09  Bruno Haible  <bruno@clisp.org>
52092
52093                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
52094                 CLASSPATH_SEPARATOR to a semicolon.
52095
52096         2006-03-12  Bruno Haible  <bruno@clisp.org>
52097
52098                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
52099                 available as variable CONF_JAVA, for subsequent autoconf
52100                 tests. Also log error output in config.log.
52101
52102         2006-07-19  Bruno Haible  <bruno@clisp.org>
52103
52104                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
52105                 that getline works on glibc2 systems. Needed to avoid trouble
52106                 in relocatable.c.
52107                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
52108
52109         2005-12-04  Bruno Haible  <bruno@clisp.org>
52110
52111                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
52112                 launcher (untested).
52113
52114         2005-12-04  Bruno Haible  <bruno@clisp.org>
52115
52116                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
52117
52118         2006-07-22  Bruno Haible  <bruno@clisp.org>
52119
52120                 * gettext.m4: Update from GNU gettext-0.15.
52121                 * nls.m4: Likewise.
52122                 * po.m4: Likewise.
52123                 * inttypes-pri.m4: Likewise.
52124                 * inttypes-h.m4: Renamed from inttypes.m4.
52125                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
52126
52127 2006-07-22  Bruno Haible  <bruno@clisp.org>
52128
52129         Merge from GNU gettext 0.15.
52130
52131         2005-07-05  Bruno Haible  <bruno@clisp.org>
52132
52133                 * printf-args.c (printf_fetchargs): Work around broken
52134                 definition of wint_t on mingw.
52135
52136         2005-02-12  Bruno Haible  <bruno@clisp.org>
52137
52138                 * xallocsa.h: Add extern "C" for C++.
52139
52140         2006-05-17  Bruno Haible  <bruno@clisp.org>
52141
52142                 Cygwin portability.
52143                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
52144
52145         2006-04-30  Bruno Haible  <bruno@clisp.org>
52146
52147                 * progreloc.c: Include <mach-o/dyld.h> if available.
52148                 (find_executable): Use _NSGetExecutablePath when possible.
52149
52150         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52151
52152                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
52153                 function.
52154
52155         2005-12-29  Bruno Haible  <bruno@clisp.org>
52156
52157                 * progreloc.c (set_program_name_and_installdir): Fix
52158                 compilation error.
52159
52160         2005-12-04  Bruno Haible  <bruno@clisp.org>
52161
52162                 Cygwin portability.
52163                 * progreloc.c: Include <windows.h> also on Cygwin.
52164                 (find_executable): Add support for Cygwin.
52165                 (set_program_name_and_installdir): Handle also platforms with
52166                 nonempty EXEEXT.
52167
52168         2006-07-11  Bruno Haible  <bruno@clisp.org>
52169
52170                 * javacomp.c: Fix a comment.
52171                 Reported by Jim Meyering.
52172
52173         2006-04-30  Bruno Haible  <bruno@clisp.org>
52174
52175                 * javacomp.h (compile_java_class): Add source_version,
52176                 target_version arguments.
52177                 * javacomp.c: Rewritten to choose only a compiler that
52178                 respects the specified source_version and target_version.
52179
52180         2006-06-27  Bruno Haible  <bruno@clisp.org>
52181
52182                 Assume correct S_ISDIR macro.
52183                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
52184
52185         2006-07-22  Bruno Haible  <bruno@clisp.org>
52186
52187                 * javaversion.h: New file, from GNU gettext.
52188                 * javaversion.c: New file, from GNU gettext.
52189                 * javaversion.java: New file, from GNU gettext.
52190                 * javaversion.class: New file, from GNU gettext.
52191
52192         2006-05-17  Bruno Haible  <bruno@clisp.org>
52193
52194                 Cygwin portability.
52195                 * javaexec.c (execute_java_class): Test for jview program
52196                 also on Cygwin.
52197
52198         2006-04-09  Bruno Haible  <bruno@clisp.org>
52199
52200                 * fatal-signal.c: Don't include string.h.
52201                 (at_fatal_signal): Use a copying loop instead of memcpy.
52202
52203         2005-12-04  Bruno Haible  <bruno@clisp.org>
52204
52205                 * csharpexec.c: Add support for 'clix' launcher (untested).
52206                 (execute_csharp_using_sscli): New function.
52207                 (execute_csharp_program): Call it.
52208
52209         2006-06-21  Bruno Haible  <bruno@clisp.org>
52210
52211                 Avoid warnings from recent versions of mcs.
52212                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
52213                 -o, -L, -r any more. Use options documented since mcs-1.0
52214                 instead. Similarly for -g.
52215
52216         2005-07-09  Bruno Haible  <bruno@clisp.org>
52217
52218                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
52219                 add a .dll suffix.
52220                 Reported by Mark Junker <mjscod@gmx.de>.
52221
52222         2006-06-17  Bruno Haible  <bruno@clisp.org>
52223
52224                 * config.charset: Update for NetBSD 3.0.
52225
52226         2006-05-17  Bruno Haible  <bruno@clisp.org>
52227
52228                 Cygwin portability.
52229                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
52230
52231         2006-05-16  Bruno Haible  <bruno@clisp.org>
52232
52233                 * localcharset.c [CYGWIN]: Include <windows.h>.
52234                 (get_charset_aliases): For Cygwin, return the same CPxxx
52235                 aliases list as under WIN32.
52236                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
52237                 the environment variables. Fall back to GetACP().
52238
52239         2006-04-05  Bruno Haible  <bruno@clisp.org>
52240
52241                 * config.charset: Update Juan Manuel Guerrero's address.
52242
52243         2005-02-12  Bruno Haible  <bruno@clisp.org>
52244
52245                 * allocsa.h: Add extern "C" for C++.
52246
52247         2005-02-10  Bruno Haible  <bruno@clisp.org>
52248
52249                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
52250                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
52251
52252         2006-07-22  Bruno Haible  <bruno@clisp.org>
52253
52254                 * gettext.h: Update to GNU gettext-0.15.
52255
52256 2006-07-22  Bruno Haible  <bruno@clisp.org>
52257
52258         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
52259         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
52260         lib-prefix.m4, longdouble.m4, ssize_t.m4.
52261
52262 2006-07-21  Eric Blake  <ebb9@byu.net>
52263
52264         * modules/stdlib-safer: New file.
52265         * MODULES.html.sh (File stream based Input/Output): Add
52266         stdlib-safer.
52267
52268 2006-07-21  Eric Blake  <ebb9@byu.net>
52269
52270         * lib/stdlib-safer.h: New file from coreutils, required by
52271         stdlib--.h.
52272
52273 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
52274
52275         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
52276
52277 2006-07-20  Bruno Haible  <bruno@clisp.org>
52278
52279         * gnulib-tool: Recognize new option --assume-autoconf.
52280         (autoconf_minversion): New variable.
52281         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
52282
52283 2006-07-20  Bruno Haible  <bruno@clisp.org>
52284
52285         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
52286
52287 2006-07-19  Derek R. Price  <derek@ximbiot.com>
52288
52289         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
52290         Reindent and repaginate.
52291
52292 2006-07-19  Derek Price  <derek@ximbiot.com>
52293
52294         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
52295         Correct grammar.
52296
52297 2006-07-17  Bruno Haible  <bruno@clisp.org>
52298
52299         * modules/list: New file.
52300         * modules/array-list: New file.
52301         * modules/carray-list, modules/carray-list-tests: New files.
52302         * modules/linked-list, modules/linked-list-tests: New files.
52303         * modules/avltree-list, modules/avltree-list-tests: New files.
52304         * modules/rbtree-list, modules/rbtree-list-tests: New files.
52305         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
52306         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
52307         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
52308         * modules/oset: New file.
52309         * modules/array-oset: New file.
52310         * modules/avltree-oset, modules/avltree-oset-tests: New files.
52311         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
52312         * tests/test-carray_list.c: New file.
52313         * tests/test-linked_list.c: New file.
52314         * tests/test-avltree_list.c: New file.
52315         * tests/test-rbtree_list.c: New file.
52316         * tests/test-linkedhash_list.c: New file.
52317         * tests/test-avltreehash_list.c: New file.
52318         * tests/test-rbtreehash_list.c: New file.
52319         * tests/test-avltree_oset.c: New file.
52320         * tests/test-rbtree_oset.c: New file.
52321         * MODULES.html.sh (Container data structures): New section.
52322
52323 2006-07-17  Bruno Haible  <bruno@clisp.org>
52324
52325         * m4/gl_list.m4: New file.
52326
52327 2006-07-17  Bruno Haible  <bruno@clisp.org>
52328
52329         * lib/gl_list.h: New file.
52330         * lib/gl_list.c: New file.
52331         * lib/gl_array_list.h: New file.
52332         * lib/gl_array_list.c: New file.
52333         * lib/gl_carray_list.h: New file.
52334         * lib/gl_carray_list.c: New file.
52335         * lib/gl_linked_list.h: New file.
52336         * lib/gl_linked_list.c: New file.
52337         * lib/gl_anylinked_list1.h: New file.
52338         * lib/gl_anylinked_list2.h: New file.
52339         * lib/gl_avltree_list.h: New file.
52340         * lib/gl_avltree_list.c: New file.
52341         * lib/gl_anyavltree_list1.h: New file.
52342         * lib/gl_anyavltree_list2.h: New file.
52343         * lib/gl_rbtree_list.h: New file.
52344         * lib/gl_rbtree_list.c: New file.
52345         * lib/gl_anyrbtree_list1.h: New file.
52346         * lib/gl_anyrbtree_list2.h: New file.
52347         * lib/gl_anytree_list1.h: New file.
52348         * lib/gl_anytree_list2.h: New file.
52349         * lib/gl_linkedhash_list.h: New file.
52350         * lib/gl_linkedhash_list.c: New file.
52351         * lib/gl_anyhash_list1.h: New file.
52352         * lib/gl_anyhash_list2.h: New file.
52353         * lib/gl_avltreehash_list.h: New file.
52354         * lib/gl_avltreehash_list.c: New file.
52355         * lib/gl_rbtreehash_list.h: New file.
52356         * lib/gl_rbtreehash_list.c: New file.
52357         * lib/gl_anytreehash_list1.h: New file.
52358         * lib/gl_anytreehash_list2.h: New file.
52359
52360         * lib/gl_oset.h: New file.
52361         * lib/gl_oset.c: New file.
52362         * lib/gl_array_oset.h: New file.
52363         * lib/gl_array_oset.c: New file.
52364         * lib/gl_avltree_oset.h: New file.
52365         * lib/gl_avltree_oset.c: New file.
52366         * lib/gl_rbtree_oset.h: New file.
52367         * lib/gl_rbtree_oset.c: New file.
52368         * lib/gl_anytree_oset.h: New file.
52369
52370 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52371
52372         * m4/mkancesdirs.m4: New file.
52373         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
52374         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
52375         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
52376         it.
52377
52378 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52379
52380         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
52381         * lib/mkancesdirs.h: New files.
52382         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
52383         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
52384         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
52385         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
52386         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
52387         callers changed.  Revamp internals significantly, by not
52388         attempting to create directories that are temporarily more
52389         permissive than the final results.  Do not attempt to use
52390         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
52391         This removes some race conditions, fixes some bugs, and simplifies
52392         things.  Use new dirchownmod function to do owner and mode changes.
52393         * lib/mkdir-p.h: Likewise.
52394         * lib/modechange.c (octal_to_mode): New function.
52395         (struct mode_change): New member mentioned.
52396         (make_node_op_equals): New arg mentioned.  All callers changed.
52397         (mode_compile): Keep track of which mode bits the user has explicitly
52398         mentioned.
52399         (mode_adjust): New arg DIR, so that we implement the X op correctly.
52400         New arg PMODE_BITS, to keep track of which mode bits the user
52401         mentioned; it treats S_ISUID and S_ISGID speciall.
52402         All callers changed.
52403         * lib/modechange.h: Likewise.
52404
52405 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52406
52407         * MODULES.html.sh: Add mkancestors.
52408         * modules/mkancesdirs: New module.
52409         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
52410         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
52411         The chdir-safer and afs files are now orphans; I'll remove them
52412         unless someone speaks up.
52413         Add lib/dirchownmod.c, lib/dirchownmod.h.
52414         (Depends-on): Remove alloca, chown, save-cwd, dirname.
52415         Add lchown, mkancesdirs.
52416         (Maintainer): Add self.
52417
52418 2006-07-15  Karl Berry  <karl@gnu.org>
52419
52420         * gnulib-tool: help message wording/arrangement.
52421
52422 2006-07-14  Simon Josefsson  <jas@extundo.com>
52423
52424         * doc/gnulib.texi (Libtool and Windows): New section.
52425
52426 2006-07-12  Simon Josefsson  <jas@extundo.com>
52427
52428         * modules/gendocs (License): Fix license, approved by Karl.
52429
52430 2006-07-12  Eric Blake  <ebb9@byu.net>
52431
52432         * MODULES.html.sh: Add gendocs.
52433
52434 2006-07-11  Eric Blake  <ebb9@byu.net>
52435
52436         * modules/fdl: New module, to install doc/fdl.texi.
52437         * MODULES.html.sh: Add new section for documentation modules.
52438         * gnulib-tool: Avoid space-tab.
52439         (--doc-base): New option, to manage files from doc.
52440
52441 2006-07-11  Eric Blake  <ebb9@byu.net>
52442
52443         * m4/absolute-header.m4: Fix comments to match recent change.
52444
52445 2006-07-11  Eric Blake  <ebb9@byu.net>
52446
52447         * gnulib-tool: List --doc-base before --tests-base.
52448
52449 2006-07-11  Derek R. Price  <derek@ximbiot.com>
52450
52451         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
52452
52453 2006-07-11  Bruno Haible  <bruno@clisp.org>
52454
52455         * README: Mention where to put documentation.
52456
52457 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52458
52459         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
52460
52461 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52462
52463         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
52464         to stdint.m4.
52465
52466 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52467
52468         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
52469         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
52470         "no/such/file/stdint.h" when there is no such file, so that
52471         the resulting C code can be parsed by dodgy compilers.
52472         Problems reported by Bob Proulx.
52473
52474 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52475
52476         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
52477         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52478         macros into the GNU _D_EXACT_NAMLEN.
52479         * lib/savedir.c:  Likewise.
52480         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
52481
52482 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52483         and Paul Eggert  <eggert@cs.ucla.edu>
52484
52485         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
52486         * m4/savedir.m4:
52487         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52488         macros into the GNU _D_EXACT_NAMLEN.
52489
52490 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52491
52492         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
52493         around the absolute name, to work around a problem with the HP-UX
52494         11.23 native C compiler, reported by Bob Proulx.
52495
52496 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52497
52498         * doc/maintain.texi, make-stds.texi: Sync from
52499         <http://savannah.gnu.org/projects/gnustandards>.
52500
52501 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52502
52503         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
52504
52505 2006-07-09  Jim Meyering  <jim@meyering.net>
52506
52507         * m4/glob.m4: Remove a doubled word in a comment.
52508
52509 2006-07-09  Jim Meyering  <jim@meyering.net>
52510
52511         * lib/argp-pv.c: Remove a doubled word in a comment.
52512         * lib/check-version.c (check_version): Likewise.
52513         * lib/javacomp.c (compile_java_class): Likewise.
52514
52515 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52516
52517         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
52518         for the benefit of people using Autoconf 2.60.  If you want to
52519         support older Autoconf versions you can copy m4/onceonly_2_57.m4
52520         (or m4/onceonly.m4, if pre-2.57) manually.
52521
52522 2006-07-08  Jim Meyering  <jim@meyering.net>
52523
52524         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
52525         comment.
52526         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
52527         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
52528         comment.
52529
52530 2006-07-08  Jim Meyering  <jim@meyering.net>
52531
52532         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
52533
52534 2006-07-07  Simon Josefsson  <jas@extundo.com>
52535
52536         * tests/test-crc.c: Change expected crc value, the test vector
52537         were probably computed using the old broken crc.c?
52538
52539 2006-07-06  Simon Josefsson  <jas@extundo.com>
52540
52541         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
52542         now the canonical place for the M4 file).
52543
52544         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
52545         from the sys_socket dependency now.
52546
52547         * modules/inet_pton (Files): Ditto.
52548
52549         * modules/inet_ntop (Files): Ditto.
52550
52551 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52552
52553         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
52554         not gl_PREREQ_GETUSERSHELL.
52555
52556 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52557
52558         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
52559         with only one argument, for Autoconf 2.60.
52560         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
52561         expand to nothing, so add a shell command to avoid syntax error.
52562         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52563
52564 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52565
52566         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
52567
52568 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52569
52570         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
52571         no longer needed.  Check for isblank decl.
52572         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
52573         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
52574         of existence.
52575
52576 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52577
52578         * lib/getloadavg.c: Use __VMS, not VMS.
52579         * lib/getopt.c: Likewise.
52580         * lib/getpagesize.h: Likewise.
52581         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
52582         and probably does not work.
52583
52584 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52585
52586         * lib/.cppi-disable: Add wcwidth.
52587         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
52588         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
52589         (ISGRAPH): Remove.  All uses changed to isgraph.
52590         (FOLD) [!defined _LIBC]: Remove special case.
52591         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
52592         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
52593         HAVE_ISBLANK.
52594         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
52595         case.
52596
52597 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52598
52599         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
52600         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
52601         brackets.  Other minor changes to suppress some compiler
52602         warnings.
52603
52604 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52605         and Paul Eggert  <eggert@cs.ucla.edu>
52606
52607         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
52608         of invoking obsolescent AC_HEADER_DIRENT macro.
52609         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
52610         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
52611         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
52612         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
52613         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
52614         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52615         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
52616         * m4/readdir.m4: Remove; no longer needed.
52617
52618 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52619         and Paul Eggert  <eggert@cs.ucla.edu>
52620
52621         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
52622         Don't worry about this obsolete case any more.
52623         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
52624         directories.
52625         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
52626         worry about this obsolete case any more.
52627         * lib/fts.c: Likewise.
52628         * lib/getcwd.c: Likewise.
52629         * lib/glob.h: Likewise.
52630         * lib/savedir.c: Likewise.
52631
52632 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52633
52634         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
52635         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
52636         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
52637         needed.
52638         All uses removed.
52639         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52640         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52641         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
52642         needed.
52643         * m4/getdate.m4 (gl_GETDATE): Likewise.
52644         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52645         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52646         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52647         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52648         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52649         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52650         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
52651         needed.
52652
52653 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52654
52655         * lib/memcasecmp.c: Include <limits.h>.
52656         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
52657         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
52658         Don't assume isdigit succeeds only on '0' through '9'.
52659
52660 2006-07-05  Eric Blake  <ebb9@byu.net>
52661
52662         * modules/getaddrinfo (Depends-on): Add snprintf.
52663
52664 2006-07-05  Eric Blake  <ebb9@byu.net>
52665
52666         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
52667         to avoid 'header present but could not be compiled' on cygwin.
52668
52669 2006-07-05  Eric Blake  <ebb9@byu.net>
52670
52671         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
52672         missing from netdb.h.
52673         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
52674
52675 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52676
52677         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
52678         no longer needed.
52679         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
52680         * m4/getdate.m4 (gl_GETDATE): Likewise.
52681         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52682         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52683         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52684         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52685         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52686
52687 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52688
52689         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
52690         All uses of is_space replaced by isspace.
52691         * lib/exit.h: Don't talk about STDC_HEADERS.
52692         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
52693         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
52694         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
52695         replaced by isprint etc.
52696         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
52697         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52698         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
52699         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
52700         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
52701         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52702
52703 2006-07-05  Bruno Haible  <bruno@clisp.org>
52704
52705         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
52706         the function exists, before testing against AIX.
52707         Reported by Martin Lambers <marlam@marlam.de>.
52708
52709 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52710
52711         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
52712         From Mark D. Baushke.
52713
52714 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52715
52716         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
52717         to the absolute name, not just one, to bypass Sun C 5.8's
52718         "warning: #include of /usr/include/... may be non-portable".
52719
52720 2006-07-04  Eric Blake  <ebb9@byu.net>
52721
52722         * modules/dirname-tests: New test module.
52723         * tests/test-dirname.c: New file, replacing dirname.c
52724         TEST_DIRNAME section that was recently deleted.
52725
52726 2006-07-04  Bruno Haible  <bruno@clisp.org>
52727
52728         Assume ANSI C header files and <ctype.h> functions.
52729         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
52730         (mbsnwidth): Use isprint, iscntrl instead.
52731
52732 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52733
52734         Merge from coreutils.
52735         * MODULES.html.sh: Add xstrtold.
52736         * modules/xstrtold: New file.
52737         * modules/cycle-check (Files): Add lib/same-inode.h.
52738         * modules/dirname (Files): Add m4/double-slash-root.m4.
52739         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
52740         * modules/mkdir-p (Files): Add lib/same-inode.h.
52741         * modules/same (Files): Add lib/same-inode.h.
52742
52743 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52744
52745         * m4/absolute-header.m4: Renamed from full-header-path.m4.
52746         This is to keep the terminology clean; POSIX talks about
52747         "absolute pathnames", not "full pathnames", but the GNU
52748         Coding Standards say to use "path" for something else;
52749         so use "absolute" to keep both sides happy.
52750         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
52751         Set gl_absolute_header, not gl_full_header_path.
52752         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
52753         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
52754         All uses changed.
52755
52756         Merge from coreutils.
52757
52758         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52759
52760         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
52761         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
52762         want to require the building of c-strtod.o.
52763         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
52764         needs -lm directly.
52765         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
52766
52767         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
52768
52769         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
52770         --as-needed option if available.  Problem reported by Albert Chin in
52771         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
52772         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
52773         cc merely issues a bunch of annoying warnings for --as-needed
52774         (this problem was reported by Bob Proulx).  Also, try linking with
52775         -lm to detect a bug in binutils 2.16 (this problem was reported
52776         by Ralf Wildenhues).
52777
52778         2006-06-18  Jim Meyering  <jim@meyering.net>
52779
52780         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
52781         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
52782         macro.
52783         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
52784         also check for glibc-2.4's abort-inducing bug.
52785
52786         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
52787         Low-probability clean-up should be to use rmdir to get rid of
52788         the just-created directory, not unlink.
52789
52790         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
52791         configure fail, and request a bug report to inform us about it.
52792         Add a comment that, barring reports to the contrary, in 2007 we'll
52793         assume ftruncate is universally available.
52794
52795         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52796
52797         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
52798
52799         2006-03-12  Jim Meyering  <jim@meyering.net>
52800
52801         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
52802         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
52803         * m4/same.m4 (gl_SAME): Likewise.
52804         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
52805
52806         2006-03-11  Eric Blake  <ebb9@byu.net>
52807
52808         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
52809         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
52810         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
52811         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
52812
52813 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52814
52815         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
52816         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
52817         reported by Mark D. Baushke, one in
52818         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
52819
52820         Merge from coreutils.
52821
52822         * lib/.cppi-disable: Add stdint_.h.
52823         * lib/.cvsignore: Add stdint.h.
52824
52825         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52826
52827         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
52828         both double and long double versions.
52829         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
52830         * lib/xstrtold.c: New file.
52831         * lib/xstrtod.h (xstrtold): New decl.
52832
52833         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52834
52835         * lib/filemode.c (setst): Remove.
52836         (strmode): Rewrite to avoid setst.  This makes the code shorter,
52837         (arguably) clearer, and the generated code is a bit smaller on my
52838         Debian GNU/Linux stable x86 host.
52839
52840         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52841
52842         * lib/filemode.c: Include "filemode.h" first, to test the interface.
52843         Assume that filemode.h includes sys/types.h and sys/stat.h.
52844         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
52845         (ftypelet): Reorder to put common cases first, for efficiency.
52846         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
52847         to do 'M'.
52848         (strmode): Renamed from mode_string, and now stores 12 bytes instead
52849         of 10, for compatibility with FreeBSD.  All callers changed.
52850         (filemodestring): Now stores 12 bytes instead of 10, and sets file
52851         types that can't be deduced solely from st_mode.  First arg is now a
52852         const pointer.
52853         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
52854         (strmode): Renamed from mode_string.
52855         (filemodestring): New decl.
52856         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
52857         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
52858         needed.
52859         (S_ISPORT, S_ISWHT): New macros, if not already defined.
52860
52861         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52862
52863         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
52864         fsusage.h now does that.  Include fsusage.h first, to test interface.
52865         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
52866         at most one method (the old code could have generated decls that
52867         didn't conform to C89, not that this was ever exercised).
52868         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
52869
52870         2006-03-19  Jim Meyering  <jim@meyering.net>
52871
52872         Work even in a chroot where d_ino values for entries in "/"
52873         don't match the stat.st_ino values for the same names.
52874         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
52875         number, iterate through all entries again, using lstat instead.
52876         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
52877         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
52878
52879         * lib/getcwd.c (__getcwd): Clarify a comment.
52880         Use memcpy in place of a call to strcpy.
52881
52882         2006-03-12  Jim Meyering  <jim@meyering.net>
52883
52884         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
52885         matches that of the current directory (which we're about to chdir ".."
52886         out of), then save the dev-ino of the parent, instead.
52887
52888         * lib/same-inode.h (SAME_INODE): New file/macro.
52889         * lib/chdir-safer.c (SAME_INODE): Remove definition.
52890         Include "same-inode.h", instead.
52891         * lib/same.c: Likewise.
52892         * lib/cycle-check.h: Include "same-inode.h".
52893         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
52894         * lib/cycle-check.c (SAME_INODE): Remove definition.
52895         * lib/root-dev-ino.h: Include "same-inode.h".
52896
52897         2006-03-11  Eric Blake  <ebb9@byu.net>
52898
52899         * lib/same.c (same_name): s/base_name/last_component/
52900         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
52901         * lib/filenamecat.c (file_name_concat): Likewise.
52902
52903         2006-03-11  Eric Blake  <ebb9@byu.net>,
52904                     Paul Eggert  <eggert@cs.ucla.edu>
52905
52906         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
52907         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
52908         drive prefix.
52909         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
52910         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
52911         (last_component): New method.
52912         * lib/dirname.c (dir_len): Determine when drive letters need a
52913         subsequent slash.  Preserve // when it is special.
52914         (dir_name): Don't append dot when drive letter is absolute.
52915         [TEST_DIRNAME]: Move into a full-blown gnulib test.
52916         * lib/basename.c (base_name): New semantics - malloc the result.
52917         Preserve // when it is special.  Preserve relative files that look
52918         like drive letters.
52919         (base_len): Preserve // when it is special.
52920         (last_component): New method, similar to old base_name semantics.
52921         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
52922         base_name.  Strip redundant slashes from ///.
52923
52924 2006-07-03  Jim Meyering  <jim@meyering.net>
52925
52926         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
52927         macro is used before the first cycle_check call.
52928
52929 2006-07-03  Eric Blake  <ebb9@byu.net>
52930
52931         * modules/dirname (Depends-on): Add xstrndup.
52932
52933 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52934
52935         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
52936         test cases, so that config.log is a bit easier to follow.
52937
52938 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52939
52940         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
52941         both are 64 bits, since this seems to be the tradition, and this
52942         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
52943         we ever run into a host that prefers long long to long in this
52944         case, we'll need another configure-time test.  Problem reported by
52945         Jim Meyering.
52946
52947 2006-07-02  Eric Blake  <ebb9@byu.net>
52948
52949         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
52950
52951 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52952
52953         * modules/inttypes (Depends-on): No longer depends on stdint.
52954         * modules/stdint (Description): Say more about assumptions.
52955         Say that the fast types might differ.  Say macros are used.
52956         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
52957         (Makefile.am): Revise list of substituted symbols to match
52958         new stdint.m4.
52959         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
52960         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
52961         * tests/test-stdint.c (verify_same_types)
52962         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
52963         the code conforms to C99/C89.
52964         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
52965         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
52966
52967 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52968
52969         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
52970         but fix a bug, by requiring at least 64 bits.
52971         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52972         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
52973         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
52974         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
52975
52976         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
52977         changes.  Make 2.59 a prerequisite.  Check and substitute for
52978         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
52979         inttypes.h.  Do not use special include files; just use the
52980         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
52981         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
52982         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
52983         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
52984         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
52985         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
52986         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
52987         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
52988         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
52989         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
52990         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
52991         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
52992         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
52993         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
52994         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
52995         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
52996         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
52997         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
52998         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
52999         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
53000         WINT_MAX.  Check for C99 conformance more strictly, by detecting
53001         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
53002         not check for things that C99 does not require, e.g., int8_t.  If
53003         a test isn't needed unless <stdint.h> isn't working, and is
53004         unlikely to be needed for any other reason, then don't do it
53005         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
53006         size_t, since we assume C89 freestanding at least.  Do not check
53007         for sig_atomic_t, wchar_t, or wint_t, since the code now does
53008         the right thing even if the types are not defined.  Instead use:
53009         (gl_STDINT_TYPE_PROPERTIES): New macro.
53010         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
53011         testing whether <sys/types.h> clashes, as Autoconf does this for
53012         us now.  All uses removed.
53013         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
53014         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
53015         (gl_CHECK_TYPE_SAME):
53016         Remove; no longer needed.
53017         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
53018         exists, since we'll return 0 anyway in that case.
53019         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
53020
53021 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53022
53023         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
53024         possible collision with system files.
53025         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
53026         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
53027         WCHAR_MIN and WCHAR_MAX in this case.
53028         (<stddef.h>): Do not include; no longer needed.
53029         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
53030         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
53031         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
53032         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
53033         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
53034         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
53035         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
53036         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
53037         !defined(__c99))]: Include in this case too, since it's harmless
53038         now.
53039         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
53040         dangerous to do so.
53041         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
53042         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
53043         (_STDINT_MIN, _STDINT_MAX): New macros.
53044         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
53045         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
53046         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
53047         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
53048         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
53049         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
53050         macros, not typedefs; this simplifies things quite a bit.
53051         Use long int for all types narrower than int64_t.
53052         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
53053         Define in terms of long long int or int64_t or long int,
53054         not int64_t or int32_t.  This saves some compile-time testing.
53055         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
53056         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
53057         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
53058         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
53059         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
53060         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
53061         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
53062         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
53063         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
53064         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
53065         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
53066         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
53067         undef any previous version and define our own version, for
53068         simplicity and consistency with the new macros for types.
53069         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
53070         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
53071         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
53072         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
53073         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
53074         @WINT_T_SUFFIX@ to keep things simple here.
53075         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
53076         Simplify by assuming typical 8/16/32/64 host, since we're
53077         already doing that elsewhere anyway.
53078         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
53079         and assume long long int is 64 bits if available.  This
53080         speeds up 'configure'.
53081
53082 2006-07-01  Eric Blake  <ebb9@byu.net>
53083
53084         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
53085         Reported by Andreas Buening.
53086
53087 2006-07-01  Eric Blake  <ebb9@byu.net>
53088
53089         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
53090
53091 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53092
53093         * lib/getaddrinfo.c: fixed typo
53094
53095 2006-06-29  Jim Meyering  <jim@meyering.net>
53096
53097         * modules/strftime (Maintainer): Add my name, since with the
53098         FPRINTFTIME changes strftime.c has forked from glibc.
53099
53100 2006-06-29  Eric Blake  <ebb9@byu.net>
53101
53102         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
53103
53104 2006-06-29  Eric Blake  <ebb9@byu.net>
53105
53106         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
53107
53108 2006-06-29  Eric Blake  <ebb9@byu.net>
53109
53110         * lib/stat_.h: New file.
53111
53112 2006-06-29  Eric Blake  <ebb9@byu.net>
53113
53114         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
53115         unused static function.
53116
53117 2006-06-29  Eric Blake  <ebb9@byu.net>
53118
53119         * doc/functions.texi (Function Portability): Document missing lstat
53120         on mingw.
53121
53122 2006-06-29  Eric Blake  <ebb9@byu.net>
53123
53124         * MODULES.html.sh: Add sys_stat.
53125         * modules/sys_stat: New module.
53126         * modules/mkstemp (Depends-on): Add sys_stat.
53127
53128 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53129
53130         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
53131
53132 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53133
53134         * m4/c-bs-a.m4: Removed.
53135
53136 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53137
53138         * lib/strftime.c: Assume strftime() exists.
53139
53140 2006-06-29  Derek Price  <derek@ximbiot.com>
53141
53142         * modules/c-bs-a: Removed - \a is C89.
53143         * MODULES.html.sh: Remove c-bs-a.
53144
53145 2006-06-29  Bruno Haible  <bruno@clisp.org>
53146
53147         * modules/wcwidth (License): Change to LGPL.
53148
53149 2006-06-28  Simon Josefsson  <jas@extundo.com>
53150
53151         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
53152         on _WIN32.
53153
53154         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
53155         getnameinfo.
53156
53157 2006-06-28  Simon Josefsson  <jas@extundo.com>
53158
53159         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
53160
53161 2006-06-28  Simon Josefsson  <jas@extundo.com>
53162
53163         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
53164         functions there.  It will succeed on Windows XP, but on Windows
53165         2000 and (presumably) earlier, it will fail, and use the internal
53166         re-implementation.
53167         (use_win32_p): New function.
53168         (getaddrinfo): Use strtoul on servname, to support numeric ports.
53169         Support AI_NUMERICSERV to disable getservbyname.
53170         (getnameinfo): New function, only supports
53171         NI_NUMERICHOST|NI_NUMERICSERV for now.
53172
53173         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
53174         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
53175         getnameinfo.
53176
53177 2006-06-28  Eric Blake  <ebb9@byu.net>
53178
53179         * modules/wcwidth: New file.
53180         * modules/mbchar (Depends-on): Add wcwidth.
53181         * modules/mbswidth (Depends-on): Add wcwidth.
53182         * MODULES.html.sh: Add wcwidth.
53183
53184 2006-06-28  Eric Blake  <ebb9@byu.net>
53185
53186         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
53187         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
53188
53189 2006-06-28  Eric Blake  <ebb9@byu.net>
53190
53191         * lib/xvasprintf.h: Fix comments.
53192
53193 2006-06-28  Eric Blake  <ebb9@byu.net>
53194
53195         * lib/mbchar.h (wcwidth): Include wcwidth.h.
53196         * lib/mbswidth.c (wcwidth): Move from here...
53197         * lib/wcwidth.h: ...to this new file.
53198
53199 2006-06-28  Derek R. Price  <derek@ximbiot.com>
53200
53201         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
53202
53203         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
53204         it's obsolete.
53205         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
53206
53207 2006-06-28  Derek R. Price  <derek@ximbiot.com>
53208
53209         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
53210         Autoconf 2.60 says this stuff was obsolete.
53211
53212 2006-06-28  Bruno Haible  <bruno@clisp.org>
53213
53214         * modules/wcwidth (Files): Add m4/wchar_t.m4.
53215
53216 2006-06-28  Bruno Haible  <bruno@clisp.org>
53217
53218         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
53219         gt_TYPE_WCHAR_T.
53220
53221 2006-06-28  Bruno Haible  <bruno@clisp.org>
53222
53223         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
53224         declaration for wcwidth.
53225         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
53226
53227 2006-06-28  Bruno Haible  <bruno@clisp.org>
53228
53229         * lib/mkdtemp.c [MINGW]: Include <io.h>.
53230         (mkdir): Define using _mkdir.
53231
53232 2006-06-28  Bruno Haible  <bruno@clisp.org>
53233
53234         * lib/getaddrinfo.h: Fix POSIX URL.
53235         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
53236         _WIN32.
53237         (use_win32_p): Make static.
53238         (getaddrinfo): Reject service name if it is empty or does not consist
53239         solely of decimal digits, or if its value is > 65535.
53240         (getnameinfo): Remove useless casts.
53241
53242 2006-06-27  Simon Josefsson  <jas@extundo.com>
53243
53244         * modules/sys_select: New file, suggested by Bruno Haible, Paul
53245         Eggert and Martin Lambers.
53246
53247 2006-06-27  Simon Josefsson  <jas@extundo.com>
53248
53249         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
53250         Eggert and Martin Lambers.
53251
53252 2006-06-27  Bruno Haible  <bruno@clisp.org>
53253
53254         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
53255         result to 0, not to empty.
53256         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
53257
53258 2006-06-27  Bruno Haible  <bruno@clisp.org>
53259
53260         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
53261
53262 2006-06-26  Simon Josefsson  <jas@extundo.com>
53263
53264         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
53265         present.
53266
53267 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
53268
53269         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
53270         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
53271         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
53272
53273 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
53274
53275         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
53276
53277 2006-06-26  Bruno Haible  <bruno@clisp.org>
53278
53279         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
53280
53281 2006-06-26  Bruno Haible  <bruno@clisp.org>
53282
53283         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
53284
53285 2006-06-26  Bruno Haible  <bruno@clisp.org>
53286
53287         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
53288         SGI C compiler in pre-C99 mode.
53289         Suggested by Mark D. Baushke and Larry Jones.
53290
53291 2006-06-26  Bruno Haible  <bruno@clisp.org>
53292
53293         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
53294         WCHAR_MAX.
53295         Reported by Mark D. Baushke and Larry Jones.
53296
53297 2006-06-26  Bruno Haible  <bruno@clisp.org>
53298
53299         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
53300         in pre-C99 mode.
53301         Suggested by Mark D. Baushke and Larry Jones.
53302
53303 2006-06-23  Simon Josefsson  <jas@extundo.com>
53304             Bruno Haible  <bruno@clisp.org>
53305
53306         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
53307         Emit mostlyclean-local rule.
53308         (func_emit_tests_Makefile_am): Likewise.
53309         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
53310
53311 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
53312
53313         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
53314
53315 2006-06-23  Bruno Haible  <bruno@clisp.org>
53316
53317         * tests/test-stdint.c: Update to match ISO C 99 Technical
53318         Corrigendum 1.
53319
53320 2006-06-23  Bruno Haible  <bruno@clisp.org>
53321
53322         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
53323
53324 2006-06-23  Bruno Haible  <bruno@clisp.org>
53325
53326         * lib/stdint_.h: Treat IRIX like OpenBSD.
53327
53328 2006-06-23  Bruno Haible  <bruno@clisp.org>
53329
53330         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
53331         ISO C 99 Technical Corrigendum 1.
53332
53333 2006-06-22  Simon Josefsson  <jas@extundo.com>
53334
53335         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
53336         MinGW.
53337
53338 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53339
53340         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
53341         needed.  Some compiler complained about some of them.  Problem reported
53342         by Larry Jones in
53343         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
53344
53345 2006-06-21  Simon Josefsson  <jas@extundo.com>
53346
53347         * tests/test-getaddrinfo.c: New file.
53348
53349         * modules/getaddrinfo-tests: New file.
53350
53351         * MODULES.html.sh: Add inet_pton.
53352
53353         * modules/inet_pton: New file.
53354
53355 2006-06-21  Simon Josefsson  <jas@extundo.com>
53356
53357         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
53358         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
53359         of using the (limited) gnulib implementation on Windows XP.
53360
53361         * m4/inet_pton.m4: New file.
53362
53363 2006-06-21  Simon Josefsson  <jas@extundo.com>
53364
53365         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
53366         variable.
53367
53368         * lib/socket_.h: Don't define WINVER.
53369
53370         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
53371         slightly modified to work in gnulib.
53372
53373 2006-06-21  Simon Josefsson  <jas@extundo.com>
53374
53375         * doc/gnulib.texi (Windows sockets): Add.
53376
53377 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53378
53379         * lib/read-file.c (fread_file): Start with buffer allocation of
53380         0 bytes rather than 1 byte; this simplifies the code.
53381         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
53382         code to free buffer and save/restore errno.
53383         (internal_read_file): Remove unused local.
53384
53385 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53386
53387         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
53388         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
53389         Problem reported by Denis Excoffier in
53390         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
53391
53392 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53393
53394         * modules/sys_socket, modules/socklen: Include sys/types since
53395         FreeBSD 4.x's sys/socket.h needs it.
53396
53397 2006-06-19  Simon Josefsson  <jas@extundo.com>
53398
53399         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
53400
53401 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53402
53403         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
53404
53405 2006-06-19  Bruno Haible  <bruno@clisp.org>
53406
53407         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
53408         and FULL_PATH_INTTYPES_H in angle brackets.
53409         Reported by Mark D. Baushke <mdb@gnu.org>.
53410
53411 2006-06-17  Eric Blake  <ebb9@byu.net>
53412
53413         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
53414         errno.
53415
53416 2006-06-17  Bruno Haible  <bruno@clisp.org>
53417
53418         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
53419         <sys/inttypes.h>.
53420
53421 2006-06-17  Bruno Haible  <bruno@clisp.org>
53422
53423         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
53424         whether errno is declared. Assume <errno.h> declares errno.
53425
53426 2006-06-17  Bruno Haible  <bruno@clisp.org>
53427
53428         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
53429
53430 2006-06-17  Bruno Haible  <bruno@clisp.org>
53431
53432         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
53433         problem on Solaris 2.5.1.
53434
53435 2006-06-16  Eric Blake  <ebb9@byu.net>
53436
53437         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
53438         * lib/unicodeio.c [!defined errno]: Likewise.
53439         * lib/strtol.c [!defined errno]: Likewise.
53440         * lib/strtod.c [!defined errno]: Likewise.
53441
53442 2006-06-15  Eric Blake  <ebb9@byu.net>
53443
53444         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
53445
53446 2006-06-15  Eric Blake  <ebb9@byu.net>
53447
53448         * config/srclist.txt (ssize_t.m4): Lose sync.
53449
53450 2006-06-15  Bruno Haible  <bruno@clisp.org>
53451
53452         * modules/stdint (Files): Include m4/full-header-path.m4,
53453         m4/size_max.m4, m4/wchar_t.m4.
53454         (Makefile.am): Many more substitutions.
53455         * modules/stdint-tests: New file.
53456         * tests/test-stdint.c: New file.
53457
53458 2006-06-15  Bruno Haible  <bruno@clisp.org>
53459
53460         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
53461         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
53462         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
53463         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
53464         gl_CHECK_TYPE_SAME): New macros.
53465
53466 2006-06-15  Bruno Haible  <bruno@clisp.org>
53467
53468         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
53469
53470 2006-06-15  Bruno Haible  <bruno@clisp.org>
53471
53472         * lib/stdint_.h: Rewritten to be fully auto-configured.
53473         Fixes bug on HP-UX/IA64.
53474
53475 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
53476
53477         * lib/getdate.y (__attribute__): Don't define if already defined.
53478         Problem reported by Larry Jones.
53479         * lib/utimens.c (__attribute__): Likewise.
53480
53481 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
53482
53483         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
53484         reported by Andreas Schwab.
53485
53486 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53487             Bruno Haible  <bruno@clisp.org>
53488
53489         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
53490         check for the declaration of strnlen and a run test that exposes the
53491         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
53492         rpl_strndup.
53493
53494 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53495             Bruno Haible  <bruno@clisp.org>
53496
53497         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
53498
53499 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53500
53501         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
53502         compile test, for Tru64 4.0D.
53503
53504 2006-05-28  Karl Berry  <karl@gnu.org>
53505
53506         * config/srclist.txt (printf-args.c): lose sync.
53507
53508 2006-05-26  Martin Lambers  <marlam@marlam.de>
53509
53510         * lib/getpass.c: Updates the test for the native W32 API, and adds
53511         missing includes, thus fixing compilation warnings.
53512
53513 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
53514
53515         * lib/exclude.c (exclude_fnmatch): New function.
53516         (excluded_file_name): Call exclude_fnmatch.
53517         * lib/exclude.h (excluded_file_name): New prototype
53518
53519 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
53520
53521         * lib/tempname.c (small_open, large_open): New macros.
53522         (__open, __open64) [!_LIBC]: Remove.
53523         (__gen_tempname): Use small_open and large_open instead of __open
53524         and __open64.  This fixes a portability bug on HP-UX 11.11i
53525         reported by Simon Wing-Tang in
53526         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
53527
53528 2006-05-24  Bruno Haible  <bruno@clisp.org>
53529
53530         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
53531         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
53532         Reported by Thorsten Maerz <torte@netztorte.de> via
53533         Aaron Stone <aaron@serendipity.cx>.
53534
53535 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53536
53537         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
53538         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
53539         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
53540         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
53541         not really conditional on the cache.
53542         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
53543
53544 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53545
53546         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
53547         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
53548         (my_usleep): Don't mishandle maximum value.
53549
53550 2006-05-19  Jim Meyering  <jim@meyering.net>
53551
53552         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
53553
53554 2006-05-17  Bruno Haible  <bruno@clisp.org>
53555
53556         Cygwin portability.
53557         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
53558
53559 2006-05-17  Bruno Haible  <bruno@clisp.org>
53560
53561         * lib/stdint_.h: Fix recognition of Cygwin.
53562
53563 2006-05-15  Bruno Haible  <bruno@clisp.org>
53564
53565         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
53566         on libtool patch by Ralf Wildenhues.
53567
53568 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53569
53570         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
53571         test for C99 conformance; (bool) 0.5 is an integer constant
53572         expression, but (bool) -0.5 is not.  Problem reported by Fedor
53573         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
53574
53575 2006-05-11  Simon Josefsson  <jas@extundo.com>
53576
53577         * m4/xvasprintf.m4: Fix obvious typo.
53578
53579 2006-05-11  Jim Meyering  <jim@meyering.net>
53580
53581         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
53582         James Lemley.
53583
53584 2006-05-10  Simon Josefsson  <jas@extundo.com>
53585
53586         * lib/md4.c: Typo fix, update copyright years.
53587         (K1, K2): Don't use L because it turn computations into 64-bit on
53588         64-bit platforms.
53589
53590 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
53591
53592         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
53593         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
53594         unwanted sign propagation, e.g., on hosts with 64-bit int.
53595         There still are some problems with reeelly weird theoretical hosts
53596         (e.g., 33-bit int) but it's not worth worrying about now.
53597         * lib/sha1.c (rol): Likewise.
53598         (K1, K2, K3, K4): Remove unnecessary L suffix.
53599
53600 2006-05-10  Bruno Haible  <bruno@clisp.org>
53601
53602         * lib/des.c: Cast to avoid warnings.
53603
53604 2006-05-09  Bruno Haible  <bruno@clisp.org>
53605
53606         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
53607         (Depends-on): Depend also on xsize, stdarg.
53608         (configure.ac): Add gl_XVASPRINTF.
53609
53610 2006-05-09  Bruno Haible  <bruno@clisp.org>
53611
53612         * m4/xvasprintf.m4: New file.
53613
53614 2006-05-09  Bruno Haible  <bruno@clisp.org>
53615
53616         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
53617         (EOVERFLOW): Define fallback value.
53618         (xstrcat): New function.
53619         (xvasprintf): Recognize the special case of a string concatenation.
53620
53621 2006-05-08  Eric Blake  <ebb9@byu.net>
53622
53623         * gnulib-tool (func_version): Base copyright year on CVS date.
53624         (func_emit_copyright_notice): New function.
53625         (func_emit_lib_Makefile_am): Use it.
53626         (func_emit_tests_Makefile_am): Likewise.
53627         (func_import): Likewise.
53628
53629 2006-05-08  Bruno Haible  <bruno@clisp.org>
53630
53631         * modules/stdarg: New file.
53632         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
53633
53634 2006-05-08  Bruno Haible  <bruno@clisp.org>
53635
53636         * m4/stdarg.m4: New file, from GNU gettext.
53637
53638 2006-05-08  Bruno Haible  <bruno@clisp.org>
53639
53640         * config/srclist.txt (build-aux/config.rpath): different from latest
53641         release.
53642
53643 2006-05-08  Bruno Haible  <bruno@clisp.org>
53644
53645         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
53646
53647 2006-05-05  Jim Meyering  <jim@meyering.net>
53648
53649         * m4/warning.m4: New file, derived from bison's file by the same name.
53650
53651 2006-05-03  Bruno Haible  <bruno@clisp.org>
53652
53653         * lib/stdint_.h: Shorter URL.
53654         * lib/inttypes.h: Likewise.
53655
53656 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53657
53658         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
53659
53660 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53661
53662         * lib/verify.h: Document the internals better.  Most of this change
53663         was written by Bruno Haible.
53664
53665 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53666
53667         * doc/verify.texi: New file, partly based on a proposal by
53668         Bruno Haible.
53669
53670 2006-05-02  Bruno Haible  <bruno@clisp.org>
53671
53672         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
53673         test from here...
53674         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
53675
53676 2006-04-29  Bruno Haible  <bruno@clisp.org>
53677
53678         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
53679         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
53680
53681 2006-04-29  Bruno Haible  <bruno@clisp.org>
53682
53683         * gnulib-tool: Make --update option actually work.
53684
53685 2006-04-29  Bruno Haible  <bruno@clisp.org>
53686
53687         * doc/gcd.texi: New file.
53688         * doc/gnulib.texi: Include it.
53689
53690 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53691
53692         * lib/getdate.y (get_date): When adding relative date, start with the
53693         initial time, not with the result of the first mktime call.
53694
53695 2006-04-25  Bruno Haible  <bruno@clisp.org>
53696
53697         * gnulib-tool (func_import): Output the include directives in three
53698         blocks, sorted separately.
53699         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53700
53701 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53702
53703         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
53704         to define main with arguments, for C++.  Reported by Eric Blake.
53705         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
53706         Prefer 'int main ()' to 'int main (void)', for C++.
53707         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
53708         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
53709         for 'main', for C99 and C++.
53710
53711 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53712
53713         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
53714         Don't assume that exit status -1 is valid.
53715         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53716         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53717         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
53718         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
53719         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
53720         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
53721         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
53722         functions can be used without declaring them, or that you can
53723         exit with status -1.
53724         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
53725
53726 2006-04-24  Karl Berry  <karl@gnu.org>
53727
53728         * config/srclist.txt (longdouble.m4): sync lost.
53729
53730 2006-04-24  Eric Blake  <ebb9@byu.net>
53731
53732         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
53733
53734 2006-04-24  Bruno Haible  <bruno@clisp.org>
53735
53736         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
53737         poll() implementation in AIX.
53738         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53739
53740 2006-04-24  Bruno Haible  <bruno@clisp.org>
53741
53742         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
53743         assigned exactly once.
53744
53745 2006-04-23  Claudio Fontana  <claudio@gnu.org>
53746             Bruno Haible  <bruno@clisp.org>
53747
53748         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
53749         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
53750         for AM_CPPFLAGS.
53751
53752 2006-04-23  Bruno Haible  <bruno@clisp.org>
53753
53754         * modules/copy-file: Depend on unistd.
53755         * modules/execute: Likewise.
53756         * modules/fatal-signal: Likewise.
53757         * modules/findprog: Likewise.
53758         * modules/mkdtemp : Likewise.
53759         * modules/pipe: Likewise.
53760         * modules/wait-process: Likewise.
53761
53762 2006-04-23  Bruno Haible  <bruno@clisp.org>
53763
53764         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
53765         condition was already detected.
53766         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53767
53768 2006-04-23  Bruno Haible  <bruno@clisp.org>
53769
53770         * lib/copy-file.c: Include <unistd.h> unconditionally.
53771         * lib/execute.c: Likewise.
53772         * lib/fatal-signal.c: Likewise.
53773         * lib/findprog.c: Likewise.
53774         * lib/mkdtemp.c: Likewise.
53775         * lib/pipe.h: Likewise.
53776         * lib/pipe.c: Likewise.
53777         * lib/wait-process.h: Likewise.
53778
53779 2006-04-23  Bruno Haible  <bruno@clisp.org>
53780
53781         * gnulib-tool (func_usage): Fix --import description. Document
53782         --update.
53783         (func_import): Create temporary file in a temporary directory, if
53784         --dry-run is specified. Silence errors from 'grep' when there are no
53785         m4 files in $m4dir.
53786         (func_create_testdir): Silence errors from 'grep' when there are no
53787         m4 files in $m4dir.
53788         Reported by Karl Berry <karl@freefriends.org>.
53789
53790 2006-04-20  Bruno Haible  <bruno@clisp.org>
53791
53792         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
53793         one argument, so that the code will be portable to Autoconf 2.60.
53794         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
53795         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53796         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
53797
53798 2006-04-19  Derek Price  <derek@ximbiot.com>
53799             Eric Blake  <ebb9@byu.net>
53800
53801         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
53802         rather than "/full/path.h".  Update comment to match.  Shorten &
53803         generalize m4_translit call via AS_TR_CPP.
53804
53805 2006-04-19  Derek Price  <derek@ximbiot.com>
53806             Eric Blake  <ebb9@byu.net>
53807
53808         * lib/inttypes.h: Correct grammar in comment.
53809
53810 2006-04-18  Derek Price  <derek@ximbiot.com>
53811             Paul Eggert  <eggert@cs.ucla.edu>
53812
53813         * modules/inttypes: New file.
53814         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
53815
53816 2006-04-18  Derek Price  <derek@ximbiot.com>
53817             Paul Eggert  <eggert@cs.ucla.edu>
53818
53819         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
53820         New files.
53821
53822 2006-04-18  Derek Price  <derek@ximbiot.com>
53823             Paul Eggert  <eggert@cs.ucla.edu>
53824
53825         * lib/inttypes.h: New file.
53826         * lib/strtoimax.c: Assume <inttypes.h>.
53827
53828 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
53829
53830         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
53831         isn't mounted.  Problem reported by Kir Kolyshkin.
53832
53833 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53834
53835         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
53836         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
53837         Derek R. Price.
53838         * lib/regex.h (RE_DUP_MAX): Update comment to match current
53839         implementation.
53840
53841 2006-04-12  Eric Blake  <ebb9@byu.net>
53842
53843         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
53844         is now done automatically by the corresponding Autoconf macro.
53845
53846 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
53847
53848         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
53849         time_r.h.
53850
53851 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53852
53853         Merge regex changes from libc, removing some of our
53854         POSIX-conformance changes that were rejected and redoing them in a
53855         less-intrusive way.
53856
53857         * lib/regcomp.c (re_compile_internal, init_dfa):
53858         Length arg is now size_t, not Idx.  All uses changed.
53859         (peek_token): Forward decl now says internal_function.
53860         (__re_error_msgid, __re_error_msgid_idx):
53861         Now static rather than extern with attribute_hidden.
53862         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
53863         For some reason libc prefers K&R style defns for external functions.
53864         (regerror) [!defined _LIBC]: Likewise.
53865         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
53866         (seek_collating_symbol_entry, lookup_collation_sequence_value):
53867         (build_range_exp, build_collating_symbol):
53868         Use K&R-style defn.
53869         (re_compile_fastmap): Use '\0' to memset, not 0.
53870         (utf8_sb_map): Make the calculations more obvious.
53871         (init_dfa, parse_bracket_exp, build_charclass_op):
53872         Call calloc and cast result, as glibc does.
53873         (init_word_char, fetch_token, peek_token, peek_token_bracket):
53874         (build_range_exp, build_collating_symbol):
53875         Now internal functions.
53876
53877         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
53878
53879         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
53880         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
53881         Don't depend on VMS; depend on __VMS instead, for POSIX
53882         namespace cleanness.
53883         (regoff_t): Define to ssize_t, not long int.
53884
53885         Remove the REG_ macros named below.  Instead, make the old names
53886         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
53887         __USE_GNU_REGEX.
53888         (REG_BACKSLASH_ESCAPE_IN_LISTS):
53889         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
53890         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
53891         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
53892         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
53893         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
53894         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
53895         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
53896         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
53897         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
53898         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
53899         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
53900         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
53901         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
53902         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
53903         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
53904         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
53905         (REG_NREGS):
53906         Remove.  All uses replaced by the old RE_* names.
53907         (RE_BACKSLASH_ESCAPE_IN_LISTS):
53908         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
53909         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
53910         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
53911         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
53912         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
53913         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
53914         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
53915         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
53916         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
53917         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
53918         Don't bother having these macros be independent of each others'
53919         values, since they no longer exist in the POSIX name space.
53920
53921         Rename the following member names back to their old names,
53922         unless !__USE_GNU_REGEX.  All uses changed back.
53923         (buffer): Renamed from re_buffer.
53924         (allocated): Renamed from re_allocated.
53925         (used): Renamed from re_used.
53926         (syntax): Renamed from re_syntax.
53927         (fastmap): Renamed from re_fastmap.
53928         (translate): Renamed from re_translate.
53929         (can_be_null): Renamed from re_can_be_null.
53930         (regs_allocated): Renamed from re_regs_allocated.
53931         (fastmap_accurate): Renamed from re_fastmap_accurate.
53932         (no_sub): Renamed from re_no_sub.
53933         (not_bol): Renamed from re_not_bol.
53934         (not_eol): Renamed from re_not_eol.
53935         (newline_anchor): Renamed from re_newline_anchor.
53936         (num_regs): Renamed from rm_num_regs.
53937         (start): Renamed from rm_start.
53938         (end): Renamed from rm_end.
53939
53940         (free_state): Move up a bit.
53941
53942         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
53943         #define to be empty.
53944         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
53945         when that is what is intended.
53946         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
53947         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
53948         (MAX): New macro.
53949         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
53950         All uses changed back to re_malloc, etc.  It's now the caller's
53951         responsibility to check for overflow; all callers changed.
53952         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
53953         (re_x2nrealloc): Remove.
53954         (free_state): Remove decl.
53955
53956         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
53957         (re_set_registers, re_exec):
53958         Use K&R-style defn.
53959
53960         2006-01-31  Roland McGrath  <roland@redhat.com>
53961
53962         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
53963         Reported by Mike Frysinger <vapier@gentoo.org>.
53964
53965         2006-01-15  Andreas Jaeger  <aj@suse.de>
53966
53967         [BZ #1950]
53968         * lib/regex_internal.c (re_string_reconstruct): Adjust for
53969         build_wcs_upper_buffer change.
53970         (build_wcs_upper_buffer): Change return type.
53971
53972         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
53973
53974         * lib/regex_internal.h: Include <stdint.h> if available.
53975
53976         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
53977
53978         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
53979
53980         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53981
53982         * lib/regcomp.c: Adjust for changed secondary hash function.
53983
53984         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
53985
53986         * lib/regex.h: Pretty printing.
53987         Clean up namespace a bit.
53988
53989         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
53990
53991         * lib/regexec.c (update_cur_sifted_state, check_arrival,
53992         check_arrival_add_next_nodes): Avoid using uninitialized variable.
53993
53994         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53995                     Ulrich Drepper  <drepper@redhat.com>
53996
53997         [BZ #1302]
53998         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
53999         changed.
54000         (bitset_word_t): Renamed from bitset_word.  All uses changed.
54001
54002         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
54003
54004         [BZ #281]
54005         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
54006         * lib/regcomp.c: Remove unnecessary uses of
54007         unsigned RE_TRANSLATE_TYPE.
54008         * lib/regex_internal.h: Likewise.
54009         * lib/regex_internal.c: Likewise.
54010         * lib/regexec.c: Likewise.
54011         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
54012
54013         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
54014
54015         * lib/regexec.c (find_recover_state): Remove unnecessary
54016         initialization.
54017         (transit_state_bkref): Make DFA a const pointer.
54018         (get_subexp): Likewise.
54019         (check_arrival): Likewise.
54020         (update_cur_sifted_state): Likewise.
54021         (re_search_internal): Likewise.
54022         (prune_impossible_nodes): Likewise.
54023         (acquire_init_state_context): Likewise.
54024         (proceed_next_node): Likewise.
54025         (set_regs): Likewise.
54026         (free_fail_stack_return): Likewise.
54027         (check_arrival_expand_ecl): Mark DFA parameter as const.
54028         (check_arrival_expand_ecl_sub): Likewise.
54029         (check_subexp_limits): Likewise.
54030         (sub_epsilon_src_nodes):  Likewise.
54031         (add_epsilon_src_nodes):  Likewise.
54032         (merge_state_array): Likewise.
54033         (update_regs): Likewise.
54034         (build_trtable): Likewise.
54035         (sift_states_backward): Mark MCTX parameter as const.
54036         (build_sifted_states): Likewise.
54037         (update_cur_sifted_state): Likewise.
54038         (sift_states_mkref): Likewise.
54039         (check_arrival_expand_ecl): Mark eclosure as const.
54040         (check_dst_limits_calc_pos_1): Likewise.
54041         * lib/regex_internal.h (re_match_context_t): Make dfa a const
54042         pointer.
54043
54044         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
54045
54046         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
54047         (transit_state_sb): Likewise.
54048         (transit_state_mb): Likewise.
54049         (sift_states_iter_mb): Likewise.
54050         (check_arrival_add_next_nodes): Likewise.
54051         (check_node_accept_bytes): Change first parameter to pointer-to-const.
54052         [_LIBC] (re_search_2_stub): Use mempcpy.
54053
54054         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
54055         mbrtowc for very simple UTF-8 case.
54056
54057         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
54058         a pointer-to-const.
54059         (re_acquire_state_context): Likewise.
54060         * lib/regex_internal.h: Adjust prototypes.
54061
54062         * lib/regex.c: Prevent using C++ compilers.
54063
54064         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
54065         (re_acquire_state_context): Likewise.
54066
54067 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54068
54069         * modules/regex (Depends-on): Add ssize_t.
54070
54071 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54072
54073         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
54074         translation table.
54075
54076 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54077
54078         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
54079
54080 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
54081             Bruno Haible  <bruno@clisp.org>
54082
54083         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
54084         <sys/types.h> and <inttypes.h>.
54085
54086 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54087
54088         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
54089         `__error_t_defined', so argp.h will not typedef the former.
54090
54091 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
54092
54093         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
54094         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
54095         glibc names.  Even if glibc is changed to conform to POSIX, the
54096         traditional names will be available anyway, since regex depends on
54097         the extensions module.  Also, fix a longstanding typo in the
54098         implementation of Spencer ERE test #75 from grep 2.3.  Problems
54099         reported by Emanuele Giaquinta.  Also, change sense of cached
54100         variable, so that the message makes sense.
54101
54102 2006-03-24  Simon Josefsson  <jas@extundo.com>
54103
54104         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
54105         including some doc fixes.
54106         (base64_encode_alloc): Fix +1 bug on allocation failures.
54107
54108 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54109
54110         * lib/base64.c (base64_encode): Do not read past end of array with
54111         unsanitized input on systems with CHAR_BIT > 8.
54112
54113 2006-03-24  Eric Blake  <ebb9@byu.net>
54114
54115         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
54116
54117 2006-03-22  Karl Berry  <karl@gnu.org>
54118
54119         * config/srclist.txt (*setenv.[ch]): get from coreutils.
54120         * config/srclistvars.sh (COREUTILS): new var.
54121
54122 2006-03-17  Jim Meyering  <jim@meyering.net>
54123
54124         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
54125         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
54126
54127 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
54128
54129         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
54130         no longer needs it.  Instead, check that regoff_t is as least
54131         as wide as ptrdiff_t.
54132
54133         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
54134         so that our regex.h stays compatible with the installed regex.
54135         This is helpful for installers who configure --without-included-regex.
54136         Problem reported by Emanuele Giaquinta.
54137
54138 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
54139
54140         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
54141         Typedef to long int, not to off_, as POSIX will likely change
54142         in that direction.
54143
54144 2006-03-15  Eric Blake  <ebb9@byu.net>
54145
54146         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
54147
54148 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54149
54150         * lib/argp-help.c (validate_uparams): Fix typo
54151         * lib/argp-parse.c (argp_default_options): Consistently begin help
54152         messages with a lowercase letter.
54153
54154 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
54155
54156         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
54157         overrun buffers and shouldn't be used (much as gets shouldn't be
54158         used).
54159         * lib/time_r.c (asctime_r, ctime_r): Likewise.
54160
54161 2006-03-08  Simon Josefsson  <jas@extundo.com>
54162
54163         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
54164         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54165
54166 2006-03-08  Simon Josefsson  <jas@extundo.com>
54167
54168         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
54169         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54170
54171 2006-03-08  Simon Josefsson  <jas@extundo.com>
54172
54173         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
54174         signal that configure disabled the device.
54175
54176 2006-03-08  Simon Josefsson  <jas@extundo.com>
54177
54178         * build-aux/maint.mk: Fix refresh-po, to handle no translated
54179         languages.
54180
54181 2006-03-07  Simon Josefsson  <jas@extundo.com>
54182
54183         * modules/getopt (Depends-on): Add unistd.
54184
54185         * modules/unistd: New file.
54186
54187 2006-03-07  Simon Josefsson  <jas@extundo.com>
54188
54189         * modules/gc-random: New file.
54190
54191 2006-03-07  Simon Josefsson  <jas@extundo.com>
54192
54193         * m4/unistd_h.m4: New file.
54194
54195 2006-03-07  Simon Josefsson  <jas@extundo.com>
54196
54197         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
54198         test to be side-effect free by storing the result in the cache
54199         variable gl_cv_lib_readline, and moving the assignment of
54200         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
54201         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54202
54203 2006-03-07  Simon Josefsson  <jas@extundo.com>
54204
54205         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
54206         error on missing devices (the functions will return an error).
54207
54208         * m4/gc.m4: Move random stuff to gc-random.m4
54209
54210 2006-03-07  Simon Josefsson  <jas@extundo.com>
54211
54212         * lib/unistd_.h: New file.
54213
54214 2006-03-07  Simon Josefsson  <jas@extundo.com>
54215
54216         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
54217
54218 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54219
54220         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
54221         Problem reported by Juan Manuel Guerrero.
54222
54223 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54224
54225         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
54226         the unistd module.
54227         * lib/getlogin_r.c: Likewise.
54228         * lib/getlogin_r.h: Likewise.
54229         * lib/glob.c: Likewise.
54230         * lib/pagealign_alloc.c: Likewise.
54231         * lib/unistd_.h: Remove; no longer needed.
54232
54233 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54234
54235         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54236         Add unistd.
54237         * modules/c-stack (Depends-on): Add unistd.
54238         * modules/getlogin_r: Likewise.
54239         * modules/glob: Likewise.
54240         * modules/pagealign_alloc: Likewise.
54241         * modules/unistd (Files): Remove lib/unistd_.h.
54242         (EXTRA_DIST): Remove.
54243         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
54244         need unistd_.h.
54245         (MOSTLYCLEANFILES): Remove unistd.h-t.
54246
54247 2006-03-03  Simon Josefsson  <jas@extundo.com>
54248
54249         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
54250
54251 2006-03-03  Simon Josefsson  <jas@extundo.com>
54252
54253         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
54254         libidn and bison.
54255
54256 2006-03-03  Simon Josefsson  <jas@extundo.com>
54257
54258         * build-aux/maint.mk: Add indent target.
54259
54260 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
54261
54262         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
54263         our replacement poll.h in any case, to avoid a differing
54264         declaration from a system header.  Seen on AIX.
54265
54266 2006-03-01  Simon Josefsson  <jas@extundo.com>
54267
54268         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
54269         <kasal@ucw.cz>.
54270
54271 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54272
54273         * modules/gettime (Depends-on): Add extensions module.
54274         * modules/nanosleep (Depends-on): Likewise.
54275         * modules/settime (Depends-on): Likewise.
54276
54277 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54278
54279         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
54280         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
54281         pedantically.
54282         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54283         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
54284
54285         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
54286         not "==".  Reported by Ralf Wildenhues.
54287
54288 2006-03-01  Karl Berry  <karl@gnu.org>
54289
54290         * doc/Copyright/request-*: new files, synced from gnuorg.
54291
54292 2006-03-01  Karl Berry  <karl@gnu.org>
54293
54294         * config/srclist.txt (Copyright/*): new entries.
54295
54296 2006-02-28  Simon Josefsson  <jas@extundo.com>
54297
54298         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
54299
54300 2006-02-27  Simon Josefsson  <jas@extundo.com>
54301
54302         * lib/base64.h: Indent #define's.  From Jim Meyering
54303         <jim@meyering.net>.
54304
54305 2006-02-27  Jim Meyering  <jim@meyering.net>
54306
54307         Revert the change of 2006-02-24, so these files can continue
54308         to be sync'd from gettext.
54309         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
54310         of `config.h'.
54311
54312 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
54313
54314         * modules/intprops: New file.
54315         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54316         Add intprops.
54317         * modules/getloadavg (Files): Remove lib/intprops.h.
54318         (Depends-on): Add intprops.
54319         * modules/human: Likewise.
54320         * modules/inttostr: Likewise.
54321         * modules/openat: Likewise.
54322         * modules/sig2str: Likewise.
54323         * modules/userspec: Likewise.
54324         * modules/utimecmp: Likewise.
54325         * modules/xnanosleep: Likewise.
54326         * modules/xstrtol: Likewise.
54327
54328 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
54329
54330         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
54331         * modules/lock-tests (TESTS): Use $(EXEEXT).
54332         * modules/tls-tests: Likewise.
54333         * modules/argp-tests: Likewise.
54334         (check_PROGRAMS): New var, replacing...
54335         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
54336
54337 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54338
54339         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
54340         `config.h'.
54341
54342 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54343
54344         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
54345
54346 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54347
54348         Sync from coreutils.
54349         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
54350         gl_CHDIR_SAFER.
54351
54352 2006-02-22  Jim Meyering  <jim@meyering.net>
54353
54354         Sync from coreutils.
54355         * m4/chdir-safer.m4: New file.
54356
54357 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54358
54359         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
54360         AT_FDCWD exceeds INT_MAX.
54361         * lib/openat.h (AT_FDCWD): Likewise.
54362
54363 2006-02-17  Eric Blake  <address@hidden>
54364
54365         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
54366
54367 2006-02-16  Simon Josefsson  <jas@extundo.com>
54368
54369         * modules/getaddrinfo (Depends-on): Add sys_socket.
54370
54371 2006-02-15  Simon Josefsson  <jas@extundo.com>
54372
54373         * build-aux/maint.mk: Add dsyntax-check rule.
54374
54375 2006-02-15  Eric Blake  <ebb9@byu.net>
54376
54377         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
54378         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
54379         'present but cannot compile' warnings on cygwin.
54380         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
54381         use ws2tcpip.h if sys/socket.h works.
54382         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
54383         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
54384
54385 2006-02-14  Simon Josefsson  <jas@extundo.com>
54386
54387         * modules/maintainer-makefile (Files): Rename.
54388
54389         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
54390         and (the local) Makefile.cfg to maint-cfg.mk.
54391
54392         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
54393         to the latter.
54394
54395         * modules/maintainer-makefile: New module.
54396
54397         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
54398         severaly stripped to make it possible to build it up from scratch
54399         with reliable tests.
54400
54401         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
54402         fixes to permit overriding the default actions when configure and
54403         makefile are not available.
54404
54405 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54406
54407         Sync from coreutils.
54408         * modules/lstat (Depends-on): Don't depend on xalloc.
54409         (License): Change from GPL to LGPL, since this is now simply a
54410         replacement for a libc function.
54411
54412 2006-02-14  Jim Meyering  <jim@meyering.net>
54413
54414         Sync from coreutils.
54415
54416         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
54417         failure on deficient systems, and simplify gnulib lgpl dependencies.
54418         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
54419         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
54420
54421         * lib/xalloc-die.c: Remove unused definition of N_.
54422
54423 2006-02-14  Jim Meyering  <jim@meyering.net>
54424
54425         Sync from coreutils.
54426         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
54427         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
54428         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
54429         double-quote uses of that variable, to accommodate the rare case in
54430         which getmntent is available in none of the libraries checked.  This
54431         happens at least on FreeBSD 5.0.
54432
54433 2006-02-13  Simon Josefsson  <jas@extundo.com>
54434
54435         * gnulib-tool (Usage): Fix --import, from
54436         karl@freefriends.org (Karl Berry).
54437
54438 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54439
54440         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
54441
54442 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
54443
54444         * lib/argp-namefrob.h: Restore changes accidentally lost during the
54445         "autoupdate" on 2005-12-12.
54446
54447 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54448
54449         * modules/closeout (Depends-on): Remove atexit.
54450
54451 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54452
54453         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
54454         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
54455
54456 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54457
54458         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
54459         __EXTENSIONS__ if this causes compilation to fail.  Problem
54460         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
54461         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
54462
54463 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
54464
54465         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
54466         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
54467         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
54468         All uses changed.
54469
54470 2006-01-26  Simon Josefsson  <jas@extundo.com>
54471
54472         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
54473         prototype is visible on mingw32.
54474
54475         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
54476         for mingw32.
54477
54478         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
54479         mingw32).
54480
54481 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54482
54483         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
54484         attempt to open for write; this always fails, at least on POSIX
54485         hosts.  This reinstates the 2006-01-09 change, which was
54486         inadvertently removed.
54487
54488 2006-01-26  Bruno Haible  <bruno@clisp.org>
54489
54490         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
54491         Reported by Paul Eggert.
54492
54493 2006-01-26  Bruno Haible  <bruno@clisp.org>
54494             Paul Eggert  <eggert@cs.ucla.edu>
54495
54496         * lib/stdbool_.h (_Bool)
54497         [(! (defined __cplusplus || defined __BEOS__)
54498           && !defined __GNUC__
54499           && !(defined __HP_cc || defined __xlc__
54500                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
54501                || defined __sgi))]:
54502         #define to signed char in these cases too; this simplifies
54503         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
54504         etc., separately) and makes it more conservative.
54505
54506 2006-01-25  Simon Josefsson  <jas@extundo.com>
54507
54508         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
54509         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
54510         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
54511
54512 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54513
54514         * lib/argp-namefrob.h: Bugfix. Remove stray #
54515
54516 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54517
54518         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
54519         so that we test the test.
54520         Check for yet another HP-UX cc bug involving *bool |= bool.
54521
54522 2006-01-25  Karl Berry  <karl@gnu.org>
54523
54524         * config/srclist.txt (vasnprintf.c): sync lost.
54525
54526 2006-01-25  Jim Meyering  <jim@meyering.net>
54527
54528         Sync from the stable (b5) branch of coreutils:
54529
54530         * lib/fts.c (fts_children): Don't let close() clobber errno from
54531         failed fchdir().
54532
54533         * lib/fts.c (fts_stat): When following a symlink-to-directory,
54534         don't necessarily interpret stat-fails+lstat-succeeds as indicating
54535         a dangling symlink.  That can also happen at least for ELOOP.
54536         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
54537         FYI, this bug predates the inclusion of fts.c in coreutils.
54538
54539         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
54540         in their own block, so pre-c99 compilers don't object.
54541
54542         Avoid the double-free (first in fts_read, second in fts_close) that
54543         would occur when an `active' directory is made inaccessible (e.g.,
54544         via chmod a-x) during a traversal.
54545         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54546         before returning.  Reproduce this failure by
54547         mkdir -p a/b; cd a; chmod a-x . b
54548         Reported by Stavros Passas.
54549
54550 2006-01-25  Jim Meyering  <jim@meyering.net>
54551
54552         * lib/fileblocks.c: Remove more useless parentheses.
54553         * lib/readutmp.h: Likewise.
54554
54555 2006-01-25  Bruno Haible  <bruno@clisp.org>
54556
54557         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
54558         warnings.
54559         Reported by Paul Eggert.
54560
54561 2006-01-25  Bruno Haible  <bruno@clisp.org>
54562
54563         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
54564         rid of a trap command. For Solaris sh.
54565         Reported by Mark D. Baushke <mdb@gnu.org>.
54566
54567 2006-01-24  Simon Josefsson  <jas@extundo.com>
54568
54569         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
54570         Bruno.
54571
54572 2006-01-24  Karl Berry  <karl@gnu.org>
54573
54574         * config/srclist.txt (argp-namefrob.h): sync lost.
54575
54576 2006-01-24  Jim Meyering  <jim@meyering.net>
54577
54578         * modules/openat (Files): Add lib/intprops.h.
54579         From Mark D. Baushke.
54580
54581 2006-01-24  Jim Meyering  <jim@meyering.net>
54582
54583         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
54584         Reported by Mark D. Baushke.
54585
54586 2006-01-24  Jim Meyering  <jim@meyering.net>
54587
54588         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
54589
54590 2006-01-24  Bruno Haible  <bruno@clisp.org>
54591
54592         * modules/strnlen (Maintainer): Change from glibc to all.
54593
54594 2006-01-24  Bruno Haible  <bruno@clisp.org>
54595
54596         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
54597         Patch by Paul Eggert.
54598
54599 2006-01-24  Bruno Haible  <bruno@clisp.org>
54600
54601         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
54602         already has it.
54603         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
54604         2005-11-26.
54605
54606         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
54607         'signed char' to avoid problems with the built-in _Bool type.
54608         Reported by Paul Eggert on 2005-11-26.
54609
54610 2006-01-24  Bruno Haible  <bruno@clisp.org>
54611
54612         * gnulib-tool (func_import): Avoid constructing complicated sed
54613         expressions inside backquote.
54614         Report and solution by Mark D. Baushke <mdb@gnu.org>.
54615
54616 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
54617
54618         These changes imported from libc.
54619         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
54620         test and two separate function calls.
54621         * lib/strndup.c (__strndup): Add libc_hidden_def.
54622
54623 2006-01-23  Simon Josefsson  <jas@extundo.com>
54624
54625         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
54626         Remove the test_*_SOURCES variable: automake infers it by default.
54627         * modules/tls-tests: Likewise.
54628
54629 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54630
54631         Work around porting bugs reported by Dieter in
54632         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
54633         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
54634         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
54635         Include "getopt.h" first, to check interface.
54636         (getenv): Declare only if defined HAVE_DECL_GETENV &&
54637         !HAVE_DECL_GETENV.
54638         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
54639         (__strndup): Revert to K&R-style function dfns, the glibc style.
54640         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
54641         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
54642         Include strnlen.h first, to get prototype properly.
54643         (strnlen): Renamed from __strnlen.
54644         Remove weak alias.
54645
54646 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54647
54648         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
54649
54650 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54651
54652         * config/srclist.txt: Adjust to reflect glibc reorganization.
54653         This affects only comments.
54654
54655 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54656
54657          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
54658          Reported by Bruce Korb <bkorb@gnu.org>.
54659
54660 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54661
54662         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
54663         to pacify gcc -Wswitch-default.
54664
54665 2006-01-22  Bruno Haible  <bruno@clisp.org>
54666
54667         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
54668         temporary buffer for sprintf, take into account the precision also
54669         for 'd', 'i', 'u', 'o', 'x', 'X'.
54670
54671 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54672
54673         * modules/argp-tests: New module
54674         * tests/test-argp.c: New file
54675         * tests/test-argp-2.sh: New file
54676
54677 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54678
54679         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
54680         (__argp_base_name): Removed
54681         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
54682         typo.
54683         (__argp_base_name): Provide macro definition or extern declaration
54684         depending on the configuration
54685
54686 2006-01-20  Simon Josefsson  <jas@extundo.com>
54687
54688         * modules/inet_ntop (Depends-on): Depend on sys_socket.
54689
54690 2006-01-20  Simon Josefsson  <jas@extundo.com>
54691
54692         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
54693
54694 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54695
54696         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
54697         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
54698         Suggested by Bruno Haible.
54699
54700 2006-01-20  Karl Berry  <karl@gnu.org>
54701
54702         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
54703         until changes propagate, I guess.
54704
54705 2006-01-19  Simon Josefsson  <jas@extundo.com>
54706
54707         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
54708
54709 2006-01-19  Simon Josefsson  <jas@extundo.com>
54710
54711         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
54712
54713 2006-01-19  Simon Josefsson  <jas@extundo.com>
54714
54715         * gnulib-tool: Set check_PROGRAMS.
54716
54717         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54718         modules/des-tests, modules/gc-arcfour-tests,
54719         modules/gc-arctwo-tests, modules/gc-des-tests,
54720         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54721         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54722         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54723         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54724         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54725         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
54726         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
54727         test_*_SOURCES.
54728
54729 2006-01-18  Simon Josefsson  <jas@extundo.com>
54730
54731         * modules/socklen (Depends-on): Depend on sys_socket.
54732
54733 2006-01-18  Simon Josefsson  <jas@extundo.com>
54734
54735         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54736         modules/des-tests, modules/gc-arcfour-tests,
54737         modules/gc-arctwo-tests, modules/gc-des-tests,
54738         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54739         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54740         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54741         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54742         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54743         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
54744         $(EXEEXT) to automake TESTS variable, for mingw32.
54745
54746 2006-01-17  Simon Josefsson  <jas@extundo.com>
54747
54748         * modules/socklen (Include): Need sys/socket.h.
54749
54750 2006-01-17  Bruno Haible  <bruno@clisp.org>
54751
54752         * modules/ssize_t (Include): Add <sys/types.h>.
54753
54754 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
54755
54756         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
54757         it's not portable and it doesn't work with cross-compiles.
54758         Problem reported by Bruno Haible.  Fix missing-$ typo in
54759         'test "gl_cv_ignore_unused_libraries" ...' that prevented
54760         -zignore from being used with Sun's C compiler.
54761
54762 2006-01-12  Simon Josefsson  <jas@extundo.com>
54763
54764         * lib/base64.c: Fix warning, reported by Bruno Haible
54765         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
54766
54767 2006-01-12  Bruno Haible  <bruno@clisp.org>
54768
54769         * modules/ldd: New file.
54770         * build-aux/ldd.sh.in: New file.
54771         * MODULES.html.sh (Support for building libraries and executables): Add
54772         ldd.
54773
54774 2006-01-12  Bruno Haible  <bruno@clisp.org>
54775
54776         * m4/ldd.m4: New file.
54777
54778 2006-01-12  Bruno Haible  <bruno@clisp.org>
54779
54780         * gnulib-tool (func_import, func_create_testdir): Don't go into an
54781         endless loop while replacing $auxdir with build-aux.
54782
54783 2006-01-11  Simon Josefsson  <jas@extundo.com>
54784
54785         * lib/stdint_.h (SIZE_MAX): Add missing (.
54786
54787 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
54788
54789         Sync from coreutils.
54790         * lib/md5.c: Fix commentary typos.
54791         (alignof, UNALIGNED_P): No need for a GCC-specific version.
54792         * lib/md5.h (__attribute__): Remove; unused.
54793         * lib/sha1.c: Fix commentary to match md5 better.
54794         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
54795         so that we don't need to worry about alignment.  All uses changed.
54796         This merges the 2005-10-28 md5 change into sha1.
54797
54798 2006-01-11  Jim Meyering  <jim@meyering.net>
54799
54800         Sync from coreutils.
54801         * lib/md5.c (OP): Fix spacing.
54802
54803 2006-01-11  Bruno Haible  <bruno@clisp.org>
54804
54805         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54806         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
54807         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
54808
54809 2006-01-11  Bruno Haible  <bruno@clisp.org>
54810
54811         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54812         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
54813         the "early" section as well.
54814
54815 2006-01-11  Bruno Haible  <bruno@clisp.org>
54816
54817         Avoid "ar: no archive members specified" error on MacOS X.
54818         * gnulib-tool (func_modules_add_dummy): New function.
54819         (func_import, func_create_testdir): Invoke it.
54820
54821 2006-01-11  Bruno Haible  <bruno@clisp.org>
54822
54823         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
54824         with $auxdir in AC_CONFIG_FILES statements.
54825
54826 2006-01-11  Bruno Haible  <bruno@clisp.org>
54827
54828         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54829         Initialize also noinst_HEADERS to empty.
54830
54831 2006-01-11  Bruno Haible  <bruno@clisp.org>
54832
54833         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
54834         variables.
54835         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
54836         autoreconf.
54837
54838 2006-01-11  Bruno Haible  <bruno@clisp.org>
54839
54840         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
54841         overridable by the user.
54842         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54843
54844 2006-01-10  Simon Josefsson  <jas@extundo.com>
54845
54846         * modules/sys_socket: New file.
54847
54848 2006-01-10  Simon Josefsson  <jas@extundo.com>
54849
54850         * m4/sys_socket_h.m4: New file.
54851
54852 2006-01-10  Simon Josefsson  <jas@extundo.com>
54853
54854         * lib/socket_.h: New file.
54855
54856 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54857
54858         * modules/readutmp (Maintainer): Add myself.
54859
54860 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54861
54862         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
54863         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
54864         People who are still concerned with buggy memcmp implementations
54865         can invoke gl_FUNC_MEMCMP themselves.
54866
54867 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54868
54869         * lib/regex_internal.h (BITSET_WORD_BITS):
54870         Work around a bug in 64-bit PGC (before version 6.1-2), where the
54871         preprocessor mishandles large unsigned values as if they were signed.
54872         Problem reported by Claudio Fontana in
54873         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
54874
54875 2006-01-10  Jim Meyering  <jim@meyering.net>
54876
54877         Avoid the double-free (first in fts_read, second in fts_close) that
54878         would occur when an `active' directory is made inaccessible (e.g.,
54879         via chmod a-x) during a traversal.
54880         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54881         before returning.  Reproduce this failure by
54882         mkdir -p a/b; cd a; chmod a-x . b
54883         Reported by Stavros Passas.
54884
54885         Sync from coreutils.
54886         * lib/sha1.c: Tweak grammar in a comment.
54887
54888 2006-01-10  Jim Meyering  <jim@meyering.net>
54889
54890         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
54891         Patch by Joerg Sonnenberger.
54892
54893 2006-01-10  Bruno Haible  <bruno@clisp.org>
54894
54895         * modules/readutmp: Depend on module free.
54896         * modules/strtok_r: Depend on module restrict.
54897
54898 2006-01-10  Bruno Haible  <bruno@clisp.org>
54899
54900         * modules/gettext (configure.ac): Add an invocation of
54901         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
54902
54903 2006-01-10  Bruno Haible  <bruno@clisp.org>
54904
54905         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
54906         Reported by Werner Lemberg <wl@gnu.org>.
54907
54908 2006-01-10  Bruno Haible  <bruno@clisp.org>
54909
54910         * lib/localcharset.c: Update from GNU gettext.
54911
54912 2006-01-10  Bruno Haible  <bruno@clisp.org>
54913
54914         * lib/argp.h (__const): Remove macro. Use const instead.
54915         * lib/argp-fmtstream.h (__const): Likewise.
54916         * lib/glob_.h (__const): Remove macro.
54917         * lib/glob-libc.h: Use const instead of __const.
54918
54919 2006-01-10  Bruno Haible  <bruno@clisp.org>
54920
54921         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
54922         variable.
54923         Needed to avoid an automake error regarding the 'gettext' module.
54924
54925 2006-01-09  Simon Josefsson  <jas@extundo.com>
54926
54927         * modules/inet_ntop (Depends-on): Add restrict.
54928
54929 2006-01-09  Simon Josefsson  <jas@extundo.com>
54930
54931         * modules/gc-rijndael-tests (License): Put under LGPL.
54932
54933         * modules/gc-des-tests (License): Likewise.
54934
54935         * modules/gc-arcfour-tests (License): Likewise.
54936
54937         * modules/gc-arctwo-tests (License): Likewise.
54938
54939         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
54940
54941         * modules/gc-hmac-sha1-tests (Files): Likewise.
54942
54943         * modules/gc-hmac-md5-tests (License): Likewise.
54944
54945         * modules/gc-sha1-tests (License): Likewise.
54946
54947         * modules/gc-md5-tests (License): Likewise.
54948
54949         * modules/gc-md4-tests (License): Likewise.
54950
54951         * modules/gc-md2-tests (License): Likewise.
54952
54953         * modules/gc-tests (License): Likewise.
54954
54955         * modules/des-tests (License): Likewise.
54956
54957         * modules/md4-tests (License): Likewise.
54958
54959         * modules/md2-tests (License): Likewise.
54960
54961 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54962
54963         Sync from coreutils:
54964
54965         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
54966         * modules/lib-ignore: New file.
54967         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
54968         chdir-safer.m4, lchmod.m4.
54969         * modules/openat: Add mkdirat.c, openat-priv.h.
54970
54971 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54972
54973         Sync from coreutils.
54974         * m4/lib-ignore.m4: New file.
54975         * m4/lchmod.m4: New file.
54976
54977 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54978
54979         Sync from coreutils.
54980         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
54981         for write access: POSIX says that must fail.
54982         * lib/fts.c (diropen): Likewise.
54983         * lib/save-cwd.c (save_cwd): Likewise.
54984         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
54985         well, for minor improvements on hosts that lack O_DIRECTORY.
54986         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
54987         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
54988         Fall back on chown if open failed with EACCES.
54989
54990         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
54991         Report an error at compile-time if only a 1-second nominal clock
54992         resolution is found.
54993
54994         * lib/lchmod.h: New file.
54995         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
54996         (make_dir_parents): Use lchown rather than chown, and
54997         lchmod rather than chmod.
54998
54999         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
55000         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
55001         "proc" reported by n0dalus.
55002
55003         * lib/mountlist.c: Include <limits.h>.
55004         (dev_from_mount_options)
55005         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
55006         New function.  It no longer assumes "dev=" has the System V meaning
55007         on Linux (since it doesn't).  It also parses "dev=" more carefully.
55008         (read_file_system_list)
55009         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
55010         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
55011         dev= in that case.
55012
55013         * lib/posixtm.h (PDS_PRE_2000): New macro.
55014         * lib/posixtm.c (year): Arg is now syntax_bits rather than
55015         allow_century.  All usages changed.  Reject dates outside the range
55016         1969-1999 if PDS_PRE_2000 is used.
55017
55018 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55019
55020         Sync from coreutils.
55021         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
55022         (Time of day items): Mention the possibility of leap seconds.
55023         Problem reported by Dr. David Alan Gilbert.
55024
55025 2006-01-09  Jim Meyering  <jim@meyering.net>
55026
55027         Sync from coreutils.
55028
55029         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
55030
55031         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
55032
55033         * lib/modechange.c (mode_compile): Reject an invalid mode string
55034         that starts with an octal digit.  From Andreas Gruenbacher.
55035
55036         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
55037         and dup to open_safer and dup_safer, respectively.
55038         (openat_permissive): Fix typo in comment.
55039
55040         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
55041         "gettext.h"; either no longer needed or are guaranteed by openat.h.
55042         (_): Remove; no longer needed.
55043         (openat): Renamed from rpl_openat; no need for rpl_openat
55044         since openat.h renames openat for us.
55045         Replace most of the body with a call to openat_permissive,
55046         to avoid duplicate code.
55047         Port to (probably hypothetical) environments were mode_t is
55048         wider than int.
55049         (openat_permissive): Require mode arg, so that we can check
55050         types better.  Put it just after flags.  Change cwd failure
55051         indicator from pointer-to-bool to pointer-to-errno-value.
55052         All callers changed.
55053         Invoke openat_save_fail and/or openat_restore_fail if
55054         cwd_errno is null, so that openat can call us.
55055         (openat_permissive, fdopendir, fstatat, unlinkat):
55056         Simplify errno handling to avoid some duplicate code,
55057         as it's OK to set errno on success.
55058         * lib/openat.h: Revamp code so that function macros depend on
55059         __OPENAT_PREFIX only, not also on AT_FDCWD.
55060         (openat_ro): Remove.  Caller changed to use openat_permissive.
55061         (openat_permissive): Now a macro, if not a function.
55062         (openat_restore_fail, openat_save_fail): Now always functions,
55063         since mkdirat needs them even if __OPENAT_PREFIX is defined.
55064
55065         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
55066         and openat.c.
55067         * lib/mkdirat.c: Include openat-priv.h.
55068         Remove definitions of macros defined therein.
55069         * lib/openat.c: Likewise.
55070
55071         * lib/mkdirat.c (mkdirat): New file and function.
55072         * lib/openat.h (mkdirat): Declare.
55073
55074         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
55075
55076         * lib/openat.h (openat_permissive): Declare.
55077         (openat_ro): Define.
55078
55079         * lib/openat.c (EXPECTED_ERRNO): New macro.
55080         (openat_permissive): New function -- used in remove.c rewrite.
55081         (all functions): Set errno just before returning, only if there
55082         was an actual failure.
55083         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
55084
55085         Emulate openat-family functions using Linux's procfs, if possible.
55086         Idea and some code based on Ulrich Drepper's glibc changes.
55087
55088         * lib/openat.c: (BUILD_PROC_NAME): New macro.
55089         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
55090         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
55091         before falling back on save_cwd and restore_cwd.
55092         (fdopendir, fstatat, unlinkat): Likewise.
55093
55094         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
55095         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
55096
55097         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
55098         as second argument to va_arg.  Otherwise, some versions of gcc
55099         warn that `if this code is reached, the program will abort'.
55100
55101 2006-01-09  Jim Meyering  <jim@meyering.net>
55102
55103         Sync from coreutils.
55104         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
55105         Require openat-priv.h.
55106
55107 2006-01-09  Bruno Haible  <bruno@clisp.org>
55108
55109         * modules/strnlen (Include): Use strnlen.h.
55110
55111 2006-01-09  Bruno Haible  <bruno@clisp.org>
55112
55113         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
55114
55115 2006-01-09  Bruno Haible  <bruno@clisp.org>
55116
55117         * lib/sysexit_.h (EX_OK): New macro.
55118         Suggested by Martin Lambers <marlam@marlam.de>.
55119
55120 2006-01-09  Bruno Haible  <bruno@clisp.org>
55121
55122         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
55123         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
55124
55125 2006-01-09  Bruno Haible  <bruno@clisp.org>
55126
55127         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
55128         numbers.
55129
55130 2006-01-09  Bruno Haible  <bruno@clisp.org>
55131
55132         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
55133         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
55134         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
55135         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
55136
55137 2006-01-09  Bruno Haible  <bruno@clisp.org>
55138
55139         * build-aux/javacomp.sh.in: New file, moved from lib/.
55140         * modules/javacomp-script (Files): Update.
55141         (configure.ac): Add AC_CONFIG_FILES invocation.
55142         (EXTRA_DIST): Remove variable.
55143
55144         * build-aux/javaexec.sh.in: New file, moved from lib/.
55145         * modules/javaexec (Files): Update.
55146         (configure.ac): Add AC_CONFIG_FILES invocation.
55147         (EXTRA_DIST): Remove javaexec.sh.in.
55148
55149         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
55150         * modules/csharpcomp-script (Files): Update.
55151         (configure.ac): Add AC_CONFIG_FILES invocation.
55152         (EXTRA_DIST): Remove variable.
55153
55154         * build-aux/csharpexec.sh.in: New file, moved from lib/.
55155         * modules/csharpexec (Files): Update.
55156         (configure.ac): Add AC_CONFIG_FILES invocation.
55157         (EXTRA_DIST): Remove csharpexec.sh.in.
55158
55159 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
55160
55161         Sync from coreutils.
55162
55163         Add POSIX ACL support
55164         * lib/acl.h (copy_acl, set_acl): Add declarations.
55165         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
55166         systems other than Linux.
55167         (chmod_or_fchmod): New function: use fchmod when possible,
55168         and chmod otherwise.
55169         (file_has_acl): Add a POSIX ACL implementation, with a
55170         Linux-specific subcase.
55171         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
55172         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
55173         acls are unsupported.
55174         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
55175         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
55176         are unsupported.
55177
55178 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
55179
55180         Sync from coreutils.
55181         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
55182
55183 2006-01-07  Bruno Haible  <bruno@clisp.org>
55184
55185         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
55186         gl_EARLY.
55187
55188 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55189
55190         * lib/strftime.c (tzname): Don't declare if it is already #defined.
55191         Problem reported for Mingw by Mark Junker.
55192
55193 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55194
55195         * README: Gnulib normally doesn't generate a tarball.
55196
55197 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
55198
55199         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
55200         long int, not int, for nanosecond counts, so that people who are
55201         used to POSIX struct timespec won't be surprised.  Reported by Jim
55202         Meyering.
55203
55204 2005-12-28  Bruno Haible  <bruno@clisp.org>
55205
55206         * build-aux/config.rpath: Update from GNU gettext.
55207
55208 2005-12-16  Jim Meyering  <jim@meyering.net>
55209
55210         * modules/fprintftime: New module.
55211         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
55212
55213 2005-12-16  Jim Meyering  <jim@meyering.net>
55214
55215         * m4/fprintftime.m4: New file.
55216
55217 2005-12-16  Jim Meyering  <jim@meyering.net>
55218
55219         * lib/fprintftime.c, lib/fprintftime.h: New files.
55220
55221 2005-12-15  Simon Josefsson  <jas@extundo.com>
55222
55223         * modules/socklen (configure.ac): Fix M4 macro name, to align with
55224         new m4/socklen.m4.
55225
55226 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55227
55228         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
55229         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
55230
55231 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55232
55233         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
55234         * lib/argp-help.c (fill_in_uparams): Check if the constructed
55235         struct uparams is valid. Fall back to the default values if it is
55236         not.
55237
55238 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55239
55240         * modules/argp (Files): Add argp-pin.c
55241         (Depends-on): dirname
55242         (lib_SOURCES): Add argp-pin.c
55243
55244 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55245
55246         * m4/argp.m4:  Check if program_invocation_name and
55247         program_invocation_short_name are declared and define appropriate
55248         macros if they are not.
55249
55250 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55251
55252         * lib/argp-help.c (__argp_base_name): New function
55253         (__argp_short_program_name): Rewrite using __argp_base_name
55254         * lib/argp-namefrob.h: Define program_invocation_name and
55255         program_invocation_short_name if requested
55256         (__argp_base_name): Add prototype
55257         * lib/argp-parse.c (argp_def): Use gettext wrappers
55258         (argp_default_parser): Use __argp_base_name
55259         * lib/argp-pin.c: New file. Defines program_invocation_name and
55260         program_invocation_short_name on systems that lack them.
55261
55262 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55263
55264         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
55265         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55266         porting problem reported by Georg Schwarz in
55267         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55268
55269 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55270
55271         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
55272         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55273         porting problem reported by Georg Schwarz in
55274         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55275
55276 2005-12-05  Bruno Haible  <bruno@clisp.org>
55277
55278         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
55279         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
55280         Reported by Mark Junker <mjscod@gmx.de>.
55281
55282 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
55283
55284         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
55285         Use implementation from Albert Chin, with some
55286         comments/corrections by Stepan Kasal and myself.
55287
55288 2005-12-02  Bruno Haible  <bruno@clisp.org>
55289
55290         * gnulib-tool (func_import): Accept GPLed build tool modules when
55291         --lgpl is given.
55292         * modules/csharpcomp-script: New file.
55293         * modules/csharpcomp: Depend on it.
55294         * modules/javacomp-script: New file.
55295         * modules/javacomp: Depend on it.
55296         Suggested by Simon Josefsson.
55297
55298 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
55299
55300         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
55301         statement, to work around an HP-UX 10.20 compiler bug reported by
55302         Peter O'Gorman.
55303
55304 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55305
55306         * modules/savedir (Depends-on): Add openat.
55307
55308 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55309
55310         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
55311         (uintmax_t) [defined uintmax_t]: Do not declare.
55312         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
55313         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
55314         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
55315         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
55316         sake of portability to weird hosts that C allows (though we don't
55317         know of any practical examples).
55318
55319         * lib/savedir.h (fdsavedir): New decl.
55320         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
55321         contains most of the former guts of savedir.
55322         (savedir): Use savedirstream.
55323         Include "openat.h".
55324
55325 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
55326
55327         * modules/obstack (Files): Add m4/ulonglong.m4.
55328         Problem reported by Davide Angelocola.
55329
55330 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55331
55332         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
55333         coreutils no longer futzes with rounding modes.
55334
55335 2005-11-14  Jim Meyering  <jim@meyering.net>
55336
55337         * lib/mkstemp-safer.c: Include <config.h>, required for possible
55338         replacement of mkstemp.
55339
55340 2005-11-10  Simon Josefsson  <jas@extundo.com>
55341
55342         * lib/readline.c: Remove EOL.
55343
55344 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55345
55346         * modules/gethrxtime (Depends-on): Add gettime.
55347
55348 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55349
55350         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
55351         or gettimeofday; no longer needed.
55352
55353 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55354
55355         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
55356         time business.
55357         (gethrxtime) [! (HAVE_NANOUPTIME
55358         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
55359         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
55360         our own approximation.
55361
55362 2005-11-08  Eric Blake  <ebb9@byu.net>
55363
55364         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55365
55366 2005-11-08  Eric Blake  <ebb9@byu.net>
55367
55368         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55369
55370 2005-11-04  Bruno Haible  <bruno@clisp.org>
55371
55372         * gnulib-tool: Implement --update mode.
55373
55374 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55375
55376         Fix porting problem reported by Theodoros V. Kalamatianos.
55377         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
55378         Don't assume that futimes failing means we must fail.
55379
55380 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55381
55382         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
55383         variables to suggest the intended function of the PATH_MAX check.
55384
55385 2005-10-30  Kean Johnston  <jkj@sco.com>
55386
55387         Trivial changes to support SCO systems.
55388         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
55389         as PATH_MAX.
55390         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
55391         where __ptr is null when no I/O is pending.
55392
55393 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55394
55395         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
55396         leave errno alone.  Problem reported by Dmitry V. Levin.
55397
55398 2005-10-28  Simon Josefsson  <jas@extundo.com>
55399
55400         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
55401         Test more.
55402
55403         * tests/test-gc-md2.c, tests/test-md2.c: New files.
55404
55405         * modules/md2, modules/md2-tests: New files.
55406
55407 2005-10-28  Simon Josefsson  <jas@extundo.com>
55408
55409         * m4/inet_ntop.m4: More tests.
55410
55411         * m4/gc-md2.m4, md2.m4: New file.
55412
55413 2005-10-28  Simon Josefsson  <jas@extundo.com>
55414
55415         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
55416         "restrict" keywords, as per POSIX.  Protect the function
55417         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
55418         Don't use K&R prototypes.  Check the sprintf return values.
55419         Re-define EAFNOSUPPORT if not present.  Indent.
55420
55421         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
55422         suggested by Bruno Haible <bruno@clisp.org>.
55423
55424         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
55425
55426         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
55427
55428         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
55429         libgcrypt).
55430
55431         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
55432
55433         * lib/md2.h, lib/md2.c: New files.
55434
55435 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
55436
55437         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
55438         errno alone.  Problem reported by Frederic Jolliton.
55439
55440 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55441
55442         * modules/verify (License): Change from GPL to LGPL.  This is a
55443         tiny module and there are apparently near-equivalents that are
55444         under the BSD license.
55445
55446 2005-10-24  Simon Josefsson  <jas@extundo.com>
55447
55448         * modules/sha1: Relicense to LGPL.
55449
55450 2005-10-24  Simon Josefsson  <jas@extundo.com>
55451
55452         * lib/md4.h: Shrink buffer size, now that we changed the type.
55453
55454 2005-10-23  Simon Josefsson  <jas@extundo.com>
55455
55456         * gnulib-tool (func_import): Fix --tests-base.
55457
55458 2005-10-22  Simon Josefsson  <jas@extundo.com>
55459
55460         * modules/arcfour (Depends-on): Need stdint.
55461
55462 2005-10-22  Simon Josefsson  <jas@extundo.com>
55463
55464         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
55465         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
55466
55467 2005-10-22  Simon Josefsson  <jas@extundo.com>
55468
55469         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
55470         suggested by Bruno Haible <bruno@clisp.org>.
55471
55472 2005-10-22  Simon Josefsson  <jas@extundo.com>
55473
55474         * lib/crc.h: Include stddef.h, for size_t.
55475
55476 2005-10-22  Simon Josefsson  <jas@extundo.com>
55477
55478         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
55479         arcfour_context struct (simplify test vector testing in GNU
55480         Shishi).
55481
55482 2005-10-21  Simon Josefsson  <jas@extundo.com>
55483
55484         * modules/des, modules/des-tests: New files.
55485
55486         * modules/gc-des, modules/gc-des-tests: New files.
55487
55488         * tests/test-des.c, tests/test-gc-des.c: New file.
55489
55490 2005-10-21  Simon Josefsson  <jas@extundo.com>
55491
55492         * modules/arctwo, modules/arctwo-tests: New files.
55493
55494         * tests/test-arctwo.c: New file.
55495
55496         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
55497
55498         * tests/test-gc-arctwo.c: New file.
55499
55500 2005-10-21  Simon Josefsson  <jas@extundo.com>
55501
55502         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
55503         Bruno Haible <bruno@clisp.org>.
55504
55505         * m4/gc-des.m4: New file.
55506
55507 2005-10-21  Simon Josefsson  <jas@extundo.com>
55508
55509         * m4/arctwo.m4: New file.
55510
55511         * m4/gc-arctwo.m4: New file.
55512
55513 2005-10-21  Simon Josefsson  <jas@extundo.com>
55514
55515         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
55516         block.
55517
55518 2005-10-21  Simon Josefsson  <jas@extundo.com>
55519
55520         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
55521         <bruno@clisp.org>.
55522
55523         * lib/hmac-sha1.c (hmac_sha1): Likewise.
55524
55525         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
55526         Bruno Haible <bruno@clisp.org>.
55527
55528         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
55529         <bruno@clisp.org>.
55530
55531 2005-10-21  Simon Josefsson  <jas@extundo.com>
55532
55533         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
55534
55535 2005-10-21  Simon Josefsson  <jas@extundo.com>
55536
55537         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
55538
55539 2005-10-21  Simon Josefsson  <jas@extundo.com>
55540
55541         * lib/des.h, lib/des.c: New files.
55542
55543         * lib/gc-gnulib.c: Support DES.c
55544
55545 2005-10-21  Simon Josefsson  <jas@extundo.com>
55546
55547         * lib/arctwo.h, lib/arctwo.c: New files.
55548
55549         * lib/gc-gnulib.c: Support ARCTWO.
55550
55551 2005-10-21  Simon Josefsson  <jas@extundo.com>
55552
55553         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
55554         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55555
55556 2005-10-21  Simon Josefsson  <jas@extundo.com>
55557
55558         * gnulib-tool (func_import, func_create_testdir): Define automake
55559         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
55560         Makefile.am snippet),
55561         suggested by Bruno Haible <bruno@clisp.org>.
55562
55563         * modules/gc (Makefile.am): Use it.
55564
55565 2005-10-21  Bruno Haible  <bruno@clisp.org>
55566
55567         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
55568         patch.
55569
55570 2005-10-19  Simon Josefsson  <jas@extundo.com>
55571
55572         * tests/test-gc-rijndael.c: New file.
55573
55574         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
55575
55576 2005-10-19  Simon Josefsson  <jas@extundo.com>
55577
55578         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
55579         interface too.
55580
55581 2005-10-19  Simon Josefsson  <jas@extundo.com>
55582
55583         * tests/test-gc-arcfour.c: New file.
55584
55585         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
55586
55587 2005-10-19  Simon Josefsson  <jas@extundo.com>
55588
55589         * modules/gc-md4, modules/gc-md4-tests: New file.
55590
55591         * tests/test-gc-md4.c: New file.
55592
55593 2005-10-19  Simon Josefsson  <jas@extundo.com>
55594
55595         * m4/gc-md4.m4: New file.
55596
55597 2005-10-19  Simon Josefsson  <jas@extundo.com>
55598
55599         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
55600         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
55601         <kasal@ucw.cz>.
55602
55603 2005-10-19  Simon Josefsson  <jas@extundo.com>
55604
55605         * m4/gc-arcfour.m4: New file.
55606
55607         * m4/gc-rijndael.m4: New file.
55608
55609 2005-10-19  Simon Josefsson  <jas@extundo.com>
55610
55611         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
55612
55613 2005-10-19  Simon Josefsson  <jas@extundo.com>
55614
55615         * lib/gc-gnulib.c: Support ARCFOUR.
55616
55617 2005-10-19  Simon Josefsson  <jas@extundo.com>
55618
55619         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
55620         support.
55621
55622         * lib/gc.h: Add ECB enum type.
55623
55624         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
55625
55626 2005-10-18  Simon Josefsson  <jas@extundo.com>
55627
55628         * tests/test-md5.c: New file.
55629
55630         * modules/md5-tests: New file.
55631
55632 2005-10-18  Simon Josefsson  <jas@extundo.com>
55633
55634         * tests/test-md4.c: New file.
55635
55636         * modules/md4, modules/md4-tests: New files.
55637
55638 2005-10-18  Simon Josefsson  <jas@extundo.com>
55639
55640         * m4/md4.m4: New file.
55641
55642 2005-10-18  Simon Josefsson  <jas@extundo.com>
55643
55644         * lib/md4.h, lib/md4.c: New files, based on md5.?.
55645
55646 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
55647
55648         * gnulib-tool (func_create_testdir): Omit the second check whether
55649         BUILT_SOURCES in nonempty.
55650
55651 2005-10-17  Simon Josefsson  <jas@extundo.com>
55652
55653         * tests/test-rijndael.c: New file.
55654
55655 2005-10-17  Simon Josefsson  <jas@extundo.com>
55656
55657         * modules/sha1: Depend on stdint instead of md5.
55658
55659         * modules/md5: Depend on stdint, remove uint32_t.
55660
55661 2005-10-17  Simon Josefsson  <jas@extundo.com>
55662
55663         * modules/gc-sha1-tests: New file.
55664
55665         * tests/test-gc-sha1.c: New file.
55666
55667 2005-10-17  Simon Josefsson  <jas@extundo.com>
55668
55669         * m4/md5.m4: Remove call to uint32_t.m4.
55670
55671 2005-10-17  Simon Josefsson  <jas@extundo.com>
55672
55673         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
55674
55675         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
55676         md5.h.
55677
55678         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
55679
55680         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
55681
55682 2005-10-17  Simon Josefsson  <jas@extundo.com>
55683
55684         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
55685
55686 2005-10-17  Simon Josefsson  <jas@extundo.com>
55687
55688         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
55689
55690 2005-10-17  Simon Josefsson  <jas@extundo.com>
55691
55692         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
55693
55694         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
55695
55696 2005-10-17  Bruno Haible  <bruno@clisp.org>
55697
55698         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
55699         that it can also be used in a test.
55700
55701 2005-10-16  Bruno Haible  <bruno@clisp.org>
55702
55703         * gnulib-tool (func_emit_tests_Makefile_am): Also define
55704         TESTS_ENVIRONMENT, so that individual tests can augment it.
55705
55706         * gnulib-tool (func_create_testdir): Use an intermediate target for
55707         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
55708         macros, like $(ALLOCA_H), which cannot be passed through the command
55709         line.
55710
55711 2005-10-15  Simon Josefsson  <jas@extundo.com>
55712
55713         * modules/rijndael-tests: New file.
55714
55715         * modules/rijndael: New file.
55716
55717 2005-10-15  Simon Josefsson  <jas@extundo.com>
55718
55719         * m4/rijndael.m4: New file.
55720
55721 2005-10-15  Simon Josefsson  <jas@extundo.com>
55722
55723         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
55724
55725         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
55726
55727 2005-10-14  Simon Josefsson  <jas@extundo.com>
55728
55729         * tests/test-arcfour.c: New file.
55730
55731         * modules/arcfour, modules/arcfour-tests: New files.
55732
55733 2005-10-14  Simon Josefsson  <jas@extundo.com>
55734
55735         * m4/arcfour.m4: New file.
55736
55737 2005-10-14  Simon Josefsson  <jas@extundo.com>
55738
55739         * lib/arcfour.h, lib/arcfour.c: New files.
55740
55741 2005-10-14  Roland McGrath  <roland@redhat.com>
55742
55743         Import from libc.  [BZ #1331]
55744         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
55745         macro argument.
55746         Reported by Matej Vela <vela@debian.org>.
55747
55748 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55749
55750         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
55751         include <wchar.h>; no longer needed.
55752
55753 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55754
55755         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
55756
55757 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
55758         and  Ulrich Drepper  <drepper@redhat.com>
55759
55760         Import from libc.
55761         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
55762         instead of inline stream orientation test and two separate
55763         function calls.  Pay no attention to USE_IN_LIBIO.
55764
55765 2005-10-13  Simon Josefsson  <jas@extundo.com>
55766
55767         * modules/gc-hmac-md5-tests: New file.
55768
55769         * tests/test-gc-hmac-sha1.c: New file.
55770
55771         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
55772
55773         * modules/gc-hmac-md5-tests: New file.
55774
55775         * tests/test-gc-md5.c: New file.
55776
55777         * modules/gc-md5-tests: New file.
55778
55779 2005-10-13  Simon Josefsson  <jas@extundo.com>
55780
55781         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
55782         Move memory allocation outside of loop.
55783
55784 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
55785
55786         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
55787         intermediate directory is in a read-only file system.  Problem
55788         reported by Eric Blake.
55789
55790 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
55791
55792         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
55793
55794 2005-10-12  Simon Josefsson  <jas@extundo.com>
55795
55796         * tests/test-hmac-sha1.c: New file.
55797
55798         * modules/hmac-sha1-tests: New file.
55799
55800         * modules/hmac-sha1: New file.
55801
55802 2005-10-12  Simon Josefsson  <jas@extundo.com>
55803
55804         * modules/gc-sha1: New file.
55805
55806 2005-10-12  Simon Josefsson  <jas@extundo.com>
55807
55808         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
55809
55810         * tests/test-gc-pbkdf2-sha1.c: New file.
55811
55812 2005-10-12  Simon Josefsson  <jas@extundo.com>
55813
55814         * modules/gc-md5, modules/gc-hmac-md5: New files.
55815
55816         * modules/gc (Files): Remove md5, memxor and hmac files.
55817
55818 2005-10-12  Simon Josefsson  <jas@extundo.com>
55819
55820         * m4/gc-pbkdf2-sha1.m4: New file.
55821
55822         * m4/gc-hmac-sha1.m4: New file.
55823
55824         * m4/gc-sha1: New file.
55825
55826         * m4/hmac-sha1.m4: New file.
55827
55828 2005-10-12  Simon Josefsson  <jas@extundo.com>
55829
55830         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
55831
55832         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
55833
55834 2005-10-12  Simon Josefsson  <jas@extundo.com>
55835
55836         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
55837         suggested by Bruno Haible <bruno@clisp.org>.
55838
55839 2005-10-12  Simon Josefsson  <jas@extundo.com>
55840
55841         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
55842
55843 2005-10-12  Simon Josefsson  <jas@extundo.com>
55844
55845         * lib/gc-pbkdf2-sha1.c: New file.
55846
55847         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
55848
55849 2005-10-12  Simon Josefsson  <jas@extundo.com>
55850
55851         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
55852
55853         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
55854
55855 2005-10-12  Simon Josefsson  <jas@extundo.com>
55856
55857         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
55858         GC_USE_HMAC_MD5, respectively.
55859
55860         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
55861         (gc_md5): Fix typo.
55862
55863         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
55864
55865         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
55866
55867         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
55868
55869 2005-10-12  Bruno Haible  <bruno@clisp.org>
55870
55871         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
55872         Reported by Stepan Kasal <kasal@ucw.cz>.
55873
55874 2005-10-11  Simon Josefsson  <jas@extundo.com>
55875
55876         * tests/test-crc.c: New file.
55877
55878         * modules/crc, modules/crc-tests: New files.
55879
55880 2005-10-11  Simon Josefsson  <jas@extundo.com>
55881
55882         * m4/crc.m4: New file.
55883
55884 2005-10-11  Simon Josefsson  <jas@extundo.com>
55885
55886         * lib/gc.h: Add gc_hash and gc_hash_buffer.
55887
55888         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
55889
55890         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
55891
55892 2005-10-11  Simon Josefsson  <jas@extundo.com>
55893
55894         * lib/crc.h, lib/crc.c: New files.
55895
55896         * lib/gc.h (gc_hash_buffer): Add doc.
55897
55898 2005-10-11  Bruno Haible  <bruno@clisp.org>
55899
55900         * modules/c-strcasestr: New file.
55901         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
55902
55903 2005-10-11  Bruno Haible  <bruno@clisp.org>
55904
55905         * modules/c-strcase: New file.
55906         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
55907
55908 2005-10-11  Bruno Haible  <bruno@clisp.org>
55909
55910         * lib/strcasecmp.c: Include limits.h.
55911         (strcasecmp): Avoid integer overflow on exotic platforms.
55912         * lib/strncasecmp.c: Include limits.h.
55913         (strncasecmp): Avoid integer overflow on exotic platforms.
55914         Reported by Paul Eggert.
55915
55916 2005-10-11  Bruno Haible  <bruno@clisp.org>
55917
55918         * lib/c-strcasestr.h: New file, from GNU gettext.
55919         * lib/c-strcasestr.c: New file, from GNU gettext.
55920
55921 2005-10-11  Bruno Haible  <bruno@clisp.org>
55922
55923         * lib/c-strcase.h: New file, from GNU gettext.
55924         * lib/c-strcasecmp.c: New file, from GNU gettext.
55925         * lib/c-strncasecmp.c: New file, from GNU gettext.
55926
55927 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55928
55929         * modules/mempcpy (License): GPL -> LGPL.
55930         * modules/strchrnul (License): Likewise.
55931         * modules/sysexits (License): Likewise.
55932
55933 2005-10-08  Simon Josefsson  <jas@extundo.com>
55934
55935         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
55936
55937 2005-10-07  Simon Josefsson  <jas@extundo.com>
55938
55939         * m4/memxor.m4: Remove gl_C_RESTRICT call.
55940
55941 2005-10-06  Simon Josefsson  <jas@extundo.com>
55942
55943         * tests/test-hmac-md5.c: New file.
55944
55945         * modules/hmac-md5-tests: New file.
55946
55947         * modules/hmac-md5: New file.
55948
55949 2005-10-06  Simon Josefsson  <jas@extundo.com>
55950
55951         * m4/hmac-md5.m4: New file.
55952
55953         * m4/memxor.m4: Require gl_C_RESTRICT.
55954
55955 2005-10-06  Simon Josefsson  <jas@extundo.com>
55956
55957         * lib/memxor.c (memxor): Avoid casts and warnings.
55958
55959 2005-10-06  Simon Josefsson  <jas@extundo.com>
55960
55961         * lib/hmac-md5.c: New file.
55962
55963         * lib/hmac.h: New file.
55964
55965 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55966
55967         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
55968         promotes to int, not unsigned int, to catch the AIX 5.3
55969         compiler bug.
55970
55971 2005-10-05  Simon Josefsson  <jas@extundo.com>
55972
55973         * modules/memxor: New file.
55974
55975         * modules/iconv (Files): Move config.rpath to havelib, it is used
55976         there.
55977
55978         * modules/havelib (Files): Add config.rpath.
55979
55980 2005-10-05  Simon Josefsson  <jas@extundo.com>
55981
55982         * m4/memxor.m4: New file.
55983
55984 2005-10-05  Simon Josefsson  <jas@extundo.com>
55985
55986         * lib/memxor.c (memxor): Fix compiler error.
55987
55988         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
55989         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
55990
55991         * lib/memxor.h, lib/memxor.c: New files.
55992
55993         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
55994         we assume all systems have it, suggested by Jim Meyering
55995         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
55996         any systems lack sys/socket.h; mingw32 is known to lack it, but we
55997         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
55998         same reasons.
55999
56000 2005-10-05  Simon Josefsson  <jas@extundo.com>
56001
56002         * config/srclist.txt: Add glibc bug 1423 for md5.h.
56003
56004 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56005
56006         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
56007         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
56008         needed, since the source code now assumes these .h files.
56009
56010 2005-10-05  Derek Price  <derek@ximbiot.com>
56011
56012         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
56013
56014 2005-10-05  Bruno Haible  <bruno@clisp.org>
56015
56016         * modules/stdint (License): Change to LGPL.
56017
56018 2005-10-04  Simon Josefsson  <jas@extundo.com>
56019
56020         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
56021         D. Baushke" <mdb@gnu.org>.
56022
56023 2005-10-04  Bruno Haible  <bruno@clisp.org>
56024
56025         * lib/verify.h (verify_true): Provide alternative definition for C++.
56026
56027 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
56028
56029         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
56030         (SSIZE_MAX): New macro, if not already defined.
56031         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
56032         than 2 GiB.
56033
56034 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56035
56036         Sync from coreutils.
56037         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
56038         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
56039         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
56040         ULLONG_MAX doesn't work with 2.7.2.1.
56041
56042 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56043
56044         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
56045         From Ben Pfaff.
56046
56047         * modules/exclude (Depends-on): Depend on verify.
56048         * modules/strtoimax (Depends-on): Likewise.
56049         * modules/utimecmp (Depends-on): Likewise.
56050
56051 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56052
56053         * lib/exclude.c: Include verify.h.
56054         (verify): Remove.  All callers changed to use verify.h's version.
56055         * lib/strtoimax.c: Likewise.
56056         * lib/utimecmp.c: Likewis.e
56057
56058         Sync from coreutils.
56059         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
56060         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
56061         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
56062         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
56063         bother returning ENOSYS if settimeofday or stime fails; just let
56064         them return whatever errno they want to return.
56065         * lib/utimens.c: Include unistd.h, for dup2.
56066         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
56067         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
56068
56069 2005-10-02  Jim Meyering  <jim@meyering.net>
56070
56071         Sync from coreutils.
56072         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
56073         from glibc-2.2.5 that fails for read-only files.
56074
56075 2005-10-02  Jim Meyering  <jim@meyering.net>
56076
56077         Sync from coreutils.
56078         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
56079         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
56080         `#if HAVE_CONFIG_H'.
56081         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
56082         Remove AT_FDCWD test.
56083         Do not consume the fd unless successful.
56084         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
56085         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
56086         block, so that we don't even try to compile it if settimeofday is
56087         available.  This works around a compilation failure on OSF1 V5.1,
56088         due to stime requiring a `long int*' while tv_sec is `int'.
56089
56090 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
56091
56092         Sync from coreutils.
56093         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
56094         against `yes', rather than just testing for nonempty.
56095
56096 2005-10-01  Simon Josefsson  <jas@extundo.com>
56097
56098         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
56099         and Darwin.
56100
56101         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
56102         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
56103         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
56104         freeaddrinfo and gai_strerror are declared by the POSIX headers.
56105         Check if struct addrinfo is declared.
56106
56107 2005-10-01  Simon Josefsson  <jas@extundo.com>
56108
56109         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
56110         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
56111         AI_* and EAI_* definitions.  Protect function declarations.
56112
56113 2005-10-01  Jim Meyering  <jim@meyering.net>
56114
56115         Sync from coreutils.
56116
56117         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
56118         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
56119         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
56120         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
56121         in the inet and nsl libraries.  Required on Solaris 5.7.
56122
56123 2005-10-01  Jim Meyering  <jim@meyering.net>
56124
56125         Sync from coreutils.
56126         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
56127         in the inet and nsl libraries.  Required on Solaris 5.7.
56128
56129 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
56130
56131         * lib/getdelim.c (getdelim): Remove unused variables.
56132
56133 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56134
56135         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
56136         so that the code works even with ancient cpp.  Portability problem
56137         with GCC 2.7.2.1 reported by Thomas M.Ott.
56138
56139 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56140
56141         * modules/regex (Depends-on): Add strcase.
56142
56143         * modules/gethostname (Licence): Change from GPL to LGPL, since
56144         gethostname.c is a trivial implementation of a standard library
56145         function.
56146         * modules/poll (License): Change from GPL to LGPL, since it's
56147         derived from LGPL code.
56148
56149 2005-09-27  Jim Meyering  <jim@meyering.net>
56150
56151         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
56152         HAVE_CONFIG_H.
56153
56154         * lib/intprops.h (signed_type_or_expr__): Define.
56155         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
56156         for unsigned types.
56157
56158 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56159
56160         * lib/verify.h (verify_expr): Remove, replacing with:
56161         (verify_true): New macro that returns true instead of void.
56162         (verify_type__): Remove.
56163         (verify): Use verify_true rather than verify_type__.
56164
56165 2005-09-26  Bruno Haible  <bruno@clisp.org>
56166
56167         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
56168         is necessary.
56169         (lib_SOURCES): Remove mbchar.c.
56170         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
56171         (Files): Add m4/mbrtowc.m4.
56172         * modules/mbiter: Likewise.
56173         * modules/mbuiter: Likewise.
56174
56175 2005-09-26  Bruno Haible  <bruno@clisp.org>
56176
56177         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
56178         compile mbchar.c if they are not both present.
56179         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
56180         * m4/mbiter.m4 (gl_MBITER): Likewise.
56181         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
56182         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
56183         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
56184
56185 2005-09-25  Jim Meyering  <jim@meyering.net>
56186
56187         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
56188         also uses socklen_t.
56189
56190 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
56191
56192         * lib/utimens.c (ENOSYS): Define if not already defined.
56193         (futimens): Support having a null PATH if the file descriptor
56194         is nonnegative.
56195
56196         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
56197         Remove.
56198         (__attribute): Define to empty unless GCC 3.1 or later.
56199         This works around a core dump on OpenBSD 3.4, which has GCC
56200         2.95.3, which dumps core when given __attribute__(()).  It also
56201         simplifies other tests, since we really don't want to bother with
56202         worrying about which ancient version of GCC supported what.
56203         Original problem reported by Yoann Vandoorselaere, with part of
56204         the fix suggested by Derek Price.
56205
56206 2005-09-24  Jim Meyering  <jim@meyering.net>
56207
56208         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
56209         so we can once again use a positive bitfield width of 1 -- now we
56210         don't have to explain why we were using a bitfield width of 2.
56211
56212 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
56213
56214         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
56215         and similarly for the other external symbols.  Problem reported
56216         by James Gallager.
56217
56218         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
56219         bug reported by Jim Meyering.
56220
56221         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
56222         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
56223         not needed, since socklen is a prerequisite module.
56224
56225 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
56226
56227         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
56228         Problem reported by Eric Blake.
56229         (getaddrinfo): Initialize se so that it's not garbage.
56230         Redo internal storage allocation so that it doesn't make unportable
56231         assumptions about alignment.
56232         Fix a memory leak.
56233
56234         * lib/utimens.c (futimens): Use futimesat if available.
56235         Prefer it to futimes since it doesn't have the futimes bug.
56236
56237         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
56238         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
56239         Instead, declare a function that returns a pointer to an array,
56240         and use verify_type__ to declare the size of the array.
56241         Problem and germ of a solution reported by Bruno Haible.
56242         (verify_type__): Use 2, not 1, for bitfield size, to avoid
56243         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
56244
56245 2005-09-23  Jim Meyering  <jim@meyering.net>
56246
56247         Sync from coreutils.
56248         Correct build failure (socklen_t not defined) on at least
56249         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
56250         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
56251
56252 2005-09-23  Jim Meyering  <jim@meyering.net>
56253
56254         * modules/getaddrinfo (Depends-on): Add socklen.
56255
56256 2005-09-23  Bruno Haible  <bruno@clisp.org>
56257
56258         * tests/test-verify.c: New file.
56259
56260 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56261
56262         Sync from coreutils.
56263
56264         * modules/argmatch (Depends-on): Add verify.
56265         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
56266         unistd-safer.
56267         * modules/save-cwd (Depends-on): Likewise.
56268
56269         * modules/openat (Files): Add lib/openat-die.c.
56270         (Depends-on): Remove error, exitfail.
56271         Add dirname.
56272
56273         * modules/verify: New file.
56274         * MODULES.html.sh (Diagnostics <assert.h>): New section,
56275         with "verify" module.
56276
56277 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56278
56279         Sync from coreutils.
56280
56281         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
56282         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
56283         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
56284         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
56285         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
56286         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
56287         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
56288         Don't bother checking for string.h, stdlib.h, unistd.h.
56289         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
56290         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
56291         module's job.
56292         * m4/jm-macros.m4 (gl_MACROS): Likewise.
56293         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
56294
56295         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
56296         (gl_GETDATE): Use it.
56297
56298         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
56299
56300 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56301
56302         Sync from coreutils.
56303
56304         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
56305         stat-time.h.
56306         * lib/argmatch.h: Include verify.h
56307         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
56308         (ARGMATCH_ASSERT): Remove; unused.
56309         * lib/canonicalize.c: Assume STDC_HEADERS.
56310         * lib/exclude.c: Include "strcase.h".
56311         * lib/regex_internal.h [!defined _LIBC]: Likewise.
56312         * lib/getusershell.c: Include stdio--.h rather than stdio.h
56313         and stdio-safer.h.
56314         (getusershell): Call fopen, not fopen_safer.
56315         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
56316         Do not include unistd-safer.h.
56317         (save_cwd): Don't call fd_safer; no longer needed
56318         now that we include fcntl--.h.
56319
56320         * lib/getdate.y (relative_time): New type.
56321         (RELATIVE_TIME_0): New constant.
56322         (parser_control): Use relative_time instead of doing it ourselves.
56323         (%union): Add new relative_time rel member.
56324         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
56325         Now typeless.
56326         (relunit, relunit_snumber): Now of type rel.
56327         (zone, rel, relunit, get_date): Adjust to above changes.
56328
56329         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
56330         Do not include unistd-safer.h.
56331         (getloadavg): Don't call fd_safer; no longer needed
56332         now that we include fcntl--.h.
56333
56334         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
56335         (make_dir_parents): Treat ENOSYS like EEXIST.
56336
56337         Improve quality of diagnostics on restore_cwd failure.
56338         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
56339         (make_dir_parents): Last arg is now int * (for errno), not bool *.
56340         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
56341         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
56342         each time through the loop.  Do not diagnose restore_cwd failure;
56343         that is the caller's job (and perhaps the caller does not care).
56344
56345         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
56346         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
56347         If the file already exists but is not a directory, don't bother
56348         to try to make its parents.
56349         Close potential file descriptor leak if we can't chdir("/") (!).
56350         Don't always return true if chdir($PWD) fails; return true only
56351         if the requested action was done successfully (except for the
56352         chdir($PWD)).
56353         Don't log final directory unless we actually made it.
56354         Refactor to avoid duplicate code to fix up permissions.
56355         Don't attempt to fix up parent permissions if chdir($PWD) fails.
56356
56357         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
56358         to make it a bit faster and (I hope) clearer.
56359         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
56360         Fix bug in formats like %2N.
56361
56362         * lib/verify.h: New file.
56363
56364 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56365
56366         Sync from coreutils.
56367         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
56368
56369 2005-09-22  Jim Meyering  <jim@meyering.net>
56370
56371         Sync from coreutils.
56372
56373         * m4/lstat.m4 (gl_FUNC_LSTAT):
56374         Use AC_LIBSOURCES to require lstat.c and lstat.h.
56375         Remove obsolete comment.
56376         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
56377         * m4/xstrtod.m4: Likewise.
56378
56379         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
56380
56381 2005-09-22  Jim Meyering  <jim@meyering.net>
56382
56383         Sync from coreutils.
56384
56385         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
56386
56387         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
56388         the .tm_year member, since otherwise gcc-4.0 would now warn about
56389         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
56390
56391         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
56392         order to avoid an unsuppressible warning from gcc on 64-bit systems.
56393
56394         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
56395         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
56396         when run in a time zone for which daylight savings time is in effect
56397         for the starting date.
56398
56399         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
56400         stop us from restricting permissions of just-created absolute-named
56401         directories.
56402         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
56403         to restore initial working directory.
56404         * lib/mkdir-p.c (make_dir_parents): New parameter:
56405         different_working_dir, to tell caller if/when we change the working
56406         directory and are unable to return to the initial one.
56407         * lib/mkdir-p.h (make_dir_parents): Update prototype.
56408         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
56409         `return false'.  This fixes a bug introduced on 2004-07-30.
56410
56411         * lib/openat.c (fdopendir): Be sure to close the supplied
56412         file descriptor before returning.  This makes our replacement
56413         implementation a little closer to Solaris's, where fdopendir
56414         ties the file descriptor to the returned DIR* pointer.
56415         * lib/openat.c (unlinkat): New function.
56416         * lib/openat.h (unlinkat): Add prototype.
56417         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
56418         (openat_restore_fail): Rename from openat_restore_die.
56419         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
56420
56421         Provide an alternative to exiting immediately upon save_cwd or
56422         restore_cwd failure.  Now, an application can arrange e.g.,
56423         to perform a longjump in that case.
56424         * lib/openat.c: Include dirname.h.
56425         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
56426         (rpl_openat, fdopendir, fstatat): Call openat_save_die
56427         and openat_restore_die rather than calling error directly.
56428         Don't include "error.h" or "exitfail.h"; they're no longer needed.
56429
56430         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
56431         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
56432         define.
56433
56434         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
56435         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
56436                             int utc, int nanoseconds);
56437         Background:
56438         date should not have to allocate a megabyte of virtual memory to
56439         handle a format argument like +%1048575T.  When implemented with
56440         strftime, it must allocate such a buffer, use strftime to fill it
56441         in, print it, then free it.
56442         With fprintftime, it simply prints everything and exits.
56443         With no need for memory allocation, that's one fewer way to fail.
56444         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
56445         optional field width, not before, so we accept %9:z, not %:9z.
56446         (my_strftime): Be sure to use L_('x') for literals.
56447
56448         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
56449         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
56450         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
56451         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
56452         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
56453         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
56454         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
56455         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
56456         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
56457         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
56458         * lib/xgethostname.c, lib/xreadlink.c:
56459         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
56460
56461         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
56462         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
56463         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
56464         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56465         and don't include <sys/file.h>).
56466
56467 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
56468
56469         Sync from coreutils.
56470
56471         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
56472         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
56473         [!LDAV_DONE]: Avoid unused variable warning.
56474
56475 2005-09-21  Bruno Haible  <bruno@clisp.org>
56476
56477         * lib/unicodeio.h (unicode_to_mb): New declaration.
56478
56479 2005-09-20  Derek Price  <derek@ximbiot.com>
56480
56481         * lib/getaddrinfo.c: Don't include <netdb.h> included from
56482         getaddrinfo.h.
56483
56484 2005-09-20  Bruno Haible  <bruno@clisp.org>
56485
56486         * gnulib-tool: Remove trailing slashes from the values specified for
56487         --source-base, --m4-base, --tests-base, --aux-dir.
56488         Suggested by Simon Josefsson <jas@extundo.com>.
56489
56490 2005-09-20  Bruno Haible  <bruno@clisp.org>
56491
56492         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
56493         func_modules_to_filelist, func_import, func_create_testdir): Make all
56494         sorting results locale-independent, so that gnulib-cache.m4 doesn't
56495         change when gnulib-tool is invoked in a different locale.
56496
56497 2005-09-19  Simon Josefsson  <jas@extundo.com>
56498
56499         * m4/socklen.m4: Fix typo.
56500
56501 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56502
56503         Use a consistent style for including <config.h>.
56504         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
56505         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
56506         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
56507         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
56508         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
56509         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
56510         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
56511         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
56512         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
56513         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
56514         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
56515         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
56516         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
56517         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
56518         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
56519         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
56520         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
56521         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
56522         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
56523         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
56524         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
56525         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
56526         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
56527         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
56528         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
56529         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
56530         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
56531         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
56532         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
56533         lib/xstrtoumax.c, lib/yesno.c:
56534         Standardize inclusion of config.h.
56535         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
56536         lib/inttostr.h:  Removed inclusion of config.h from header files.
56537         * lib/inttostr.c:  Adjusted in-tree users.
56538         * lib/timespec.h: Remove superfluous warning to include config.h.
56539         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
56540         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
56541         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
56542         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
56543         config.h with HAVE_CONFIG_H.
56544
56545 2005-09-19  Jim Meyering  <jim@meyering.net>
56546
56547         * modules/pathmax (License): Change to LGPL.
56548
56549 2005-09-19  Derek Price  <derek@ximbiot.com>
56550
56551         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
56552
56553 2005-09-19  Bruno Haible  <bruno@clisp.org>
56554
56555         * gnulib-tool (import): Provide default for --tests-base.
56556
56557 2005-09-19  Bruno Haible  <bruno@clisp.org>
56558
56559         * doc/quote.texi: New file, extracted from gnulib.texi.
56560         * doc/ctime.texi: New file, extracted from gnulib.texi.
56561         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
56562         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
56563         * doc/gnulib.texi: Include them.
56564
56565 2005-09-18  Bruno Haible  <bruno@clisp.org>
56566
56567         Portability fix.
56568         * gnulib-tool (func_readlink): New function.
56569         (func_ln_if_changed): Use it.
56570
56571 2005-09-18  Bruno Haible  <bruno@clisp.org>
56572
56573         * gnulib-tool: Support --with-tests also with --import.
56574         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
56575         (func_import): Use variables $testsbase and $inctests. Emit a
56576         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
56577         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
56578         SUBDIRS += $testsdir.
56579         (func_create_testdir): Update.
56580
56581 2005-09-18  Bruno Haible  <bruno@clisp.org>
56582
56583         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
56584         instead of $dry_run.
56585         (func_cp_if_changed, func_mv_if_changed): Remove functions.
56586         (func_ln_if_changed): Don't handle dry-run here.
56587         (func_import): In dry-run mode, detect more precisely which actions
56588         would be performed, and don't use "...ing" verbs.
56589
56590 2005-09-18  Bruno Haible  <bruno@clisp.org>
56591
56592         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
56593         (func_import): Use join on two temporary files instead of three nested
56594         loops, in order to determine which files are new or old.
56595
56596 2005-09-18  Bruno Haible  <bruno@clisp.org>
56597
56598         * gnulib-tool (func_import): Comment out code that spits out the
56599         new files with --dry-run.
56600
56601 2005-09-18  Bruno Haible  <bruno@clisp.org>
56602
56603         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
56604
56605 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56606
56607         * lib/stat-time.h: New file.
56608         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
56609         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
56610         in a different way.
56611         (timespec_cmp): New function.
56612         * lib/utimecmp.c: Include stat-time.h.
56613         (SYSCALL_RESOLUTION): Depend on whether various struct stat
56614         members exist, not on the obsolescent ST_MTIM_NSEC.
56615         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
56616
56617 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56618
56619         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
56620
56621 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56622
56623         * MODULES.html.sh (File system functions): Add stat-time.
56624         * modules/stat-time: New file.
56625         * modules/timespec (Files): Remove m4/st_mtim.m4; this
56626         is now done in a different way, by the stat-time module.
56627         * modules/utimecmp (Depends-on): Add stat-time.
56628
56629 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56630
56631         * m4/st_mtim.m4: Remove.  Superseded by...
56632         * m4/stat-time.m4: New file.
56633         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
56634         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
56635
56636 2005-09-15  Derek Price  <derek@ximbiot.com>
56637
56638         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
56639
56640 2005-09-15  Derek Price  <derek@ximbiot.com>
56641
56642         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
56643         * lib/regex_internal.c: Ditto, using this...
56644         (__GNUC_PREREQ): ...new macro.
56645         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
56646         using...
56647         (__GNUC_PREREQ): ...this new macro.
56648
56649         * lib/strstr.h: Include string.h. Define strstr as a macro here.
56650
56651 2005-09-15  Derek Price  <derek@ximbiot.com>
56652             Paul Eggert  <eggert@cs.ucla.edu>
56653
56654         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
56655         changes, consolidating in...
56656         * lib/regex_internal.h: ...this file.
56657
56658 2005-09-13  Jim Meyering  <jim@meyering.net>
56659
56660         * lib/canon-host.c: Filter through gnu indent and reword comments
56661         slightly.
56662         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
56663
56664 2005-09-13  Derek Price  <derek@ximbiot.com>
56665
56666         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
56667         failure.
56668         Reported by Jim Meyering  <jim@meyering.net>.
56669
56670 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56671
56672         * lib/base64.c: Typo.
56673         (base64_encode): Put b64str in initialized data section.
56674
56675 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
56676
56677         Merge glibc and coreutils changes into gnulib, plus a few
56678         extra fixes.
56679         * lib/md5.c: Use #error rather than a string.
56680         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
56681         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
56682         (__attribute__): Define to empty for non recent-GCC.
56683         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
56684         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
56685         Renamed from their non-__ counterparts, with new macros replacing
56686         them if not _LIBC.  Add __THROW attribute.
56687         (rol): Remove.
56688         (struct md5_ctx): Align buffer if using GCC.
56689         * lib/sha1.h (struct sha1_ctx): Likewise.
56690         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
56691         The old name was backwards.
56692         (NOTSWAP): Remove; not used.
56693         (rol): New macro, moved here from md5.h.
56694         (sha1_process_block): Remove a FIXME that doesn't make sense.
56695
56696 2005-09-12  Derek Price  <derek@ximbiot.com>
56697
56698         Return usable errors from canon-host.
56699         * lib/canon-host.h: New file.
56700         * lib/canon-host.c (canon_host): Wrap...
56701         (canon_host_r): ...this new function, which now relies exclusively on
56702         getaddrinfo.
56703         (ch_strerror): New function.
56704         (last_cherror): New global.
56705         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
56706         interface.
56707         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
56708         void *.
56709         (freeaddrinfo): Free ai->ai_canonname when set.
56710
56711 2005-09-12  Derek Price  <derek@ximbiot.com>
56712
56713         Make canon-host require getaddrinfo.
56714         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
56715         AC_LIBSOURCE canon-host.h.  Call...
56716         (gl_PREREQ_CANON_HOST): ...this new function, which requires
56717         gl_GETADDRINFO.
56718         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
56719
56720 2005-09-12  Derek Price  <derek@ximbiot.com>
56721
56722         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
56723         LGPL.
56724         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
56725
56726 2005-09-12  Derek Price  <derek@ximbiot.com>
56727
56728         * lib/gai_strerror.c: Include config.h when available.  Include
56729         getaddrinfo.h before other headers to test interface.
56730         Reported by Larry Jones <lawrence.jones@ugs.com>.
56731
56732 2005-09-12  Derek Price  <derek@ximbiot.com>
56733             Paul Eggert  <eggert@cs.ucla.edu>
56734
56735         * modules/glob (Files): Add glob-libc.h.
56736
56737 2005-09-12  Derek Price  <derek@ximbiot.com>
56738             Paul Eggert  <eggert@cs.ucla.edu>
56739
56740         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
56741         glob_.h, glob-libc.h.
56742         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
56743
56744 2005-09-12  Derek Price  <derek@ximbiot.com>
56745             Paul Eggert  <eggert@cs.ucla.edu>
56746
56747         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
56748         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
56749         protecting things that should be done only in gnulib contexts.
56750         * lib/glob_.h: New file, containing only the glob things needed for
56751         gnulib.
56752         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
56753         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
56754         (glob, globfree, glob_pattern_p): Now defined simply in terms of
56755         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
56756         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
56757         and to respect the namespace rules better.
56758
56759 2005-09-08  Simon Josefsson  <jas@extundo.com>
56760
56761         * modules/socklen: New file.
56762
56763 2005-09-08  Simon Josefsson  <jas@extundo.com>
56764
56765         * m4/socklen.m4: New file.
56766
56767 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56768
56769         * modules/utimens (Files): Add m4/utimbuf.m4, since
56770         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
56771         Reported by Sergey Poznyakoff.
56772
56773 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56774
56775         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
56776         definitions, since that's the preferred style in glibc.
56777         Fix a minor spacing issue, and update copyright notice to match
56778         glibc's.
56779
56780 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56781
56782         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
56783
56784 2005-09-06  Simon Josefsson  <jas@extundo.com>
56785
56786         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
56787         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
56788
56789 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56790
56791         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
56792         warning.
56793
56794 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56795
56796         * config/srclist.txt: Add glibc bug 1302.
56797
56798 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
56799
56800         Change bitset word type from unsigned int to unsigned long int,
56801         as this has better performance on typical 64-bit hosts.
56802         Port bitset code to hosts with unusual word sizes.
56803         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
56804         (build_collating_symbol):
56805         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
56806         argument is a bitset.  This is merely a style issue, but it makes
56807         it clearer that an entire array is expected.
56808         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
56809         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
56810         Port to the case where bitset_word is not the same as unsigned int.
56811         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56812         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
56813         Likewise.
56814         * lib/regexec.c (check_dst_limits_calc_pos_1,
56815         check_subexp_matching_top):
56816         (build_trtable, group_nodes_into_DFAstates):
56817         Likewise.
56818         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
56819         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
56820         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
56821         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
56822         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
56823         * lib/regcomp.c (optimize_subexps, lower_subexp):
56824         Work even if bitset_word has holes in its bitwise representation.
56825         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
56826         * lib/regexec.c (check_dst_limits_calc_pos_1,
56827         check_subexp_matching_top):
56828         Likewise.
56829         * lib/regex_internal.c (re_string_reconstruct):
56830         Don't assume UCHAR_MAX == 255.
56831         * lib/regex_internal.h (bitset_set_all): Likewise.
56832         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
56833         All uses changed.
56834         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
56835         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
56836         All uses changed.
56837         (BITSET_WORD_MAX): New macro.
56838         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
56839         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
56840         (bitset_empty, bitset_copy):
56841         Prefer sizeof (bitset) to multiplying it out ourselves.
56842         (bitset_not_merge): Remove; unused.
56843         (bitset_contain): Return bool, not unsigned int with one bit on.
56844         All callers changed.
56845         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
56846         alignment than re_node_set; do this by defining a new internal
56847         type struct dests_alloc and using it to allocate memory.
56848
56849 2005-09-05  Bruno Haible  <bruno@clisp.org>
56850
56851         * gnulib-tool (func_import): Fix comparison in handling of symbolic
56852         links.
56853
56854 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
56855
56856         * modules/size_max (Makefile.am): Add size_max.h
56857
56858 2005-09-04  Derek Price  <derek@ximbiot.com>
56859
56860         * gnulib-tool (func_import): Fix reversed $symbolic logic.
56861
56862 2005-09-03  Simon Josefsson  <jas@extundo.com>
56863
56864         * gnulib-tool: Fix typo.
56865
56866 2005-09-03  Simon Josefsson  <jas@extundo.com>
56867
56868         * config/srclist.txt: Add glibc bug 1293.
56869
56870 2005-09-03  Derek Price  <derek@ximbiot.com>
56871
56872         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
56873         From Larry Jones <lawrence.jones@ugs.com>.
56874
56875 2005-09-02  Simon Josefsson  <jas@extundo.com>
56876
56877         * modules/socklen: New file.
56878
56879 2005-09-02  Simon Josefsson  <jas@extundo.com>
56880
56881         * modules/havelib: New module.
56882
56883         * modules/gettext, modules/iconv, modules/lock, modules/readline:
56884         Use havelib.
56885
56886 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56887
56888         Check for arithmetic overflow when calculating sizes, to prevent
56889         some buffer-overflow issues.  These patches are conservative, in the
56890         sense that when I couldn't determine whether an overflow was possible,
56891         I inserted a run-time check.
56892         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
56893         macros.
56894         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
56895         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
56896         (re_xnrealloc, re_x2nrealloc): New inline functions.
56897         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
56898         parse_bracket_exp):
56899         (build_equiv_class, build_charclass): Check for arithmetic overflow
56900         in size expression calculations.
56901         * lib/regex_internal.c (re_string_realloc_buffers):
56902         (build_wcs_upper_buffer, re_node_set_add_intersect):
56903         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
56904         (re_dfa_add_node, register_state): Likewise.
56905         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
56906         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
56907         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
56908         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
56909
56910 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56911
56912         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
56913         m4/ulonglong.m4.  Problem reported by Martin Lambers.
56914
56915 2005-09-02  Bruno Haible  <bruno@clisp.org>
56916
56917         Support for lib vs. lib64 distinction on biarch platforms.
56918         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
56919         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
56920         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
56921
56922 2005-09-02  Bruno Haible  <bruno@clisp.org>
56923
56924         * gnulib-tool (import): In the other first-use case, provide defaults
56925         as well.
56926
56927 2005-09-02  Bruno Haible  <bruno@clisp.org>
56928
56929         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
56930         patches not yet found in the latest gettext release.
56931
56932 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56933
56934         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
56935         to avoid a collision with bits/local_lim.h in glibc.
56936         All uses changed.  Problem reported by Dmitry V. Levin in
56937         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
56938
56939         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
56940         bugs in int versus size_t comparisons.
56941         (re_string_context_at): Fix bug where the code assumed that
56942         Idx is signed.
56943
56944         Use bool where appropriate.
56945         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
56946         All callers changed.
56947         (calc_eclosure_iter): Likewise, for ROOT arg.
56948         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
56949         (build_charclass_op): Likewise, for NON_MATCH arg.
56950         * lib/regex_internal.c (re_string_allocate, re_string_construct):
56951         (re_string_construct_common): Likewise, for ICASE arg.
56952         * lib/regexec.c (re_search_2_stub, re_search_stub):
56953         Likewise, for RET_LEN arg.
56954         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
56955         (set_regs): Likewise, for FL_BACKTRACK arg.
56956         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
56957         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
56958         (calc_eclosure_iter, parse_bracket_exp):
56959         Use bool for internal variables that are booleans.
56960         * lib/regexec.c (re_search_internal, check_matching,
56961         proceed_next_node):
56962         (set_regs, build_sifted_states, sift_states_bkref):
56963         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
56964         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56965         (find_collation_sequence_value):
56966         Likewise.
56967         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
56968         (re_node_set_compare):
56969         Return bool, not int. All callers changed.
56970         * lib/regexec.c (check_halt_node_context, check_dst_limits):
56971         (build_trtable, check_node_accept): Likewise.
56972         * lib/regex_internal.h: Include stdbool.h.
56973
56974         Fix bugs uncovered when converting to bool.
56975         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
56976         failure instead of charging ahead blindly.
56977         * lib/regex_internal.c (register_state): Likewise.
56978         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
56979         for freeing internal storage.
56980         (group_nodes_into_DFA_states): Use unsigned int, not int, for
56981         bitset pieces used as boolean, to avoid undefined behavior
56982         on hosts that do int overflow checking.
56983
56984 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56985
56986         * config/srclist.txt: Add glibc bugs 1285-1287.
56987
56988 2005-09-01  Jim Meyering  <jim@meyering.net>
56989
56990         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
56991         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
56992         Require gl_STAT_MACROS, too.
56993
56994 2005-09-01  Bruno Haible  <bruno@clisp.org>
56995
56996         * gnulib-tool (import): In the first-use case, provide defaults.
56997
56998 2005-09-01  Bruno Haible  <bruno@clisp.org>
56999
57000         * gnulib-tool (func_import): Remove the .tmp files.
57001
57002 2005-09-01  Bruno Haible  <bruno@clisp.org>
57003
57004         * gnulib-tool (func_import): Fix handling of symbolic links.
57005
57006 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57007
57008         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
57009         old glibc regex code mishandles strings longer than 2**31 bytes.
57010         This patch fixes this when the regex code is used in gnulib
57011         (i.e., outside glibc).
57012
57013         This patch should not affect the use of the regex code inside
57014         glibc.  No doubt this problem also needs to be handled for glibc
57015         as well, but the result will be an incompatible change to the
57016         glibc ABI, and the old ABI will have to be supported too.  That
57017         can be the the subject for another patch.
57018
57019         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
57020         governing whether the rest of this patch is active.  By default,
57021         the macro is disabled and the patch has no effect.
57022         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
57023         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
57024         (struct re_pattern_buffer, re_search, re_search_2, re_match):
57025         (re_match_2, re_set_registers): Use the new types.
57026         * lib/regex_internal.h (Idx, re_hashval_t): New types.
57027         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
57028         New macros.
57029         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
57030         (re_string_context_at, bin_tree_t, re_dfastate_t):
57031         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
57032         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
57033         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
57034         (re_string_char_size_at, re_string_wchar_at):
57035         (re_string_elem_size_at):
57036         Use the new types and macros to port to 64-bit hosts.
57037         Use unsigned types for internal values, so that the code
57038         mostly works even for arrays larger than SSIZE_MAX.
57039         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
57040         (search_duplicated_node, calc_eclosure_iter, fetch_number):
57041         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
57042         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
57043         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
57044         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
57045         (calc_inveclosure, parse_dup_op, build_range_exp):
57046         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
57047         (fetch_number, create_token_tree, mark_opt_subexp):
57048         Likewise.
57049         * lib/regex_internal.c (re_string_construct_common,
57050         create_ci_newstate):
57051         (create_cd_newstate, re_string_allocate, re_string_construct):
57052         (re_string_realloc_buffers, build_wcs_upper_buffer):
57053         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
57054         (re_string_reconstruct, re_string_peek_byte_case):
57055         (re_string_fetch_byte_case, re_string_context_at):
57056         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57057         (re_node_set_init_copy, re_node_set_add_intersect):
57058         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57059         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57060         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57061         (re_acquire_state, re_acquire_state_context, register_state):
57062         Likewise.
57063         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
57064         search_cur_bkref_entry):
57065         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
57066         (re_search_internal, re_search_2_stub, re_search_stub)
57067         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
57068         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
57069         (update_cur_sifted_state, check_dst_limits):
57070         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
57071         (check_subexp_limits, sift_states_bkref, merge_state_array):
57072         (check_subexp_matching_top, get_subexp, get_subexp_sub):
57073         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
57074         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57075         (expand_bkref_cache, check_node_accept_bytes):
57076         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
57077         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
57078         (acquire_init_state_context, check_halt_node_context):
57079         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
57080         (sift_states_backward, clean_state_log_if_needed):
57081         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
57082         (find_recover_state, transit_state_sb, transit_state_mb):
57083         (transit_state_bkref, build_trtable, match_ctx_clean):
57084         Likewise.
57085         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
57086         to work around an assumption that REG_MISSING is negative.
57087
57088         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
57089         (seek_collating_symbol_entry) [defined _LIBC]:
57090         (lookup_collation_sequence_value) [defined _LIBC]:
57091         (build_range_exp, build_collating_symbol) [defined _LIBC]:
57092         Use prototypes rather than old-style function definitions.
57093         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
57094         (transit_state_sb) [0]:
57095         (find_collation_sequence_value) [defined _LIBC]: Likewise.
57096
57097         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
57098         rm_eo.
57099
57100         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
57101         (optimize_subexps, lower_subexp):
57102         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
57103         since the signed shift might overflow.  Use 1u<<31 instead.
57104         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
57105         Likewise.
57106         * lib/regexec.c (check_dst_limits_calc_pos_1,
57107         check_subexp_matching_top): Likewise.
57108
57109         * lib/regcomp.c (optimize_subexps, lower_subexp):
57110         Use CHAR_BIT rather than 8, for clarity.
57111         * lib/regexec.c (check_dst_limits_calc_pos_1):
57112         (check_subexp_matching_top): Likewise.
57113         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
57114         have to worry about portability issues when shifting it left.
57115         Remove no-longer-needed test for table_size > 0.
57116         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
57117         in a word, as the resulting behavior is undefined.
57118         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
57119         in one case, a <= should have been an <, and in another case the
57120         whole test was missing.
57121         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
57122         the standard name CHAR_BIT.
57123         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
57124         this is not true on one's complement and signed-magnitude hosts.
57125
57126         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
57127         next_last_offset.
57128         (struct re_dfa_t): Remove unused member states_alloc.
57129         * lib/regcomp.c (init_dfa): Don't initialize unused members.
57130
57131 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57132
57133         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
57134         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
57135         and large-file glibc and in 32-bit large-file Solaris.
57136
57137 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57138
57139         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
57140         lengths fit in regoff_t; this isn't true if regoff_t is the same
57141         width as size_t.
57142         * lib/regex.c (re_search_internal): 5th arg is LAST_START
57143         (= START + RANGE) instead of RANGE.  This avoids overflow
57144         problems when regoff_t is the same width as size_t.
57145         All callers changed.
57146         (re_search_2_stub): Check for overflow when adding the
57147         sizes of the two strings.
57148         (re_search_stub): Check for overflow when adding START
57149         to RANGE; if it occurs, substitute the extreme value.
57150
57151 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57152
57153         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
57154
57155 2005-08-31  Jim Meyering  <jim@meyering.net>
57156
57157         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
57158         a pointer-to-const.
57159         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
57160         (register_state): Likewise.
57161         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
57162         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
57163         (group_nodes_into_DFAstates): Likewise.
57164
57165 2005-08-31  Jim Meyering  <jim@meyering.net>
57166
57167         * check-module: Add a FIXME comment.
57168
57169 2005-08-31  Eric Blake  <ebb9@byu.net>
57170
57171         * modules/unistd-safer (Files): Add unistd--.h.
57172         * modules/stdio-safer (Files): Add stdio--.h.
57173
57174 2005-08-31  Derek Price  <derek@ximbiot.com>
57175
57176         * lib/getdelim.c (getdelim): Return EOF on EOF.
57177         Reported by Larry Jones <lawrence.jones@ugs.com>.
57178
57179 2005-08-31  Bruno Haible  <bruno@clisp.org>
57180
57181         Avoid unnecessary diffs in the generated lib/Makefile.am.
57182         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
57183         the generated files.
57184         (func_import): Don't set cmd.
57185
57186 2005-08-31  Bruno Haible  <bruno@clisp.org>
57187
57188         * lib/strstr.c: Include <stddef.h>, for NULL.
57189         * lib/strcasestr.c: Likewise.
57190         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57191
57192 2005-08-31  Bruno Haible  <bruno@clisp.org>
57193
57194         * gnulib-tool: New option --macro-prefix.
57195         (func_import): Use macro_prefix.
57196         (import): Handle option --macro-prefix.
57197
57198 2005-08-31  Bruno Haible  <bruno@clisp.org>
57199
57200         * gnulib-tool (import): Rename most ac_* variables to cached_*.
57201         Also use new variables cached_lgpl, cached_libtool.
57202
57203 2005-08-31  Bruno Haible  <bruno@clisp.org>
57204
57205         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
57206         always instantiating them.
57207
57208 2005-08-31  Bruno Haible  <bruno@clisp.org>
57209
57210         * gnulib-tool (func_import): Read the previous cached settings
57211         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
57212         earlier added by gnulib but are now dropped. Warn when a gnulib file
57213         overwrites a non-gnulib file.
57214
57215 2005-08-31  Bruno Haible  <bruno@clisp.org>
57216
57217         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
57218         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
57219         projects that don't keep autogenerated files in CVS. Put into
57220         actioncmd only the specified modules, not the transitive closure.
57221
57222 2005-08-31  Bruno Haible  <bruno@clisp.org>
57223
57224         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
57225         Create directories that shall be filled.
57226         (import): Don't look for gl_* macros in configure.ac. Recurse across
57227         all directories containing a gnulib-cache.m4 files, if meaningful.
57228
57229 2005-08-31  Bruno Haible  <bruno@clisp.org>
57230
57231         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
57232         (import): Set seen_libtool when we see gl_LIBTOOL.
57233
57234 2005-08-31  Bruno Haible  <bruno@clisp.org>
57235
57236         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
57237         declaration macro definitions from generated gnulib.m4.
57238
57239 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
57240
57241         * lib/iconvme.h: Add prototype for iconv_alloc.
57242
57243 2005-08-29  Simon Josefsson  <jas@extundo.com>
57244
57245         * lib/iconvme.c: Fix errno.
57246
57247 2005-08-29  Bruno Haible  <bruno@clisp.org>
57248
57249         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
57250         that it works when the directory contains spaces.
57251
57252 2005-08-29  Bruno Haible  <bruno@clisp.org>
57253
57254         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
57255
57256 2005-08-29  Bruno Haible  <bruno@clisp.org>
57257
57258         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
57259         Emit more advice.
57260
57261 2005-08-29  Bruno Haible  <bruno@clisp.org>
57262         and Stepan Kasal  <kasal@ucw.cz>
57263
57264         * check-module: If more parameters are given, check each of them
57265         separately; add more exceptions, as noted by Jim Meyering.
57266         (check_module): New procedure.
57267         (%exempt_header): Now contains all exceptions.
57268
57269 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
57270
57271         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
57272
57273 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
57274
57275         * lib/iconvme.c: Split iconv_string into iconv_alloc.
57276
57277 2005-08-28  Bruno Haible  <bruno@clisp.org>
57278
57279         * m4/gnulib-tool.m4: New file.
57280
57281 2005-08-27  Jim Meyering  <jim@meyering.net>
57282
57283         * modules/unistd-safer (Files): Add pipe-safer.c.
57284         * modules/fcntl-safer (Files): Add creat-safer.c.
57285
57286 2005-08-27  Jim Meyering  <jim@meyering.net>
57287
57288         * m4/stdlib-safer.m4: New file.  From coreutils.
57289         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
57290         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
57291         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
57292         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
57293         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
57294
57295 2005-08-27  Jim Meyering  <jim@meyering.net>
57296
57297         * lib/fopen-safer.c: Merge minor changes from coreutils.
57298         * lib/dup-safer.c: Likewise.
57299         * lib/fd-safer.c: Likewise.
57300
57301         Merge from coreutils.
57302         * lib/stdio--.h: New file.
57303         * lib/stdlib--.h: New file.
57304         * lib/mkstemp-safer.c: New file.
57305
57306         GNU tar needs these.
57307         * lib/pipe-safer.c: New file.
57308         * lib/creat-safer.c: New file.
57309         * lib/fcntl--.h (creat): Define to creat_safer.
57310         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
57311         * lib/unistd--.h (pipe): Define to pipe_safer.
57312         * lib/unistd-safer.h: Declare pipe_safer.
57313
57314 2005-08-26  Simon Josefsson  <jas@extundo.com>
57315
57316         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
57317         Haible <bruno@clisp.org>.
57318
57319 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
57320
57321         * lib/regex_internal.h: Remove all references to
57322         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
57323         or better.
57324         (bitset_not, bitset_merge, bitset_not_merge):
57325         (bitset_mask, re_string_allocate, re_string_construct):
57326         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
57327         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
57328         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
57329         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
57330         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57331         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57332         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
57333         (re_acquire_state_context):
57334         Remove unnecessary forward decls.
57335         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
57336         Put __attribute at function definition,
57337         now that the function decl has been removed.
57338         * lib/regex_internal.c (re_string_peek_byte_case):
57339         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
57340         Likewise.
57341
57342 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
57343
57344         * m4/regex.m4: Add AC_PREREQ(2.50).
57345         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
57346
57347 2005-08-25  Simon Josefsson  <jas@extundo.com>
57348
57349         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
57350         __fsetlocking.
57351
57352 2005-08-25  Simon Josefsson  <jas@extundo.com>
57353
57354         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
57355         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
57356         GLIBC specific code.
57357
57358 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57359
57360         Make regex safe for g++.  This fixes one real bug (an "err"
57361         that should have been "*err").  g++ problem reported by
57362         Sam Steingold.
57363         * lib/regex_internal.h (re_calloc): New macro, consistent with
57364         re_malloc etc.  All callers of calloc changed to use re_calloc.
57365         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
57366         not int.  All callers changed.
57367         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
57368         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
57369         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
57370         (find_recover_state): Change "err" to "*err"; this fixes what
57371         appears to be a real bug.
57372         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
57373         versus int.
57374
57375 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57376
57377         * modules/regex (Depends-on): Add malloc, since the code
57378         assumes that !malloc(0) means failure.
57379
57380 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57381
57382         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
57383
57384         alloca modernization/simplification for regex.
57385         * lib/regex.c: Remove portability cruft for alloca.  This no longer
57386         needs to be at the start of the file, and can be moved into
57387         regex_internal.h and simplified.
57388         * lib/regex_internal.h: Include <alloca.h>.
57389         (__libc_use_alloca) [!defined _LIBC]: New macro.
57390         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
57391         now works outside glibc.
57392
57393 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57394
57395         * config/srclist.txt: Add glibc bugs 1241, 1245.
57396
57397 2005-08-25  Jim Meyering  <jim@meyering.net>
57398
57399         * lib/open-safer.c: Include <config.h>.
57400         Otherwise, we'd lose LARGEFILE support in any file using
57401         e.g. "fcntl--.h"
57402
57403 2005-08-25  Bruno Haible  <bruno@clisp.org>
57404
57405         * m4/minmax.m4: Require autoconf 2.52.
57406         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
57407         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
57408         alternatives of translit over the alphabet.
57409         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
57410
57411 2005-08-24  Simon Josefsson  <jas@extundo.com>
57412
57413         * tests/test-getpass.c: New file.
57414
57415 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57416
57417         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
57418         for GNU regex features.
57419
57420 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57421
57422         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
57423         * lib/regex.h (regerror): Likewise.
57424
57425         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
57426         requires this.  (The code never needed it.)
57427
57428         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
57429         All uses of recently-renamed identifiers changed to use the new,
57430         POSIX-compliant names.  The code will build and run just fine
57431         without these changes, but it's better to eat our own dog food
57432         and use the standard-conforming names.
57433
57434         * lib/regex.h: Fix a multitude of POSIX name space violations.
57435         These changes have an effect only for programs that define
57436         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
57437         do not change anything for programs compiled in the normal way.
57438         Also, there is no effect on the ABI.
57439
57440         (_REGEX_SOURCE): New macro.
57441         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
57442         defined and _GNU_SOURCE is not; this fixes a name space violation.
57443
57444         Rename the following macros to obey POSIX requirements.
57445         The old names are still visible as macros if _REGEX_SOURCE is defined.
57446         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
57447         RE_BACKSLASH_ESCAPE_IN_LISTS.
57448         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
57449         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
57450         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
57451         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
57452         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
57453         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
57454         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
57455         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
57456         (REG_INTERVALS): renamed from RE_INTERVALS.
57457         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
57458         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
57459         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
57460         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
57461         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
57462         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
57463         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
57464         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
57465         RE_UNMATCHED_RIGHT_PAREN_ORD.
57466         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
57467         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
57468         (REG_DEBUG): renamed from RE_DEBUG.
57469         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
57470         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
57471         unusual, since we can't clash with the POSIX REG_ICASE.
57472         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
57473         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
57474         (REG_NO_SUB): renamed from RE_NO_SUB.
57475         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
57476         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
57477         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
57478         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
57479         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
57480         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
57481         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
57482         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
57483         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
57484         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
57485         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
57486         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
57487         RE_SYNTAX_POSIX_MINIMAL_BASIC.
57488         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
57489         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
57490         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
57491         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
57492         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
57493         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
57494         (REG_FIXED): Renamed from REGS_FIXED.
57495         (REG_NREGS): Renamed from RE_NREGS.
57496
57497         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
57498         of other REG_* macros, since POSIX says the user is allowed to
57499         #undef these macros selectively.
57500
57501         (reg_errcode_t): Update comment stating what other tables need
57502         to be consistent.
57503
57504         Rename the following enum values to obey POSIX requirements.
57505         The old names are still visible as macros.
57506         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
57507         is not defined, since GNU is supposed to be a superset of POSIX as
57508         much as possible, and since we want reg_errcode_t to be a signed
57509         type for implementation consistency.
57510         (_REG_NOERROR): Renamed from REG_NOERROR.
57511         (_REG_NOMATCH): Renamed from REG_NOMATCH.
57512         (_REG_BADPAT): Renamed from REG_BADPAT.
57513         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
57514         (_REG_ECTYPE): Renamed from REG_ECTYPE.
57515         (_REG_EESCAPE): Renamed from REG_EESCAPE.
57516         (_REG_ESUBREG): Renamed from REG_ESUBREG.
57517         (_REG_EBRACK): Renamed from REG_EBRACK.
57518         (_REG_EPAREN): Renamed from REG_EPAREN.
57519         (_REG_EBRACE): Renamed from REG_EBRACE.
57520         (_REG_BADBR): Renamed from REG_BADBR.
57521         (_REG_ERANGE): Renamed from REG_ERANGE.
57522         (_REG_ESPACE): Renamed from REG_ESPACE.
57523         (_REG_BADRPT): Renamed from REG_BADRPT.
57524         (_REG_EEND): Renamed from REG_EEND.
57525         (_REG_ESIZE): Renamed from REG_ESIZE.
57526         (_REG_ERPAREN): Renamed from REG_ERPAREN.
57527         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
57528         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
57529         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
57530         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
57531
57532         (_REG_RE_NAME, _REG_RM_NAME): New macros.
57533         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
57534         changed.  But support the old name if the new one is not defined
57535         and if _REGEX_SOURCE.
57536
57537         Change the following member names in struct re_pattern_buffer.
57538         The old names are still supported if !_REGEX_SOURCE.
57539         The new names are always supported, regardless of _REGEX_SOURCE.
57540         (re_buffer): Renamed from buffer.
57541         (re_allocated): Renamed from allocated.
57542         (re_used): Renamed from used.
57543         (re_syntax): Renamed from syntax.
57544         (re_fastmap): Renamed from fastmap.
57545         (re_translate): Renamed from translate.
57546         (re_can_be_null): Renamed from can_be_null.
57547         (re_regs_allocated): Renamed from regs_allocated.
57548         (re_fastmap_accurate): Renamed from fastmap_accurate.
57549         (re_no_sub): Renamed from no_sub.
57550         (re_not_bol): Renamed from not_bol.
57551         (re_not_eol): Renamed from not_eol.
57552         (re_newline_anchor): Renamed from newline_anchor.
57553
57554         Change the following member names in struct re_registers.
57555         The old names are still supported if !_REGEX_SOURCE.
57556         The new names are always supported, regardless of _REGEX_SOURCE.
57557         (rm_num_regs): Renamed from num_regs.
57558         (rm_start): Renamed from start.
57559         (rm_end): Renamed from end.
57560
57561         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
57562         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
57563         Prepend __ to parameter names.
57564
57565         Undo yesterday's changes.
57566
57567 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57568
57569         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
57570         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
57571         lib/regex.c.
57572
57573 2005-08-24  Jim Meyering  <jim@meyering.net>
57574
57575         Sync from coreutils.
57576         * m4/fcntl-safer.m4: New file.
57577
57578         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
57579         and object files for this module.
57580
57581 2005-08-24  Jim Meyering  <jim@meyering.net>
57582
57583         Sync from coreutils.
57584         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
57585
57586 2005-08-24  Jim Meyering  <jim@meyering.net>
57587
57588         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
57589         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
57590
57591 2005-08-24  Jim Meyering  <jim@meyering.net>
57592
57593         * modules/fcntl-safer: New module.
57594         * modules/fts (Depends-on): Add fcntl-safer.
57595         * MODULES.html.sh (File descriptor based Input/Output):
57596         Add fcntl-safer.
57597
57598 2005-08-24  Bruno Haible  <bruno@clisp.org>
57599
57600         Support for unit test modules.
57601         * modules/README: Mention tests modules.
57602         * modules/TEMPLATE-TESTS: New file.
57603         * gnulib-tool: New options --extract-tests-module, --with-tests and
57604         --tests-base (unused for the moment).
57605         (testsbase, inctests): New variables.
57606         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
57607         (func_verify_module): Exclude TEMPLATE-TESTS.
57608         (func_verify_nontests_module, func_verify_tests_module): New functions.
57609         (func_get_dependencies): Add implicit dependency for tests modules.
57610         (func_get_tests_module): New function.
57611         (func_modules_transitive_closure): When --with-tests was specified,
57612         include the unit tests as well, unless explicitly avoided.
57613         (func_emit_lib_Makefile_am): Ignore the tests modules here.
57614         (func_emit_tests_Makefile_am): New function.
57615         (func_create_testdir): When --with-tests was specified, emit a
57616         tests/ directory.
57617         * MODULES.html.sh (Future developments): Update.
57618
57619 2005-08-24  Bruno Haible  <bruno@clisp.org>
57620
57621         * modules/tls-tests: New file.
57622         * tests/test-tls.c: New file, from GNU gettext.
57623
57624 2005-08-24  Bruno Haible  <bruno@clisp.org>
57625
57626         * modules/lock-tests: New file.
57627         * tests/test-lock.c: New file, from GNU gettext.
57628
57629 2005-08-24  Bruno Haible  <bruno@clisp.org>
57630
57631         * lib/lock.h: Add multiple inclusion guard.
57632         * lib/tls.h: Add multiple inclusion guard.
57633
57634 2005-08-24  Bruno Haible  <bruno@clisp.org>
57635
57636         * gnulib-tool: Add support for the --aux-dir option to
57637         --create-testdir, --create-megatestdir, --test, --megatest.
57638         (func_create_testdir, func_create_megatestdir): Optionally emit a
57639         AC_CONFIG_AUX_DIR directive.
57640         (create-testdir, create-megatestdir, test, megatest): Provide a
57641         default value for $auxdir.
57642
57643 2005-08-24  Bruno Haible  <bruno@clisp.org>
57644
57645         * gnulib-tool (import): Use compound statement instead of subshell
57646         where possible.
57647
57648 2005-08-24  Bruno Haible  <bruno@clisp.org>
57649
57650         * gnulib-tool (import): Change --aux-dir default to "build-aux".
57651
57652 2005-08-24  Bruno Haible  <bruno@clisp.org>
57653
57654         * gnulib-tool (func_version): Update.
57655
57656 2005-08-24  Bruno Haible  <bruno@clisp.org>
57657
57658         * gnulib-tool (func_import, func_create_testdir,
57659         func_create_megatestdir): Quote all autoconf macro arguments.
57660
57661 2005-08-24  Bruno Haible  <bruno@clisp.org>
57662
57663         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
57664         option --force, because --force causes the aclocal.m4 of each
57665         subdirectory to be newer than the corresponding config.h.in.
57666
57667 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57668
57669         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
57670         All contents moved to gl_REGEX.
57671         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
57672         assume that it does.
57673
57674 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57675
57676         * lib/regex.h (REG_NOSYS)
57677         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
57678         Define, since POSIX requires it as of 2001.
57679         (_REG_ENOSYS)
57680         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
57681         New private symbol, used to keep the enum signed in all cases.
57682         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
57683         Youngman in
57684         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
57685
57686         * lib/regex_internal.c (re_string_skip_chars, register_state):
57687         (calc_state_hash):
57688         Remove forward decls; no longer needed now that we use prototypes.
57689         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
57690         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
57691         (clean_state_log_if_needed): Likewise.
57692
57693 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57694
57695         * config/srclist.txt: Add glibc bugs 1231-1233.
57696
57697 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57698
57699         Fix problems reported by Sam Steingold in
57700         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
57701         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
57702         assumed that reg_errcode_t is a signed type, which is not
57703         necessarily true if _XOPEN_SOURCE is not defined.
57704         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
57705         since some compilers warn about it otherwise.
57706
57707 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57708
57709         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
57710         (init_word_char, create_initial_state, duplicate_node_closure):
57711         (fetch_token, peek_token_bracket, build_range_exp):
57712         (build_collating_symbol): Remove forward decls; no longer needed
57713         now that we use prototypes.
57714
57715         * lib/regcomp.c:
57716         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
57717         (re_compile_fastmap_iter, regcomp, regerror, regfree):
57718         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
57719         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
57720         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
57721         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
57722         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
57723         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
57724         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
57725         (build_range_exp, build_collating_symbol, parse_bracket_exp):
57726         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
57727         (build_charclass, build_charclass_op, fetch_number, create_tree):
57728         (create_token_tree, mark_opt_subexp, duplicate_tree):
57729         Use prototypes rather than old-style definitions.
57730
57731         * lib/regex_internal.c:
57732         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
57733         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
57734         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
57735         (re_string_reconstruct, re_string_peek_byte_case):
57736         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
57737         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57738         (re_node_set_init_copy, re_node_set_add_intersect):
57739         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57740         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57741         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57742         (re_acquire_state, re_acquire_state_context, register_state):
57743         (create_ci_newstate, create_cd_newstate, free_state):
57744         Likewise.
57745         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
57746         re_search_2):
57747         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
57748         (re_search_internal, prune_impossible_nodes):
57749         (acquire_init_state_context, check_matching, static):
57750         (check_halt_node_context, check_halt_state_context, proceed_next_node):
57751         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
57752         (update_regs, sift_states_backward, build_sifted_states):
57753         (clean_state_log_if_needed, merge_state_array):
57754         (update_cur_sifted_state, add_epsilon_src_nodes):
57755         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
57756         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
57757         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
57758         (find_recover_state, check_subexp_matching_top, transit_state_mb):
57759         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
57760         (check_arrival, check_arrival_add_next_nodes):
57761         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57762         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57763         (check_node_accept_bytes, check_node_accept, extend_buffers):
57764         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
57765         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
57766         (sift_ctx_init):
57767         Likewise.
57768
57769         * lib/regex_internal.h:
57770         (re_string_allocate, re_string_construct, re_string_reconstruct):
57771         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
57772         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
57773         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
57774         (re_string_context_at, re_string_peek_byte_case):
57775         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
57776         is defined, since we now use prototypes always.
57777
57778         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
57779         C89 or better.  All uses removed.
57780
57781 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57782
57783         * config/srclist.txt: Add glibc bugs 1220-1227.
57784
57785 2005-08-20  Jim Meyering  <jim@meyering.net>
57786
57787         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
57788         of unused local, dfa.
57789
57790 2005-08-20  Bruno Haible  <bruno@clisp.org>
57791
57792         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
57793
57794 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57795
57796         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
57797         (re_node_set_insert_last, re_dfa_add_node):
57798         Rename local variables to avoid GCC shadowing warnings.
57799
57800 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57801
57802         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
57803         [defined lint]: Suppress bogus uninitialized-variable warnings.
57804
57805         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
57806         and let the caller return REG_ESPACE if out of space.  This
57807         removes an uninitialied-variable warning with GCC 4.0.1, and also
57808         avoids taking the address of a local variable.  All callers
57809         changed.
57810
57811 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57812
57813         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
57814         $LIBCSRC/posix/regexec.c.
57815         Add glibc bug 1217 for regcomp.c.
57816
57817 2005-08-19  Jim Meyering  <jim@meyering.net>
57818
57819         * lib/regexec.c (proceed_next_node): Redo local variables to
57820         avoid GCC shadowing warnings.
57821
57822 2005-08-18  Bruno Haible  <bruno@clisp.org>
57823
57824         * lib/strstr.c (strstr): Fix return value in multibyte case.
57825         * lib/strcasestr.c (strcasestr): Likewise.
57826
57827 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57828
57829         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
57830
57831 2005-08-17  Jim Meyering  <jim@meyering.net>
57832
57833         Make the %s format (seconds since the epoch) work for a negative
57834         number and when used with a zero-padded field width, e.g. %015s.
57835
57836         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
57837         label so that it precedes the code to set `digits'.  Otherwise,
57838         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
57839         print `00-22'.  Now, it prints `-0022', as it should.
57840
57841 2005-08-17  Bruno Haible  <bruno@clisp.org>
57842
57843         * modules/strstr (Files): Add m4/mbrtowc.m4.
57844         (Depends-on): Add mbuiter.
57845
57846 2005-08-17  Bruno Haible  <bruno@clisp.org>
57847
57848         * modules/strcasestr: New file.
57849         * MODULES.html.sh (String handling, based on ANSI C 89): Add
57850         strcasestr.
57851
57852 2005-08-17  Bruno Haible  <bruno@clisp.org>
57853
57854         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
57855
57856 2005-08-17  Bruno Haible  <bruno@clisp.org>
57857
57858         * modules/mbuiter: New file.
57859         * MODULES.html.sh (Extended multibyte and wide character utilities):
57860         Add mbuiter.
57861
57862 2005-08-17  Bruno Haible  <bruno@clisp.org>
57863
57864         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
57865         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
57866
57867 2005-08-17  Bruno Haible  <bruno@clisp.org>
57868
57869         * m4/strcasestr.m4: New file.
57870
57871 2005-08-17  Bruno Haible  <bruno@clisp.org>
57872
57873         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
57874         * lib/strstr.c: Completely rewritten, with multibyte locale support.
57875
57876 2005-08-17  Bruno Haible  <bruno@clisp.org>
57877
57878         * lib/strcasestr.h: New file.
57879         * lib/strcasestr.c: New file.
57880
57881 2005-08-17  Bruno Haible  <bruno@clisp.org>
57882
57883         * lib/strcasecmp.c: Use mbuiter.h.
57884
57885 2005-08-17  Bruno Haible  <bruno@clisp.org>
57886
57887         * lib/mbuiter.h: New file.
57888
57889 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57890
57891         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
57892         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
57893         and gl_GETOPT are both invoked via different paths (as happens
57894         with GNU tar CVS because it uses both argp and getopt), the former
57895         wins.
57896
57897 2005-08-16  Bruno Haible  <bruno@clisp.org>
57898
57899         * modules/tls: New file.
57900         * MODULES.html.sh (Multithreading): Add tls.
57901
57902 2005-08-16  Bruno Haible  <bruno@clisp.org>
57903
57904         * modules/strnlen1: New file.
57905         * MODULES.html.sh (String handling): Add strnlen1.
57906
57907 2005-08-16  Bruno Haible  <bruno@clisp.org>
57908
57909         * modules/strcase (Files): Add m4/mbrtowc.m4.
57910         (Depends-on): Add strnlen1, mbchar.
57911
57912 2005-08-16  Bruno Haible  <bruno@clisp.org>
57913
57914         * modules/mbiter: New file.
57915         * MODULES.html.sh (Extended multibyte and wide character utilities):
57916         Add mbiter.
57917
57918 2005-08-16  Bruno Haible  <bruno@clisp.org>
57919
57920         * modules/mbfile: New file.
57921         * MODULES.html.sh (Extended multibyte and wide character utilities):
57922         Add mbfile.
57923
57924 2005-08-16  Bruno Haible  <bruno@clisp.org>
57925
57926         * modules/mbchar: New file.
57927         * MODULES.html.sh (Extended multibyte and wide character utilities):
57928         New section.
57929
57930 2005-08-16  Bruno Haible  <bruno@clisp.org>
57931
57932         * m4/tls.m4: New file, from GNU gettext.
57933
57934 2005-08-16  Bruno Haible  <bruno@clisp.org>
57935
57936         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
57937         always.
57938         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
57939
57940 2005-08-16  Bruno Haible  <bruno@clisp.org>
57941
57942         * m4/mbiter.m4: New file.
57943
57944 2005-08-16  Bruno Haible  <bruno@clisp.org>
57945
57946         * m4/mbfile.m4: New file.
57947
57948 2005-08-16  Bruno Haible  <bruno@clisp.org>
57949
57950         * m4/mbchar.m4: New file.
57951
57952 2005-08-16  Bruno Haible  <bruno@clisp.org>
57953
57954         * lib/tls.h: New file, from GNU gettext.
57955         * lib/tls.c: New file, from GNU gettext.
57956
57957 2005-08-16  Bruno Haible  <bruno@clisp.org>
57958
57959         * lib/strnlen1.h: New file.
57960         * lib/strnlen1.c: New file.
57961
57962 2005-08-16  Bruno Haible  <bruno@clisp.org>
57963
57964         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
57965         (mbi_init): Update.
57966         (mbi_avail, mbi_advance): Let the iteration end before the terminating
57967         NUL byte, not after it.
57968
57969 2005-08-16  Bruno Haible  <bruno@clisp.org>
57970
57971         * lib/strcase.h (strcasecmp): Add note in comments.
57972         * lib/strncasecmp.c: Use code from strcasecmp.c.
57973         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
57974         (strcasecmp): Work correctly in multibyte locales.
57975
57976 2005-08-16  Bruno Haible  <bruno@clisp.org>
57977
57978         * lib/mbiter.h: New file.
57979
57980 2005-08-16  Bruno Haible  <bruno@clisp.org>
57981
57982         * lib/mbfile.h: New file.
57983
57984 2005-08-16  Bruno Haible  <bruno@clisp.org>
57985
57986         * lib/mbchar.h: New file.
57987         * lib/mbchar.c: New file.
57988
57989 2005-08-16  Bruno Haible  <bruno@clisp.org>
57990
57991         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
57992         the valid ones. Makes the comparison operations transitive:
57993         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
57994         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
57995
57996 2005-08-15  Simon Josefsson  <jas@extundo.com>
57997
57998         * modules/ssize_t (License): Change to 'unlimited'.
57999
58000         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
58001
58002 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58003
58004         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
58005         Add comments for each pending glibc patch.
58006
58007 2005-08-15  Bruno Haible  <bruno@clisp.org>
58008
58009         * lib/regex.h (__restrict_arr): Don't define to __restrict if
58010         __cplusplus is defined.
58011
58012 2005-08-14  Jim Meyering  <jim@meyering.net>
58013
58014         Sync from coreutils.
58015
58016         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
58017         Use the hash-table-based cycle-detection code not just when
58018         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
58019         Reported by James Youngman in
58020         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
58021         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
58022         FTS_TIGHT_CYCLE_CHECK.
58023         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
58024         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
58025         once again.
58026         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
58027         * lib/fts.c (fd_safer): Remove decl.
58028         Include fcntl--.h rather than unistd-safer.h
58029         (fts_safe_changedir): Don't call fd_safer; no longer needed
58030         now that we include fcntl--.h.
58031
58032 2005-08-12  Simon Josefsson  <jas@extundo.com>
58033
58034         * modules/getndelim2: Use ssize_t module.
58035         * modules/getnline: Likewise.
58036         * modules/safe-read: Likewise.
58037         * modules/xreadlink: Likewise.
58038
58039         * modules/ssize_t: New file.
58040
58041 2005-08-12  Simon Josefsson  <jas@extundo.com>
58042
58043         * m4/readline.m4: Look for termcap, curses or ncurses if required.
58044
58045 2005-08-12  Simon Josefsson  <jas@extundo.com>
58046
58047         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58048         ssize_t.
58049
58050 2005-08-12  Simon Josefsson  <jas@extundo.com>
58051
58052         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
58053         readline, getdelim and check_version.
58054         (Support for systems lacking ISO C 99: Sizes of integer types):
58055         Add size_max.
58056
58057 2005-08-12  Bruno Haible  <bruno@clisp.org>
58058
58059         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
58060
58061 2005-08-11  Simon Josefsson  <jas@extundo.com>
58062
58063         * modules/readline: New file.
58064
58065         * modules/strnlen (Files): Add strnlen.h.
58066
58067 2005-08-11  Simon Josefsson  <jas@extundo.com>
58068
58069         * m4/readline.m4: New file.
58070
58071 2005-08-11  Simon Josefsson  <jas@extundo.com>
58072
58073         * lib/readline.h, readline.c: New file.
58074
58075 2005-08-11  Simon Josefsson  <jas@extundo.com>
58076
58077         * doc/gnulib.texi (Initial import, Finishing touches): Mention
58078         gl_AVOID.
58079
58080 2005-08-11  Bruno Haible  <bruno@clisp.org>
58081
58082         * lib/strnlen.h (strnlen): Change parameter name to match comment.
58083
58084 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
58085
58086         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
58087
58088 2005-08-10  Simon Josefsson  <jas@extundo.com>
58089
58090         * tests/test-iconvme.c: New file.
58091
58092 2005-08-10  Simon Josefsson  <jas@extundo.com>
58093
58094         * m4/strnlen.m4: New file.
58095
58096         * m4/strndup.m4: Don't check for strnlen declaration, done in
58097         strnlen.m4.
58098
58099 2005-08-10  Simon Josefsson  <jas@extundo.com>
58100
58101         * lib/strndup.c: Use strnlen.h.
58102
58103         * lib/strnlen.h: New file.
58104
58105 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58106
58107         * README: Typos.
58108
58109 2005-08-02  Simon Josefsson  <jas@extundo.com>
58110
58111         * modules/readline: New file.
58112
58113 2005-08-02  Simon Josefsson  <jas@extundo.com>
58114
58115         * modules/getdelim: New file.
58116
58117         * modules/getline: Rewrite, don't use getndelim2.
58118
58119 2005-08-02  Simon Josefsson  <jas@extundo.com>
58120
58121         * m4/getline.m4: Separate out getdelim stuff into separate module.
58122
58123         * m4/getdelim.m4: New file.
58124
58125 2005-08-02  Simon Josefsson  <jas@extundo.com>
58126
58127         * lib/getline.h, getline.c: Rewrite.
58128
58129         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
58130
58131 2005-07-31  Bruno Haible  <bruno@clisp.org>
58132
58133         * lib/lock.h (gl_lock_initializer): New macro.
58134         (gl_lock_define_initialized): Use it.
58135         (gl_rwlock_initializer): New macro.
58136         (gl_rwlock_define_initialized): Use it.
58137         (gl_recursive_lock_initializer): New macro.
58138         (gl_recursive_lock_define_initialized): Use it.
58139
58140 2005-07-30  Karl Berry  <karl@gnu.org>
58141
58142         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
58143         Report from Ben Pfaff, regarding getopt.
58144
58145 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
58146
58147         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
58148         normal way.
58149         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
58150         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
58151         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
58152         (gl_GETOPT): Use the new macros.  Most of the implementation
58153         is moved to the new macros.  This is for programs like Emacs
58154         that don't want all the functionality of gl_GETOPT.
58155
58156 2005-07-26  Bruno Haible  <bruno@clisp.org>
58157
58158         * m4/lock.m4: Update from GNU gettext.
58159
58160 2005-07-26  Bruno Haible  <bruno@clisp.org>
58161
58162         * lib/lock.h: Update from GNU gettext.
58163         * lib/lock.c: Update from GNU gettext.
58164
58165 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
58166
58167         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
58168         obsolescent AC_TRY_RUN.  Include the default includes files, for
58169         'exit'.
58170
58171 2005-07-24  Bruno Haible  <bruno@clisp.org>
58172
58173         * modules/visibility: New file.
58174         * MODULES.html.sh (Misc): Add visibility.
58175
58176 2005-07-24  Bruno Haible  <bruno@clisp.org>
58177
58178         * m4/visibility.m4: New file.
58179
58180 2005-07-24  Bruno Haible  <bruno@clisp.org>
58181
58182         * doc/visibility.texi: New file.
58183
58184 2005-07-22  Bruno Haible  <bruno@clisp.org>
58185
58186         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
58187         $(ALLOCA_H), redundant through BUILT_SOURCES.
58188         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
58189         redundant through BUILT_SOURCES.
58190         * modules/byteswap (Makefile.am): Remove explicit dependency on
58191         $(BYTESWAP_H), redundant through BUILT_SOURCES.
58192         * modules/fnmatch (Makefile.am): Remove explicit dependency on
58193         $(FNMATCH_H), redundant through BUILT_SOURCES.
58194         * modules/getopt (Makefile.am): Remove explicit dependency on
58195         $(GETOPT_H), redundant through BUILT_SOURCES.
58196         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
58197         redundant through BUILT_SOURCES.
58198         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
58199         redundant through BUILT_SOURCES.
58200         * modules/stdbool (Makefile.am): Remove explicit dependency on
58201         $(STDBOOL_H), redundant through BUILT_SOURCES.
58202         * modules/stdint (Makefile.am): Remove explicit dependency on
58203         $(STDINT_H), redundant through BUILT_SOURCES.
58204         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
58205         Remove explicit dependency on $(SYSEXITS_H).
58206         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
58207
58208 2005-07-18  Simon Josefsson  <jas@extundo.com>
58209
58210         * lib/check-version.c (check_version): Accept identical versions too.
58211
58212 2005-07-18  Bruno Haible  <bruno@clisp.org>
58213
58214         * modules/lock: New file.
58215         * MODULES.html.sh (Multithreading): New section.
58216
58217 2005-07-18  Bruno Haible  <bruno@clisp.org>
58218
58219         * m4/lock.m4: New file, from GNU gettext.
58220
58221 2005-07-18  Bruno Haible  <bruno@clisp.org>
58222
58223         * lib/lock.h: New file, from GNU gettext.
58224         * lib/lock.c: New file, from GNU gettext.
58225
58226 2005-07-18  Bruno Haible  <bruno@clisp.org>
58227
58228         * lib/lock.h (gl_once_t): New type.
58229         (gl_once_define, gl_once): New macros.
58230         * lib/lock.c (fresh_once): New variable.
58231         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
58232         functions.
58233
58234 2005-07-16  Simon Josefsson  <jas@extundo.com>
58235
58236         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
58237         workaround, suggested by Bruno.
58238
58239 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58240
58241         * modules/xalloc (Depends-on): Add xalloc-die.
58242         * modules/xvasprintf (Depends-on): Add xalloc-die.
58243
58244 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58245
58246         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
58247         with a minor change.
58248
58249 2005-07-15  Bruno Haible  <bruno@clisp.org>
58250
58251         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
58252         When using lib/poll.c, define poll as rpl_poll.
58253
58254 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
58255
58256         * modules/argp (Depends-on): Remove unlocked-io.
58257
58258 2005-07-14  Derek Price  <derek@ximbiot.com>
58259
58260         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
58261         for glob symlink bug.
58262
58263 2005-07-14  Bruno Haible  <bruno@clisp.org>
58264
58265         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
58266         Instead, test for *_unlocked function declarations directly.
58267
58268 2005-07-11  Simon Josefsson  <jas@extundo.com>
58269
58270         * modules/size_max: New file.
58271
58272         * modules/xsize: Depend on size_max module for size_max.m4.
58273
58274 2005-07-11  Simon Josefsson  <jas@extundo.com>
58275
58276         * lib/size_max.h: New file.
58277
58278 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
58279
58280         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
58281         copyright symbol and the year.
58282         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
58283         (version_etc_va): Use parameterized copyright notice.
58284         Reword to conform to the current GNU coding standards.
58285
58286 2005-07-11  Karl Berry  <karl@gnu.org>
58287
58288         * doc/gnulib.texi (Quoting): new node.
58289         (Initial import): more info, from Patrice.
58290
58291 2005-07-11  Bruno Haible  <bruno@clisp.org>
58292
58293         * gnulib-tool (func_usage): Document option --avoid.
58294         (Command line options): Handle --avoid.
58295         (func_acceptable): New function.
58296         (func_modules_transitive_closure): Use it.
58297
58298 2005-07-11  Bruno Haible  <bruno@clisp.org>
58299
58300         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
58301         Reported by Jim Meyering.
58302
58303 2005-07-10  Bruno Haible  <bruno@clisp.org>
58304
58305         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
58306         Needed when size_t is smaller than 'unsigned int'.
58307         Reported by Paul Eggert.
58308
58309 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58310
58311         * modules/argp (Depends-on): Add unlocked-io
58312
58313 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58314
58315         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
58316         block of defines.
58317
58318 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58319
58320         * config/srclist.txt: Comment out regcomp.c, since we have a porting
58321         fix now.
58322
58323 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
58324         and Paul Eggert  <eggert@cs.ucla.edu>
58325
58326         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
58327         in wint_t, not wchar_t.  Remove now-unnecessary cast.
58328
58329 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58330
58331         * modules/regex (Files): Add lib/regex_internal.c,
58332         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
58333         (Depends-on): Add extensions.
58334         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
58335
58336 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58337
58338         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
58339         pathconf.
58340         * m4/same.m4 (gl_SAME): Likewise.
58341         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
58342
58343         * m4/regex.m4: Adjust to new libc regex implementation.
58344         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
58345         all the .c and .h parts of (the new) regex.
58346         Quote the m4 stuff better.
58347         Check for RE_ICASE bug of old gnulib.
58348         Check for REG_STARTEND of recent libc.
58349         Rename local variables from jm_* to gl_*.
58350         Quote operand of "test -f".
58351         Say "recent enough" version of libc, not "version 2".
58352         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
58353         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
58354         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
58355         Remove check for btowc, isascii.
58356         Require AM_LANGINFO_CODESET.
58357
58358 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58359
58360         * lib/regex.c, regex.h: Sync from libc.
58361         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
58362         * lib/regexec.c:
58363         New files, synced from libc, except that regex_internal.h
58364         currently has a small porting fix.
58365
58366 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58367
58368         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
58369         regex_internal.c, regexec.c.
58370         Add regex_internal.h too, but as a comment, since the libc version
58371         is currently broken in gnulib mode.
58372
58373 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58374
58375         Support programs like Emacs that use gnulib but not gettext.
58376         * MODULES.html.sh (Internationalization functions): Add gettext-h.
58377         * modules/gettext-h: New file.
58378         * modules/gettext (Files): Remove lib/gettext.h.
58379         (Depends-on): Add gettext-h.
58380         (Makefile.am): Remove lib_SOURCES.
58381         * modules/argmatch, modules/c-stack, modules/closeout:
58382         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
58383         * modules/execute, modules/file-type, modules/getaddrinfo:
58384         * modules/getopt, modules/human, modules/javacomp:
58385         * modules/javaexec, modules/mkdir-p, modules/obstack:
58386         * modules/openat, modules/pagealign_alloc, modules/pipe:
58387         * modules/quotearg, modules/regex, modules/rpmatch:
58388         * modules/unicodeio, modules/userspec, modules/version-etc:
58389         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
58390         * modules/xsetenv:
58391         Depend on gettext-h, not gettext.
58392
58393 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58394
58395         * gnulib-tool (func_import): Add support for 'public domain' license.
58396         * modules/alloca, modules/atexit, modules/memmove:
58397         Now public domain, not GPL.
58398         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
58399         * modules/realloc, modules/strerror, modules/strtod:
58400         Now LGPL, not GPL.
58401
58402 2005-07-05  Bruno Haible  <bruno@clisp.org>
58403
58404         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
58405         autoconf CVS. Needed for mingw.
58406
58407 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58408
58409         Remove the dependency of the strftime module on the tzset module.
58410         * modules/strftime (Depends-on): Remove dependency on tzset.
58411
58412 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58413
58414         Remove the dependency of the strftime module on the tzset module.
58415         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
58416         gl_FUNC_TZSET_CLOBBER.
58417
58418 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58419
58420         Remove the dependency of the strftime module on the tzset module.
58421         * lib/strftime.c (my_strftime)
58422         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
58423         Copy the input structure, to work around some of the bug with
58424         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
58425         Solaris releases, you should also use the tzset module, but we won't
58426         require it as a dependency any more since we don't want LGPLed code
58427         to depend on GPLed code.
58428
58429 2005-07-02  Jim Meyering  <jim@meyering.net>
58430
58431         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
58432         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
58433         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
58434         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
58435
58436 2005-07-02  Jim Meyering  <jim@meyering.net>
58437
58438         * lib/backupfile.c (backup_args): Change a `0' to NULL.
58439
58440 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58441
58442         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
58443         declares only 'struct timespec;' (!).
58444
58445 2005-07-01  Jim Meyering  <jim@meyering.net>
58446
58447         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
58448         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
58449         * lib/save-cwd.c, tempname.c:
58450         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
58451         and don't include <sys/file.h>).
58452
58453 2005-06-29  Jim Meyering  <jim@meyering.net>
58454
58455         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
58456         type name.  Use the variable name instead.
58457         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
58458         Likewise.
58459
58460 2005-06-28  Simon Josefsson  <jas@extundo.com>
58461
58462         * modules/check-version (Files): Add check-version.m4.
58463
58464 2005-06-28  Simon Josefsson  <jas@extundo.com>
58465
58466         * m4/check-version.m4: New file, suggested by Jim Meyering
58467         <jim@meyering.net>.
58468
58469 2005-06-28  Simon Josefsson  <jas@extundo.com>
58470
58471         * lib/check-version.h, lib/check-version.c: New files.
58472
58473 2005-06-28  Simon Josefsson  <jas@extundo.com>
58474
58475         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
58476         collision with global variable.  Better indentation.  Don't
58477         increment buffer pointer beyond buffer end.  Based on comments
58478         from Paul Eggert <eggert@cs.ucla.edu>.
58479
58480         * lib/base64.h: Indent.
58481
58482 2005-06-28  Simon Josefsson  <jas@extundo.com>
58483
58484         * doc/gnulib.texi (Library version handling): New section.
58485
58486 2005-06-28  Jim Meyering  <jim@meyering.net>
58487
58488         * check-module (find_included_lib_files): Hard-code another
58489         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
58490         but modules/fts-lgpl (correctly) does not list those files.
58491
58492         * modules/canonicalize (Files): Add lib/pathmax.h.
58493
58494 2005-06-25  Simon Josefsson  <jas@extundo.com>
58495
58496         * modules/check-version: New file.
58497
58498 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
58499
58500         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
58501         initializer of struct addrinfo, as an indication that we don't
58502         care how many members the structure has.
58503
58504 2005-06-24  Derek Price  <derek@ximbiot.com>
58505         and Bruno Haible  <bruno@clisp.org>
58506
58507         Remove stat module & update lstat.
58508         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
58509         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58510         * m4/stat.m4: Remove this file.
58511
58512 2005-06-24  Derek Price  <derek@ximbiot.com>
58513         and Bruno Haible  <bruno@clisp.org>
58514
58515         Remove stat module & update lstat.
58516         * lib/stat.c: Remove this file...
58517         (slash_aware_lstat): ...moving this content and its support...
58518         * lib/lstat.c (rpl_lstat): ...into here.
58519         * lib/lstat.h: New file.
58520
58521 2005-06-24  Derek Price  <derek@ximbiot.com>
58522         and Bruno Haible  <bruno@clisp.org>
58523
58524         Remove stat module & update lstat.
58525         * config/srclist.txt (libc sources): Remove stat.
58526
58527 2005-06-24  Derek Price  <derek@ximbiot.com>
58528         and Bruno Haible  <bruno@clisp.org>
58529
58530         Remove stat module & update lstat.
58531         * MODULES.html.sh (stat): Remove.
58532         * MODULES.html: Regenerated.
58533         * modules/lstat (Description): Correct function name.
58534         (Files): Add "lstat.h".
58535         (Depends-on): Remove stat, add xalloc, stat-macros.
58536         * modules/stat: Remove this file.
58537         (Include): Add "lstat.h", remove <sys/stat.h>.
58538
58539 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58540
58541         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
58542         (ranged_convert): Don't save conversion in a temporary struct.
58543         This causes a warning with GCC 4.0.0, and anyway in the typical
58544         case it's not worth the extra 100 bytes or so of code.
58545         (ranged_convert, __mktime_internal): When calling a function via a
58546         pointer P, use P () rather than (*P) (), as we now assume C89 or
58547         better.
58548
58549 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58550
58551         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
58552         "who -r" failed to give output.  Problem reported by Tim Waugh.
58553
58554         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
58555         (xcalloc): Use it to avoid needless tests.
58556         Problem reported by Jim Meyering.
58557
58558 2005-06-20  Derek Price  <derek@ximbiot.com>
58559
58560         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
58561         unnecessary for Autoconfs > 2.59c.
58562
58563 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58564
58565         * lib/argp.h (__option_is_short): Check upper limit of
58566         __key. Isprint() requires its argument to have the value
58567         of an unsigned char or EOF.
58568
58569 2005-06-16  Jim Meyering  <jim@meyering.net>
58570
58571         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
58572         when either N or S is zero.
58573
58574 2005-06-16  Derek Price  <derek@ximbiot.com>
58575
58576         * m4/bison.m4: Declare YACC & YFLAGS precious.
58577
58578 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
58579
58580         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
58581         multibyte string or pattern, fall back on unibyte matching.
58582         Problem reported by James Youngman.
58583
58584 2005-06-08  Bruno Haible  <bruno@clisp.org>
58585
58586         * modules/csharpcomp: New file.
58587         * MODULES.html.sh (C#): Add csharpcomp.
58588
58589 2005-06-08  Bruno Haible  <bruno@clisp.org>
58590
58591         * m4/csharpcomp.m4: New file, from GNU gettext.
58592
58593 2005-06-08  Bruno Haible  <bruno@clisp.org>
58594
58595         * lib/csharpcomp.h: New file, from GNU gettext.
58596         * lib/csharpcomp.c: New file, from GNU gettext.
58597         * lib/csharpcomp.sh.in: New file, from GNU gettext.
58598
58599 2005-06-08  Bruno Haible  <bruno@clisp.org>
58600
58601         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
58602         warning on mingw.
58603
58604 2005-06-07  Derek Price  <derek@ximbiot.com>
58605
58606         Sync from CVS.
58607         * lib/glob_.h: Indent nested #ifdef.
58608
58609 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58610
58611         Sync from coreutils.
58612         Use "file name" when talking about file names, instead of "filename"
58613         or "path", as per the GNU coding standards.
58614         * lib/mkdir-p.c: Renamed from makepath.c.
58615         (make_dir_parents): Renamed from make_path.  All callers changed.
58616         * lib/mkdir-p.h: Likewise.  All includers changed.
58617         * lib/filenamecat.c: Renamed from path-concat.c.
58618         (file_name_concat): Renamed from path_concat.  All callers changed.
58619         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
58620         * lib/filenamecat.h: Likewise.  All includers changed.
58621         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
58622         in comments or local variable names.
58623         * lib/basename.c: Likewise.
58624         * lib/canonicalize.c, canonicalize.h: Likewise.
58625         * lib/dirname.c, dirname.h: Likewise.
58626         * lib/euidaccess.c: Likewise.
58627         * lib/exclude.c: Likewise
58628         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
58629         * lib/fsusage.c, fsuage.h: Likewise.
58630         * lib/fts.c, fts_.h: Likewise.
58631         * lib/getcwd.c: Likewise.
58632         * lib/getloadavg.c: Likewise.
58633         * lib/mkstemp.c: Likewise.
58634         * lib/mountlist.c, mountlist.h: Likewise.
58635         * lib/openat.c, openat.h: Likewise.
58636         * lib/readlink-stub.c: Likewise.
58637         * lib/readutmp.c, readutmp.h: Likewise.
58638         * lib/rename.c: Likewise.
58639         * lib/rmdir.c: Likewise.
58640         * lib/same.c: Likewise.
58641         * lib/savedir.c: Likewise.
58642         * lib/stripslash.c: Likewise.
58643         * lib/tempname.c: Likewise.
58644         * lib/xreadlink.c: Likewise.
58645         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
58646         All uses changed.
58647         * lib/exclude.h: Likewise.
58648
58649         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
58650         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58651         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
58652         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58653         * lib/pathmax.h: Include <limits.h> unconditionally, since other
58654         files have been getting away with it for years (MORE/BSD 4.3
58655         is extinct now).
58656         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
58657         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58658
58659         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
58660         Define to 256, not 255, as per modern POSIX.
58661
58662 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58663
58664         Sync from coreutils.
58665         Use "file name" when talking about file names, instead of "filename"
58666         or "path", as per the GNU coding standards.
58667         * MODULES.html.sh: mkdir-p renamed from makepath.
58668         filenamecat renamed from path-concat.
58669         * modules/filenamecat: Renamed from modules/path-concat.
58670         (Files): filenamecat.h and filenamecat.c renamed from
58671         path-concat.h and path-concat.c.
58672         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
58673         (Include): filenamecat.h, not path-concat.h.
58674         * modules/mkdir-p: Renamed from modules/makepath.
58675         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
58676         makepath.c.
58677         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
58678         (Include): mkdir-p.h, not makepath.h.
58679
58680 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58681
58682         Sync from coreutils.
58683         * m4/mkdir-p.m4: Renamed from makepath.m4.
58684         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
58685         Rename files from makepath.c to mkdir-p.c, and from
58686         makepath.h to mkdir-p.h.
58687         * m4/filenamecat.m4: Renamed from path-concat.m4.
58688         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
58689         Rename files from path-concat.c to filenamecat.c,
58690         and from path-concat.h to filenamecat.h.
58691         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
58692         "file name" in local variables or comments.
58693         * m4/rename.m4: Likewise.
58694
58695 2005-06-01  Bruno Haible  <bruno@clisp.org>
58696
58697         * modules/csharpexec: New file.
58698         * MODULES.html.sh (C#): New section.
58699
58700 2005-06-01  Bruno Haible  <bruno@clisp.org>
58701
58702         * m4/csharp.m4: New file, from GNU gettext.
58703         * m4/csharpexec.m4: New file, from GNU gettext.
58704
58705 2005-06-01  Bruno Haible  <bruno@clisp.org>
58706
58707         * lib/csharpexec.h: New file, from GNU gettext.
58708         * lib/csharpexec.c: New file, from GNU gettext.
58709         * lib/csharpexec.sh.in: New file, from GNU gettext.
58710
58711 2005-05-31  Derek Price  <derek@ximbiot.com>
58712             Paul Eggert  <eggert@cs.ucla.edu>
58713
58714         Sync from cvs.
58715         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58716
58717 2005-05-31  Derek Price  <derek@ximbiot.com>
58718             Paul Eggert  <eggert@cs.ucla.edu>
58719
58720         Sync from cvs.
58721         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58722
58723 2005-05-29  Derek Price  <derek@ximbiot.com>
58724
58725         * config/srclist.txt (glob_.h, glob.c): Add these files.
58726
58727 2005-05-29  Derek Price  <derek@ximbiot.com>
58728
58729         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
58730         * modules/glob: New file.
58731         * modules/getlogin_r: Add link to POSIX spec in description.
58732
58733 2005-05-29  Derek Price  <derek@ximbiot.com>
58734             Paul Eggert  <eggert@cs.ucla.edu>
58735
58736         * m4/glob.m4: New file.
58737
58738 2005-05-29  Derek Price  <derek@ximbiot.com>
58739             Paul Eggert  <eggert@cs.ucla.edu>
58740
58741         * lib/glob_.h, lib/glob.c: New files.
58742
58743 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58744
58745         * modules/fts (Files): Remove m4/inttypes-pri.m4.
58746         * modules/fts-lgpl (Depends-on): Remove gettext.
58747
58748 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58749
58750         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
58751         and don't require gt_INTTYPES_PRI.
58752
58753 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58754
58755         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
58756
58757         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
58758         the configuration hassle isn't worth it.
58759         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
58760         (LONGEST_MODIFIER, PRIuMAX): Remove.
58761
58762 2005-05-27  Bruno Haible  <bruno@clisp.org>
58763
58764         * lib/getlogin_r.h: Remove second include of <stddef.h>.
58765
58766 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
58767
58768         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
58769         _POSIX_PTHREAD_SEMANTICS for Solaris.
58770
58771 2005-05-25  Derek Price  <derek@ximbiot.com>
58772
58773         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
58774
58775 2005-05-25  Derek Price  <derek@ximbiot.com>
58776             Paul Eggert  <eggert@cs.ucla.edu>
58777
58778         * modules/getlogin_r, m4/getlogin_r.m4: New files.
58779         * lib/getlogin_r.c, getlogin_r.h: New files.
58780
58781 2005-05-25  Bruno Haible  <bruno@clisp.org>
58782             Derek Price  <derek@ximbiot.com>
58783
58784         * lib/getlogin_r.h: Simplify API documentation.
58785
58786 2005-05-23  Derek Price  <derek@ximbiot.com>
58787
58788         * modules/minmax (Files): Add m4/minmax.m4.
58789         (configure.ac): Add gl_MINMAX.
58790
58791 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58792
58793         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
58794         so that unistd-safer.h (GPL'ed code) need not be included.
58795
58796 2005-05-22  Bruno Haible  <bruno@clisp.org>
58797
58798         * m4/minmax.m4: New file.
58799         Based on a patch by Derek Price <derek@ximbiot.com>.
58800
58801 2005-05-22  Bruno Haible  <bruno@clisp.org>
58802
58803         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
58804         (INT64_MIN): Fix definition.
58805         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
58806
58807         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
58808         NEED_SIGNED_INT_TYPES.
58809
58810         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
58811         HAVE_SYSTEM_INTTYPES.
58812
58813 2005-05-22  Bruno Haible  <bruno@clisp.org>
58814
58815         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
58816         Also include <sys/param.h> if it defines MIN, MAX.
58817         Based on a patch by Derek Price <derek@ximbiot.com>.
58818
58819 2005-05-21  Jim Meyering  <jim@meyering.net>
58820
58821         * modules/fts (Files): Add m4/inttypes-pri.m4.
58822         (Depends-on): Add lstat and remove gettext.  Alphabetize.
58823
58824 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58825
58826         New fts module.
58827         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
58828         (setup_dir, free_dir): New functions.
58829         (enter_dir, leave_dir): Define trivial
58830         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
58831         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
58832         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
58833         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
58834         Move to fts-cycle.c.
58835         (fts_open): Use setup_dir.
58836         (fts_close): Use free_dir.
58837         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
58838         This adds a label and some gotos, but the alternatives were messier.
58839         Check for memory allocation failure when entering a dir.
58840         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
58841         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
58842         (FTS): New member fts_cycle, that is a union that contains the
58843         old active_dir_ht and cycle_state.  All uses changed to mention
58844         fts_cycle.ht and fts_cycle.state.
58845         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
58846         fts.c, with the following changes:
58847         (setup_dir, free_dir): New functions.
58848         (enter_dir): Now returns bool.  Return true if successful, false
58849         if memory exhausted.  All callers changed.
58850         Do not bother partly cleaning up on
58851         memory allocation failure; that is free_dir's job.
58852         However, free ad if hash_insert fails, to avoid memory leak.
58853         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
58854         fts->fts_options to see which union member to use.
58855
58856 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58857
58858         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
58859         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
58860
58861 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58862
58863         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
58864
58865 2005-05-20  Jim Meyering  <jim@meyering.net>
58866
58867         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
58868         Now a macro, to pacify GCC.
58869
58870 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58871
58872         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
58873         of -1.
58874
58875 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58876
58877         * lib/chown.c (rpl_chown): Return -1 on failure.
58878
58879 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58880
58881         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
58882         Don't check for stddef.h.
58883         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
58884         don't use its results.
58885         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
58886         since we include them unconditionally.  Don't require
58887         AM_STDBOOL_H, since stdbool is a prerequisite.
58888         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
58889         since we assume C89 or better.
58890         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
58891         as we don't use their results.
58892         Don't check for fchdir, memmove, memset, strrchr, as we use
58893         them unconditionally.
58894         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
58895         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
58896
58897 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58898
58899         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
58900         Include <stddef.h> unconditionally, since we assume C89 now.
58901         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
58902         * lib/fts.c: Include fts_.h first, to check interface.
58903         Do not include intprops.h; no longer needed.
58904         Include cycle-check.h and hash.h, since fts_.h no longer does.
58905         Remove unnecessary casts of closedir to void.
58906         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
58907         decide whether to decrement nlinks.
58908         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
58909         (FTS): Use struct hash_table * instead of Hash_table, so that
58910         we no longer need to include hash.h here.
58911
58912 2005-05-18  Jim Meyering  <jim@meyering.net>
58913
58914         * modules/dirfd (License): Change to LGPL.  Most of the code
58915         is already in the public domain.
58916
58917 2005-05-18  Jim Meyering  <jim@meyering.net>
58918
58919         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
58920         Reported by Yoann Vandoorselaere.
58921
58922 2005-05-17  Jim Meyering  <jim@meyering.net>
58923
58924         * m4/fts.m4: New file, from coreutils.
58925
58926 2005-05-17  Jim Meyering  <jim@meyering.net>
58927
58928         * lib/fts.c, lib/fts_.h: New files, from coreutils.
58929
58930 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58931
58932         Sync from coreutils.
58933         * m4/unlinkdir.m4: New file.
58934
58935 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58936
58937         Sync from coreutils.
58938         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
58939         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
58940         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
58941         White space changes only.
58942         * lib/makepath.c (make_path): Port to hosts where leading "//" is
58943         special.
58944         * lib/yesno.c: Include getline.h, not ctype.h.
58945         (yesno): Don't remove leading white space; POSIX doesn't allow it.
58946         Use getline to remove arbitrary restriction on response length.
58947
58948 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58949
58950         * config/srclist-update: Spell out "Street" in FSF postal
58951         mail address; this is the style the FSF seems to prefer.
58952
58953         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
58954         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
58955         this updates FSF postal mail address.
58956
58957         Sync from coreutils.
58958         * modules/unlinkdir: New file.
58959         * modules/yesno (Depends-on): Add getline.
58960         * MODULES.html.sh (File system functions): Add unlinkdir.
58961
58962 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58963
58964         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
58965         lib/strsep.h:
58966         Change the initial comment to refer to GPL, not LGPL.
58967         gnulib-tool will change it to LGPL as needed.
58968
58969         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
58970         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
58971         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
58972         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
58973         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
58974         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
58975         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
58976         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
58977         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
58978         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
58979         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
58980         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
58981         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
58982         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
58983         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
58984         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
58985         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
58986         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
58987         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
58988         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
58989         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
58990         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
58991         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
58992         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
58993         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
58994         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
58995         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
58996         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
58997         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
58998         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
58999         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
59000         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
59001         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
59002         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
59003         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
59004         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
59005         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
59006         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
59007         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
59008         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
59009         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
59010         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
59011         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
59012         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
59013         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
59014         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
59015         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
59016         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
59017         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
59018         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
59019         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59020         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
59021         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
59022         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
59023         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
59024         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
59025         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
59026         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
59027         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
59028         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
59029         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
59030         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
59031         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
59032         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
59033         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
59034         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
59035         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
59036         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
59037         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
59038         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
59039         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
59040         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
59041         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
59042         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
59043         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
59044         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
59045         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
59046         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
59047         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
59048         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
59049         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
59050         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
59051         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
59052         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
59053         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
59054         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
59055         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
59056         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
59057         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
59058         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
59059         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
59060         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
59061         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
59062         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
59063         lib/yesno.c, lib/yesno.h:
59064         Update FSF postal mail address.
59065
59066 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59067
59068         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
59069         tests/test-memmem.c, tests/test-stpncpy.c:
59070         Update FSF postal mail address.
59071
59072 2005-05-13  Bruno Haible  <bruno@clisp.org>
59073
59074         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
59075         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
59076         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
59077         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
59078         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
59079         Add support for 64-bit integers in the MSVC compiler.
59080
59081 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59082
59083         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
59084
59085 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
59086
59087         * gnulib-tool (func_import): Sort and uniquify recommended includes.
59088
59089 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
59090
59091         * doc/getdate.texi (General date syntax): Don't say that date
59092         date --iso-8601=ns generates acceptable dates; it doesn't yet.
59093         Problem reported by Nic Ferrier.
59094
59095 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59096
59097         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
59098         specified in ai_socktype. Fix invalid ai_protocol
59099         check. ai_protocol is usually set to 0 or depending on
59100         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
59101         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
59102         ai_socktype / ai_protocol in the returned addrinfo structure.
59103
59104 2005-05-10  Simon Josefsson  <jas@extundo.com>
59105
59106         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
59107         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59108
59109 2005-05-10  Karl Berry  <karl@gnu.org>
59110
59111         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
59112         (from http://www.gnu.org/licenses).
59113         * doc/COPYING.LIB: also rename to COPYING.LESSER.
59114         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
59115         fdl.texi suffices.
59116
59117 2005-05-10  Karl Berry  <karl@gnu.org>
59118
59119         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
59120         (COPYING.DOC): remove.
59121
59122         * config/srclist-update: new FSF address.
59123
59124 2005-05-10  Derek Price  <derek@ximbiot.com>
59125
59126         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
59127         possible.
59128
59129 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59130             Bruno Haible  <bruno@clisp.org>
59131
59132         * modules/inet_ntop: New file.
59133         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59134         inet_ntop.
59135
59136 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59137             Bruno Haible  <bruno@clisp.org>
59138
59139         * m4/inet_ntop.m4: New file.
59140
59141 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59142             Bruno Haible  <bruno@clisp.org>
59143
59144         * lib/inet_ntop.h: New file.
59145         * lib/inet_ntop.c: New file, from glibc with modifications.
59146
59147 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
59148
59149         * modules/time_r (License): Change to LGPL.
59150         * modules/extensions (License): Change to LGPL.  Actually,
59151         the license is more permissive than that, but currently gnulib-tool
59152         doesn't know how to handle more-permissive licenses.
59153
59154         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
59155         Problem reported by Dave Love.
59156
59157 2005-05-08  Jim Meyering  <jim@meyering.net>
59158
59159         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
59160         blank.
59161
59162 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
59163
59164         * modules/argmatch (Depends-on): Add stdbool.
59165         * modules/backupfile (Depends-on): Likewise.
59166         * modules/chdir-long (Depends-on): Likewise.
59167         * modules/closeout (Depends-on): Likewise.
59168         * modules/cycle-check (Depends-on): Likewise.
59169         * modules/dirname (Depends-on): Likewise.
59170         * modules/fnmatch (Depends-on): Likewise.
59171         * modules/fsusage (Depends-on): Likewise.
59172         * modules/fwriteerror (Depends-on): Likewise.
59173         * modules/getcwd (Depends-on): Likewise.
59174         * modules/getloadavg (Depends-on): Likewise.
59175         * modules/hard-locale (Depends-on): Likewise.
59176         * modules/makepath (Depends-on): Likewise.
59177         * modules/mountlist (Depends-on): Likewise.
59178         * modules/nanosleep (Depends-on): Likewise.
59179         * modules/posixtm (Depends-on): Likewise.
59180         * modules/quotearg (Depends-on): Likewise.
59181         * modules/readtokens (Depends-on): Likewise.
59182         * modules/readtokens0 (Depends-on): Likewise.
59183         * modules/readutmp (Depends-on): Likewise.
59184         * modules/save-cwd (Depends-on): Likewise.
59185         * modules/strftime (Depends-on): Likewise.
59186         * modules/userspec (Depends-on): Likewise.
59187         * modules/utimecmp (Depends-on): Likewise.
59188         * modules/xgetcwd (Depends-on): Likewise.
59189         * modules/xnanosleep (Depends-on): Likewise.
59190         * modules/xstrtod (Depends-on): Likewise.
59191         * modules/yesno (Depends-on): Likewise.
59192
59193 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
59194
59195         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
59196         needless checks.
59197
59198 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59199
59200         Merge from coreutils.  Among other things,
59201         add bulletproofing for cases where stdin, stdout, or stderr are closed.
59202         * lib/fd-safer.c: New file.
59203         * lib/fcntl-safer.h, open-safer.c: Remove.
59204         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
59205         * lib/dup-safer.c: Include unistd-safer.h first.
59206         Don't include errno.h.
59207         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
59208         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
59209         * lib/file-type.c: Rely on file-type.h change.
59210         * lib/getloadavg.c: Include unistd-safer.h.
59211         (getloadavg): Use safer open.
59212         * lib/getusershell.c: Include "stdio-safer.h".
59213         (getusershell): Use safer fopen.
59214         * lib/long-options.c (long_options): Use NULL rather than 0.
59215         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
59216         'free'.
59217         * lib/modechange.c: Likewise.
59218         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
59219         (MODE_DONE): New constant.
59220         (struct mode_change): Remove 'next' member.
59221         (make_node_op_equals): New function; like the old one of the
59222         same name, except it allocates an array.
59223         (mode_compile, mode_create_from_ref): Use it.
59224         (mode_compile): Allocate result as an array, not a linked list.
59225         Parse octal string ourself, so that we catch mistakes like "+0".
59226         (mode_adjust): Arg is an array, not a linked list.
59227         * lib/modechange.c: Include stat-macros.h, xalloc.h.
59228         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
59229         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
59230         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
59231         Remove.  This is now stat-macros.h's job.
59232         (talloc): Remove.  All callers replaced by xalloc, so that
59233         our invokers don't have to worry about reporting memory failures.
59234         (make_node_op_equals): Remove.
59235         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59236         New constants.
59237         (struct mode_change): Moved here from modechange.h.
59238         (mode_append_entry): Remove.
59239         (mode_compile): Remove MASKED_OPS arg, since it encouraged
59240         apps to have incorrect behavior.  Use simpler algorithm for head
59241         and tail.  Don't futz with umask; that's now the job of mode_adjust.
59242         Detect more invalid usages rather than having somewhat-random behavior.
59243         Don't insert an "a=" action, as that leads to incorrect behavior.
59244         (mode_compile, mode_create_from_ref): Return NULL on error instead
59245         of an enum, since now there's only one way to have an error.  All
59246         callers changed.
59247         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
59248         at the correct time.  Simplify calculation of "+u" and its ilk.
59249         Don't mishandle "+X".
59250         (mode_free): Remove "register" and localize decls.
59251         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59252         (struct mode_change): Move to modechange.c; callers don't
59253         need to see this stuff.
59254         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
59255         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
59256         (mode_change, mode_adjust): Reflect the new signatures noted above.
59257         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
59258         that might redefine system include files.
59259         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
59260         (my_usleep): Use NULL rather than (void *) 0.
59261         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
59262         Use siginterrupt to specify that system calls should be interrupted.
59263         (rpl_nanosleep): Move initialization of suspended closer to call of
59264         my_usleep.
59265         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
59266         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
59267         (desirable_utmp_entry): New function.
59268         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
59269         using x2nrealloc, to simplify logic.
59270         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
59271         size calculation.  Do not assume utmp file is a regular file.
59272         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
59273         (READ_UTMP_CHECK_PIDS): New constant.
59274         * lib/save-cwd.c: Include unistd-safer.h.
59275         (save_cwd): Use fd_safer.
59276         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
59277         [!_LIBC] Include "stat-macros.h" instead.
59278         * lib/unistd-safer.h (fd_safer): New decl.
59279
59280 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59281
59282         * modules/getloadavg (Depends-on): Add unistd-safer.
59283         * modules/getusershell (Depends-on): Add stdio-safer.
59284         * modules/lstat (Depends-on): Remove xalloc.
59285         * modules/mkstemp (Depends-on): Add stat-macros.
59286         * modules/modechange (Depends-on): Remove xstrtol.
59287         Add stat-macros, xalloc.
59288         * modules/save-cwd (Depends-on): Add unistd-safer.
59289         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
59290         * modules/unistd-safer (Files): Add lib/fd-safer.c
59291         (Makefile.am): Remove lib_SOURCES.
59292
59293         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
59294         Remove fcntl-safer; unistd-safer supersedes it.
59295
59296 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59297
59298         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
59299         AC_HEADER_STAT.
59300         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
59301         (gl_PREREQ_CHOWN): Remove.
59302         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
59303         it.  Don't require AC_HEADER_STAT.
59304         (gl_PREREQ_LSTAT): Remove.
59305         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
59306         Don't require AC_HEADER_STAT.
59307         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
59308         (gl_PREREQ_RMDIR): Remove.
59309         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
59310         mention stat-macros.h or AC_HEADER_STAT, since we'll make
59311         the stat-macros module a prerequisite.
59312         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
59313         * m4/filemode.m4 (gl_FILEMODE): Likewise.
59314         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
59315         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
59316         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
59317         variable names.
59318         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
59319         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
59320         variable prefixes.
59321         * m4/fcntl-safer.m4: Remove.
59322         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
59323         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
59324         Invoke gl_PREREQ_FD_SAFER.
59325         (gl_PREREQ_FD_SAFER): New macro.
59326         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
59327         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
59328         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
59329         Remove duplicate call to AC_LIBOBJ(readutmp).
59330         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
59331
59332         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
59333         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
59334
59335 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59336
59337         * MODULES.html.sh (Misc): Add byteswap.
59338
59339 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59340
59341         * modules/getcwd (Depends-on): Add extensions.
59342         * modules/openat (Depends-on): Likewise.
59343
59344 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59345
59346         * modules/byteswap: New file.
59347
59348 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59349
59350         * m4/byteswap.m4: New file.
59351
59352 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59353
59354         * lib/byteswap_.h: New file.
59355
59356 2005-04-25  Karl Berry  <karl@gnu.org>
59357
59358         * m4/gettext.m4: Update from GNU gettext 0.14.4.
59359
59360 2005-04-25  Albert Chin  <china@thewrittenword.com>
59361
59362         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
59363         Toolkit C bug.
59364
59365 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
59366
59367         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
59368         (func_ln_if_changed) Remove forcibly for no error message
59369         in case file does not exist.
59370
59371 2005-04-19  Simon Josefsson  <jas@extundo.com>
59372
59373         * gnulib-tool (Options): Make --symlink mean --symbolic.
59374
59375 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
59376
59377         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
59378
59379 2005-04-16  Simon Josefsson  <jas@extundo.com>
59380
59381         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
59382
59383 2005-04-15  Simon Josefsson  <jas@extundo.com>
59384
59385         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
59386
59387 2005-04-15  Simon Josefsson  <jas@extundo.com>
59388
59389         * gnulib-tool: Rename --symlink to --symbolic.
59390
59391 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
59392
59393         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
59394         symbolic links to files instead of copying/moving.  Add --aux-dir,
59395         specifying directory relative --dir where auxiliary build tools
59396         are placed.
59397
59398 2005-04-14  Bruno Haible  <bruno@clisp.org>
59399
59400         * modules/allocsa (License): Change to LGPL.
59401         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59402
59403 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59404
59405         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
59406         that "UTC +1 second" continues to work.  Problem reported
59407         by Dmitry V. Levin.
59408         (relunit_snumber): New rule.
59409         (relunit): Use it.
59410
59411 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59412
59413         * lib/getdate.y (universal_time_zone_table): New constant.
59414         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
59415         universal_time_zone_table.
59416         (lookup_zone): Prefer universal_time_zone_table to
59417         local_time_zone_table, so that "GMT" time stamps are allowed in
59418         London during the summer.  Problem reported by Ian Abbott.
59419
59420 2005-04-12  Jim Meyering  <jim@meyering.net>
59421
59422         * lib/human.c (humblock): Set *options even when returning due to
59423         xstrtoumax conversion failure.  Thanks to a used-uninitialized
59424         warning from gcc-4.
59425
59426 2005-04-09  Jim Meyering  <jim@meyering.net>
59427
59428         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
59429         -Wuninitialized: initialize tm0.tm_year.
59430
59431 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59432
59433         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
59434         count, since there's no maximum.  All uses changed.
59435         Add member dsts_seen.
59436         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
59437         not being INT_MAX.
59438         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
59439         Use pc_rels_seen to decide whther a date is absolute.
59440
59441         * lib/getdate.y (number): Don't overwrite year.
59442         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
59443         check.
59444
59445 2005-04-02  Simon Josefsson  <jas@extundo.com>
59446
59447         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
59448         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
59449
59450 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
59451
59452         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
59453         where no absolute path name can be longer than PATH_MAX.
59454
59455 2005-03-27  Jim Meyering  <jim@meyering.net>
59456
59457         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
59458
59459 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
59460
59461         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
59462         "one's complement" -> "ones' complement" in comment, as per Knuth.
59463         "value of type" -> "type or expression" in comment.
59464         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
59465
59466 2005-03-26  Jim Meyering  <jim@meyering.net>
59467
59468         Comment nits.
59469         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
59470         Correct typos: s/or/of/.
59471
59472 2005-03-26  Jim Meyering  <jim@meyering.net>
59473
59474         * modules/check-include-files: Move to ../ and rename to...
59475         * check-module: ...this.
59476
59477 2005-03-25  Jim Meyering  <jim@meyering.net>
59478
59479         * modules/xvasprintf (Files): Add xalloc.h.
59480
59481 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59482
59483         * modules/gettext (Files): config/config.rpath ->
59484         build-aux/config.rpath
59485         * modules/iconv (Files): Likewise.
59486         Problem reported by Oskar Liljeblad.
59487
59488 2005-03-23  Jim Meyering  <jim@meyering.net>
59489
59490         * modules/check-include-files: New script to check for
59491         missing dependencies, multiple includes, etc.
59492
59493         * modules/c-strtold (Depends-on): Add xalloc.
59494         * modules/c-strtod (Depends-on): Add xalloc.
59495         * modules/hash (Depends-on): Add xalloc.
59496         (Files): Remove lib/xalloc.h.
59497
59498         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
59499         * modules/userspec (Files): Add lib/inttostr.h.
59500
59501 2005-03-23  Jim Meyering  <jim@meyering.net>
59502
59503         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
59504
59505 2005-03-22  Jim Meyering  <jim@meyering.net>
59506
59507         * modules/stat-macros: New module.
59508         * modules/canonicalize, modules/euidaccess, modules/file-type,
59509         * modules/filemode, modules/lchown, modules/makepath,
59510         * modules/rmdir, modules/stat: Depend on new stat-macros module
59511         rather than listing lib/stat-macros.h manually.
59512         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
59513
59514 2005-03-22  Jim Meyering  <jim@meyering.net>
59515
59516         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
59517
59518 2005-03-22  Bruno Haible  <bruno@clisp.org>
59519
59520         * config/srclist.txt: Replace target directory 'config' with
59521         'build-aux'.
59522         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
59523         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
59524         ../build-aux/.
59525
59526 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
59527
59528         * modules/chdir-long (Depends-on): Add mempcpy.
59529
59530         * modules/acl, modules/backupfile, modules/c-strtod,
59531         modules/c-strtold, modules/canon-host, modules/canonicalize,
59532         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
59533         modules/exclude, modules/exitfail, modules/file-type,
59534         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
59535         modules/getdate, modules/getline, modules/getpagesize,
59536         modules/getpass, modules/getugroups, modules/group-member,
59537         modules/hard-locale, modules/hash, modules/human, modules/idcache,
59538         modules/inttostr, modules/long-options, modules/makepath,
59539         modules/md5, modules/memcasecmp, modules/memcoll,
59540         modules/modechange, modules/mountlist, modules/path-concat,
59541         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
59542         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
59543         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
59544         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
59545         modules/strftime, modules/strndup, modules/strverscmp,
59546         modules/timespec, modules/unlocked-io, modules/userspec,
59547         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
59548         modules/yesno:
59549         Remove lib_SOURCES line from Makefile.am section, as this is now
59550         done automatically by the corresponding Autoconf macro.
59551
59552 2005-03-21  Jim Meyering  <jim@meyering.net>
59553
59554         Changes imported from coreutils.
59555
59556         * lib/cycle-check.c: Don't include xalloc.h.
59557
59558         * lib/path-concat.c: Don't include assert.h.
59559         (path_concat): Remove assertion that would have triggered
59560         for ABASE starting with more than one slash.
59561         Reported by Andreas Schwab.
59562
59563         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
59564         properly when ABASE is an absolute file name.
59565         Correct the description of this function.
59566         Include <assert.h>.
59567         Add an assertion and a test driver.
59568         This fixes a bug introduced on 2004-07-02.
59569         Andreas Schwab reported the resulting failure of cp --parents:
59570         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
59571
59572 2005-03-21  Jim Meyering  <jim@meyering.net>
59573
59574         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
59575         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
59576
59577 2005-03-21  Jim Meyering  <jim@meyering.net>
59578         and  Paul Eggert  <eggert@cs.ucla.edu>
59579
59580         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
59581         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
59582         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
59583         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
59584         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
59585         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
59586         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
59587         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
59588         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
59589         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
59590         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
59591         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
59592         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
59593         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
59594         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
59595         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
59596         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
59597         for these modules.
59598
59599 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
59600
59601         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
59602         (which shouldn't happen), generate nothing instead of returning 0
59603         immediately, so that nstrftime (NULL, ...) doesn't return 0.
59604
59605 2005-03-16  Bruno Haible  <bruno@clisp.org>
59606
59607         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
59608         HAVE_LONGLONG_64BIT.
59609
59610 2005-03-16  Bruno Haible  <bruno@clisp.org>
59611
59612         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
59613         HAVE_LONGLONG_64BIT.
59614
59615 2005-03-16  Bruno Haible  <bruno@clisp.org>
59616
59617         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
59618         HAVE_LONGLONG_64BIT.
59619
59620 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59621
59622         * lib/strftime.c (my_strftime): Prepend space to format so that we can
59623         reliably distinguish strftime failure from empty output on POSIX
59624         hosts.
59625
59626 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59627
59628         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
59629         (iconv_string): Don't guess a size-zero buffer, as that might cause
59630         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
59631         result would be 'too large', where 'too large' is (heuristically)
59632         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
59633         overflow concerns.  This will prevent some unwanted malloc failures
59634         when the inputs are very large.
59635
59636 2005-03-15  Karl Berry  <karl@gnu.org>
59637
59638         * config/srclist.txt (config.rpath): from gettext.
59639         * config/config.rpath: update.
59640
59641 2005-03-15  Bruno Haible  <bruno@clisp.org>
59642
59643         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
59644         to 'negate'.
59645
59646         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
59647         variable.
59648
59649         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
59650         results.
59651
59652 2005-03-14  Simon Josefsson  <jas@extundo.com>
59653
59654         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
59655         <fx@gnu.org>.
59656
59657 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
59658
59659         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
59660         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
59661         intprops.h.
59662         * lib/strtol.c: Likewise.
59663
59664 2005-03-14  Jim Meyering  <jim@meyering.net>
59665
59666         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
59667         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
59668         to be nonzero so that we (and caller) can detect the difference
59669         between a valid zero-length expansion and an error return, even
59670         when the underlying strftime fails before writing anything into
59671         that location.
59672
59673 2005-03-14  Bruno Haible  <bruno@clisp.org>
59674
59675         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
59676         Update from GNU gettext 0.14.3.
59677
59678 2005-03-10  Jim Meyering  <jim@meyering.net>
59679
59680         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
59681
59682 2005-03-10  Jim Meyering  <jim@meyering.net>
59683
59684         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
59685         so that this module works on systems without fchdir.
59686
59687 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
59688
59689         Factor int-properties macros into a single file, except for
59690         glibc-related files.
59691         * lib/intprops.h: New file.
59692         * lib/getloadavg.c: Include it instead of limits.h.
59693         (INT_STRLEN_BOUND): Remove.
59694         * lib/human.c: Include intprops.h.
59695         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
59696         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
59697         302/1000.
59698         * lib/inttostr.h: Include intprops.h instead of limits.h.
59699         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
59700         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
59701         for consistency with intprops.h.
59702         (time_t_is_integer, twos_complement_arithmetic): Use them.
59703         * lib/sig2str.h: Include <signal.h>, intprops.h.
59704         (INT_STRLEN_BOUND): Remove.
59705         * lib/strftime.c (TYPE_SIGNED): Remove.
59706         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
59707         * lib/strtol.c: Adjust comments to match intprops.h.
59708         * lib/userspec.c: Include intprops.h.
59709         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
59710         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
59711         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
59712         instead of rolling our own expressions.
59713         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
59714
59715         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
59716         instead of int.
59717         (my_strftime): Do not mishandle years close to INT_MAX, by doing
59718         the right thing even if adding 1900 would overflow.  Similarly
59719         for tm_mon + 1 and tm_yday + 1.
59720         Make %Y always equivalent to %C%y, and similarly for %G and %g.
59721         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
59722         (DO_SIGNED_NUMBER): New macro.
59723         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
59724
59725 2005-03-07  Bruno Haible  <bruno@clisp.org>
59726
59727         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
59728
59729 2005-03-07  Bruno Haible  <bruno@clisp.org>
59730
59731         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
59732
59733 2005-03-04  Derek R. Price  <derek@ximbiot.com>
59734
59735         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
59736         (func_import): Only replace files via --import when they have actually
59737         changed.
59738
59739 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59740
59741         * m4/mmap-anon.m4: New file.
59742         * m4/pagealign_alloc.m4: New file.
59743
59744 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59745             Bruno Haible  <bruno@clisp.org>
59746
59747         * modules/pagealign_alloc: New file.
59748         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
59749
59750 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59751             Bruno Haible  <bruno@clisp.org>
59752
59753         * lib/pagealign_alloc.h: New file.
59754         * lib/pagealign_alloc.c: New file.
59755
59756 2005-03-03  Bruno Haible  <bruno@clisp.org>
59757
59758         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
59759         Use an all-permissive copyright notice, recommended by RMS.
59760
59761 2005-03-02  Bruno Haible  <bruno@clisp.org>
59762
59763         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
59764         of AIX, the replacement has to be done only after <string.h> is
59765         included, therefore not in config.h. stpncpy.h does the replacement,
59766         and stpncpy.c uses it.
59767
59768 2005-03-02  Bruno Haible  <bruno@clisp.org>
59769
59770         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
59771         stpncpy.c uses it.
59772
59773 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59774
59775         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
59776         The workaround isn't strictly needed for POSIX conformance, and
59777         it's too much of a pain to configure and maintain.  We'll ask
59778         people to fix their kernels instead.
59779         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
59780         (NANOSLEEP_BUG_WORKAROUND): Remove.
59781         (xnanosleep): Remove the workaround.
59782
59783 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59784
59785         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
59786         Reported by Derek Price.
59787         (Include): Add "timespec.h".
59788
59789         * modules/xnanosleep (Depends-on): Remove gethrxtime.
59790
59791 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59792
59793         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
59794         to detect nanosleep bug.
59795
59796 2005-03-01  Bruno Haible  <bruno@clisp.org>
59797
59798         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
59799
59800 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59801
59802         * modules/gethrxtime: New file.
59803         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
59804         (Depends-on): Add gethrxtime.
59805         (configure.ac): Add gl_XNANOSLEEP.
59806         (Makefile.am): Remove lib_SOURCES line.
59807
59808 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59809
59810         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
59811         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
59812
59813 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59814
59815         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
59816         * lib/timespec.h (gettime): Return void, since it always
59817         succeeds now.  All uses changed.
59818         * lib/gettime.c (gettime) Likewise.
59819         [HAVE_NANOTIME]: Prefer nanotime.
59820         Assume gettimeofday succeeds, as POSIX requires.
59821         Assime time () succeeds, since other code already does.
59822         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
59823         (timespec_subtract): Remove.
59824         (NANOSLEEP_BUG_WORKAROUND): New constant.
59825         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
59826         things considerably.  Use it only on GNU/Linux hosts, since the
59827         workaround shouldn't be needed elsewhere.
59828
59829 2005-02-24  Bruno Haible  <bruno@clisp.org>
59830
59831         * modules/gettext (Files): Add m4/glibc2.m4.
59832
59833 2005-02-24  Bruno Haible  <bruno@clisp.org>
59834
59835         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
59836         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
59837         * m4/progtest.m4:
59838         Update from GNU gettext 0.14.2.
59839         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
59840
59841 2005-02-24  Bruno Haible  <bruno@clisp.org>
59842
59843         * lib/localcharset.c: Update from GNU gettext 0.14.2.
59844         * lib/config.charset: Update from GNU gettext 0.14.2.
59845
59846 2005-02-24  Bruno Haible  <bruno@clisp.org>
59847
59848         * lib/gettext.h: Update from GNU gettext 0.14.2.
59849
59850 2005-02-23  Simon Josefsson  <jas@extundo.com>
59851
59852         * m4/iconvme.m4: New file.
59853
59854 2005-02-23  Jim Meyering  <jim@meyering.net>
59855
59856         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
59857         change.
59858         Thanks to Bruno Haible for catching it.
59859
59860 2005-02-22  Simon Josefsson  <jas@extundo.com>
59861
59862         * modules/iconvme: New file.
59863
59864         * MODULES.html.sh: Add iconvme.
59865
59866 2005-02-22  Simon Josefsson  <jas@extundo.com>
59867
59868         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
59869
59870 2005-02-22  Simon Josefsson  <jas@extundo.com>
59871
59872         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
59873
59874 2005-02-22  Jim Meyering  <jim@meyering.net>
59875
59876         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
59877         s/ifndef/ifdef/.
59878
59879 2005-02-20  Neil Conway  <neilc@samurai.com>
59880
59881         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
59882         returned by OSX/Darwin if the specified buffer is not large
59883         enough for the hostname.
59884
59885 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59886
59887         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
59888         pass it to _help, otherwise the latter coredumps trying to
59889         dereference state.root_argp.
59890
59891 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59892
59893         * modules/chdir-long (Depends-on): Add memrchr.
59894         * modules/memrchr (Files): Add lib/memrchr.h.
59895         (Include): "memrchr.h".
59896
59897 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59898
59899         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
59900
59901 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59902
59903         * lib/memrchr.h: New file.
59904         * lib/chdir-long.c: Include it.
59905         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
59906         Don't bother including stddef.h.
59907
59908 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59909
59910         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
59911         inclusion.
59912         Include <sys/types.h>, for dev_t.
59913         (ME_DUMMY, ME_REMOTE): Move from here....
59914         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
59915         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
59916         Dmitry V. Levin.
59917         Include mountlist.h first, to test the interface.
59918
59919 2005-01-29  Bruno Haible  <bruno@clisp.org>
59920
59921         * lib/progname.c (program_name): Initialize.
59922         Needed when linking statically on MacOS X.
59923
59924 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59925
59926         Sync from coreutils.
59927         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
59928         (Depends-on): Add c-strtod.
59929         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
59930
59931 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59932
59933         Sync from coreutils.
59934         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
59935
59936         Remove files that are specific to coreutils.
59937         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
59938
59939 2005-01-28  Bruno Haible  <bruno@clisp.org>
59940
59941         * modules/javacomp: New file.
59942         * MODULES.html.sh (Java): Add javacomp.
59943
59944 2005-01-28  Bruno Haible  <bruno@clisp.org>
59945
59946         * m4/javacomp.m4: New file, from GNU gettext.
59947
59948 2005-01-28  Bruno Haible  <bruno@clisp.org>
59949
59950         * lib/javacomp.sh.in: New file, from GNU gettext.
59951         * lib/javacomp.h: New file, from GNU gettext.
59952         * lib/javacomp.c: New file, from GNU gettext.
59953
59954 2005-01-26  Simon Josefsson  <jas@extundo.com>
59955
59956         * lib/gai_strerror.c: Use GPL in header.
59957
59958 2005-01-26  Bruno Haible  <bruno@clisp.org>
59959
59960         * modules/javaexec: New file.
59961         * MODULES.html.sh (Java): Add javaexec.
59962
59963 2005-01-26  Bruno Haible  <bruno@clisp.org>
59964
59965         * m4/javaexec.m4: New file, from GNU gettext.
59966
59967 2005-01-26  Bruno Haible  <bruno@clisp.org>
59968
59969         * lib/javaexec.sh.in: New file, from GNU gettext.
59970         * lib/javaexec.h: New file, from GNU gettext.
59971         * lib/javaexec.c: New file, from GNU gettext.
59972
59973 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59974
59975         * modules/lchown (Depends-on): Remove lchown.h
59976
59977 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59978
59979         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
59980         must be defined if the header file was not found, in order
59981         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
59982
59983 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59984
59985         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
59986         initializers for struct pentry_state.
59987         (__argp_error): Check return value of __asprintf
59988         (__argp_failure): Translate error message
59989
59990         * lib/argp-parse.c: Removed braces around the expansion of N_()
59991
59992 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59993
59994         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
59995         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
59996         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
59997         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
59998         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
59999         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
60000         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
60001         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
60002         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
60003         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
60004         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
60005         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
60006         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
60007         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
60008         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
60009         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
60010         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
60011         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
60012         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
60013         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
60014         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
60015         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
60016         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
60017         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
60018         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
60019         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
60020         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
60021         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
60022         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
60023         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
60024         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
60025         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
60026         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
60027         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
60028         xstrtol.m4, xstrtoumax.m4, yesno.m4:
60029         Use an all-permissive copyright notice, recommended by RMS.
60030
60031 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
60032
60033         * modules/chdir-long (Depends-on): Remove mempcpy.
60034
60035 2005-01-21  Jim Meyering  <jim@meyering.net>
60036
60037         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
60038         same value as for Solaris 9.
60039
60040         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
60041         component length.  This included changing the parameter to be
60042         of type `char *' rather than `char const *'.
60043         * lib/chdir-long.h (chdir_long): Update prototype.
60044
60045         * lib/openat.c (fdopendir, fstatat): New functions.
60046         * lib/openat.h: Include headers required for use of DIR and struct
60047         stat.
60048         [AT_SYMLINK_NOFOLLOW]: Define.
60049         (fdopendir, fstatat): Add prototypes.
60050
60051 2005-01-21  Bruno Haible  <bruno@clisp.org>
60052
60053         * modules/classpath: New file.
60054         * MODULES.html.sh (Java): Add classpath.
60055
60056 2005-01-21  Bruno Haible  <bruno@clisp.org>
60057
60058         * lib/classpath.h: New file, from GNU gettext.
60059         * lib/classpath.c: New file, from GNU gettext.
60060
60061 2005-01-20  Simon Josefsson  <jas@extundo.com>
60062
60063         * modules/version-etc-fsf: New file.
60064
60065 2005-01-20  Simon Josefsson  <jas@extundo.com>
60066
60067         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
60068         * lib/version-etc.c: Remove version_etc_copyright.
60069         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
60070         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
60071
60072 2005-01-20  Simon Josefsson  <jas@extundo.com>
60073
60074         * lib/base64.h (isbase64): Add.
60075
60076         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
60077         using a unsigned prototype, don't inline.
60078         (base64_decode): Use it.
60079
60080 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60081
60082         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
60083         it.
60084
60085 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60086
60087         * lib/save-cwd.c (save_cwd): Remove code to support the case
60088         where fchdir is missing or flaky.
60089
60090 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60091
60092         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
60093
60094 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60095
60096         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
60097         AC_LIBSOURCES now does this.
60098         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
60099         with new ullong_max module.
60100
60101 2005-01-19  Bruno Haible  <bruno@clisp.org>
60102
60103         * modules/sh-quote: New file.
60104         * MODULES.html.sh (Executing programs): Add sh-quote.
60105
60106 2005-01-19  Bruno Haible  <bruno@clisp.org>
60107
60108         * lib/sh-quote.h: New file, from GNU gettext.
60109         * lib/sh-quote.c: New file, from GNU gettext.
60110
60111 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60112
60113         Merge from coreutils.
60114         * m4/ullong_max.m4: New file.
60115         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
60116         (gl_MACROS): Assume localeconv exists.
60117
60118 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60119
60120         Merge changes from coreutils, as described below in several
60121         changelogs dated today.
60122
60123         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
60124         (O_DIRECTORY): Remove; not needed here, since "." must be
60125         a directory.  All uses removed.
60126         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
60127         universal on Suns, and we also need to test for IRIX.
60128         Revamp code to use 'if' rather than '#if'.
60129         Avoid unnecessary comparison of cwd->desc to 0.
60130
60131         * lib/utimens.c (futimens): Robustify the previous patch, by checking
60132         for known valid error numbers rather than observed invalid ones.
60133
60134 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60135
60136         * modules/ullong_max: New file.
60137
60138         * modules/chdir-long, modules/openat: New files.
60139         * modules/save-cwd (Depends-on): Depend on chdir-long.
60140         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
60141
60142 2005-01-18  Jim Meyering  <jim@meyering.net>
60143
60144         Merge from coreutils.
60145         * m4/chdir-long.m4, m4/openat.m4: New files.
60146         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
60147         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
60148         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
60149         is sane and DOES follow symlinks.  Besides, testing 20 different
60150         systems found no broken chown implementations.
60151         Prompted by a change in rsync's copy of this macro.
60152         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
60153
60154         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
60155
60156         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
60157         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
60158         NULL-means-set-to-current-time semantics.
60159         Remove temporary file immediately, rather than waiting
60160         for configure's at-exit trap code to do it.
60161
60162 2005-01-18  Jim Meyering  <jim@meyering.net>
60163
60164         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60165
60166         * lib/utimens.c (futimens): Account for the fact that futimes
60167         can also fail with errno == ENOSYS or errno == ENOENT.
60168         Patch from Dmitry V. Levin.
60169
60170         Change the name of the robust chdir function from chdir to chdir_long.
60171         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
60172         (restore_cwd): Use chdir_long, not chdir.
60173         * lib/chdir-long.c: Renamed from chdir.c.
60174         * lib/chdir-long.h: Renamed from chdir.h.
60175         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
60176         Hurd.
60177
60178 2005-01-18  Bruno Haible  <bruno@clisp.org>
60179
60180         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
60181         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
60182         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
60183         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
60184         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
60185         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
60186         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
60187         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
60188         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
60189         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
60190         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
60191         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
60192         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
60193         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
60194         Use an all-permissive copyright notice, recommended by RMS.
60195
60196 2005-01-18  Bob Proulx  <bob@proulx.com>
60197
60198         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
60199         simplify offsetof() macro construct to avoid compile failure with
60200         native HP-UX 11.0 ANSI C compiler.
60201
60202 2005-01-17  Bruno Haible  <bruno@clisp.org>
60203
60204         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
60205         redundant because stpncpy.m4 takes care of it.
60206
60207 2005-01-17  Bruno Haible  <bruno@clisp.org>
60208
60209         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
60210
60211 2005-01-17  Bruno Haible  <bruno@clisp.org>
60212
60213         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
60214         used.
60215
60216 2005-01-17  Bruno Haible  <bruno@clisp.org>
60217
60218         * lib/fwriteerror.h (fwriteerror): Change specification to include
60219         fclose.
60220         * lib/fwriteerror.c: Include <stdbool.h>.
60221         (fwriteerror): At the end, close the file stream. Record whether
60222         stdout was already closed.
60223
60224 2005-01-17  Bruno Haible  <bruno@clisp.org>
60225
60226         * lib/execute.c (environ): Declare if needed.
60227         * lib/pipe.c (environ): Likewise.
60228         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
60229
60230 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60231
60232         * modules/argp: Depend on vsnprintf
60233
60234 2005-01-10  Jim Meyering  <jim@meyering.net>
60235
60236         * modules/closeout (Depends-on): Add atexit.
60237
60238 2005-01-06  Bruno Haible  <bruno@clisp.org>
60239
60240         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
60241
60242 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60243
60244         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
60245         definitions to be after all include files, to avoid collisions.
60246         Problem reported by Bob Proulx.
60247
60248 2005-01-04  Jim Meyering  <jim@meyering.net>
60249
60250         Changes imported from coreutils.
60251         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
60252         as the mkstemp template, use a temporary directory and an
60253         8.3-friendly template to avoid trouble on systems like DJGPP.
60254         Reported by Juan M. Guerrero via Stepan Kasal.
60255         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
60256         close. Remove the temporary directory right away, rather than waiting
60257         for configure's at-exit trap code to do it.
60258         Suggestion from Stepan Kasal.
60259
60260 2005-01-01  Simon Josefsson  <jas@extundo.com>
60261
60262         * gnulib-tool: Print #include directives when --import'ing.
60263
60264 2004-12-28  Simon Josefsson  <jas@extundo.com>
60265
60266         * tests/test-base64.c: Include required header files.  Remove
60267         unused variables.
60268
60269 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60270
60271         * modules/error (Depends-on): Remove gettext.
60272
60273 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60274
60275         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
60276         not needed.  This removes a dependency on the gettext module.
60277         [defined _LIBC]: Do not include <libintl.h>; not needed.
60278
60279 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60280
60281         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
60282         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
60283
60284 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60285
60286         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
60287         HAVE_DECL_STRTOLD.
60288
60289 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60290
60291         * modules/getdate (Depends-on): Remove alloca-opt.
60292
60293 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60294
60295         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
60296
60297 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60298
60299         * lib/argp-parse.c: Include <stddef.h>.
60300         (alignof, alignto): New macros.
60301         (parser_init): Don't assume that void * is aligned sufficiently
60302         for struct option.
60303
60304         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
60305         need to extend the stack.
60306         (YYINITDEPTH): New macro, so that the initial stack isn't overly
60307         large.
60308
60309 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60310
60311         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
60312
60313 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60314
60315         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
60316         (2004-10-24) change.  Apparently this was a false alarm.
60317
60318         * modules/getdate: Depend on alloca-opt, not alloca.
60319
60320 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60321
60322         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
60323         Remove now-obsolete comment about AIX.
60324         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
60325         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
60326         (YYMAXDEPTH): New macro.
60327
60328 2004-12-18  Simon Josefsson  <jas@extundo.com>
60329
60330         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
60331
60332 2004-12-18  Bruno Haible  <bruno@clisp.org>
60333
60334         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
60335
60336 2004-12-18  Bruno Haible  <bruno@clisp.org>
60337
60338         * lib/fatal-signal.c (fatal_signals): Make non-const.
60339         (init_fatal_signals): New function.
60340         (uninstall_handlers, install_handlers): Ignore signals that were set to
60341         SIG_IGN.
60342         (at_fatal_signal): Call init_fatal_signals.
60343         (init_fatal_signal_set): Likewise. Ignore signals that were set to
60344         SIG_IGN.
60345         Reported by Paul Eggert.
60346
60347 2004-12-18  Bruno Haible  <bruno@clisp.org>
60348
60349         * doc/alloca.texi: New file.
60350         * doc/alloca-opt.texi: New file.
60351
60352 2004-12-17  Jim Meyering  <jim@meyering.net>
60353
60354         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
60355         Otherwise, install-sh could exit with improper exit status when
60356         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
60357
60358 2004-12-16  Simon Josefsson  <jas@extundo.com>
60359
60360         * tests/test-base64.c: Add license.
60361
60362 2004-12-15  Stepan Kasal  <address@hidden>
60363
60364         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
60365
60366 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
60367
60368         * modules/getcwd (Files): Add m4/d-ino.m4.
60369         Suggested by Mark D. Baushke.
60370
60371 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60372
60373         * lib/getdate.y (textint): New member "negative".
60374         (time_zone_hhmm): New function.
60375         Expect 14 shift-reduce conflicts, not 13.
60376         (o_colon_minutes): New rule.
60377         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
60378         (yylex): Set the "negative" member of signed numbers.
60379
60380 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60381
60382         * doc/getdate.texi (Time of day items, Time zone items):
60383         Describe new formats +00:00, UTC+00:00.
60384
60385 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60386
60387         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
60388         spurious "-l"s.  Problem reported by Stepan Kasal.
60389
60390 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
60391
60392         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
60393         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
60394
60395 2004-12-04  Simon Josefsson  <jas@extundo.com>
60396
60397         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
60398         Vandoorselaere <yoann@prelude-ids.org>.
60399
60400 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60401
60402         Changes imported from coreutils.
60403         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
60404         exist.
60405         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
60406
60407 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60408
60409         Changes imported from coreutils.
60410         * lib/hard-locale.c: Assume <locale.h> exists.
60411         Include "strdup.h".
60412         (GLIBC_VERSION): New macro.
60413         (hard_locale): Assume setlocale exists.
60414         Rewrite to avoid #ifdef.
60415         Use strdup rather than malloc + strcpy.
60416         * lib/human.c: Assume <locale.h> exists.
60417         (human_readable): Assume localeconv exists.
60418
60419 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60420
60421         * modules/hard-locale (Depends-on): Add strdup.
60422
60423 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60424
60425         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
60426         convert T2, not T.  (Imported from libc.)
60427
60428 2004-11-30  Simon Josefsson  <jas@extundo.com>
60429
60430         * modules/restrict (License): Change to LGPL.
60431
60432 2004-11-30  Simon Josefsson  <jas@extundo.com>
60433
60434         * m4/restrict.m4: Add copyright and copying conditions.
60435
60436 2004-11-30  Simon Josefsson  <jas@extundo.com>
60437
60438         * m4/base64.m4: New file.
60439
60440 2004-11-30  Simon Josefsson  <jas@extundo.com>
60441
60442         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
60443         base64.
60444
60445         * tests/test-base64.c: New file.
60446
60447         * modules/base64: New file.
60448
60449 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60450
60451         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
60452         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
60453
60454         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
60455
60456 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60457
60458         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
60459         (__getcwd.c): Don't restore errno; glibc doesn't.
60460         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
60461         first, falling back to our code only if its results look suspicious.
60462         Ensure that the resulting buffer is only as large as necessary.
60463
60464         * lib/readutmp.c: Include readutmp.h first.
60465         Include <errno.h>, since readutmp.h no longer does that.
60466         * lib/readutmp.h: Don't include <errno.h>,
60467         <sys/param.h>, <time.h>; not needed to establish interface.
60468         (errno): Remove decl.
60469         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
60470         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
60471         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
60472
60473 2004-11-28  Simon Josefsson  <jas@extundo.com>
60474
60475         * lib/base64.h, base64.c: New file.
60476
60477 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60478
60479         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
60480
60481 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60482
60483         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
60484         (Depends-on): Remove pathmax, same.  Add mempcpy.
60485         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
60486         (Makefile.am): Append getcwd.h to lib_SOURCES.
60487         (Include): Add getcwd.h.
60488         (Maintainer): Change from Jim Meyering to "all, glibc",
60489         since getdate now uses intended-for-glibc code.
60490         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
60491         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
60492
60493 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60494
60495         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
60496         HP's ANSI C compiler.
60497         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
60498         Declaring int functions causes warnings on some modern systems and
60499         shouldn't be needed to compile on ancient ones.
60500         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
60501         defined.
60502
60503         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
60504         with the following changes.
60505         (__set_errno): Parenthesize properly.
60506         Include <stdbool.h>.
60507         (MIN, MAX, MATCHING_INO): New macros.
60508         (__getcwd): Define with prototype, not K&R form.
60509         Use heuristics to allocate default buffer on stack if possible.
60510         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
60511         behavior, and to avoid the PATH_MAX limit when computing
60512         ../../../../...
60513         Use MATCHING_INO to compare inode number to file.
60514         Check for arithmetic overflow in size calculations.
60515         Fix bug in reallocation of dot array that caused getcwd to fail
60516         on directories nested deeper than 75.
60517         Be more careful about saving errno on error.
60518         Do not use realloc; use only free+malloc, as this is a bit
60519         more flexible and avoids a needless copy operation.
60520         Do not inspect st_dev and st_ino for symbolic links; POSIX
60521         doesn't specify the latter.
60522         Check for closedir errors.
60523         Avoid needless casts.
60524         Use "#ifdef weak_alias" around weak_alias, to be like other
60525         glibc code.
60526         The following changes to getcwd.c have effect only when used in
60527         gnulib; they have no effect inside glibc proper.
60528         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
60529         as alloca isn't used.
60530         (alloca, __alloca): Likewise.
60531         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
60532         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60533         unconditionally, as gnulib assumes C89 or better.
60534         Do not include <sys/param.h>.
60535         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
60536         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
60537         better.
60538         (NULL) [!defined NULL]: Remove; we assume C89 or better.
60539         Include <dirent.h> in a way that is compatible with modern Autoconf.
60540         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
60541         New macros, if not already defined.
60542         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
60543         Use "_LIBC", not "defined _LIBC", for consistency.
60544         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
60545         a mempcpy module.
60546         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
60547         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
60548         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
60549         credit only to Jim Meyering and adjust the copyright dates.
60550         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
60551         <stdlib.h>, <unistd.h>, "pathmax.h".
60552         Instead, include "xgetcwd.h" (first) and "getcwd.h".
60553         (INITIAL_BUFFER_SIZE): Remove.
60554         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
60555
60556 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60557
60558         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
60559         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
60560         Use the _ONCE methods, for efficiency.
60561         Check for fcntl.h.  In test program, include <errno.h>
60562         and <fcntl.h> if available.  Remove old K&R cruft from
60563         test program.  Check for common errors in GNU/Linux,
60564         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
60565         don't do AC_LIBOBJ, as that's getcwd.m4's job.
60566         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
60567         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
60568         name accordingly.
60569         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
60570         accommodate new getcwd.c.
60571         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
60572         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
60573         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
60574         that's all we need now.
60575
60576 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60577
60578         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
60579         argp-parse.c depends on getopt internals, that means we should
60580         always use our getopt, to be on the safe side.
60581         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
60582         order not to spoil the result of an eventual previous invocation
60583         of gl_GETOPT_SUBSTITUTE.
60584
60585 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60586
60587         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
60588         redefinition warnings. To avoid them, include the defines
60589         in `#if !defined __need_getopt ... #endif'. The only place
60590         where __getopt_argv_const is used is in definitions
60591         of getopt_long and getopt_long_only below, which are as well
60592         protected by `#ifndef __need_getopt'.
60593         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
60594         __need_getopt after including <stdio.h> and <unistd.h> These
60595         headers might have defined it.
60596
60597 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60598
60599         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
60600
60601 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60602
60603         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
60604         (futimens): New function, which uses futimes if available.
60605         (futimens, utimens): Support timespec==NULL, with same semantics
60606         as utime and utimens.
60607         * lib/utimens.h (futimens): New decl.
60608
60609 2004-11-23  Jim Meyering  <jim@meyering.net>
60610
60611         * lib/getopt_.h: Remove trailing blanks.
60612
60613 2004-11-23  Jim Meyering  <jim@meyering.net>
60614
60615         * lib/__fpending.c: Add comment.
60616
60617 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
60618
60619         * modules/canonicalize (Depends-on): Add xreadlink.
60620         Problem reported by James Youngman.
60621
60622 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60623
60624         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
60625         New macros.
60626         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
60627         optopt): Use them instead of invoking ## directly; otherwise, the
60628         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
60629
60630 2004-11-19  Bruno Haible  <bruno@clisp.org>
60631
60632         * lib/strtok_r.c: Move comments from here...
60633         * lib/strtok_r.h: ... to here.
60634
60635 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60636
60637         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
60638         implementations that mishandle size_t overflow.
60639
60640 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60641
60642         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
60643         might fail.  Problem reported by Yoann Vandoorselaere.
60644         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
60645         implementations that mishandle size_t overflow.
60646
60647 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60648
60649         * modules/canon-host (Depends-on): Add strdup.
60650
60651 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60652
60653         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
60654
60655 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60656
60657         * lib/canon-host.c: Include "strdup.h".
60658         (canon_host): Use getaddrinfo if available, so that IPv6 works.
60659         Use strdup instead of malloc/strcpy to duplicate strings.
60660
60661         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
60662         (human_space_before_unit): New constant.
60663         * lib/human.c (human_readable): Support it.
60664
60665         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
60666         (xgetcwd): Set errno correctly when failing.
60667         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
60668         the failure is actually due to a PATH_MAX problem.
60669
60670         Further getopt changes to make it more likely that glibc will
60671         buy the changes back.
60672         * lib/getopt.c (POSIXLY_CORRECT): New constant.
60673         (getopt): Use it, so to preserve glibc semantic
60674         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
60675         when compiling for libc.
60676         * lib/getopt_.h (__getopt_argv_const): Bring it back.
60677         (getopt_long, getopt_long_only): Use it.
60678
60679         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60680         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
60681         (getopt): Argv is now char * const *, as per standard.
60682         (_getopt_internal_r, _getopt_internal): Argv is now char **,
60683         not char *__getopt_argv_const *.
60684         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60685         _getopt_long_only_r): Likewise.
60686         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
60687         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60688         _getopt_long_r, _getopt_long_only_r): Likewise.
60689         * lib/getopt_.h (__getopt_argv_const): Remove.
60690         (getopt): Argv is now char * const *, as per standard.
60691
60692         * lib/getdate.y (tORDINAL): New token.
60693         (day, relunit): Allow it for relative times.
60694         (relative_time_table): Use tORDINAL for ordinals.
60695
60696 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60697
60698         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
60699         Document that "second" isn't allowed as an ordinal number.
60700
60701 2004-11-16  Jim Meyering  <jim@meyering.net>
60702
60703         * modules/closeout (Depends-on): Add fpending.
60704
60705 2004-11-15  Jim Meyering  <jim@meyering.net>
60706
60707         * lib/closeout.c: Include "__fpending.h" once again.
60708         Include <stdbool.h>.
60709         (close_stdout): Don't fail just because stdout was closed initially,
60710         since some programs don't write to stdout in the normal course of
60711         operation (other than --version and --help), and we don't want this
60712         function to make e.g. `touch file >&-' fail.
60713         But do fail if it was closed and someone has tried to write to it.
60714         E.g., `printf foo >&-' must fail.
60715
60716 2004-11-13  Jim Meyering  <jim@meyering.net>
60717
60718         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
60719
60720 2004-11-12  Simon Josefsson  <jas@extundo.com>
60721
60722         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
60723         small doc fix is still pending.
60724
60725 2004-11-11  Simon Josefsson  <jas@extundo.com>
60726
60727         * modules/strtok_r: New file.
60728
60729         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60730         strtok_r.
60731
60732 2004-11-11  Simon Josefsson  <jas@extundo.com>
60733
60734         * m4/strtok_r.m4: New file.
60735
60736         * m4/getopt.m4: Replace opterr.
60737
60738 2004-11-11  Simon Josefsson  <jas@extundo.com>
60739
60740         * lib/strtok_r.h, strtok_r.c: New file.
60741
60742 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60743
60744         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
60745         of replacing opterr, getopt, etc.  This should handle the
60746         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
60747
60748 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60749
60750         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
60751         we can stop lying to compilers about the constness of argv when we
60752         are compiled outside glibc.
60753         (getopt, getopt_long, getopt_long_only): Use it.
60754         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60755         _getopt_internal, getopt): Likewise.
60756         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60757         _getopt_long_only_r): Likewise.
60758         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60759         _getopt_long_r, _getopt_long_only_r): Likewise.
60760
60761         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
60762         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
60763         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
60764         the other external symbols.
60765         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
60766         declaration, since the above renaming now works around collisions.
60767
60768 2004-11-11  Jim Meyering  <jim@meyering.net>
60769
60770         * lib/linebreak.c: Remove trailing blanks.
60771         * lib/alloca_.h: Likewise.
60772         * lib/acosl.c: Likewise.
60773         * lib/euidaccess.c: Likewise.
60774         * lib/allocsa.h: Likewise.
60775
60776 2004-11-10  Simon Josefsson  <jas@extundo.com>
60777
60778         * m4/getaddrinfo.m4: New file.
60779
60780 2004-11-10  Simon Josefsson  <jas@extundo.com>
60781
60782         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
60783
60784 2004-11-10  Simon Josefsson  <jas@extundo.com>
60785
60786         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60787         getaddrinfo.
60788
60789         * modules/getaddrinfo: New file.
60790
60791 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60792
60793         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
60794
60795 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60796
60797         * lib/mktime.c (SHR): New macro, which is a portable
60798         substitute for >> that should work even on Crays.
60799         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
60800         Problem reported by Mark D. Baushke in
60801         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
60802         * lib/getdate.y (SHR): Likewise.
60803         (tm_diff): Use it.
60804         * lib/strftime.c (SHR): Likewise.
60805         (tm_diff): Use it.
60806         * lib/quotearg.c (struct quoting_options): Use unsigned int for
60807         quote_these_too, so that right shifts are well defined.  All uses
60808         changed.
60809
60810 2004-11-10  Jim Meyering  <jim@meyering.net>
60811
60812         Ensure that no close failure goes unreported.
60813         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
60814         return early when it seems there's nothing to flush.
60815         Don't include __fpending.h.
60816
60817 2004-11-10  Jim Meyering  <jim@meyering.net>
60818
60819         * modules/closeout (Depends-on): Remove fpending.
60820
60821 2004-11-10  Jim Meyering  <jim@meyering.net>
60822
60823         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
60824
60825 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60826
60827         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
60828         gl_FUNC_STRFTIME.
60829         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
60830         and AC_REQUIRE when possible, to avoid duplicate checks.
60831         Check for <wchar.h>.
60832
60833 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60834
60835         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
60836
60837 2004-11-09  Bruno Haible  <bruno@clisp.org>
60838
60839         * m4/sockpfaf.m4: New file.
60840
60841 2004-11-05  Bruno Haible  <bruno@clisp.org>
60842
60843         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
60844         Reported by Mark D. Baushke <mdb@cvshome.org>.
60845
60846 2004-11-04  Bruno Haible  <bruno@clisp.org>
60847
60848         2004-09-11  Bruno Haible  <bruno@clisp.org>
60849                 * allocsa.valgrind: New file.
60850         2004-02-06  Bruno Haible  <bruno@clisp.org>
60851                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
60852                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
60853                 Reported by Christopher Seip <chris.seip@hp.com>.
60854
60855 2004-11-04  Bruno Haible  <bruno@clisp.org>
60856
60857         * modules/allocsa (Files): Add lib/allocsa.valgrind.
60858         (Makefile.am): Distribute it.
60859
60860 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60861
60862         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
60863         with errno == ERANGE if the buffer is too small.
60864         Problem reported by Mark D. Baushke.
60865
60866 2004-11-03  Albert Chin  <china@thewrittenword.com>
60867             Paul Eggert  <eggert@cs.ucla.edu>
60868
60869         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
60870         equivalent, substitute $ac_type for equivalent type rather than
60871         blindly using uint32_t *always* which won't work if uint32_t is not
60872         available.  Define _UINT32_T to work around typedef of uint32_t if
60873         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
60874         2.5.1.
60875
60876 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60877
60878         * m4/jm-macros.m4: Sync from coreutils.
60879         (gl_MACROS): Check for mbrlen, for pathchk.
60880         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
60881
60882 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60883
60884         * lib/xreadlink.c (MAXSIZE): New macro.
60885         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
60886         size does not exceed MAXSIZE.  Avoid cast.
60887         As suggested by Mark D. Baushke in
60888         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
60889         if readlink fails with buffer size just under MAXSIZE, try again
60890         with MAXSIZE.
60891
60892 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60893
60894         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
60895
60896 2004-11-02  Derek R. Price  <derek@ximbiot.com>
60897         and  Paul Eggert  <eggert@cs.ucla.edu>
60898
60899         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
60900         (get_date): Overparenthesize to avoid GCC warning.
60901
60902 2004-11-02  Bruno Haible  <bruno@clisp.org>
60903
60904         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
60905         returns void.
60906
60907 2004-11-02  Bruno Haible  <bruno@clisp.org>
60908
60909         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
60910         function returns void.
60911
60912 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60913
60914         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
60915         fflush_unlocked, flockfile, funlockfile, funlockfile,
60916         fputs_unlocked, putc_unlocked.
60917
60918 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60919
60920         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60921         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
60922         already declared.
60923
60924 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60925
60926         * modules/getdate (Files): Add doc/getdate.texi.
60927         (Depends-on): Add setenv, xalloc.
60928
60929 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60930
60931         * lib/getdate.y: Add support for TZ="foo" within a date string.
60932         Fix some bugs near time_t boundaries.  Reject dates with
60933         out-of-range components, e.g., "Sept 31".
60934         Include <stdlib.h>, "setenv.h", "xalloc.h".
60935         (ISDIGIT_LOCALE): Remove; unused.
60936         Note that the TZ and time functions used here are not reentrant.
60937         (mktime_ok, get_tz): New functions.
60938         (TZBUFSIZE): New constant.
60939         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
60940         This requires that we sometimes generate our own TZ="XXX..." setting.
60941
60942 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60943
60944         * doc/getdate.texi: New file, from coreutils with modifications for
60945         the new TZ parsing.
60946
60947 2004-10-27  Derek R. Price  <derek@ximbiot.com>
60948
60949         * lib/mktime.c (not_equal_tm): Remove redundant check.
60950
60951 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60952
60953         * modules/regex (lib_SOURCES): Add regex.c.
60954         Reported by James Youngman in
60955         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
60956
60957 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60958
60959         * lib/getdate.y: Use Bison 1.875 features, and some minor
60960         code cleanups.  This change does not affect semantics.
60961         Don't include <stdlib.h>; no longer needed.
60962         Don't include unlocked-io.h; only the "#if TEST" code uses
60963         stdio, and performance isn't crucial there.
60964         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
60965         Bison 1.875 features as described below.
60966         All uses of "PC." replaced by "pc->".
60967         (YYSTYPE): Add a forward declaration.
60968         (yylex, yyerror): Use full prototypes in forward decls.
60969         Use "%pure-parser" rather than obsolescent "%pure_parser".
60970         Use %parse-param and %lex-param instead of obsolescent
60971         YYPARSE_PARAM and YYLEX_PARAM.
60972         (meridian_table, month_and_day_table, time_units_table,
60973         relative_time_table, time_zone_table, military_table,
60974         lookup_zone, lookup_word, get_date):
60975         Use NULL instead of 0 where appropriate.
60976         (to_hour): Avoid abort (), to avoid a dependency on
60977         stdlib.h.
60978         (yyerror, yylex): Now accepts parser_control * arg.
60979         (main) [TEST]: Use '\0' rather than 0 for char.
60980
60981 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60982
60983         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
60984
60985 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60986
60987         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
60988         It's now the caller's responsibility to handle the case where
60989         !HAVE_GETPAGESIZE && !defined getpagesize.
60990
60991         * lib/mktime.c (leapyear): Arg is long int, not int.
60992
60993 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
60994
60995         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
60996
60997 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60998
60999         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
61000         missing.  Problem reported by James Youngman.
61001
61002 2004-10-16  Simon Josefsson  <jas@extundo.com>
61003
61004         * gnulib-tool: Fix comments.  Fix parse problem.
61005         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
61006
61007 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
61008
61009         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
61010         implementation of getopt_long.  Problem reported by Alexander Taler in:
61011         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
61012
61013 2004-10-15  Bruno Haible  <bruno@clisp.org>
61014
61015         * gnulib-tool: Untabify. Initialize supplied_libname.
61016         (func_usage): More homogenous output.
61017         (func_modules_transitive_closure, func_modules_to_filelist,
61018         func_emit_lib_Makefile_am): New functions.
61019         (func_import): New function, extracted from big case statement. Use
61020         func_get_license, func_modules_transitive_closure,
61021         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
61022         opt_lgpl. Don't use test -a, as it's not portable.
61023         (func_create_testdir): Use func_modules_transitive_closure,
61024         func_modules_to_filelist, func_emit_lib_Makefile_am.
61025
61026 2004-10-15  Bruno Haible  <bruno@clisp.org>
61027
61028         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
61029
61030 2004-10-15  Bruno Haible  <bruno@clisp.org>
61031
61032         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
61033         the portions belonging to each module.
61034         Suggested by Derek Robert Price <derek@ximbiot.com>.
61035
61036 2004-10-12  Simon Josefsson  <jas@extundo.com>
61037
61038         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
61039         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
61040         to real functions.
61041
61042 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61043
61044         * modules/vsnprintf: New file.
61045
61046 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61047
61048         * m4/vsnprintf.m4: New file.
61049
61050 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61051
61052         * lib/vsnprintf.h: New file.
61053         * lib/vsnprintf.c: New file.
61054
61055 2004-10-11  Bruno Haible  <bruno@clisp.org>
61056
61057         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
61058         vsnprintf.
61059
61060 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61061
61062         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
61063
61064 2004-10-07  Bruno Haible  <bruno@clisp.org>
61065
61066         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
61067         fits into the provided buffer.
61068
61069 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61070
61071         * lib/diacrit.c, diacrit.h: Add GPL notice.
61072
61073         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
61074         notice.
61075         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
61076         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
61077         This avoids a potential constant-folding bug.
61078
61079 2004-10-05  Bruno Haible  <bruno@clisp.org>
61080
61081         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
61082         for the declaration of strsep.
61083
61084 2004-10-05  Bruno Haible  <bruno@clisp.org>
61085
61086         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
61087
61088 2004-10-04  Simon Josefsson  <jas@extundo.com>
61089
61090         * modules/memmem: New file.
61091         * tests/test-memmem.c: New file.
61092         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
61093
61094 2004-10-04  Simon Josefsson  <jas@extundo.com>
61095
61096         * m4/memmem.m4: New file.
61097
61098 2004-10-04  Simon Josefsson  <jas@extundo.com>
61099
61100         * lib/memmem.h: New file.
61101         * lib/memmem.c: New file, taken from glibc.
61102
61103 2004-10-04  Simon Josefsson  <jas@extundo.com>
61104
61105         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
61106         '#ifdef USE_UNLOCKED_IO'.
61107
61108 2004-10-04  Simon Josefsson  <jas@extundo.com>
61109
61110         * config/srclist.txt: Add memmem from glibc.
61111
61112 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61113
61114         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
61115
61116         * modules/argmatch, modules/argp, modules/closeout, modules/error,
61117         modules/exclude, modules/getdate, modules/getline,
61118         modules/getndelim2, modules/getpass, modules/getpass-gnu,
61119         modules/getusershell, modules/linebuffer, modules/md5,
61120         modules/mountlist, modules/posixtm, modules/readtokens,
61121         modules/readutmp, modules/regex, modules/sha1,
61122         modules/version-etc, modules/yesno:
61123         Remove dependency on unlocked-io.
61124
61125 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61126
61127         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
61128
61129         * m4/unlocked-io.m4: Add copyright notice.
61130         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
61131
61132 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61133
61134         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
61135         * lib/xmalloc.c (xmemdup): Likewise.
61136         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
61137         XFREE): Remove these long-obsolescent macros.
61138         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
61139         * lib/xstrdup.c: Remove.
61140
61141         * lib/regex.c (re_comp): Cast gettext return value to char *,
61142         Problem reported by Martin Neitzel via Mark D. Baushke.
61143
61144 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61145
61146         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
61147         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
61148         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
61149         regex.c, sha1.c, version-etc.c, yesno.c:
61150         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
61151         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
61152         the includer's responsibility.
61153
61154         Sync from coreutils.
61155
61156         * lib/modechange.c (mode_compile): Don't decrement a pointer that
61157         points to the start of a string, as the C Standard says the
61158         resulting behavior is undefined.
61159
61160         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
61161         simple -> simple_backups, numbered_existing ->
61162         numbered_existing_backups, numbered -> numbered_backups
61163         to avoid shadowing problems.  All uses changed.
61164         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
61165         * lib/backupfile.c (check_extension, numbered_backup):
61166         Rename locals to avoid shadowing 'basename'.
61167         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
61168         once.
61169
61170         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
61171         * lib/.cvsignore: Add getopt.h.
61172
61173 2004-10-04  Bruno Haible  <bruno@clisp.org>
61174
61175         * modules/README: New file.
61176         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
61177         not a module.
61178
61179 2004-10-02  Jim Meyering  <jim@meyering.net>
61180
61181         * lib/dirfd.h, getpagesize.h: Add copyright notice.
61182
61183 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61184
61185         * modules/strsep: New file.
61186
61187 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61188
61189         * m4/strsep.m4: New file.
61190
61191 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61192
61193         * lib/strsep.h: New file.
61194         * lib/strsep.c: New file.
61195
61196 2004-10-01  Simon Josefsson  <jas@extundo.com>
61197
61198         * lib/snprintf.c (snprintf): Handle size==0.
61199
61200 2004-10-01  Simon Josefsson  <jas@extundo.com>
61201             Bruno Haible  <bruno@clisp.org>
61202
61203         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
61204         (snprintf): Declare 'args'.
61205
61206 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
61207
61208         * lib/snprintf.c: Remove comments as to why each header is needed.
61209
61210 2004-10-01  Bruno Haible  <bruno@clisp.org>
61211
61212         * MODULES.html.sh: Add strsep.
61213
61214 2004-09-30  Simon Josefsson  <jas@extundo.com>
61215
61216         * modules/snprintf: New file.
61217
61218 2004-09-30  Simon Josefsson  <jas@extundo.com>
61219
61220         * m4/snprintf.m4: New file.
61221
61222 2004-09-30  Simon Josefsson  <jas@extundo.com>
61223
61224         * lib/snprintf.h, lib/snprintf.c: New files.
61225
61226 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61227
61228         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
61229         (hol_entry_help): Never translate an empty string.
61230         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
61231         * lib/argp.h (OPTION_NO_TRANS): New option.
61232
61233 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61234
61235         * modules/argp (Maintainer): Replace Simon Josefsson
61236         by Sergey Poznyakoff.
61237
61238 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61239
61240         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
61241         changes merged back into glibc.
61242
61243 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61244
61245         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
61246
61247 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
61248
61249         * lib/xvasprintf.c: Include xalloc.h.
61250         (xvasprintf): Use xalloc_die, not xmalloc_die.
61251
61252 2004-09-29  Bruno Haible  <bruno@clisp.org>
61253
61254         * modules/alloca-opt: New file, derived from modules/alloca.
61255         * modules/allocsa: Depend on alloca-opt instead of alloca.
61256         * modules/setenv: Likewise.
61257         * modules/vasnprintf: Likewise.
61258         * MODULES.html.sh: Add alloca-opt.
61259
61260 2004-09-28  Simon Josefsson  <jas@extundo.com>
61261
61262         * gnulib-tool: New parameter --lgpl, to asseert that modules are
61263         LGPL, and to replace license template from GPL to LGPL.
61264
61265 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61266
61267         * modules/dummy: Change license to LGPL.
61268
61269 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61270
61271         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
61272
61273 2004-09-24  Simon Josefsson  <jas@extundo.com>
61274
61275         * modules/minmax (License): Change from GPL to LGPL.
61276
61277 2004-09-23  Simon Josefsson  <jas@extundo.com>
61278
61279         * gnulib-tool (--import): Typo.
61280
61281 2004-09-23  Simon Josefsson  <jas@extundo.com>
61282
61283         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
61284
61285 2004-09-22  Bruno Haible  <bruno@clisp.org>
61286
61287         * modules/*: Add 'License' field.
61288         * gnulib-tool: Accept --extract-license option.
61289         (func_get_license): New function.
61290
61291 2004-09-21  Bruno Haible  <bruno@clisp.org>
61292
61293         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
61294         Reported by Simon Josefsson.
61295
61296 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61297
61298         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
61299         gl_AC_TYPE_LONG_LONG.
61300
61301 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61302
61303         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
61304
61305 2004-09-18  Simon Josefsson  <jas@extundo.com>
61306         and  Paul Eggert  <eggert@cs.ucla.edu>
61307
61308         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
61309         calls with autoreconf.  Define GL_LIB.
61310
61311 2004-09-14  Karl Berry  <karl@gnu.org>
61312
61313         * config/srclist.txt: unsync setenv.c, sigh.
61314
61315 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61316
61317         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
61318         Problem reported by Bruno Haible in:
61319         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
61320
61321 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61322
61323         * config/srclist.txt: Comment out argp-pvh.c.
61324
61325 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
61326
61327         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
61328         in case some system header has #define'd it.  Problem reported by
61329         Soeren D. Schulze in
61330         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
61331
61332 2004-09-09  Karl Berry  <karl@gnu.org>
61333
61334         * regex.[ch]: delete from the root.  These were supposed to be
61335                 synced with emacs cvs, but this has not happened for about
61336                 a year, and anyway nothing else uses emacs regex.[ch].
61337                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
61338                 lib/regex[.ch] is untouched.
61339
61340 2004-09-09  Bruno Haible  <bruno@clisp.org>
61341
61342         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
61343
61344 2004-09-09  Bruno Haible  <bruno@clisp.org>
61345
61346         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
61347         modifications.
61348         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
61349
61350 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61351
61352         * modules/xvasprintf: New file.
61353         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
61354
61355 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61356
61357         * lib/xvasprintf.h: New file.
61358         * lib/xvasprintf.c: New file.
61359         * lib/xasprintf.c: New file.
61360
61361 2004-09-08  Bruno Haible  <bruno@clisp.org>
61362
61363         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
61364
61365 2004-09-08  Bruno Haible  <bruno@clisp.org>
61366
61367         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
61368         length is > INT_MAX.
61369         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
61370         more.
61371
61372 2004-09-08  Bruno Haible  <bruno@clisp.org>
61373
61374         * lib/stdint_.h: New file, taken from GNU clisp.
61375
61376 2004-09-08  Bruno Haible  <bruno@clisp.org>
61377             Oskar Liljeblad  <oskar@osk.mine.nu>
61378
61379         * modules/stdint: New file.
61380         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
61381
61382 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61383
61384         Import from coreutils.
61385         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
61386         strings on unbounded length.  alloca's performance benefits aren't
61387         that important here.
61388         (V_STRDUP): Remove.
61389         (parse_with_separator): New function, with most of the internals
61390         of the old parse_user_spec.  Allow user to omit both user and group,
61391         for compatibility with FreeBSD.
61392         Clone only the user name, not the entire spec.
61393         Do not set *uid, *gid unless entirely successful.
61394         Avoid memory leak in some failing cases.
61395         Fix regression for USER.GROUP reported by Dmitry V. Levin in
61396         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
61397         (parse_user_spec): Rewrite to use parse_with_separator.
61398
61399 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61400
61401         * modules/userspec: Don't depend on alloca.
61402
61403 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61404
61405         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
61406
61407 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61408
61409         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
61410         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
61411         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
61412
61413 2004-08-16  Simon Josefsson  <jas@extundo.com>
61414
61415         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
61416         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
61417         Add --dry-run for --import.
61418         Let user provided command line parameters override configure.ac
61419         settings.
61420
61421 2004-08-12  Simon Josefsson  <jas@extundo.com>
61422
61423         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
61424         as discussed with Paul Eggert in threads rooted at
61425         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
61426         and
61427         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
61428         Before, the test was empty, and relied on ELIDE_CODE in source
61429         code.)
61430         (gl_PREREQ_GETOPT): New macro.
61431         (gl_GETOPT): Use them.
61432
61433 2004-08-12  Simon Josefsson  <jas@extundo.com>
61434
61435         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
61436         * lib/getopt_.h: Renamed from getopt.h.
61437
61438 2004-08-12  Simon Josefsson  <jas@extundo.com>
61439
61440         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
61441         Change default library name from libfoo to libgnu.
61442         Now, if you have a configure.ac that says:
61443                 gl_SOURCE_BASE(gl)
61444                 gl_M4_BASE(gl/m4)
61445                 gl_MODULES(error getopt etcetera)
61446                 gl_INIT
61447         you can import all you need by running:
61448                 ../gnulib/gnulib-tool --import
61449
61450         * modules/getopt (Files): Rename getopt.h to getopt_.h.
61451         (Makefile.am): Rewrite, use logic from argz.
61452         (Include): Use <getopt.h> instead of "getopt.h".
61453
61454 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61455
61456         * modules/argp (Files): Add m4/unlocked-io.m4.
61457         (Depends-on): Add extensions.
61458
61459 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61460
61461         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
61462         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
61463         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
61464         Check for program_invocation_name, program_invocation_short_name,
61465         flockfile, funlockfile, features.h, _getopt_long_only_r.
61466
61467 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61468
61469         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
61470         its complicated substitute.
61471         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
61472         and program_invocation_name.
61473         (__argp_basename) [!_LIBC]: Remove; the only use was
61474         replaced by its body.
61475         (__argp_short_program_name): Change condition from
61476         !defined __argp_short_program_name to
61477         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
61478         to match argp-namefrob.h.
61479         (__argp_failure): Don't assume strerror_r returns char *.
61480         * lib/argp-parse.c (N_): Define unconditionally.
61481         (argp_default_options): Fill out initializers with 0 to avoid
61482         gcc warnings.
61483
61484 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61485
61486         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
61487         getopt1.c.
61488
61489 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61490
61491         Merge from coreutils.
61492
61493         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
61494
61495         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
61496         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
61497
61498 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61499
61500         Merge from coreutils.
61501
61502         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
61503         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
61504         for Reliant Unix 5.43.
61505
61506         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
61507         (union fooround): Use uintmax_t, not long int.
61508         The rest is a merge from libc:
61509         [defined _LIBC]: Include <shlib-compat.h>.
61510         (_obstack) [defined _LIBC]: Remove after 2.3.4.
61511
61512         * lib/settime.c (settime): Recode to avoid warning with
61513         Sun Forte C 6U2.
61514
61515         * lib/strverscmp.c: Convert to UTF-8.
61516
61517 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61518
61519         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61520         m4/uintmax_t.m4.
61521
61522 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61523
61524         * modules/xalloc-die: New file.
61525         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
61526
61527         * modules/md5 (Files): Add m4/uint32_t.m4.
61528         * modules/sha1: Renamed from modules/sha.
61529         (Files):
61530         Rename lib/sha.h to lib/sha1.h.
61531         Rename lib/sha.c to lib/sha1.c.
61532         Rename m4/sha.m4 to m4/sha1.m4.
61533         (lib_SOURCES): Likewise.
61534         (configure.ac): Rename gl_SHA to gl_SHA1.
61535         (Include): sha.h -> sha1.h.
61536
61537 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61538
61539         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
61540         * m4/sha1.m4: Renamed from sha.m4.
61541         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
61542
61543 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61544
61545         * lib/obstack.h (obstack_empty_p):
61546         Don't assume that chunk->contents is suitably aligned.
61547         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
61548         Likewise. Problem reported by Benno in
61549         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
61550
61551         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
61552         readable.  This could be improved further but it'd take some work.
61553
61554 2004-08-08  Simon Josefsson  <jas@extundo.com>
61555
61556         * modules/xgethostname (Depends-on): Remove exit and error (not
61557         used).
61558
61559         * modules/getpass-gnu: Add getpass.h.
61560         (Depends-on): Add stdbool.
61561         * modules/getpass: Add getpass.h.
61562
61563 2004-08-08  Simon Josefsson  <jas@extundo.com>
61564
61565         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
61566         Check getpass declaration.
61567
61568 2004-08-08  Simon Josefsson  <jas@extundo.com>
61569
61570         * lib/xgethostname.c: Don't include error.h (not used).
61571
61572         * lib/getpass.h: Add.
61573         * lib/getpass.c: Include getpass.h first.
61574
61575 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
61576
61577         * lib/xalloc-die.c: New file.
61578         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
61579         All uses removed.
61580         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
61581         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
61582         xalloc-die.c.
61583         (_, N_, xalloc_die): Move to xalloc-die.c.
61584         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
61585         so that we needn't mess with xalloc_msg_memory_exhausted.
61586
61587         * lib/sha1.h: Renamed from sha.h.
61588         (SHA1_H): Renamed from _SHA_H.
61589         (sha1_ctx): Renamed from sha_ctx.
61590         (sha1_init_ctx): Renamed from sha_init_ctx.
61591         (sha1_process_block): Renamed from sha_process_block.
61592         (sha1_process_bytes): Renamed from sha_process_bytes.
61593         (sha1_finish_ctx): Renamed from sha_finish_ctx.
61594         (sha1_read_ctx): Renamed from sha_read_ctx.
61595         (sha1_stream): Renamed from sha_stream.
61596         (sha1_buffer): Renamed from sha_buffer.
61597         * lib/sha1.c: Likewise; renamed from sha.c.
61598         Do not include <sys/types.h>.
61599         Include <stddef.h> rather than <stdlib.h>.
61600
61601 2004-08-08  Bruno Haible  <bruno@clisp.org>
61602
61603         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
61604         FILESYSTEM_PREFIX_LEN.
61605         * lib/progreloc.c: Likewise.
61606         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
61607
61608 2004-08-06  Simon Josefsson  <jas@extundo.com>
61609
61610         * modules/progname (Depends-on): Don't depend on stdbool.
61611
61612 2004-08-06  Simon Josefsson  <jas@extundo.com>
61613
61614         * modules/getsubopt: New file.
61615         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61616         getsubopt.
61617
61618 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61619
61620         More merge from coreutils.
61621
61622         * m4/utimens.m4, m4/utimecmp.m4: New files.
61623         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
61624         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
61625         prereq.m4, sha.m4: Import changes from coreutils.
61626
61627 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61628
61629         More merge from coreutils.
61630         * modules/raise, modules/readtokens0, modules/utimens:
61631         * modules/utimecmp, module/xnanosleep: New files.
61632         * modules/strftime: Add lib/strftime.h.
61633         Change include from <time.h> to "strftime.h".
61634         * modules/yesno: Add lib/yesno.h.
61635         * modules/backupfile: Remove lib/addext.c.
61636         * modules/euidaccess: Add stat-macros.h.
61637         * modules/canonicalize, modules/euidaccess,
61638         modules/filemode, modules/lchown, modules/makepath,
61639         modules/rmdir, modules/stat: Likewise.
61640
61641 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61642
61643         Merge from tar.
61644         * lib/argp-help.c (make_hol, hol_append): Don't assume that
61645         SIZE_MAX is a valid preprocessor constant.
61646         (__argp_basename): Change from "#ifndef _LIBC"
61647         to "#ifndef __argp_short_program_name", so that
61648         we don't compile these functions for tar.
61649
61650         More merges from coreutils.
61651         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
61652         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
61653         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
61654         * lib/addext.c: Remove; no longer needed.
61655         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
61656         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
61657         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
61658         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
61659         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
61660         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
61661         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
61662         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
61663         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
61664         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61665         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
61666         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
61667         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
61668         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
61669         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
61670         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
61671         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
61672         Import changes from coreutils.
61673
61674 2004-08-05  Simon Josefsson  <jas@extundo.com>
61675
61676         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
61677
61678 2004-08-05  Simon Josefsson  <jas@extundo.com>
61679
61680         * m4/getsubopt.m4: New file.
61681
61682 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61683
61684         Merge from coreutils.
61685
61686         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
61687         * m4/getcwd-path-max.m4: New files.
61688
61689         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
61690         FILESYSTEM_PREFIX_LEN ->
61691         FILE_SYSTEM_PREFIX_LEN.
61692         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
61693         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
61694         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
61695         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
61696
61697         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
61698         prerequisite modules now handle the DOS stuff.
61699         Don't check for unistd.h.
61700
61701 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61702
61703         Merge from coreutils.
61704
61705         * lib/.gdb-history: Remove; this doesn't belong here.
61706
61707         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
61708         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
61709         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
61710         * lib/getcwd.c: New files.
61711
61712         * lib/dirname.h: Include <stdbool.h>.
61713         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
61714         for consistency with POSIX terminology.  All uses changed.
61715         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
61716         (strip_trailing_slashes): Use bool for booleans.
61717         * lib/stripslash.c (strip_trailing_slashes): Likewise.
61718
61719         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
61720         sometimes returns a positive errno value even when it succeeds.
61721         (print_errno_message) [!LIBC]: Fall back on strerror if
61722         __strerror_r fails.
61723
61724         * lib/path-concat.c (mempcpy): Don't define if a system header defines
61725         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
61726         (longest_relative_suffix): New function.
61727         (path_concat): Use it.  Assume first argument is not NULL.
61728         Port to DOS.  Omit redundant separators.
61729         Report an error instead of returning NULL.
61730         Use mempcpy instead of memcpy.
61731         (xpath_concat): Remove: not declared or used.
61732
61733         * lib/same.h: Include <stdbool.h>
61734         (same_name): Return bool, not int.
61735         * lib/same.c (same_name): Likewise.
61736         (errno): Don't declare; we assume C89 or better now.
61737
61738         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
61739         if not already defined.
61740
61741         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
61742         * lib/dup-safer.c (errno): Likewise.
61743
61744 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61745
61746         Merge from coreutils.
61747         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
61748         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
61749         * modules/path-concat: Don't depend on strdup.
61750
61751 2004-08-03  Simon Josefsson  <jas@extundo.com>
61752
61753         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
61754         * lib/progname.h: Don't include stdbool.h.
61755
61756 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61757
61758         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
61759         * MODULES.html.sh (func_all_modules): Remove fatal.
61760
61761 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61762
61763         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
61764
61765 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61766
61767         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
61768         working.
61769
61770 2004-08-02  Simon Josefsson  <jas@extundo.com>
61771
61772         * lib/getsubopt.h: New file, with comments from Bruno Haible.
61773         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
61774         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
61775
61776 2004-08-01  Simon Josefsson  <jas@extundo.com>
61777
61778         * lib/xgetdomainname.c: Include stdlib.h, for free().
61779
61780 2004-07-19  Bruno Haible  <bruno@clisp.org>
61781
61782         * MODULES.html.sh (func_all_modules): Add dummy.
61783
61784 2004-07-16  Simon Josefsson  <jas@extundo.com>
61785
61786         * modules/dummy: New file.
61787
61788 2004-07-16  Simon Josefsson  <jas@extundo.com>
61789
61790         * lib/dummy.c: New file.
61791
61792 2004-07-16  Bruno Haible  <bruno@clisp.org>
61793
61794         * lib/backupfile.h: Add extern "C" for C++.
61795         * lib/closeout.h: Likewise.
61796         * lib/copy-file.h: Likewise.
61797         * lib/findprog.h: Likewise.
61798         * lib/full-write.h: Likewise.
61799         * lib/pathname.h: Likewise.
61800         * lib/progname.h: Likewise.
61801         * lib/stpcpy.h: Likewise.
61802         * lib/stpncpy.h: Likewise.
61803         * lib/strcase.h: Likewise.
61804         * lib/strstr.h: Likewise.
61805         * lib/xalloc.h: Likewise.
61806
61807         * lib/mbswidth.h: Add extern "C" for C++.
61808         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
61809
61810 2004-07-13  Robert Millan  <robertmh@gnu.org>
61811
61812         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
61813
61814 2004-07-09  Simon Josefsson  <jas@extundo.com>
61815
61816         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
61817         failed without this.)
61818
61819 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61820
61821         * modules/chown (Files): Add lib/fchown-stub.c, since
61822         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
61823
61824 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61825
61826         * lib/fchown-stub.c: New file.
61827
61828 2004-06-24  Jim Meyering  <jim@meyering.net>
61829
61830         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
61831
61832 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61833
61834         * modules/argz: Omit "#include".
61835
61836         * MODULES.html.sh (func_all_modules): Add calloc, to match
61837         2004-06-01 addition of calloc module.
61838
61839 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61840
61841         * m4/argz.m4: New file, which is autoupdated from libtool.
61842
61843 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61844
61845         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
61846         libtool.
61847
61848 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61849
61850         * config/srclist-update: Don't insist on "USA." before the
61851         close-comment, as libtool omits the period and puts the */ on a
61852         separate line.
61853         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
61854         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
61855
61856 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
61857
61858         * modules/argz: New file.
61859         * MODULES.html.sh (func_all_modules): Add argz.
61860
61861 2004-06-12  Jim Meyering  <jim@meyering.net>
61862         and  Paul Eggert  <eggert@cs.ucla.edu>
61863
61864         * modules/hash (Files): Add lib/xalloc.h.
61865         * modules/pipe (Depends-on): Add wait-process.
61866         * modules/stat (Depends-on): Add xalloc.
61867         * modules/userspec (Files): Add lib/userspec.h.
61868         * modules/xstrto
61869
61870         Upgrade from gettext-0.13.
61871         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
61872         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
61873         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
61874
61875 2004-06-10  Jim Meyering  <jim@meyering.net>
61876
61877         * lib/calloc.c: New file.
61878
61879 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61880
61881         * lib/getdate.y (yylex): Allow space between sign and number.
61882         Problem reported by Dan Jacobson.
61883
61884 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61885
61886         Merge from coreutils CVS.
61887
61888         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
61889         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
61890         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
61891         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
61892         xstrtol.m4: Fix copyright date and/or serial number.
61893
61894         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
61895         See if we need an fchown replacement.
61896         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
61897         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
61898         and use the replacement function if we detect either defect.
61899
61900         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
61901         gl_UTIMECMP.
61902
61903 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61904         and  Jim Meyering  <jim@meyering.net>
61905
61906         Merge from coreutils CVS.
61907
61908         * lib/stat-macros.h: New file, with contents from file-type.h
61909         and coreutils' system.h.
61910         * lib/file-type.c: Include "stat-macros.h".
61911         * lib/file-type.h (file_type): Move all macro definitions to new file,
61912         stat-macros.h.
61913
61914         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
61915         Wrap old code with this conditional.
61916         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
61917         function that does not dereference symlinks.
61918         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
61919
61920         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
61921         dependency problems.
61922         (xreadlink): Accept new arg SIZE, for efficiency.
61923         All decls and uses changed.
61924         * lib/xreadlink.h: Include <stddef.h>, for size_t.
61925
61926         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
61927         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
61928
61929         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
61930         sysexits.h.
61931
61932 2004-06-01  Jim Meyering  <jim@meyering.net>
61933
61934         * m4/calloc.m4: New file.
61935
61936 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
61937
61938         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
61939         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
61940         Also, fix a typo in a diagnostic.
61941
61942 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61943
61944         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
61945         or AC_FUNC_REALLOC.
61946
61947 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61948
61949         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
61950         macros to be defined.
61951         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
61952         the allocator returns NULL because the requested size is zero.
61953
61954 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61955
61956         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
61957         var.  Add comment explaining why libc still defines it.  This
61958         merges the following patch from glibc:
61959         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
61960
61961 2004-05-20  Andreas Schwab  <schwab@suse.de>
61962
61963         * m4/free.m4: Replace free if it not known to work, not the other
61964         way round.
61965
61966 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61967
61968         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
61969         present in glibc since revision 1.1 of this file.
61970         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
61971         obstack_alignment_mask, obstack_alloc, obstack_base,
61972         obstack_blank, obstack_blank_fast, obstack_chunk_size,
61973         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
61974         obstack_grow0, obstack_init, obstack_int_grow,
61975         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
61976         obstack_next_free, obstack_object_size, obstack_ptr_grow,
61977         obstack_ptr_grow_fast, obstack_room): Remove declarations of
61978         nonexistent functions.
61979
61980 2004-05-18  Karl Berry  <karl@gnu.org>
61981
61982         * config/srclist.txt: break link for vasnprintf.c.
61983
61984 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61985
61986         Port obstack to the AS/400, where pointers are 16 bytes wide and
61987         you cannot cast an integer to a valid pointer.  This patch is
61988         currently waiting to be integrated into glibc; see
61989         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
61990
61991         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
61992         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
61993         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
61994         (struct obstack): temp member is now a union of a pointer and
61995         an integer, instead of an integer.  All integer uses changed.
61996         This does not affect the physical layout of struct obstack,
61997         except on hosts (like the AS/400) where the size or alignment of
61998         void * is greater than that of ptrdiff_t.
61999         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
62000         __STDC__)]: Store temporary in pointer member of union, not
62001         integer member.
62002         * lib/obstack.c: Include <stddef.h>, for offsetof.
62003         (struct fooalign): Remove; it doesn't need a name.
62004         (union fooround): Change double to long double, and add void *.
62005         (DEFAULT_ALIGNMENT): Use offsetof to compute.
62006         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
62007         not a macro.  Hence the values are always int; so remove all
62008         casts-to-int in uses.
62009
62010 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62011
62012         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
62013         we can get this patch merged into glibc.
62014
62015 2004-05-17  Derek R. Price  <derek@ximbiot.com>
62016             Paul Eggert  <eggert@cs.ucla.edu>
62017
62018         * m4/argp: Depend on alloca.
62019
62020 2004-05-17  Derek R. Price  <derek@ximbiot.com>
62021             Paul Eggert  <eggert@cs.ucla.edu>
62022
62023         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
62024         freecoding.
62025
62026 2004-05-17  Bruno Haible  <bruno@clisp.org>
62027
62028         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
62029         precision that consists of a '.' followed by an empty digit string.
62030         Patch by Tor Lillqvist <tml@iki.fi>.
62031
62032 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62033
62034         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
62035         for backward compatibility with older code.  We need our own
62036         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
62037         it under some other name, and our alloca.h will define it.
62038
62039 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62040             Derek Price  <derek@ximbiot.com>
62041
62042         * lib/alloca.c: Include <alloca.h>, to get our interface.
62043         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
62044         include <alloca.h> first.  Use C89 prototype for alloca; this
62045         requires including <stddef.h> for size_t.  Use extern "C" if C++.
62046         Use #elif for simplicity, since we can assume C89 now.
62047         Don't try to source the system alloca.h since it will not be found
62048         and to prevent recursively including its replacement.
62049         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
62050         * lib/regex.c: Likewise.
62051
62052 2004-05-16  Derek Price  <derek@ximbiot.com>
62053             Paul Eggert  <eggert@cs.ucla.edu>
62054
62055         getline cleanup.  This changes the getndelim2 API: both order of
62056         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
62057         no delimiter).
62058
62059         * lib/getline.c: Don't include stddef.h or stdio.h, since our
62060         interface does that.
62061         (getline): Always use getdelim, so that we don't have two
62062         copies of this code.
62063         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
62064         if available.
62065         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
62066         (GETNDELIM2_MAXIMUM): New macro.
62067         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
62068         instead of the old practice of delim2==0.  All callers changed.
62069         Return -1 on overflow, instead of returning junk.
62070         Do not set *linesize unless allocation succeeds.
62071         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
62072         that we include sys/types.h.
62073         * lib/getnline.h: Likewise.
62074         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
62075         (getndelim2): Reorder arguments.
62076         * lib/getnline.c (getnline, getndelim):
62077         Don't discard the NMAX argument.
62078         (getnline): Invoke getndelim, to avoid code duplication.
62079         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
62080         of (size_t) -1 by callers of the getnline family.
62081
62082 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62083
62084         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
62085         Check for gettimeofday.
62086         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
62087         Check for settimeofday, stime.
62088
62089 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62090
62091         * lib/nanosleep.c (suspended): Change its type from int to
62092         sig_atomic_t volatile.
62093         (first_call): Make it private to rpl_nanosleep, and have it
62094         be zero initially as that's a bit faster.
62095         (my_usleep): Round up fractional times instead of truncating them,
62096         as this is the usual meaning for 'sleep'.
62097
62098         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
62099         doesn't work.
62100         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
62101         (ENOSYS): Define if not defined.
62102         (settime): Fall back on stime if it exists and settimeofday fails.
62103         But don't bother with fallbacks if a method fails with errno == EPERM.
62104
62105 2004-05-11  Jim Meyering  <jim@meyering.net>
62106
62107         Prior to this change, the save_cwd caller required read access to the
62108         current directory on most systems (ones with the fchdir function).
62109
62110         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
62111         fails, try write-only, and finally, resort to using xgetcwd.
62112
62113 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
62114
62115         * lib/obstack.c, obstack.h: Import changes from libc.
62116
62117 2004-04-28  Bruno Haible  <bruno@clisp.org>
62118
62119         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
62120         also implicitly appends .exe to executables.
62121         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
62122         accepts Windows pathnames.
62123         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
62124         Treat Cygwin like Windows, since it now accepts Windows pathnames.
62125         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
62126         Treat Cygwin like Windows, since it now accepts Windows pathnames.
62127         Reported by Derek Robert Price <derek@ximbiot.com>.
62128
62129 2004-04-21  Karl Berry  <karl@gnu.org>
62130
62131         * config/srclist.txt (localcharset.c): break sync.
62132
62133 2004-04-20  Paul Eggert  <eggert@twinsun.com>
62134
62135         * m4/host-os.m4: Add a copyright notice.
62136
62137 2004-04-20  Jim Meyering  <jim@meyering.net>
62138
62139         Change UTILS_ to gl_ in AC_DEFINE'd names.
62140         Change utils_- and jm_-prefixed variables, too.
62141         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
62142         UTILS_FUNC_MKDIR_TRAILING_SLASH.
62143         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
62144
62145         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
62146         Don't emit trailing blanks.
62147         Also rename jm_-prefixed variables to have gl_ prefix.
62148
62149         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
62150         Also rename jm_-prefixed variables to have gl_ prefix.
62151
62152         * m4/jm-macros.m4: Reflect the renamings.
62153         * m4/prereq.m4: Likewise.
62154
62155 2004-04-20  Jim Meyering  <jim@meyering.net>
62156
62157         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
62158         memory.
62159
62160 2004-04-20  Jim Meyering  <jim@meyering.net>
62161             Bruno Haible  <bruno@clisp.org>
62162
62163         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
62164         memory when realloc fails.
62165
62166 2004-04-19  Jim Meyering  <jim@meyering.net>
62167
62168         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
62169         now that readutmp.c may call `free (0)'.
62170
62171 2004-04-19  Bruno Haible  <bruno@clisp.org>
62172
62173         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
62174         * m4/inttypes_h.m4: Likewise.
62175         * m4/stdint_h.m4: Likewise.
62176         * m4/intmax_t.m4: Likewise.
62177         * m4/uintmax_t.m4: Likewise.
62178
62179 2004-04-18  Jim Meyering  <jim@meyering.net>
62180
62181         * m4/prereq.m4: Don't forbid jm_ prefix.
62182
62183         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
62184         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
62185         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
62186         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
62187         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
62188         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
62189         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
62190         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
62191         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
62192         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
62193         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
62194         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
62195         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
62196         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
62197         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
62198         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
62199         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
62200         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
62201         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
62202
62203 2004-04-18  Jim Meyering  <jim@meyering.net>
62204
62205         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
62206         failure, don't leak memory and do call END_UTMP_ENT.
62207
62208 2004-04-16  Jim Meyering  <jim@meyering.net>
62209
62210         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
62211         coreutils' stat program.
62212         (gl_PREREQ): Don't require jm_PREREQ_STAT.
62213
62214 2004-04-11  Paul Eggert  <eggert@twinsun.com>
62215
62216         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
62217         C89.
62218         (CHAR_BIT): Remove, since we assume C89.
62219         Include <stdint.h> if available, as per current Autoconf CVS advice.
62220
62221 2004-03-31  Jim Meyering  <jim@meyering.net>
62222
62223         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
62224         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
62225         * m4/xalloc.m4: Likewise.
62226
62227 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62228
62229         Merge from coreutils.
62230
62231         * m4/inttostr.m4: New file.
62232         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
62233         Require AM_STDBOOL_H and gl_TIMESPEC instead.
62234         Require gl_CLOCK_TIME.
62235         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
62236
62237 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62238
62239         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
62240         not bool, to be more consistent with Unix conventions.
62241         Suggested by Bruno Haible.
62242
62243         Merge from coreutils.
62244
62245         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
62246         * lib/umaxtostr.c: New files.
62247
62248         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
62249         the usual <time.h> dance.
62250         (get_date): Change signature to support fractional time stamps.
62251         All callers changed.
62252         * lib/getdate.y: Include "getdate.h" first, as we can now
62253         assume C89 and don't need to worry about 'const'.
62254         Similarly, include "unlocked-io.h" near start, not in middle.
62255         Include <limits.h>.
62256         (textint.value): Use long int rather than int.
62257         (textint.digits): Use size_t rather than int.
62258         (BILLION, LOG10_BILLION): New constants.
62259         (parser_control): New member rel_ns.  Members day_ordinal,
62260         time_zone, month, day, hour, minutes, rel_year, rel_month,
62261         rel_day, rel_hour, rel_minutes, rel_seconds
62262         are now long int, not int.  Member seconds is now struct timespec,
62263         not int.  New member timespec_seen.  Members dates_seen, days_seen,
62264         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
62265         not int.
62266         (%union.intval): Now long int, not int.
62267         New member timespec.
62268         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
62269         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
62270         (spec): Now is a timespec or an item list.
62271         (timespec, items): New nonterminals.
62272         (time, rel, relunit, number, get_date):
62273         Add support for fractional seconds.
62274         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
62275         (gmtime, localtime, mktime): Remove decls; not needed with C89.
62276         (to_hour): First arg is now long int, not int.
62277         (to_year): Returns long int, not int.
62278         Don't treat year -70 like 70.
62279         (tm_diff): Returns long int, not int.
62280         (lookup_word): Use bool instead of int when appropriate.
62281         (yylex): Use size_t for count, not int.
62282         Detect overflow when parsing large integer constants.
62283         Add support for fractions.
62284         (get_date): Make pointers 'const' if possible.
62285         Use more-portable code to detect integer overflow.
62286         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
62287         Don't use ctime; it's not reliable if the year has >4 digits.
62288
62289         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
62290         This is for compatibility with BSD.
62291
62292         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
62293         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
62294         From coreutils' system.h.
62295
62296         * lib/userspec.c: Don't include "posixver.h".
62297         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
62298         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
62299         compatible extension.  Simplify code by removing a boolean int
62300         that was always nonzero if a string was nonnull.
62301
62302 2004-03-30  Jim Meyering  <jim@meyering.net>
62303
62304         Merge from coreutils.
62305
62306         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
62307         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
62308         on some systems one must include <grp.h> before it.
62309         Reported by Christian Krackowizer.
62310
62311 2004-03-30  Jim Meyering  <jim@meyering.net>
62312
62313         Merge from coreutils.
62314
62315         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
62316
62317         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
62318         an empty input stream.
62319
62320         * lib/readtokens.c: Include <stdbool.h>.
62321         (readtoken): Use `size_t' rather than int/long.
62322         All callers adjusted.
62323         Use `bool' rather than `int' where appropriate.
62324         Use memset rather than an explicit loop.
62325         Use x2nrealloc rather than xrealloc.
62326         Allow the use of `\0' as a delimiter.
62327         (readtokens): Likewise.
62328         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
62329
62330 2004-03-30  Jim Meyering  <jim@meyering.net>
62331
62332         * m4/realloc.m4: Remove file, since now it does no more than
62333         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
62334         the `configure.ac' section of module/realloc.
62335         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
62336
62337 2004-03-30  Bruno Haible  <bruno@clisp.org>
62338
62339         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
62340         nonnull.
62341
62342 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62343
62344         Merge changes to getloadavg.c from coreutils and Emacs.
62345
62346         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
62347         Define to an expression, not to the empty string.
62348         Include cloexec.h and xalloc.h.
62349         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
62350         Use set_cloexec_flag rather than rolling our own.
62351         * lib/cloexec.c, lib/cloexec.h: New files.
62352
62353 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62354
62355         * m4/cloexec.m4: New file.
62356
62357 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62358
62359         * lib/getopt.h: Sync with libc CVS.
62360
62361 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62362             Bruno Haible  <bruno@clisp.org>
62363
62364         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
62365         mbswidth.
62366
62367 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62368             Bruno Haible  <bruno@clisp.org>
62369
62370         * lib/mbswidth.h: Include <wchar.h> only if
62371         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
62372         <wchar.h>.
62373         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
62374
62375 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62376
62377         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
62378         Sync with libc CVS.
62379         * lib/getopt_int.h: New file, also synced from libc.
62380
62381 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62382
62383         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
62384         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
62385         Bring back getopt.c, getopt.h, getopt1.c.
62386
62387 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62388
62389         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
62390         All uses changed.  Check for sa_sigaction member; this fixes
62391         a bug first reported by Jason Andrade in
62392         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62393
62394 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62395
62396         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
62397         '#if' expressions.  Unlike the code it replaces, it does not
62398         depend on (defined _SC_PAGESIZE).  However, it does depend on
62399         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
62400         first reported by Jason Andrade in
62401         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62402
62403 2004-02-25  Simon Josefsson  <jas@extundo.com>
62404
62405         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
62406
62407 2004-02-25  Simon Josefsson  <jas@extundo.com>
62408
62409         * lib/strdup.h: New file.
62410         * lib/strdup.c: Include it.
62411         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
62412         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
62413
62414 2004-02-23  Karl Berry  <karl@gnu.org>
62415
62416         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
62417         (from fencepost.gnu.org:/gd/gnuorg).
62418
62419 2004-02-23  Karl Berry  <karl@gnu.org>
62420
62421         * config/srclistvars.sh (GNUORG) [karl]: redefine.
62422         * config/srclist.txt: add maintain/standards documents.
62423
62424 2004-02-18  Bruno Haible  <bruno@clisp.org>
62425
62426         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
62427         Reported by Derek Robert Price <derek@ximbiot.com>.
62428
62429 2004-02-16  Karl Berry  <karl@gnu.org>
62430
62431         * config/mkinstalldirs, install-sh: update from automake.
62432
62433 2004-02-06  Karl Berry  <karl@gnu.org>
62434
62435         * m4/po.m4: update from gettext 0.14.1.
62436
62437 2004-02-06  Karl Berry  <karl@gnu.org>
62438
62439         * lib/config.charset: update from gettext 0.14.1.
62440
62441 2004-02-05  Paul Eggert  <eggert@twinsun.com>
62442
62443         Add comments and code, prompted by suggestions from Bruno Haible
62444         for sh-quote.
62445         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
62446         describing the enum quoting_style values.
62447         * lib/quotearg.c (quotearg_alloc): New function.
62448         (quotearg_buffer_restyled): Treat lone { and } as special.
62449         Treat = as special.  Work around bug with older shells
62450         that "see" a '\' that is really the 2nd byte of a multibyte char.
62451         Quote empty string with shell_quoting_style.
62452
62453 2004-02-03  Bruno Haible  <bruno@clisp.org>
62454
62455         * m4/pipe.m4: New file, from GNU gettext.
62456
62457 2004-02-03  Bruno Haible  <bruno@clisp.org>
62458
62459         * lib/pipe.h: New file, from GNU gettext.
62460         * lib/pipe.c: New file, from GNU gettext.
62461
62462 2004-01-27  Bruno Haible  <bruno@clisp.org>
62463
62464         * m4/execute.m4: New file, from GNU gettext.
62465
62466 2004-01-27  Bruno Haible  <bruno@clisp.org>
62467
62468         * lib/execute.h: New file, from GNU gettext.
62469         * lib/execute.c: New file, from GNU gettext.
62470         * lib/w32spawn.h: New file, from GNU gettext.
62471
62472 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62473
62474         Merge from diffutils.
62475
62476         * lib/file-type.c (file_type): Add typed memory objects.
62477         * lib/file-type.h (S_TYPEISTMO): New macro.
62478
62479         * lib/c-stack.h (c_stack_action): Remove argv argument.
62480         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
62481         (die): Don't calculate message unless segv_action returns.
62482         (get_stack_location, min_address_from_argv, max_address_from_argv,
62483         volatile stack_base, volatile_stack_size): Remove.
62484         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
62485         that every segmentation violation is a stack overflow.  (Ouch!)
62486         See Debian bug 136249 (still outstanding) for more info about why
62487         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
62488
62489 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62490
62491         Exit-status fix from coreutils.
62492
62493         Use exit_failure consistently in place of EXIT_FAILURE,
62494         so that program exit statuses are consistent on failure.
62495
62496         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
62497         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
62498         * lib/argmatch.h: Comment fix to match the above.
62499         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
62500         Now a macro referring to exit_failure, instead of a separate
62501         variable.  Include "exitfail.h" to get it.
62502         * lib/xstrtol.h: Include "exitfail.h".
62503         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
62504
62505         * lib/long-options.c (parse_long_options): Use prototype
62506         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
62507         for clarity.
62508
62509 2004-01-21  Jim Meyering  <jim@meyering.net>
62510
62511         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
62512         so as not to conflict with a different-sized __mktime_internal
62513         function in GNU libc.
62514         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
62515         Problem building statically-linked `ls' reported by Michael Brunnbauer.
62516
62517 2004-01-20  Karl Berry  <karl@gnu.org>
62518
62519         * config/config.guess: update from config.
62520
62521         * config/srclistvars.sh: GNUWWWLICENSES for karl.
62522
62523 2004-01-20  Bruno Haible  <bruno@clisp.org>
62524
62525         Safer stack allocation.
62526         * lib/setenv.c: Include allocsa.h.
62527         (alloca): Remove fallback definition.
62528         (freea): Remove macro.
62529         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
62530         instead of freea.
62531
62532 2004-01-20  Bruno Haible  <bruno@clisp.org>
62533
62534         * m4/eealloc.m4: New file, from GNU gettext.
62535
62536 2004-01-20  Bruno Haible  <bruno@clisp.org>
62537
62538         * m4/allocsa.m4: New file, from GNU gettext.
62539
62540 2004-01-20  Bruno Haible  <bruno@clisp.org>
62541
62542         * lib/xallocsa.h: New file, from GNU gettext.
62543         * lib/xallocsa.c: New file, from GNU gettext.
62544
62545 2004-01-20  Bruno Haible  <bruno@clisp.org>
62546
62547         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
62548
62549 2004-01-20  Bruno Haible  <bruno@clisp.org>
62550
62551         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
62552         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
62553         specially.
62554
62555 2004-01-20  Bruno Haible  <bruno@clisp.org>
62556
62557         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
62558         patch.
62559
62560 2004-01-20  Bruno Haible  <bruno@clisp.org>
62561
62562         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
62563
62564 2004-01-20  Bruno Haible  <bruno@clisp.org>
62565
62566         * lib/eealloc.h: New file.
62567
62568 2004-01-20  Bruno Haible  <bruno@clisp.org>
62569
62570         * lib/binary-io.h: Avoid warnings on Cygwin.
62571
62572 2004-01-20  Bruno Haible  <bruno@clisp.org>
62573
62574         * lib/allocsa.h: New file, from GNU gettext.
62575         * lib/allocsa.c: New file, from GNU gettext.
62576
62577 2004-01-18  Karl Berry  <karl@gnu.org>
62578
62579         * doc/gpl.texi, doc/lgpl.texi: new files.
62580
62581 2004-01-18  Karl Berry  <karl@gnu.org>
62582
62583         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
62584         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
62585
62586 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62587
62588         Merge from coreutils.
62589
62590         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
62591         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
62592         (gl_DEFAULT_POSIX2_VERSION): Move
62593         the documentation from 'configure' into 'config.hin',
62594         so that 'configure --help' isn't burdened by it and
62595         we don't have to worry about its formatting there.
62596         Reword the documentation so that it's more succinct
62597         and can be run together into a single paragraph.
62598         * m4/same.m4 (gl_SAME): Check for pathconf.
62599
62600 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62601
62602         Merge from coreutils.
62603
62604         * lib/posixver.c: Include posixver.h.
62605
62606         * lib/same.c: Include <stdbool.h>, <limits.h>.
62607         (_POSIX_NAME_MAX): Define if not defined.
62608         (MIN): New macro.
62609         (same_name): If file names are silently truncated, report
62610         that the file names are the same if they are the same after
62611         the silent truncation.
62612
62613         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
62614         conversion function.
62615         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
62616         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
62617         longer needed.
62618
62619 2004-01-15  Jim Meyering  <jim@meyering.net>
62620
62621         Merge from coreutils.
62622
62623         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
62624         if no library is required.
62625         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
62626         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
62627         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
62628         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
62629         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
62630         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
62631         value, $ac_cv_search_crypt, if it's "none required".
62632         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
62633         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
62634         not gl_FUNC_GETLOADAVG.
62635         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
62636         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
62637
62638 2004-01-15  Jim Meyering  <jim@meyering.net>
62639
62640         Merge from coreutils.
62641
62642         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
62643         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
62644         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
62645
62646         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
62647         optional configure-time default.
62648
62649         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62650
62651         * lib/xreadlink.c (xreadlink): Correct outdated comment.
62652
62653 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
62654
62655         Merge from coreutils.
62656
62657         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
62658         value, $ac_cv_search_nanosleep, if it's "none required".
62659
62660 2004-01-14  Paul Eggert  <eggert@twinsun.com>
62661
62662         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
62663         with like-named macro in fnmatch.c.
62664         (EXT): Use an internal constant instead.
62665
62666         Merge fnmatch patches from glibc.
62667         * lib/fnmatch.c (mbsinit): Remove define.
62668         Add libc_hidden_ver (__fnmatch, fnmatch).
62669         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
62670         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
62671
62672 2004-01-14  Karl Berry  <karl@gnu.org>
62673
62674         * config/install-sh: update from automake.
62675
62676 2004-01-13  Karl Berry  <karl@gnu.org>
62677
62678         * config/install-sh: update from automake.
62679
62680 2004-01-09  Karl Berry  <karl@gnu.org>
62681
62682         * config/install-sh: update from automake.
62683
62684 2004-01-05  Karl Berry  <karl@gnu.org>
62685
62686         * config/config.{sub,guess}: update from config.
62687
62688 2003-12-31  Karl Berry  <karl@gnu.org>
62689
62690         * config/depcomp: update from automake.
62691
62692 2003-12-14  Karl Berry  <karl@gnu.org>
62693
62694         * lib/config.charset: update from gettext-runtime.
62695
62696 2003-12-03  Paul Eggert  <eggert@twinsun.com>
62697
62698         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
62699         Bug reported by Alfred M. Szmidt.
62700
62701 2003-12-03  Bruno Haible  <bruno@clisp.org>
62702
62703         * m4/gettext.m4: Upgrade from gettext-0.13.
62704         * m4/po.m4: Upgrade from gettext-0.13.
62705         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
62706         * m4/intmax.m4: New file, from gettext-0.13.
62707         * m4/printf-posix.m4: New file, from gettext-0.13.
62708
62709 2003-11-29  Karl Berry  <karl@gnu.org>
62710
62711         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
62712
62713 2003-11-25  Paul Eggert  <eggert@twinsun.com>
62714             Bruno Haible  <bruno@clisp.org>
62715
62716         * lib/printf-parse.h: Don't include sys/types.h.
62717         (ARG_NONE): New macro.
62718         (char_directive): Change type of *arg_index fields to size_t.
62719         * lib/printf-parse.c: Don't include sys/types.h.
62720         (SSIZE_MAX): Remove macro.
62721         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
62722         Remove unnecessary overflow check.
62723         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
62724         fields.
62725
62726 2003-11-25  Bruno Haible  <bruno@clisp.org>
62727
62728         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
62729
62730 2003-11-25  Bruno Haible  <bruno@clisp.org>
62731
62732         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
62733         gt_TYPE_SSIZE_T.
62734
62735 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62736
62737         * modules/alloca: Remove dependency on xalloc.
62738
62739 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62740
62741         * lib/alloca.c: Remove dependency on xalloc module.
62742         (xalloc_die): Remove.
62743         (memory_full) [!defined emacs]: New macro.
62744         [!defined emacs]: Don't include xalloc.h.
62745         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
62746         address arithmetic overflows.  Change datatypes a bit to avoid
62747         unnecessary casts.
62748
62749 2003-11-22  Jim Meyering  <jim@meyering.net>
62750
62751         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
62752         s/size/size_t/.
62753
62754 2003-11-21  Karl Berry  <karl@gnu.org>
62755
62756         * config/config.{sub,guess}: update from config.
62757
62758 2003-11-18  Karl Berry  <karl@gnu.org>
62759
62760         * config/config.{sub,guess}: update from config.
62761
62762         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
62763
62764 2003-11-17  Paul Eggert  <eggert@twinsun.com>
62765
62766         * README: Mention that S+T cannot overflow if S is the size of
62767         an existing object and T is sufficiently small.
62768
62769 2003-11-17  Jim Meyering  <jim@meyering.net>
62770
62771         On systems without utime and without a utimes function capable of
62772         dealing with a NULL struct utimbuf* argument, this utime replacement
62773         could -- in unusual circumstances -- leak a file descriptor.
62774         * lib/utime.c: Include <unistd.h> and <errno.h>.
62775         (utime_null): Be sure to close `fd' and to preserve errno.
62776         Reported by Geoff Collyer via Arnold Robbins.
62777
62778 2003-11-17  Bruno Haible  <bruno@clisp.org>
62779
62780         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
62781         (Depends-on): Add xsize.
62782
62783 2003-11-17  Bruno Haible  <bruno@clisp.org>
62784
62785         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
62786
62787 2003-11-17  Bruno Haible  <bruno@clisp.org>
62788
62789         * lib/vasnprintf.c (alloca): Remove fallback definition.
62790         (freea): Remove definition.
62791         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
62792         Reported by Paul Eggert.
62793
62794 2003-11-16  Paul Eggert  <eggert@twinsun.com>
62795             Bruno Haible  <bruno@clisp.org>
62796
62797         Protect against address arithmetic overflow.
62798         * lib/printf-args.h: Include stddef.h.
62799         (arguments): Change type of field 'count' to size_t.
62800         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
62801         'unsigned int' where appropriate.
62802         * lib/printf-parse.h: Include sys/types.h.
62803         (char_directive): Change type of *arg_index fields to ssize_t.
62804         (char_directives): Change type of fields 'count', max_*_length to
62805         size_t.
62806         * lib/printf-parse.c: Include sys/types.h and xsize.h.
62807         (SSIZE_MAX): Define fallback value.
62808         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
62809         instead of 'int' where appropriate. Check a_allocated, d_allocated
62810         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
62811         * lib/vasnprintf.c: Include xsize.h.
62812         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
62813         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
62814         overflow. Avoid wraparound when converting a width or precision from
62815         decimal to binary.
62816
62817 2003-11-16  Bruno Haible  <bruno@clisp.org>
62818
62819         Update from GNU gettext.
62820         * lib/printf-parse.c: Generalize to it can be compiled for wide
62821         strings.
62822         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
62823         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
62824         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
62825         SNPRINTF): New macros.
62826         Don't include <alloca.h> if the file is used inside libintl.
62827         (local_wcslen): New function, for Solaris 2.5.1.
62828         (VASNPRINTF): Use it instead of wcslen.
62829
62830 2003-11-16  Bruno Haible  <bruno@clisp.org>
62831
62832         * lib/xsize.h (xmax): New function.
62833         (xsum, xsum3, xsum4): Declare as "pure" functions.
62834
62835 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62836
62837         * modules/xalloc (Files): Undo latest change, since xalloc.h
62838         no longer needs SIZE_MAX or PTRDIFF_MAX.
62839
62840 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62841
62842         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
62843         gl_PTRDIFF_MAX.
62844
62845 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62846
62847         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
62848         "return", to pacify some unknown compiler.  Problem reported
62849         by Joerg Schilling.
62850
62851 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62852
62853         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
62854         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
62855         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
62856         heuristic is just as accurate as far as we know, and it removes a
62857         dependency on size_max.m4 and ptrdiff_max.m4.
62858
62859 2003-11-11  Bruno Haible  <bruno@clisp.org>
62860
62861         * modules/xsize (Files): Add m4/size_max.m4.
62862         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
62863
62864 2003-11-11  Bruno Haible  <bruno@clisp.org>
62865
62866         * m4/size_max.m4: New file.
62867         * m4/ptrdiff_max.m4: New file.
62868         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
62869         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
62870         (gl_XALLOC): Invoke it.
62871
62872 2003-11-11  Bruno Haible  <bruno@clisp.org>
62873
62874         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
62875         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
62876         defined.
62877
62878 2003-11-10  Paul Eggert  <eggert@twinsun.com>
62879
62880         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
62881         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
62882         rejected some allocations of exactly SIZE_MAX - 2 bytes.
62883         From Bruno Haible.
62884         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
62885         not (size_t) -1, since it's defined here.
62886
62887 2003-11-09  Karl Berry  <karl@gnu.org>
62888
62889         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
62890
62891 2003-11-06  Paul Eggert  <eggert@twinsun.com>
62892
62893         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
62894         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
62895         Reject sizes of exactly SIZE_MAX bytes.
62896         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
62897         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
62898
62899 2003-11-05  Bruno Haible  <bruno@clisp.org>
62900
62901         * lib/xsize.h: Include limits.h, to avoid a possible collision with
62902         SIZE_MAX defined in <limits.h> on Solaris.
62903
62904 2003-11-04  Jim Meyering  <jim@meyering.net>
62905
62906         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
62907         variable names, rather than @VAR@.
62908         * modules/poll: Likewise.
62909
62910 2003-11-04  Bruno Haible  <bruno@clisp.org>
62911
62912         * modules/xsize: New file.
62913         * modules/linebreak: Depend on xsize.
62914         * MODULES.html.sh (func_all_modules): Add xsize.
62915
62916 2003-11-04  Bruno Haible  <bruno@clisp.org>
62917
62918         * m4/xsize.m4: New file.
62919
62920 2003-11-04  Bruno Haible  <bruno@clisp.org>
62921
62922         * lib/xsize.h: New file.
62923         * lib/linebreak.c: Include xsize.h.
62924         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
62925         argument for overflow.
62926         Suggested by Paul Eggert.
62927
62928 2003-11-03  Karl Berry  <karl@gnu.org>
62929
62930         * config/config.{guess,sub}: update from config.
62931
62932 2003-11-03  Jim Meyering  <jim@meyering.net>
62933
62934         * modules/userspec (lib_SOURCES): Add userspec.h.
62935         (Include): Add "userspec.h".
62936         Improve description.
62937
62938 2003-11-03  Jim Meyering  <jim@meyering.net>
62939
62940         * lib/userspec.c: Include "userspec.h".
62941         * lib/userspec.h: New file.
62942
62943 2003-11-03  Bruno Haible  <bruno@clisp.org>
62944
62945         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
62946
62947 2003-11-03  Bruno Haible  <bruno@clisp.org>
62948
62949         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
62950         available, to avoid (extremely rare) race condition.
62951         Suggested by Paul Eggert.
62952
62953 2003-11-02  Karl Berry  <karl@gnu.org>
62954
62955         * config/srclist.txt (vasprintf.c): sync broken, sigh.
62956
62957 2003-10-31  Paul Eggert  <eggert@twinsun.com>
62958
62959         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
62960         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
62961         (read_filesystem_list): Set and use me_type_malloced.
62962         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
62963         whatever the type happens to be), for brevity and consistency.
62964         Check for size calculation overflow on Alphas running OSF/1.
62965
62966 2003-10-31  Jim Meyering  <jim@meyering.net>
62967
62968         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
62969
62970         * lib/linebuffer.c: Include <string.h> for declaration of memset.
62971
62972 2003-10-30  Paul Eggert  <eggert@twinsun.com>
62973             Bruno Haible  <bruno@clisp.org>
62974
62975         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
62976         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
62977
62978 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62979
62980         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
62981         netbsd*-gnu*.  Suggested by Robert Millan.
62982
62983 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62984
62985         * modules/group-member: Depend on stdbool.
62986
62987 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62988
62989         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
62990
62991 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62992
62993         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
62994         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
62995         after the 'gnu' in these cases.  This fixes some bugs in the
62996         previous change, and is based on suggestions by Robert Millan.
62997
62998 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62999
63000         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
63001         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
63002         no longer needed.
63003         * lib/quotearg.c (quotearg_n_options): Use it.
63004         * lib/group-member.c: Include <stdbool.h>.
63005         (free_group_info): Arg is now const *; don't free arg.
63006         (get_group_info): Now returns bool and accepts struct group_info *,
63007         rather than returning a malloc'ed struct group_info *.
63008         All uses changed.  Check for overflow in internal size calculation.
63009
63010         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
63011         rather than xmalloc/xrealloc.
63012         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
63013         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
63014         conformance bug: the old code used a pointer after freeing the
63015         storage that it addressed.
63016         * lib/hash.c (hash_initialize): Simplify the code by using
63017         xalloc_oversized rather than doing it by hand.
63018         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
63019         the buffer preserved.  Use free and xmalloc instead.
63020         * lib/quotearg.c (quotearg_n_options): Likewise.
63021         Use a simpler test for size overflow.  Don't use xalloc_oversized
63022         because unsigned int might be wider than size_t (!); this suggests
63023         that we should switch from unsigned int to size_t for slot numbers.
63024
63025 2003-10-28  Paul Eggert  <eggert@twinsun.com>
63026
63027         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
63028         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
63029         NetBSD kernels.  Requested by Richard Stallman.
63030
63031 2003-10-27  Paul Eggert  <eggert@twinsun.com>
63032
63033         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
63034         to allocate the returned structure.  Do not allocate a subarray,
63035         as x2nrealloc will do that.
63036         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
63037         instead of xnrealloc.
63038         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
63039
63040 2003-10-27  Bruno Haible  <bruno@clisp.org>
63041
63042         * lib/stdbool_.h: Better support for BeOS.
63043
63044 2003-10-26  Paul Eggert  <eggert@twinsun.com>
63045
63046         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
63047         now uses inline.
63048
63049 2003-10-26  Paul Eggert  <eggert@twinsun.com>
63050
63051         * lib/xalloc.h (xalloc_oversized): New static inline function, for
63052         callers that want to do their own size-overflow checking.  Include
63053         <stdbool.h>, since xalloc_oversized returns bool.
63054         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
63055         to use xalloc_oversized.
63056
63057         Add two functions x2realloc, x2nrealloc, for programs that grow
63058         arrays dynamically by doubling their sizes.
63059         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
63060         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
63061         New functions.
63062
63063         Port to C99 semantics for 'inline' of external functions.
63064         Bug reported by Bruno Haible.
63065         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
63066         with the old contents of xnmalloc.
63067         (xnmalloc, xmalloc): Use it.
63068         (xnrealloc_inline): New static inline function,
63069         with the old contents of xnrealloc.
63070         (xnrealloc, xrealloc): Use it.
63071
63072         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
63073         that.
63074
63075 2003-10-26  Karl Berry  <karl@gnu.org>
63076
63077         * config/srclist.txt (COPYING.DOC): no longer available from
63078         /gd/gnuorg; don't know where the ultimate source is.
63079
63080 2003-10-25  Paul Eggert  <eggert@twinsun.com>
63081
63082         Fix several address-calculation bugs in the hash modules,
63083         plus some minor code cleanup.
63084
63085         * lib/hash.h: Include <stdbool.h>, for bool.
63086         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
63087         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
63088         hash_get_n_entries, hash_get_max_bucket_length,
63089         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
63090         hash_rehash): Use size_t rather than unsigned.
63091         * lib/hash.c (struct hash_table, hash_get_n_buckets,
63092         hash_get_n_buckets_used, hash_get_n_entries,
63093         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
63094         hash_get_entries, hash_do_for_each, hash_string, is_prime,
63095         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
63096         Likewise.
63097         (SIZE_MAX): Define if not defined.
63098         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
63099         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
63100         hash_print):
63101         Use const * when possible.
63102         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
63103         (check_tuning): Fix bug: if tuning parameters were very close to
63104         0 or 1, rounding errors could have caused subscript violations.
63105         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
63106         (hash_initialize): Add 'fail:' label
63107         to free table and return NULL, and use it to simplify code.
63108         Use calloc rather than clearing the storage ourself.
63109         (hash_initialize, hash_rehash): Check for arithmetic overflow in
63110         buffer size calculations.
63111         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
63112         Include <stddef.h>, for size_t.
63113         * lib/hash-pjw.c (hash_pjw): Likewise.
63114         Switch to method described by Bruno Haible.
63115         Include <limits.h>, for CHAR_BIT.
63116         (SIZE_BITS): New macro.
63117
63118 2003-10-23  Paul Eggert  <eggert@twinsun.com>
63119
63120         * m4/getline.m4 (AM_FUNC_GETLINE):
63121         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
63122         hosts.  Problem reported by Derek Robert Price in
63123         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
63124         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
63125         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
63126
63127 2003-10-21  Paul Eggert  <eggert@twinsun.com>
63128
63129         * lib/getndelim2.c (getndelim2): When size calculation overflows,
63130         ceiling the allocation at NMAX bytes rather than silently
63131         discarding input bytes before NMAX is reached.  This makes
63132         a difference only if NMAX exceeds SIZE_MAX / 2.
63133
63134         * lib/obstack.c: Merge from glibc.
63135         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
63136         Add libc_hidden_def (_obstack_newchunk).
63137         (_obstack_free) [! defined _LIBC]: Remove.
63138         [defined _LIBC]: Make a strong alias from obstack_free, rather than
63139         a clone of the function body.
63140         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
63141         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
63142
63143         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
63144         glibc.
63145         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
63146         arg to memcpy.
63147
63148         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
63149         (obstack_ptr_grow_fast, obstack_int_grow_fast):
63150         Don't use lvalue casts, as GCC plans to remove support for them
63151         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
63152         was also present in the non-GCC version, indicating that this
63153         code had always been buggy and had never been widely used.
63154         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
63155         Use the fast variant of each macro, rather than copying the
63156         definiens of the fast variant; that way, we'll be more likely to
63157         catch future bugs in the fast variants.
63158
63159 2003-10-20  Bruno Haible  <bruno@clisp.org>
63160
63161         * modules/wait-process: New file.
63162         * MODULES.html.sh (func_all_modules): Add wait-process.
63163
63164 2003-10-20  Bruno Haible  <bruno@clisp.org>
63165
63166         * m4/wait-process.m4: New file.
63167
63168 2003-10-20  Bruno Haible  <bruno@clisp.org>
63169
63170         * lib/wait-process.h: New file, from GNU gettext.
63171         * lib/wait-process.c: New file, from GNU gettext.
63172
63173 2003-10-19  Jim Meyering  <jim@meyering.net>
63174
63175         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
63176         HPUX 10.20.
63177
63178 2003-10-18  Karl Berry  <karl@gnu.org>
63179
63180         * config/config.guess: update from config.
63181
63182 2003-10-16  Paul Eggert  <eggert@twinsun.com>
63183
63184         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
63185         (getgroups): First arg is int, not size_t.
63186         Don't let 'free' mangle errno.
63187
63188 2003-10-16  Paul Eggert  <eggert@twinsun.com>
63189
63190         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
63191
63192 2003-10-16  Karl Berry  <karl@gnu.org>
63193
63194         * config/config.{guess,sub}: update from config.
63195
63196 2003-10-16  Jim Meyering  <jim@meyering.net>
63197
63198         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
63199         memcpy.
63200
63201 2003-10-15  Paul Eggert  <eggert@twinsun.com>
63202
63203         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
63204         (SIZE_MAX): Remove.
63205         (new_exclude, add_exclude_file): Initial size no longer needs to
63206         be a power of 2.
63207         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
63208         our own address arithmetic overflow checking.
63209
63210         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
63211         (fnmatch): Do not alloca more than 2000 wide characters;
63212         instead, use malloc for large buffers.
63213         Check for address arithmetic overflow, and return -1
63214         with errno set to ENOMEM in that case.
63215         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
63216         (NEW_PATTERN): Do not alloca more than 8000 bytes;
63217         instead, return -1.  Check for address arithmetic overflow.
63218
63219 2003-10-14  Paul Eggert  <eggert@twinsun.com>
63220
63221         Handle invalid suffixes and overflow independently, so that
63222         callers can treat them independently as needed.  Fix some bugs in
63223         suffix handling, e.g., "100k@" was not diagnosed as an invalid
63224         suffix for a human-readable blocksize.  The major caller-visible
63225         change is the addition of a new
63226         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
63227         that both overflow and suffix chars were found.
63228
63229         * lib/human.c (humblock): Don't check separately for invalid suffix
63230         char; that is xstrtoumax's job (now that its bug is fixed).
63231         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
63232         INTMAX_MAX]: New macros.
63233         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
63234         TYPE_MAXIMUM): New macros.
63235         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
63236         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
63237         if overflow occurs, as it's what __strtol does and it's more useful
63238         in practice.
63239         (__xstrtol): If __strtol reports some error other than ERANGE,
63240         reflect it to the caller as LONGINT_INVALID.  If it reports
63241         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
63242         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
63243         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
63244         value.
63245         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
63246         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
63247         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
63248         [defined UINTMAX_MAX]: New macros.
63249
63250 2003-10-14  Bruno Haible  <bruno@clisp.org>
63251
63252         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
63253
63254 2003-10-14  Bruno Haible  <bruno@clisp.org>
63255
63256         * m4/sig_atomic_t: New file, from GNU gettext.
63257         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
63258
63259 2003-10-14  Bruno Haible  <bruno@clisp.org>
63260
63261         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
63262         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
63263         Also use volatile where needed.
63264
63265 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63266
63267         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
63268         Change maintainer from Bruno Haible to 'all'.
63269
63270 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63271
63272         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
63273
63274 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63275
63276         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
63277         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
63278         and define in terms of the other primitives.
63279         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
63280         (SIZE_MAX): Define if not already defined.
63281         (array_size_overflow): New function.
63282         (xalloc_die): Abort instead of exiting if 'error' returns.
63283         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
63284         (xmalloc, xrealloc): Use them.
63285         (xcalloc): Check for address arithmetic overflow.
63286         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
63287         a bit faster than strcpy.
63288
63289 2003-10-10  Simon Josefsson  <jas@extundo.com>
63290
63291         * modules/argp (Depends-on): Add restrict and strcase.
63292
63293 2003-10-10  Simon Josefsson  <jas@extundo.com>
63294
63295         * m4/argp.m4: Add AC_C_INLINE.
63296
63297 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63298
63299         Merge getpass from libc, plus a few fixes.
63300
63301         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
63302         Include <stdbool.h>.
63303         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
63304         __fsetlocking to empty.
63305         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
63306         do include <bits/libc-lock.h>.
63307         Do not include <fcntl.h>; not needed.
63308         [_LIBC]: Include <wchar.h>.
63309         (NOTCANCEL_MODE): New macro.
63310         (flockfile, funlockfile) [_LIBC]: New macros.
63311         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
63312         [!_LIBC]: New macros.
63313         (call_fclose): New function.
63314         (getpass): Use it.  Save tty stream separately; this simplifies the
63315         code and makes it more reliable if stdin happens to equal stdout.
63316         Invoke __fsetlocking on tty.
63317         Handle thread cancellation if needed.
63318         Namespace cleanup (use __tcgetattr, __getline).
63319         Use bool for Booleans.
63320         [USE_IN_LIBIO]: Handle wide streams.
63321         [!_LIBC]: Unconditionally do the fseek, since we don't know what
63322         stream might go where.
63323
63324         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
63325         doesn't have to include <stdio.h> before us.
63326         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
63327         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
63328         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
63329         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
63330         if not declared, so that we can use getpass.c code from libc without
63331         rewriting it.
63332         (flockfile, ftrylockfile, funlockfile): New macros.
63333
63334 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63335
63336         * modules/getpass: Depend on stdbool.
63337
63338 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63339
63340         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
63341
63342 2003-10-07  Karl Berry  <karl@gnu.org>
63343
63344         * config/config.{guess,sub}: update from config.
63345
63346 2003-10-06  Jim Meyering  <jim@meyering.net>
63347             Bruno Haible  <bruno@clisp.org>
63348
63349         This lets translators provide better translations for the
63350         "Written by ..." part of --version output.
63351         * lib/version-etc.h: Include stdarg.h.
63352         (version_etc_copyright): Declare as readonly.
63353         (version_etc): Make this function variadic with a NULL-terminated list
63354         of author name strings.
63355         (version_etc_va): New declaration.
63356         * lib/version-etc.c: Include stdarg.h, stdlib.h.
63357         (version_etc_copyright): Declare as readonly.
63358         (version_etc_va): New function. Provide a different translatable string
63359         for each possible number of authors < 10. Abbreviate when there are 10
63360         authors or more.
63361         (version_etc): Make this function variadic. Call version_etc_va.
63362         Suggestion from Gary V. Vaughan.
63363
63364         * lib/long-options.h (parse_long_options): Change prototype: the
63365         authors string is moved to the end and becomes variadic.
63366         * lib/long-options.c: Include stdarg.h.
63367         (parse_long_options): Make this function variadic, too.
63368         Call version_etc_va, not version_etc.
63369
63370 2003-10-06  Bruno Haible  <bruno@clisp.org>
63371
63372         * modules/version-etc-2: Remove file.
63373         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
63374
63375 2003-10-06  Bruno Haible  <bruno@clisp.org>
63376
63377         * modules/fatal-signal: New file.
63378         * MODULES.html.sh (func_all_modules): Add fatal-signal.
63379
63380 2003-10-06  Bruno Haible  <bruno@clisp.org>
63381
63382         * m4/fatal-signal.m4: New file.
63383         * m4/signalblocking.m4: New file, from GNU gettext.
63384
63385 2003-10-06  Bruno Haible  <bruno@clisp.org>
63386
63387         * lib/version-etc-2.h: Remove file.
63388         * lib/version-etc-2.c: Remove file.
63389
63390 2003-10-06  Bruno Haible  <bruno@clisp.org>
63391
63392         * lib/fatal-signal.h: New file, from GNU gettext.
63393         * lib/fatal-signal.c: New file, from GNU gettext.
63394
63395 2003-10-05  Paul Eggert  <eggert@twinsun.com>
63396
63397         * README: Rework advice for preventing empty .o files.
63398         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
63399         not <sys/types.h>.
63400
63401 2003-10-04  Karl Berry  <karl@gnu.org>
63402
63403         * lib/argp*: update from libc.
63404
63405 2003-10-04  Karl Berry  <karl@gnu.org>
63406
63407         * config/config.{guess,sub}: update from config.
63408
63409 2003-10-02  Bruno Haible  <bruno@clisp.org>
63410
63411         * modules/lchown (Include): Add lchown.h.
63412         * modules/time_r (Include): Use "..." syntax.
63413         * modules/xgetdomainname (Include): Add xgetdomainname.h.
63414
63415 2003-10-01  Simon Josefsson  <jas@extundo.com>
63416
63417         * MODULES.html.sh (func_all_modules): Move gethostname from section
63418         'based on' to section 'lacking' POSIX:2001.
63419
63420 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
63421
63422         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
63423         to output mode on the same stream.
63424
63425 2003-09-29  Paul Eggert  <eggert@twinsun.com>
63426
63427         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
63428         Fix arg typo in previous patch.
63429
63430 2003-09-28  Jim Meyering  <jim@meyering.net>
63431
63432         * lib/error.c: Correct cpp indentation.
63433
63434 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63435
63436         * modules/free: New file.
63437
63438 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63439
63440         * m4/free.m4: New file.
63441
63442 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63443
63444         * lib/minmax.h (MIN, MAX)
63445         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
63446         Omit the special code that used __typeof__, since we worry that
63447         it could be more trouble than it's worth.  See:
63448         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
63449         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
63450
63451         * lib/free.c: New file.
63452
63453 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
63454
63455         Trivial fixes to Makefile.am parts of module listings.
63456         * modules/strstr: Append strstr.h to lib_SOURCES.
63457         * modules/strcase: Likewise, for strcase.h.
63458
63459 2003-09-27  Karl Berry  <karl@gnu.org>
63460
63461         * config/mkinstalldirs: update from automake.
63462
63463 2003-09-26  Paul Eggert  <eggert@twinsun.com>
63464
63465         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
63466         (error_tail): Do not loop, reallocating temporary buffer, since
63467         the output cannot contain more wide characters than the input
63468         contains bytes, the size must be big enough already.  This avoids
63469         one potential size overflow calculation.  Check for size overflow
63470         when calculating temporary buffer size.  Free temporary buffer
63471         when done, if it was allocated with malloc; this plugs a memory
63472         leak.  Remove casts from void * to pointers, that are no longer
63473         needed now that we're assuming C89 or better.
63474
63475         Merge error changes from glibc.
63476
63477         * lib/error.c, error.h: Update copyright notice header to match glibc.
63478         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
63479         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
63480         Disable cancellation while printing error.
63481         * lib/error.h: Prepend __ to parameter names.
63482
63483 2003-09-26  Jim Meyering  <jim@meyering.net>
63484
63485         * lib/error.c (error_tail): Move some declarations
63486         into inner scope where the local variables are used.
63487
63488 2003-09-26  Bruno Haible  <bruno@clisp.org>
63489
63490         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
63491         stpncpy().
63492         Don't define stpncpy through config.h; it's now done through stpncpy.h.
63493
63494 2003-09-26  Bruno Haible  <bruno@clisp.org>
63495
63496         * lib/stpncpy.h (gnu_stpncpy): New declaration.
63497         (stpncpy): Define as alias for gnu_stpncpy.
63498         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
63499
63500 2003-09-25  Simon Josefsson  <jas@extundo.com>
63501
63502         * lib/xgetdomainname.h: New file.
63503         * lib/xgetdomainname.c: New file.
63504
63505 2003-09-25  Simon Josefsson  <jas@extundo.com>
63506             Bruno Haible  <bruno@clisp.org>
63507
63508         * modules/getdomainname: New file.
63509         * modules/xgetdomainname: New file.
63510         * MODULES.html.sh (func_all_modules): Add getdomainname,
63511         xgetdomainname.
63512
63513 2003-09-25  Simon Josefsson  <jas@extundo.com>
63514             Bruno Haible  <bruno@clisp.org>
63515
63516         * m4/getdomainname.m4: New file.
63517
63518 2003-09-25  Simon Josefsson  <jas@extundo.com>
63519             Bruno Haible  <bruno@clisp.org>
63520
63521         * lib/getdomainname.h: New file.
63522         * lib/getdomainname.c: New file.
63523
63524 2003-09-25  Karl Berry  <karl@gnu.org>
63525
63526         * lib/argp-fmtstream.c, argp-help.c: update from libc.
63527
63528 2003-09-25  Karl Berry  <karl@gnu.org>
63529
63530         * config/install-sh: update from automake.
63531
63532 2003-09-25  Bruno Haible  <bruno@clisp.org>
63533
63534         * modules/version-etc-2: New file, from modules/version-etc with
63535         modifications.
63536         * MODULES.html.sh (func_all_modules): Add version-etc-2.
63537
63538 2003-09-25  Bruno Haible  <bruno@clisp.org>
63539
63540         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
63541         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
63542
63543 2003-09-24  Simon Josefsson  <jas@extundo.com>
63544
63545         * modules/xgethostname: Add xgethostname.h.
63546
63547 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63548
63549         * lib/linebuffer.c (freebuffer): Don't free the argument, just
63550         the buffer associated with the argument.  Bug reported by
63551         Simon Josefsson.
63552
63553 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63554
63555         * README: Document assumptions that 'int' is at least 32 bits
63556         wide, that integer arithmetic is 2's complement without overflow,
63557         that there are no holes in integer values, that adding sizes of
63558         two nonoverlapping objects can't overflow, and that all-bits-zero
63559         yields scalar zero.  Fix spelling and capitalization typos.
63560
63561 2003-09-19  Karl Berry  <karl@gnu.org>
63562
63563         * lib/argp.h: update from libc.
63564
63565 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63566
63567         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
63568         to avoid spurious warnings like "AC_RUN_IFELSE was called before
63569         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
63570
63571 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63572
63573         * gnulib-tool: Use "test -h", not "test -L", for portability
63574         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
63575         (tags_regexp): Remove, since \| doesn't conform to POSIX.
63576         (sed_extract_prog): Issue s commands one-by-one, rather than
63577         using \| in one s command.
63578
63579 2003-09-16  Paul Eggert  <eggert@twinsun.com>
63580
63581         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
63582         input error, instead of returning NULL the next time we are called
63583         (and therefore losing track of errno).
63584
63585 2003-09-16  Bruno Haible  <bruno@clisp.org>
63586
63587         * gnulib-tool (func_create_testdir): Warn about duplicated
63588         dependencies.
63589
63590 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63591
63592         * modules/argmatch, modules/fatal, modules/obstack,
63593         modules/xalloc, modules/xgethostname: Sort dependencies by
63594         importance, not alphabetically.
63595
63596 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63597
63598         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
63599         fails, so that the caller gets the proper errno.
63600
63601         * lib/readutmp.c (read_utmp): Likewise.
63602         Check for fstat error.  Close stream and free storage
63603         when failing.
63604
63605 2003-09-14  Karl Berry  <karl@gnu.org>
63606
63607         * config/srclist.txt (strdup.c): disable for c89 changes.
63608
63609 2003-09-14  Jim Meyering  <jim@meyering.net>
63610
63611         * lib/getloadavg.c: Correct cpp indentation.
63612         * lib/strdup.c: Likewise.
63613         * lib/vasnprintf.c: Likewise.
63614
63615 2003-09-14  Bruno Haible  <bruno@clisp.org>
63616
63617         * modules/fwriteerror: New file.
63618         * MODULES.html.sh (func_all_modules): Add fwriteerror.
63619
63620 2003-09-14  Bruno Haible  <bruno@clisp.org>
63621
63622         * lib/fwriteerror.h: New file.
63623         * lib/fwriteerror.c: New file.
63624
63625 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63626
63627         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
63628         modules/xgethostname, modules/xalloc: Depend on exit.
63629
63630 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63631
63632         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
63633
63634         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
63635         and AC_MINIX, too, so that their extensions are available.
63636
63637         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
63638         This macro has been superseded by gl_BACKUPFILE.
63639
63640         More patches to assume C89 or better.
63641
63642         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
63643
63644         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
63645         unconditionally.
63646         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
63647         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
63648         Include <string.h>, <stdlib.h> unconditionally.
63649         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
63650         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
63651         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
63652         headers or for string.h.
63653         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
63654         or strtoul.
63655
63656         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
63657         headers.
63658         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
63659         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63660         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
63661         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
63662         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63663         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
63664         memcpy, memset.
63665         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
63666         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
63667         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
63668         strtol.
63669         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
63670         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
63671         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
63672         strtoul.
63673
63674 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63675
63676         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
63677         * lib/obstack.c [!defined _LIBC]: Likewise.
63678         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
63679         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
63680         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
63681
63682         More changes to assume C89 or better.
63683
63684         * lib/error.c (error_tail): Assume vprintf.
63685
63686         * lib/argmatch.c (getenv): Remove decl.
63687         * lib/progreloc.c (get_full_program_name): Define via prototype.
63688         * lib/setenv.c (clearenv): Likewise.
63689         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
63690         needed.
63691         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
63692         (malloc, memcpy): Remove decls.
63693         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
63694         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
63695         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63696         (memcpy): Remove macro.
63697         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
63698         (__P): Remove.  All uses removed.
63699         (PTR): Remove.  All uses changed to void *.
63700         (CHAR_BIT, NULL): Remove.
63701         (spaces, zeros, memset_space, memset_zero)
63702         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
63703         Remove.
63704         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
63705         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
63706         Define with prototype.
63707         Remove now-unnecessary prototype decl.
63708         (extra_args_spec): Assume ANSI C.  All uses changed.
63709         (extra_args_spec_iso): Remove.
63710         (my_strftime, emacs_strftimeu): Define via prototype.
63711         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
63712         unconditionally.
63713         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
63714         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
63715         (strtoul, strtol): Remove decls.
63716         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
63717         LONG_MAX): Remove.
63718         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63719         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
63720         (LOCALE_PARAM_PROTO): New macro.
63721         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
63722         (INTERNAL (strtol), strtol): Define with a prototype.
63723         (PARAMS): Remove.  All uses removed.
63724         * lib/tempname.c: Include <string.h> unconditionally.
63725         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
63726         * lib/xgethostname.c (main): Define with a prototype.
63727         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
63728         Include <stdlib.h> unconditionally.
63729         (calloc, malloc, realloc, free): Remove decls.
63730         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
63731         Include <stdlib.h> unconditionally.  Sort include file names.
63732         (strtod): Remove.
63733         (xstrtod): Define with a prototype.
63734         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
63735         (strtol, strtoul): Remove decls.
63736
63737 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63738
63739         More patches to assume C89 or better.
63740         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
63741         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
63742         string.h, memchr, STDC_HEADERS.
63743
63744 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63745
63746         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
63747         Include <stdlib.h>, <string.h> unconditionally.
63748         Remove now-unnecessary cast to char *.
63749         * lib/strnlen.c: Include <string.h> unconditionally.
63750         * lib/yesno.c (yesno): Define with a prototype.
63751
63752 2003-09-11  Bruno Haible  <bruno@clisp.org>
63753
63754         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
63755
63756 2003-09-10  Jim Meyering  <jim@meyering.net>
63757
63758         * lib/error.c: Correct indentation of cpp directives.
63759
63760 2003-09-10  Bruno Haible  <bruno@clisp.org>
63761
63762         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
63763         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
63764         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
63765         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
63766         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
63767         <stdlib.h> and <string.h> checks.
63768         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
63769         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
63770
63771 2003-09-10  Bruno Haible  <bruno@clisp.org>
63772
63773         * lib/strcspn.c: Include <string.h> unconditionally.
63774         * lib/strpbrk.c: Include <string.h> unconditionally.
63775         * lib/strstr.c: Include <string.h> unconditionally.
63776         * lib/unicodeio.c: Include <string.h> unconditionally.
63777         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
63778         * lib/unsetenv.c: Likewise.
63779         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
63780         * lib/yesno.c: Include <stdlib.h> unconditionally.
63781         (rpmatch): Add prototype.
63782
63783 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63784
63785         More patches to assume C89 or better.
63786         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
63787         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
63788         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
63789         or for string.h.
63790         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
63791         stdlib.h.
63792         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
63793         C headers.
63794         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
63795         string.h.
63796         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
63797         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
63798         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
63799         or for string.h.
63800         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
63801         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
63802         C headers.
63803         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
63804         memcpy.
63805         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
63806         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
63807         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
63808         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
63809         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
63810         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
63811         string.h, free.
63812         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
63813         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
63814         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
63815         C headers, or for string.h.
63816         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
63817         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
63818         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
63819         headers, memory.h, stdlib.h, string.h, strings.h.
63820         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
63821         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
63822         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
63823         strchr.
63824         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
63825         headers, memory.h, string.h.
63826         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
63827         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
63828         free.
63829         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
63830         headers.
63831         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
63832         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
63833         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
63834         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
63835         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
63836
63837 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63838
63839         More K&R removal.
63840
63841         * lib/acosl.c (main): Use a prototype.
63842         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
63843         tanl.c: Likewise.
63844
63845         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
63846
63847         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
63848         (getopt, etopt_long, getopt_long_only, _getopt_internal)
63849         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
63850         with a prototype.
63851         * lib/getopt.c (const): Remove macro.
63852         Include <string.h> unconditionally.
63853         (my_index): Remove; all uses changed to strchr.
63854         (strlen): Remove decl.
63855         (exchange): Remove forward decl; no longer needed.
63856         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
63857         Define with prototype.
63858         * lib/getopt1.c (const): Remove macro.
63859         (getopt_long, getopt_long_only, main): Define with prototype.
63860
63861         * lib/getugroups.c: Include <string.h> unconditionally.
63862
63863         * lib/getusershell.c: Include <stdlib.h> unconditionally.
63864         (getusershell, setusershell, endusershell, readname, main):
63865         Define with prototypes.
63866
63867         * lib/group-member.c: Include group-member.h first.
63868         Include <stdlib.h> unconditionally.
63869
63870         * lib/hard-locale.c: Include hard-locale.h first.
63871         Include <stdlib.h>, <string.h> unconditionally.
63872
63873         * lib/hash.c (free, malloc): Remove decls.
63874         Include <stdlib.h> unconditionally.
63875
63876         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
63877         (getenv): Do not declare.
63878
63879         * lib/idcache.c: Include <string.h> unconditionally.
63880
63881         * lib/long-options.c: Include long-options.h first, to test interface.
63882         Include <stdlib.h> unconditionally.
63883
63884         * lib/makepath.c: Include makepath.h first, to test interface.
63885         Include <stdlib.h> and <string.h> unconditionally.
63886
63887         * lib/linebuffer.c: Include <stdlib.h>.
63888         (free): Remove decl.
63889
63890         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
63891         stddef.h. rpl_malloc returns void *, not char *.
63892         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
63893         prototype.
63894
63895         * lib/md5.h: Include <limits.h> unconditionally.
63896         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
63897         (__P): Remove; all uses removed.
63898         * lib/md5.c: Include "md5.h" first.
63899         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
63900         md5_buffer, md5_process_bytes, md5_process_block):
63901         Define with prototypes.
63902         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
63903         * lib/sha.c: Include "sha.h" first.
63904         Include <stdlib.h>, <string.h> unconditionally.
63905
63906         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
63907         * lib/memcmp.c (__ptr_t): Likewise.
63908         * lib/memrchr.c (__ptr_t): Likewise.
63909         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
63910         Include <string.h> unconditionally.
63911         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
63912         * lib/memchr.c: Include <stdlib.h> unconditionally.
63913         * lib/memchr.c (LONG_MAX): Remove.
63914         * lib/memrchr.c (LONG_MAX): Likewise.
63915         * lib/memchr.c (__memchr): Define via a prototype.
63916         * lib/memrchr.c (__memrchr): Likewise.
63917         * lib/memcmp.c (__P): Remove, and remove all uses.
63918         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
63919         Remove forward decls; no longer needed.
63920         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
63921         Use types required by C89 in prototype.
63922
63923         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
63924         * lib/savedir.c: Likewise.
63925         * lib/mkdir.c (free): Remove decl.
63926         * lib/rmdir.c (rmdir): Define with a prototype.
63927         * lib/savedir.c: Include savedir.h first, to test interface.
63928
63929         * lib/mktime.c (STDC_HEADERS): Remove.
63930         Include <stdlib.h>, <string.h> unconditionally.
63931
63932         * lib/modechange.c: Include <stdlib.h> unconditionally.
63933         (malloc): Remove decl.
63934
63935         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
63936         (free): Remove decl.
63937
63938         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
63939         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
63940         (This type really should be intptr_t, but that's a C99ism.)
63941         (_obstack_memcpy): Remove: all uses changed to memcpy.
63942         Include <string.h> unconditionally.
63943         (struct obstack): Assume __STDC__ for types of members
63944         chunkfun, freefun, extra_arg.
63945         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
63946         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
63947         obstack_begin, obstack_specify_allocation,
63948         obstack_specify_allocation_with_arg, obstack_chunkfun,
63949         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
63950         Remove unprototyped decls and the macros that use them.
63951         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
63952         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
63953         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
63954         (defined __STDC__ && __STDC__)]:
63955         Remove nonprototyped code.
63956         Include <stdlib.h> unconditionally.
63957         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
63958         _obstack_allocated_p, _obstack_free, obstack_free,
63959         _obstack_memory_used, print_and_abort):
63960         Define using prototypes.
63961         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
63962         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
63963         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
63964         obstack_next_free, obstack_object_size, obstack_room) [0]:
63965         Remove unused, unprototyped code.
63966
63967         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
63968
63969         * lib/physmem.c (physmem_total, physmem_available, main): Define
63970         with prototypes.
63971
63972         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
63973         (main): Define with a prototype.
63974
63975         * lib/posixver.c (getenv): Remove decl.
63976
63977         * lib/putenv.c (malloc): Returns void *, not char *.
63978         Include <string.h> unconditionally.
63979         (strchr, memcpy, NULL): Do not define.
63980
63981         * lib/readtokens.c: Include readtokens.h first, to test interface.
63982         Include <stdlib.h>, <string.h> unconditionally.
63983         (init_tokenbuffer): Define with a prototype.
63984
63985         * lib/regex.c (PARAMS): Remove.  All uses removed.
63986         All uses of _RE_ARGS removed, too.
63987         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63988         unconditionally.
63989         (bzero): Assume memset exists.
63990         (memcmp, memcpy, NULL): Remove.
63991         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
63992         char, or assignments to local vars of type signed char.
63993         (init_syntax_once, PREFIX(extract_number_and_incr),
63994         PREFIX(print_partial_compiled_pattern),
63995         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
63996         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
63997         PREFIX(regex_grow_registers), PREFIX(regex_compile),
63998         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
63999         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
64000         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
64001         wcs_compile_range, byte_compile_range, truncate_wchar,
64002         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
64003         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
64004         count_mbs_length, wcs_re_match_2_internal,
64005         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
64006         PREFIX(alt_match_null_string_p),
64007         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
64008         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
64009         regfree, PREFIX(extract_number)): Define with prototype.  Remove
64010         now-unnecessary declaration, if any.
64011         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
64012         regcomp, regexec):
64013         Remove now-unnecessary casts among pointer types.
64014         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
64015
64016         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
64017         (free): Remove decl.
64018
64019         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
64020
64021         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
64022         (free): Remove decl.
64023
64024         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
64025         * lib/xgetcwd.c: Likewise.
64026
64027         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
64028         (free): Remove decl.
64029
64030         * lib/strchrnul.c (strchrnul): Define with a prototype.
64031         Fix bug: c_in was not converted to char before searching.
64032
64033         The following changes are not K&R related:
64034
64035         * lib/group-member.h: Include <sys/types.h>, so that this file is
64036         self-contained.
64037         * lib/makepath.h: Likewise.
64038
64039         * lib/getusershell.c (readname, default_index, line_size, readname):
64040         Use size_t, not int, for sizes.
64041         (readname): If the size overflows, report an error instead of
64042         looping forever.
64043
64044 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64045
64046         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
64047         libc.
64048
64049 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64050
64051         * README: New section: portability guidelines.
64052
64053 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
64054
64055         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
64056         C89 spec.
64057
64058 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
64059
64060         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
64061
64062 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64063
64064         Assume C89 or better; remove K&R cruft.
64065         A few of these changes were first proposed by Derek Robert Price
64066         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
64067
64068         * lib/addext.c: Include <string.h> unconditionally.
64069         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
64070         Don't declare getenv or malloc.
64071
64072         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
64073         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
64074         (NULL): Remove.
64075         (find_stack_direction, alloca): Use prototypes.
64076
64077         * lib/atexit.c (atexit): Define using a prototype.
64078
64079         * lib/basename.c, dirname.c, stripslash.c:
64080         Include <string.h> unconditionally.
64081
64082         * lib/bcopy.c: Include <stddef.h>.
64083         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
64084
64085         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
64086
64087         * lib/error.h (error, error_at_line, error_print_progname)
64088         [! (defined (__STDC__) && __STDC__)]: Remove decls.
64089         * lib/error.c: Include error.h first, to check interface.
64090         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
64091         (VA_START): Remove; all uses changeed to va_start.
64092         (exit, strerror): Remove decls.
64093         (error_print_progname): Prototype uncondionally.
64094         Don't include <errno.h>; no longer needed.
64095         (private_strerror): Remove.
64096         (error_tail): Always define.
64097         (error, error_at_line): Assume C89 or better; always use prototypes.
64098         * lib/fatal.c: Include "fatal.h" first, to test interface.
64099         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
64100         (VA_START): Remove; all uses changed to va_start.
64101         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
64102         this case.
64103         (exit): Remove decl.
64104         (fatal): Prototype unconditionally.  Assume va_start works.
64105         Abort at end, to pacify gcc.
64106
64107         * lib/euidaccess.c (main): Define with a prototype.
64108
64109         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
64110
64111         * lib/exitfail.c: Include <stdlib.h> unconditionally.
64112
64113         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
64114         prototypes.
64115         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
64116         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
64117         (getenv): Remove decl.
64118         (fnmatch): Define using a prototype.
64119         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
64120         (FCT): Define using a prototype.
64121
64122         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
64123
64124         * lib/gethostname.c: Include <stddef.h>.
64125         (gethostname): Define with prototype.  Length is size_t, not int.
64126
64127 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64128
64129         Assume C89 or better; remove K&R cruft.
64130         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
64131         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
64132         string.h, getenv, malloc.
64133         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
64134         headers.
64135         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
64136         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
64137         do not check for strerror.
64138         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
64139         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
64140         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
64141         do not check for doprnt or vprintf.
64142         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
64143         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
64144
64145 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64146
64147         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
64148         getversion.c should have been removed then, but was accidentally
64149         preserved.
64150
64151         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
64152         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
64153
64154 2003-09-08  Karl Berry  <karl@gnu.org>
64155
64156         * config/config.sub, config.guess, srclistvars.sh: update from savannah
64157                 config, forget about prep.
64158
64159         * config/depcomp, missing: update from automake.
64160
64161 2003-09-07  Paul Eggert  <eggert@twinsun.com>
64162
64163         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
64164         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
64165
64166 2003-09-07  Paul Eggert  <eggert@twinsun.com>
64167
64168         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
64169         copy_tm_result.  Bug reported by Simon Josefsson in
64170         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
64171
64172 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64173
64174         * m4/time_r.m4: New file.
64175         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
64176         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
64177         is. Check for timegm declaration.
64178         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
64179         Do not check for gmtime_r.
64180         Replace mktime if __mktime_internal does not exist and if mktime
64181         hasn't been replaced already.
64182
64183 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64184
64185         * lib/time_r.c, lib/time_r.h: New files.
64186
64187         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
64188         __localtime_r.
64189         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
64190         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
64191
64192         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
64193         __gmtime_r.
64194         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
64195         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
64196         Include <time_r.h>.
64197
64198         * lib/timegm.c: Switch to glibc implementation, with the following
64199         changes:
64200         [defined HAVE_CONFIG_H]: Include <config.h>.
64201         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
64202         (__mktime_internal) [!defined _LIBC]: New decl.
64203         (__gmtime_r) [!defined _LIBC]: New macro and function.
64204         (timegm): Use a prototype, since gnulib assumes C89.
64205         Do not bother declaring tmp to be const, as it's not really usefu.
64206         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
64207         (timegm): Declare only if HAVE_DECL_TIMEGM.
64208
64209 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64210
64211         * MODULES.html.sh (func_all_modules): Add time_r.
64212         * modules/time_r: New file.
64213         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
64214         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
64215
64216 2003-09-03  Paul Eggert  <eggert@twinsun.com>
64217
64218         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
64219         Bug reported by Lute Kamstra in
64220         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
64221
64222         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
64223         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
64224         course with correspondingly smaller numbers for tomorrow and
64225         yesterday.  From Tadayoshi Funaba.  Originally installed into
64226         sh-utils on 1999-08-07, but the patch got lost (I guess during the
64227         coreutils merge?).
64228
64229 2003-08-31  Simon Josefsson  <jas@extundo.com>
64230
64231         * modules/timegm: New file.
64232         * MODULES.html.sh (func_all_modules): Add timegm.
64233
64234 2003-08-31  Simon Josefsson  <jas@extundo.com>
64235
64236         * m4/timegm.m4: New file.
64237
64238 2003-08-31  Simon Josefsson  <jas@extundo.com>
64239
64240         * lib/timegm.h: New file.
64241         * lib/timegm.c: New file.  Based on
64242         wget-1.8.2/src/http.c:mktime_from_utc.
64243
64244 2003-08-31  Karl Berry  <karl@gnu.org>
64245
64246         * lib/argp.h: update from libc.
64247
64248 2003-08-28  Bruno Haible  <bruno@clisp.org>
64249
64250         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
64251         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
64252         followed by '#define fnmatch fnmatch_posix' gives an error.
64253
64254 2003-08-28  Bruno Haible  <bruno@clisp.org>
64255
64256         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
64257         warning on QNX, which defines O_BINARY to 000000.
64258
64259 2003-08-27  Jim Meyering  <jim@meyering.net>
64260
64261         * m4/mkstemp.m4: Require that the system mkstemp be able to create
64262         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
64263         would fail after 32.  Reported by Danny Levinson.  Details here:
64264         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
64265
64266 2003-08-24  Bruno Haible  <bruno@clisp.org>
64267
64268         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
64269         MSVC7 <stdio.h> is included later.
64270
64271 2003-08-22  Simon Josefsson  <jas@extundo.com>
64272
64273         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
64274
64275 2003-08-20  Karl Berry  <karl@gnu.org>
64276
64277         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
64278
64279 2003-08-20  Bruno Haible  <bruno@clisp.org>
64280
64281         * modules/progname: New file.
64282         * MODULES.html.sh (func_all_modules): Add progname.
64283
64284 2003-08-20  Bruno Haible  <bruno@clisp.org>
64285
64286         * lib/progname.h: New file, from GNU gettext.
64287         * lib/progname.c: New file, from GNU gettext.
64288         * lib/progreloc.c: New file, from GNU gettext.
64289
64290 2003-08-19  Jim Meyering  <jim@meyering.net>
64291
64292         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
64293         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
64294
64295 2003-08-19  Bruno Haible  <bruno@clisp.org>
64296
64297         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
64298         more.
64299
64300 2003-08-19  Bruno Haible  <bruno@clisp.org>
64301
64302         * lib/xstrdup.c: Assume <string.h> exists.
64303
64304 2003-08-18  Paul Eggert  <eggert@twinsun.com>
64305
64306         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
64307         in makefile rules.
64308
64309 2003-08-18  Jim Meyering  <jim@meyering.net>
64310
64311         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
64312         * m4/lib-ld.m4: Likewise.
64313
64314 2003-08-18  Jim Meyering  <jim@meyering.net>
64315
64316         * lib/setenv.h: Indent nested cpp directive.
64317         * lib/vasnprintf.c: Remove trailing blanks.
64318
64319 2003-08-17  Simon Josefsson  <jas@extundo.com>
64320
64321         * modules/xstrndup: New file.
64322         * MODULES.html.sh (func_all_modules): Add xstrndup.
64323
64324 2003-08-17  Simon Josefsson  <jas@extundo.com>
64325
64326         * modules/argp: Fix autoconf macro name. Add more dependencies.
64327
64328 2003-08-17  Simon Josefsson  <jas@extundo.com>
64329
64330         * m4/xstrndup.m4: New file.
64331
64332 2003-08-17  Simon Josefsson  <jas@extundo.com>
64333
64334         * m4/argp.m4: New file.
64335
64336 2003-08-17  Simon Josefsson  <jas@extundo.com>
64337             Bruno Haible  <bruno@clisp.org>
64338
64339         * lib/xstrndup.h: New file.
64340         * lib/xstrndup.c: New file.
64341
64342 2003-08-17  Bruno Haible  <bruno@clisp.org>
64343
64344         * modules/strndup (Files, Include): Add lib/strndup.h.
64345
64346 2003-08-17  Bruno Haible  <bruno@clisp.org>
64347
64348         * modules/euidaccess (Files): Add lib/euidaccess.h.
64349
64350 2003-08-17  Bruno Haible  <bruno@clisp.org>
64351
64352         * lib/strndup.h: New file.
64353
64354 2003-08-17  Bruno Haible  <bruno@clisp.org>
64355
64356         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
64357         like AC_GNU_SOURCE.
64358         * modules/extensions (configure.ac): Comment out the invocation of
64359         gl_USE_SYSTEM_EXTENSIONS.
64360
64361 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64362
64363         Merges from coreutils, etc.
64364         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
64365         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
64366         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
64367         fixing a typo.
64368         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
64369         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
64370
64371 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64372
64373         Document merge from coreutils.
64374         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
64375         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
64376         * modules/utime: Add m4/utimes-null.m4.
64377
64378 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64379
64380         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
64381         space, undoing this 2003-08-12 change:
64382         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64383
64384 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64385
64386         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
64387         strtoul.c from libc, undoing this 2003-08-12 change:
64388         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64389
64390 2003-08-16  Jim Meyering  <jim@meyering.net>
64391
64392         Merges from coreutils.
64393         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
64394         prefix.  Adjust cache variables similarly.  Create 500 rather than
64395         just 300 files, to exercise bug on Darwin6.5, too.
64396         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
64397         $missing_dir.
64398         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
64399         AM_SYS_POSIX_TERMIOS.
64400         Reported by mkc@mathdogs.com.
64401         Also change use of $am_cv_sys_posix_termios
64402         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
64403         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
64404         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
64405         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
64406         in /proc/mounts until it finds one with matching device number.  This
64407         is unnecessary when the FILE argument *is* a mount point.  No stat call
64408         is necessary in that case.  So, disable the statvfs-testing code on
64409         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
64410         as RedHat bug# 84846.
64411         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64412         to 1MB, so as not to render systems with no stack size limit (e.g.,
64413         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64414         Include <unistd.h>.  On some systems,
64415         it is required for the definition of _SC_PAGESIZE.
64416
64417 2003-08-16  Jim Meyering  <jim@meyering.net>
64418
64419         Merge from coreutils.
64420         * lib/xstrtoimax.c: #else #if -> #elif.
64421         * lib/xstrtoumax.c: Likewise.
64422
64423 2003-08-16  Jim Meyering  <jim@meyering.net>
64424
64425         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
64426         * m4/utimes.m4: Removed.
64427         * m4/utimes-null.m4: Renamed from utimes.m4.
64428
64429         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64430         to 1MB, so as not to render systems with no stack size limit (e.g.,
64431         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64432         Include <unistd.h>.  On some systems,
64433         it is required for the definition of _SC_PAGESIZE.
64434
64435 2003-08-16  Jim Meyering  <jim@meyering.net>
64436         and Paul Eggert  <eggert@cs.ucla.edu>
64437
64438         Merges from coreutils, etc.
64439
64440         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
64441         using the latest version from cvs.  This avoids problems with #line
64442         directives using a vendor (Sun) compiler.
64443         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
64444         Don't set GETGROUPS_LIB here; now it's
64445         done via getgroups.m4's wrapper function.
64446         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
64447         rather than just in sh-util/configure.in, so that the
64448         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
64449         same.
64450         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
64451         AC_FUNC_GETLOADAVG where to find getloadavg.c.
64452         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
64453         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
64454         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
64455         Remove code that is now done by the newly-required macros.
64456         Append $(EXEEXT) to DF_PROG.
64457         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
64458         Do not invoke or require the following here,
64459         since prereq.m4 or some gnulib .m4 now does this for us:
64460         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
64461         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
64462         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
64463         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
64464         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
64465         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
64466         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
64467         AC_FUNC_OBSTACK.
64468         Do not replace the following functions, as this is now the job
64469         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
64470         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
64471         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
64472         atexit getpass, strdup, getpagesize.
64473         Replace 'raise'.
64474         Do not check for the following functions, as this is now the job
64475         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
64476         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
64477         setregid.
64478         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
64479         Check for sys/sysctl.h.
64480         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
64481         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
64482         of checking for ssize_t ourselves.
64483
64484         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
64485         Require every macro that gnulib/modules/* suggests for us.
64486         (jm_PREREQ_ADDEXT): New macro.
64487         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
64488         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
64489
64490         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
64491         (gl_PHYSMEM): Use it.
64492         Also check for `table' function.
64493         Check for new headers and functions.
64494         Add check for sys/sysmp.h.
64495         With suggestions from Kaveh Ghazi.
64496         Ignore headers that are present but cannot be compiled.  This
64497         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
64498         C 5.4.
64499
64500 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64501
64502         Document merge from coreutils.
64503         * modules/userspec: Depend on posixver.
64504         * modules/strftime: Depend on tzset.
64505
64506 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64507
64508         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
64509         rather than tab, after '#' in shell-script copyright notices.
64510         Suggested by Bruno Haible.
64511
64512 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64513
64514         * config/srclist-update: Use three spaces, rather than tab, after '#'
64515         in shell-script copyright notices.  Suggested by Bruno Haible.
64516         Remove unnecessary parenthesization in regular expression.
64517
64518 2003-08-15  Jim Meyering  <jim@meyering.net>
64519
64520         Merge from coreutils.
64521         * lib/xgethostname.c: Include <stdlib.h>.
64522         (xghostname): Don't exit for anything other than memory-related
64523         failure; just return NULL.
64524         * lib/userspec.c: Include "posixver.h".
64525         (parse_user_spec): Accept `.' as a separator only
64526         in pre-POSIX-200112 mode.
64527         * lib/strtoimax.c: Use #elif rather than #else #if.
64528         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
64529         Remove function, now that we can rely on a working tzset function.
64530         [!_LIBC]: Ensure that the required autoconf test has been run.
64531         [!defined _NL_CURRENT && HAVE_STRFTIME]:
64532         Use underlying_strftime for %r.
64533         * lib/sha.c: Merge in some clean-up and optimization changes from
64534         glibc.
64535         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
64536         Ensure that it is a multiple of 64.
64537         Rearrange loop exit tests so as to avoid performing an
64538         additional fread after encountering an error or EOF.
64539         * lib/realloc.c: Update copyright date.
64540
64541 2003-08-15  Jim Meyering  <jim@meyering.net>
64542         and Paul Eggert  <eggert@twinsun.com>
64543
64544         Merge from coreutils.
64545         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
64546         member but strut utmpx does not.  Needed for AIX 4.3.3.
64547         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
64548
64549 2003-08-15  Jim Meyering  <jim@meyering.net>
64550         and Paul Eggert  <eggert@cs.ucla.edu>
64551
64552         Merges from coreutils, etc.
64553         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
64554         Require gl_FUNC_TZSET_CLOBBER.
64555         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
64556         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
64557         members.
64558
64559 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64560
64561         Help the merge from coreutils.
64562         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
64563         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
64564         * m4/tzset.m4: Use it too.
64565
64566 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64567
64568         * modules/tzset: New file.
64569
64570 2003-08-14  Jim Meyering  <jim@meyering.net>
64571
64572         Merges from coreutils.
64573         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
64574         variable names, rather than @FNMATCH_H@.
64575         * modules/alloca: Likewise for $(ALLOCA_H).
64576
64577         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
64578         the three copies of the literal target, `fnmatch.h'.
64579         * modules/alloca (alloca.h): Likewise.
64580
64581 2003-08-14  Jim Meyering  <jim@meyering.net>
64582
64583         Merge from coreutils.
64584         * m4/tzset.m4: New file.
64585         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
64586         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
64587         otherwise, AIX 5.1 systems would end up using the latter.
64588         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
64589         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
64590         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
64591         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
64592
64593 2003-08-14  Jim Meyering  <jim@meyering.net>
64594
64595         Merge from coreutils.
64596         * lib/obstack.h: Whitespace changes.
64597         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
64598         and xcalloc return values.
64599         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
64600         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
64601         hang on OSF/1 5.1 for DIR on both local and remote file systems.
64602         Reported by (and fix confirmed by) Nelson H. F. Beebe.
64603         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64604         error from mntctl.
64605         Use mntctl's return value to drive the entry-processing loop, since
64606         we can't rely on the value of the vmt_length member in the last
64607         entry.  On some systems doing so could result in exhausting
64608         virtual memory.  Based in part on a patch from Mike Jetzer.
64609
64610 2003-08-14  Jim Meyering  <jim@meyering.net>
64611         and Paul Eggert  <eggert@twinsun.com>
64612
64613         Merges from coreutils, plus other fixes.
64614         * lib/physmem.c: Merge in portability changes from gcc/libiberty
64615         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
64616         for credits and details.  Thanks to Kaveh Ghazi for helping
64617         to keep these files in sync.
64618         (ARRAY_SIZE): Define it.
64619         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
64620         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
64621         (memcasecmp): Don't assume size_t fits in unsigned int.
64622         Remove casts and duplicate code.
64623         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
64624         (memcpy): Remove definition.
64625         Merge in some clean-up and optimization changes from glibc.
64626         [BLOCKSIZE]: Move definition to top of file.
64627         Ensure that it is a multiple of 64.
64628         Rearrange loop exit tests so as to avoid performing an
64629         additional fread after encountering an error or EOF.
64630         * lib/md5.h (md5_uintptr): Define.
64631         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
64632         return to the initial working directory.  Preserve errno
64633         for caller.
64634         * lib/idcache.c: Include "xalloc.h".
64635         (xmalloc, xrealloc): Remove decls.
64636         (getuser): Remove casts no longer required in C89.
64637         * lib/human.c: Include stdio.h, for sprintf.
64638         * lib/group-member.c: Include "xalloc.h".
64639         (xmalloc, xrealloc): Remove decls.
64640         (get_group_info): Remove casts no longer required in C89.
64641         * lib/getusershell.c (readname): Remove casts no longer required in
64642         C89.
64643         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
64644         * lib/getline.c: Whitespace fix, from coreutils.
64645
64646 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64647
64648         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
64649         Check for isascii.
64650
64651         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64652         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64653         Undo previous (whitespace-only) change.
64654
64655 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64656
64657         * lib/exclude.c: Include <ctype.h>
64658         (IN_CTYPE_DOMAIN): New macro.
64659         (is_space): New fn.
64660         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
64661         and empty lines.
64662
64663         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64664         Undo previous (whitespace-only) change.
64665
64666 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64667
64668         * config/srclist-update: Change update back to the old behavior,
64669         leaving whitespace alone.  Use one 'sed' command rather than a
64670         pipeline.
64671         (fixlicense): Now a variable, not a function.
64672         (remove_trailing_blanks): Remove.
64673         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
64674         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64675         Undo previous (whitespace-only) change.
64676
64677 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64678
64679         Merge from coreutils.
64680         * modules/euidaccess: Add lib_SOURCES, include for new
64681         file euidaccess.h
64682
64683 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64684
64685         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64686         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64687         Normalize leading white space and remove trailing white space.
64688
64689         Merge from coreutils
64690         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
64691
64692         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
64693         0.12.1.  These files are now being upgraded automatically by
64694         ../config/srclist-update.
64695
64696 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64697
64698         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64699         Normalize leading white space and remove trailing white space.
64700         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
64701         notice, as per ../config/srclist-update.
64702
64703         Merge from coreutils.
64704         * lib/euidaccess.h: New file.
64705         * lib/euidaccess.c: Include it.
64706         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
64707         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
64708         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
64709
64710 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64711
64712         * config/srclist-update: Add copyright notice.
64713         (remove_id_lines, remove_trailing_blanks): New constants.
64714         (fixfile): Use them to normalize spacing a bit in copied files.
64715         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64716         Normalize leading white space and remove trailing white space.
64717
64718         * config/texinfo.tex: Sync with texinfo.
64719
64720         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
64721         strtoul.c from libc, to merge coreutils whitespace changes.
64722
64723         * config/srclist.txt: Get the following m4 files from gettext:
64724         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
64725         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
64726         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
64727         wint_t.m4.
64728
64729 2003-08-12  Karl Berry  <karl@gnu.org>
64730
64731         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
64732         been made.
64733
64734 2003-08-11  Paul Eggert  <eggert@twinsun.com>
64735
64736         * modules/gnu-source, m4/gnu-source.m4:
64737         Remove; we're assuming Autoconf 2.54 or later now.
64738         Suggested by Bruno Haible.
64739         * MODULES.html.sh (func_all_modules): Remove gnu-source.
64740
64741 2003-08-11  Bruno Haible  <bruno@clisp.org>
64742
64743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
64744
64745 2003-08-11  Bruno Haible  <bruno@clisp.org>
64746
64747         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
64748         (vasnprintf): Use it instead of wcslen.
64749
64750 2003-08-11  Bruno Haible  <bruno@clisp.org>
64751
64752         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
64753         value to ensure that _Bool promotes to int. Use #define for _Bool when
64754         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
64755
64756 2003-08-10  Karl Berry  <karl@gnu.org>
64757
64758         * lib/regex.h: update from libc (whitespace fix).
64759
64760 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64761
64762         Merge some files from coreutils.  These changes were
64763         originally made by Jim Meyering.
64764         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
64765         many older Unixes require this.
64766         * lib/alloca.c (alloca): Remove cast to argument of free;
64767         no longer needed in C89.
64768         * lib/alloca_.h, regex.h: Fix white space to match
64769         what GNU indent does.
64770
64771 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64772
64773         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
64774         apparently Emacs's Unicode mode got confused before my 2003-08-05
64775         checkin.
64776
64777 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64778
64779         * m4/extensions.m4: New file.
64780         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
64781         Require gl_USE_SYSTEM_EXTENSIONS.
64782         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
64783         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
64784
64785 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64786
64787         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
64788         * modules/extensions, modules/gnu-source: New files.
64789         * modules/timespec, modules/unlocked-io: Depend on extensions.
64790
64791 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64792
64793         * modules/restrict: New file.
64794         * MODULES.html.sh (func_all_modules): Add restrict.
64795         * modules/regex: Depend on restrict.
64796
64797 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64798
64799         * m4/restrict.m4: New file.
64800         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
64801
64802 2003-08-07  Bruno Haible  <bruno@clisp.org>
64803
64804         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
64805         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
64806
64807 2003-08-07  Bruno Haible  <bruno@clisp.org>
64808
64809         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
64810         makes the module 'getndelim2' compatible with the module 'getline'.
64811
64812 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64813
64814         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
64815         byte with "\201" to avoid glitches when editing that source file
64816         with multi-gnome-terminal.
64817
64818 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64819
64820         * lib/bumpalloc.h: Remove.
64821
64822 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64823
64824         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
64825         * modules/bumpalloc: Remove.
64826
64827 2003-08-04  Paul Eggert  <eggert@twinsun.com>
64828
64829         * lib/getloadavg.c: Change copyright notice and spacing to conform to
64830         GNU coding style.
64831
64832         Merge from coreutils.
64833         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
64834         1. From glibc.
64835         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
64836         from Karl Berry, implemented by Jim Meyering.
64837         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
64838         from Dmitry V. Levin.
64839         Remove anachronistic cast of xrealloc.
64840         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
64841         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
64842         type. Otherwise, it wouldn't compile with at least /bin/cc on
64843         ymp-cray-unicos9.0.2.X.
64844         Combine two mostly-identical uses of alloca into one.
64845         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
64846
64847 2003-08-04  Dave Love  <d.love@dl.ac.uk>
64848
64849         [From Emacs.]
64850
64851         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
64852         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
64853         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
64854         obsolete NLIST_NAME_UNION.
64855         [__GNU__]: Undef BSD and FSCALE.
64856         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
64857
64858 2003-08-03  Paul Eggert  <eggert@twinsun.com>
64859
64860         * lib/stdbool_.h (_Bool): Make it signed char, instead of
64861         an enum type, so that it's guaranteed to promote to int.  See:
64862         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
64863
64864 2003-08-03  Karl Berry  <karl@gnu.org>
64865
64866         * config/depcomp: update from automake.
64867
64868 2003-07-31  Paul Eggert  <eggert@twinsun.com>
64869
64870         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
64871         (strerror): Don't assume that a printable int fits in 14 bytes.
64872
64873 2003-07-31  Bruno Haible  <bruno@clisp.org>
64874
64875         * modules/getpass-gnu: New file.
64876         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
64877
64878 2003-07-31  Bruno Haible  <bruno@clisp.org>
64879
64880         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
64881
64882 2003-07-24  Karl Berry  <karl@gnu.org>
64883
64884         * config/missing: update from automake.
64885
64886 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
64887             Bruno Haible  <bruno@clisp.org>
64888
64889         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
64890         * lib/getline.c (getline, getdelim): Likewise.
64891         Remove _GNU_SOURCE define; now it's defined in config.h through
64892         m4/getline.m4.
64893
64894 2003-07-23  Karl Berry  <karl@gnu.org>
64895
64896         * config/config.sub: update from prep.
64897
64898 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64899
64900         * modules/xalloc (Depends-on): Add exitfail.
64901         * modules/xmemcoll: Likewise.
64902
64903 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64904
64905         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
64906         over-parenthesization in macros.
64907
64908         Sync with coreutils.
64909
64910         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
64911         required by C99.
64912
64913         Use `exit_failure' for xalloc and xmemcoll instead of their own
64914         private exit-failure variables.
64915         * lib/xalloc.h (xalloc_exit_failure): Remove.
64916         * lib/xmalloc.c: Likewise.  Include exitfail.h.
64917         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
64918         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
64919         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
64920         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
64921
64922 2003-07-20  Jim Meyering  <jim@meyering.net>
64923
64924         * modules/closeout (Depends-on): Add exitfail.
64925         Suggestion from Bruno Haible.
64926
64927 2003-07-19  Karl Berry  <karl@gnu.org>
64928
64929         * config/config.sub: update from prep.
64930
64931 2003-07-18  Paul Eggert  <eggert@twinsun.com>
64932
64933         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
64934         Remove.
64935         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
64936         to test that it can stand by itself.  Include "exitfail.h".
64937         Clients should set exit_failure instead.
64938         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
64939
64940 2003-07-18  Bruno Haible  <bruno@clisp.org>
64941
64942         * modules/getndelim2: New file.
64943         * modules/getline: Share files with module getndelim2.
64944         * modules/getnline: Depend on getndelim2 instead of sharing files with
64945         it. Add getnline.c to lib_SOURCES.
64946         * MODULES.html.sh (func_all_modules): Add getndelim2.
64947
64948 2003-07-18  Bruno Haible  <bruno@clisp.org>
64949
64950         * m4/getndelim2.m4: New file.
64951         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
64952         invoke gl_PREREQ_GETNDELIM2.
64953         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
64954         gl_PREREQ_GETNDELIM2.
64955         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
64956         gl_GETNDELIM2.
64957
64958 2003-07-18  Bruno Haible  <bruno@clisp.org>
64959
64960         * lib/getndelim2.h: New file.
64961         * lib/getndelim2.c: Make into a module of its own. Include config.h,
64962         getndelim2.h.
64963         (getndelim2): Make non-static. Change return type to ssize_t.
64964         * lib/getline.h: Change argument names.
64965         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
64966         * lib/getnline.c: Include getndelim2.h.
64967
64968 2003-07-18  Andreas Schwab  <schwab@suse.de>
64969
64970         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
64971
64972 2003-07-17  Karl Berry  <karl@gnu.org>
64973
64974         * config/config.sub: update from prep.
64975
64976 2003-07-17  Bruno Haible  <bruno@clisp.org>
64977
64978         * modules/getnline: New file.
64979         * modules/getline: Add lib/getndelim2.c to source file list.
64980         * MODULES.html.sh (func_all_modules): Add getnline.
64981
64982 2003-07-17  Bruno Haible  <bruno@clisp.org>
64983
64984         * m4/getnline.m4: New file.
64985
64986 2003-07-17  Bruno Haible  <bruno@clisp.org>
64987
64988         * m4/Makefile.am.in: Remove file.
64989         * m4/Makefile.am: Remove file.
64990         * m4/Makefile.in: Remove file.
64991
64992 2003-07-17  Bruno Haible  <bruno@clisp.org>
64993
64994         * lib/getnline.h: New file.
64995         * lib/getnline.c: New file.
64996         * lib/getndelim2.c: New file, extracted from getline.c.
64997         (getndelim2): Renamed from getdelim2, with added nmax argument.
64998         * lib/getline.c: Include getndelim2.c.
64999         (getdelim2): Moved out to getndelim2.c.
65000         (getline, getdelim): Update.
65001
65002 2003-07-17  Bruno Haible  <bruno@clisp.org>
65003
65004         * lib/Makefile.am: Remove file.
65005         * lib/Makefile.in: Remove file.
65006
65007 2003-07-17  Bruno Haible  <bruno@clisp.org>
65008
65009         * configure.in: Remove file.
65010         * Makefile.in: Remove file.
65011
65012 2003-07-17  Bruno Haible  <bruno@clisp.org>
65013
65014         * MODULES.html.sh: Put the </BODY> right before </HTML>.
65015
65016 2003-07-16  Karl Berry  <karl@gnu.org>
65017
65018         * config/srclist-update: was running fixlicense twice, which caused
65019                 texinfo.tex to be nullified for some reason.  Simplify,
65020                 $gplsrc is no longer needed as far as I can see?
65021
65022 2003-07-16  Jim Meyering  <jim@meyering.net>
65023
65024         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
65025
65026 2003-07-15  Paul Eggert  <eggert@twinsun.com>
65027
65028         * config/srclist.txt: Get the following files from gettext-runtime/intl
65029         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
65030         ref-del.sin.  From Bruno Haible.
65031         * config/srclist-update (fixfile): Change grep pattern again, since the
65032         previous fix didn't work (there was another trailing $).  Use
65033         '[$]' to escape the $s.
65034
65035 2003-07-15  Karl Berry  <karl@gnu.org>
65036
65037         * lib/vasnprintf.c: update from gettext.
65038
65039 2003-07-15  Karl Berry  <karl@gnu.org>
65040
65041         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
65042         gets expanded when surrounded by '$'.
65043
65044 2003-07-15  Jim Meyering  <jim@meyering.net>
65045
65046         * modules/save-cwd: Don't depend on error.  From Derek Price.
65047
65048 2003-07-15  Jim Meyering  <jim@meyering.net>
65049
65050         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
65051
65052 2003-07-14  Simon Josefsson  <jas@extundo.com>
65053
65054         * modules/mempcpy: New file.
65055         * MODULES.html.sh (func_all_modules): Add mempcpy.
65056
65057 2003-07-14  Simon Josefsson  <jas@extundo.com>
65058
65059         * m4/mempcpy.m4: New file.
65060
65061 2003-07-14  Simon Josefsson  <jas@extundo.com>
65062
65063         * lib/mempcpy.h: New file.
65064         * lib/mempcpy.c: New file.
65065
65066 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65067
65068         * modules/getdate, modules/posixtm: Depend on mktime.
65069
65070 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65071
65072         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
65073         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
65074         unicodeio.c, unicodeio.h, unlocked-io.h:
65075         Switch from LGPL to GPL.
65076
65077 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65078
65079         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
65080         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
65081         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
65082         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
65083         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
65084         updated automatically by ../config/srclist-update.  This changes
65085         their license from LPGL to GPL.
65086
65087 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65088
65089         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
65090         assumed to refer to the root of the most recent stable gettext version.
65091         * config/srclistvars.sh: Add defaults for eggert.
65092         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
65093         Match "This program" as well as "The program".  This is needed
65094         for gettext.
65095
65096 2003-07-14  Jim Meyering  <jim@meyering.net>
65097
65098         Don't emit diagnostics.  Let callers do that.
65099         * lib/save-cwd.c: Don't include "error.h".
65100         (save_cwd): Don't call error.  Ensure that errno is valid
65101         when returning nonzero.
65102
65103         * lib/save-cwd.h (restore_cwd): Update prototype.
65104         * lib/save-cwd.c (restore_cwd): Remove two parameters.
65105         Simplify.  Don't call error upon failure.  Let callers do that.
65106         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
65107         when auditing is enabled.  But don't bother updating the #if.
65108
65109 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
65110
65111         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
65112         it breaks C++ compilation.
65113         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
65114
65115 2003-07-10  Simon Josefsson  <jas@extundo.com>
65116
65117         * modules/strchrnul (Makefile.am): Add strchrnul.h.
65118
65119 2003-07-10  Jim Meyering  <jim@meyering.net>
65120
65121         * m4/clock_time.m4: Remove trailing blank.
65122         * m4/intmax_t.m4: Likewise.
65123
65124 2003-07-10  Jim Meyering  <jim@meyering.net>
65125
65126         * lib/vasnprintf.c: Remove trailing blanks.
65127         Make cpp indentation consistent.
65128
65129 2003-07-09  Paul Eggert  <eggert@twinsun.com>
65130
65131         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
65132         posixver.c, strftime.c, strnlen.c, strverscmp.c:
65133         Switch from LGPL to GPL.
65134
65135 2003-07-09  Paul Eggert  <eggert@twinsun.com>
65136
65137         * config/srclist.txt: Sort sublists.  Add
65138         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
65139         that differ from gnulib for one reason or another; we'd like this list
65140         to be smaller but for now let's document what we have.
65141
65142 2003-07-08  Paul Eggert  <eggert@twinsun.com>
65143
65144         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
65145         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
65146         and sweeter "eval x=$x".
65147         * config/srclist.txt: Get lib/argp* from glibc.
65148
65149 2003-07-07  Paul Eggert  <eggert@twinsun.com>
65150
65151         * lib/mktime.c: Fix some boundary cases and remove need for floating
65152         point.
65153
65154         Issue a compile-time diagnostic if time_t is floating point, or if
65155         two's complement arithmetic is not in effect, or if arithmetic
65156         right shift does not propagate the sign.  These assumptions were
65157         all in the original code but they weren't checked.
65158
65159         (TIME_T_MIDPOINT, verify): New macros.
65160         (__isleap): Remove; it has integer overflow problems.
65161         (leapyear): New function, without those problems.
65162         (ydhms_tm_diff): Remove; splitting into two parts.
65163         (ydhms_diff): New function, containing the arithmetic part of
65164         the old ydhms_tm_diff function.  Issue a compile-time
65165         diagnostic if we are not using C99 integer division.
65166         Avoid casts when possible.
65167         (guess_time_tm): New function, containing the checking part of
65168         the old ydhms_tm_diff function.  Return the new value, rather than
65169         the difference between it and the old.  Accept a new argument T
65170         so that *T specifies the old value.  Check for overflow in the result.
65171
65172         (__mktime_internal): Use a time_t offset, not a long int offset.
65173         This undoes the 2003-06-04 change, which is no longer needed now
65174         that we have better overflow checking.
65175         (localtime_offset): Likewise.
65176
65177         (__mktime_internal): Avoid harmful overflow on hosts where time_t
65178         and long are 64-bit but int is only 32-bit.
65179         (ydhms_diff): Use long int to store year1 and yday1.
65180         Issue a compile-time diagnostic if long int is not wide enough.
65181
65182         (__mktime_internal): Use long int to store adjusted year and yday.
65183         Use plain C rather than preprocessor commands, if that doesn't
65184         affect efficiency.
65185         Check for overflow (and try to repair) after each probe
65186         rather than checking only at the very end.  This avoids some bugs
65187         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
65188         does not equal GMT offset at maximum time).
65189         Use integer to check for overflow rather than floating point; this
65190         is more portable to non-IEEE hosts, and is a tad faster.
65191         When we detect that we are oscillating between two values,
65192         don't check whether tm_isdst has the requested value, since
65193         we already know the answer.  When tm_isdst has the wrong value,
65194         use a different heuristic to find the right one, based on the
65195         extreme values actually observed in practice in tz2003a,
65196         rather than the (overly optimistic) "previous 3 calendar quarters".
65197
65198         (not_equal_tm, print_tm, check_result): Use "const T" rather than
65199         "T const" to accommodate glibc style.
65200         (check_result): Use less-confusing report format.  "long" -> "long int.
65201         (main): Likewise.
65202         Don't loop if the iteration overflows time_t.
65203         Allow a negative step in the iteration.
65204
65205 2003-07-06  Karl Berry  <karl@gnu.org>
65206
65207         * config/depcomp: update from automake.
65208         * config/config.sub: update from prep.
65209
65210 2003-07-03  Karl Berry  <karl@gnu.org>
65211
65212         * config/config.guess: update from prep.
65213
65214 2003-07-01  Paul Eggert  <eggert@twinsun.com>
65215
65216         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
65217         xreadlink.c now includes it unconditionally.
65218
65219 2003-07-01  Paul Eggert  <eggert@twinsun.com>
65220
65221         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
65222         having it depend on HAVE_SYS_TYPES_H.
65223
65224 2003-07-01  Bruno Haible  <bruno@clisp.org>
65225
65226         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
65227         <sys/types.h> should be sufficient.
65228         Reported by Paul Eggert.
65229
65230 2003-06-26  Karl Berry  <karl@gnu.org>
65231
65232         * config/depcomp: update from automake.
65233
65234 2003-06-26  Bruno Haible  <bruno@clisp.org>
65235
65236         * modules/human: Depend on module stdbool.
65237
65238 2003-06-25  Bruno Haible  <bruno@clisp.org>
65239
65240         * modules/readlink: New file.
65241         * modules/xreadlink: Depend on it.
65242         * MODULES.html.sh (func_all_modules): Add readlink.
65243
65244 2003-06-25  Bruno Haible  <bruno@clisp.org>
65245
65246         * m4/readlink.m4: New file.
65247
65248 2003-06-25  Bruno Haible  <bruno@clisp.org>
65249
65250         * lib/readlink.c: New file.
65251
65252 2003-06-22  Karl Berry  <karl@gnu.org>
65253
65254         * config/srclist.txt: update mkinstalldirs from automake.
65255         * config/mkinstalldirs: update.
65256
65257 2003-06-22  Bruno Haible  <bruno@clisp.org>
65258
65259         Portability to mingw32.
65260         * m4/ssize_t.m4: New file, from GNU gettext.
65261         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
65262         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
65263
65264 2003-06-22  Bruno Haible  <bruno@clisp.org>
65265
65266         * modules/safe-read: Add m4/ssize_t.m4.
65267         * modules/xreadlink: Add m4/ssize_t.m4.
65268
65269 2003-06-20  Bruno Haible  <bruno@clisp.org>
65270
65271         Assume C89, so PARAMS isn't needed.
65272         * lib/unicodeio.h (PARAMS): Remove.
65273         * lib/unicodeio.c: Don't use PARAMS.
65274
65275 2003-06-18  Karl Berry  <karl@gnu.org>
65276
65277         * config/config.{guess,sub}: update from prep.
65278
65279 2003-06-18  Jim Meyering  <jim@meyering.net>
65280
65281         Merge changes from coreutils.
65282         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
65283         Remove explicit declarations of xmalloc and realloc.
65284         Include xalloc.h.
65285         (read_utmp): Remove anachronistic cast of xmalloc.
65286
65287 2003-06-17  Paul Eggert  <eggert@twinsun.com>
65288
65289         Assume C89, so PARAMS isn't needed.
65290         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
65291         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
65292         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
65293         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
65294         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
65295         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
65296         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
65297         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
65298         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
65299         lib/xstrtod.h, lib/xstrtol.h: Likewise.
65300         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
65301         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
65302         no longer needed. Anyway, config.h should always be included before any
65303         other file.
65304
65305 2003-06-11  Simon Josefsson  <jas@extundo.com>
65306
65307         * modules/sysexits: New file.
65308         * MODULES.html.sh (func_all_modules): Add sysexits.
65309
65310 2003-06-11  Simon Josefsson  <jas@extundo.com>
65311
65312         * lib/sysexit_.h: New file.
65313
65314 2003-06-11  Derek Price  <derek@ximbiot.com>
65315
65316         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
65317         necessary.
65318
65319 2003-06-11  Bruno Haible  <bruno@clisp.org>
65320
65321         * m4/sysexits.m4: New file.
65322
65323 2003-06-10  Simon Josefsson  <jas@extundo.com>
65324
65325         * lib/argp.h: New file, from glibc.
65326         * lib/argp-ba.c: New file, from glibc.
65327         * lib/argp-eexst.c: New file, from glibc.
65328         * lib/argp-fmtstream.c: New file, from glibc.
65329         * lib/argp-fmtstream.h: New file, from glibc.
65330         * lib/argp-fs-xinl.c: New file, from glibc.
65331         * lib/argp-help.c: New file, from glibc.
65332         * lib/argp-namefrob.h: New file, from glibc.
65333         * lib/argp-parse.c: New file, from glibc.
65334         * lib/argp-pv.c: New file, from glibc.
65335         * lib/argp-pvh.c: New file, from glibc.
65336         * lib/argp-xinl.c: New file, from glibc.
65337
65338 2003-06-10  Simon Josefsson  <jas@extundo.com>
65339
65340         * modules/strchrnul: New file.
65341
65342 2003-06-10  Simon Josefsson  <jas@extundo.com>
65343
65344         * modules/argp: New file.
65345
65346 2003-06-10  Simon Josefsson  <jas@extundo.com>
65347
65348         * m4/strchrnul.m4: New file.
65349
65350 2003-06-10  Simon Josefsson  <jas@extundo.com>
65351
65352         * lib/strchrnul.h: New file.
65353         * lib/strchrnul.c: New file.
65354
65355 2003-06-10  Bruno Haible  <bruno@clisp.org>
65356
65357         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
65358
65359 2003-06-07  Karl Berry  <karl@gnu.org>
65360
65361         * config/config.{guess,sub}: update from prep.
65362
65363 2003-06-07  Jim Meyering  <jim@meyering.net>
65364
65365         * modules/strtod: Use $(...) notation, not @...@ for
65366         AC_REPLACE'd variables.
65367         * modules/localcharset: Likewise.
65368
65369 2003-06-07  Jim Meyering  <jim@meyering.net>
65370
65371         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
65372         in place of my name in the copyright comment.
65373         Remove definition and uses of __P.
65374
65375         From coreutils.
65376         * lib/stat.c: Don't declare xmalloc explicitly.
65377         Instead, include "xalloc.h".
65378         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
65379         xrealloc, and xcalloc return values.
65380         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
65381         Improve comment.
65382         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
65383
65384 2003-06-07  Bruno Haible  <bruno@clisp.org>
65385
65386         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
65387         avoid AC_CONFIG_LINKS.
65388         * modules/fnmatch (Makefile.am): Use explicit creation rule for
65389         fnmatch.h, to avoid AC_CONFIG_LINKS.
65390         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
65391
65392 2003-06-07  Bruno Haible  <bruno@clisp.org>
65393
65394         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
65395         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
65396         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65397         directory.
65398         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
65399         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65400         directory.
65401
65402 2003-06-06  Jim Meyering  <jim@meyering.net>
65403
65404         Merge from coreutils.
65405         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
65406         Consolidate declarations and initializations of *_base* locals.
65407
65408         Merge from coreutils.
65409         This avoids a core dump on systems without GNU putenv,
65410         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
65411         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
65412         (unsetenv): New static function, from GNU libc.
65413         (rpl_putenv): Use it.
65414
65415         * lib/modechange.c: Remove trailing blanks.
65416
65417         Merge from coreutils.
65418         * lib/fsusage.c: Remove declaration of statfs.
65419         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
65420
65421         * lib/posixtm.c: Include <stdbool.h> unconditionally.
65422
65423 2003-06-06  Jim Meyering  <jim@meyering.net>
65424
65425         * lib/stdbool_.h: Renamed from stdbool.h.in.
65426
65427 2003-06-06  Jim Meyering  <jim@meyering.net>
65428             Bruno Haible  <bruno@clisp.org>
65429
65430         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
65431         Adjust Makefile.am snippet not to redirect directly to target.
65432         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
65433
65434 2003-06-05  Paul Eggert  <eggert@twinsun.com>
65435
65436         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
65437         mismatch, look in future quarters as well as past.  This fixes a
65438         bug when processing fall-backwards gaps immediately after a long
65439         period of daylight-saving time.
65440
65441         * lib/mktime.c: Assume freestanding C89 or better.
65442         (HAVE_LIMITS_H): Remove.  Assume it's 1.
65443         (__P): Remove; not used.
65444         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
65445         (mktime, not_equal_tm, print_tm, check_result,
65446         main): Use prototypes.  Use const * where appropriate.
65447         (main): Fix typo in testing code that uncovered by above changes.
65448         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
65449
65450 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65451
65452         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
65453         locale.h, localeconv.  This merges changes from coreutils.
65454
65455         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
65456         It can be removed after the next Autoconf is released.
65457         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
65458         needed.
65459
65460 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65461
65462         * lib/mktime.c: Fix Debian bug 177940
65463         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
65464         (localtime_offset): Now long int, not time_t, because we want it
65465         to be guaranteed to be signed.  All uses changed.
65466         (__mktime_internal): If overflow would occur when adding offset,
65467         don't add it.
65468
65469         Merge 'human' changes from coreutils.  Rewrite to support
65470         locale-specific notations like thousands separators.
65471         * lib/human.c: Simplify authorship notice.
65472         Include human.h immediately after config.h.
65473         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
65474         <limits.h>: Do not include, since human.h does.
65475         (SIZE_MAX, UINTMAX_MAX): New macros.
65476         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
65477         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
65478         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
65479         (power_letter): Renamed from suffixes.
65480         (generate_suffix_backwards): Remove.
65481         (adjust_value): Now takes int style (because of human.h changes)
65482         and long double value (for greater precision on some platforms).
65483         (group_number): New function.
65484         (human_readable): Use it.  Use integer options, not enum.
65485         Put the options before the sizes in the arg list.
65486         Support all the new options.
65487         The old human_readable function has been removed;
65488         use inttostr.h instead.
65489         (human_readable, default_block_size, humblock):
65490         Use uintmax_t, not int, for block sizes.
65491         (human_readable_inexact, block_size_types): Remove.
65492         (block_size_opts): New constant.
65493         (human_options): Renamed from human_block_size, with new signature
65494         that allows block sizes up to UINTMAX_MAX.  All callers changed.
65495         * lib/human.h: Add copyright and authorship notice.
65496         Include <limits.h> and <stdbool.h> unconditionally.
65497         (PARAMS): Remove.  All uses removed.
65498         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
65499         (enum human_inexact_style): Remove tag; now a nameless enum.
65500         (human_floor, human_ceiling, human_round_to_even): Now have
65501         values 2, 0, 1 rather than -1, 1, 0.
65502         (human_group_digits, human_suppress_point_zero, human_autoscale,
65503         human_base_1024, human_SI, human_B): New constants.
65504         (human_readable_inexact, human_block_size): Remove.
65505         (human_readable): Size args are now uintmax_t, not int.
65506         (human_options): New decl.
65507
65508         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
65509         unnecessary now that we assume C89 or better.  This change
65510         imported from coreutils.
65511
65512         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65513         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
65514         in the 2003-05-30 sync from glibc.
65515
65516         .h files should stand alone, but we shouldn't include <sys/types.h>
65517         if we can get away with just <stddef.h>.
65518
65519         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
65520         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
65521         rather than <sys/types.h>, as we merely need size_t.
65522         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
65523         to get size_t.
65524         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
65525         Include <stdio.h>, to get FILE.
65526         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
65527         memcasecmp.h has included <stddef.h> and all we need is size_t.
65528         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
65529         our interface, instead of including <sys/types.h>
65530
65531 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65532
65533         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
65534         now, as glibc mktime is buggy on non-glibc systems.
65535
65536 2003-06-03  Karl Berry  <karl@gnu.org>
65537
65538         * config/config.sub: update from prep.
65539
65540 2003-06-02  Paul Eggert  <eggert@twinsun.com>
65541
65542         [from coreutils]
65543         Fix some minor time-related bugs with POSIX time arguments.
65544         Some valid time stamps were being rejected (notably -1, and
65545         time stamps before 1900 on 64-bit hosts).  And some invalid
65546         time stamps were being accepted, e.g. September 31.
65547
65548         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
65549         that we can return (time_t) -1 successfully.
65550         * lib/posixtm.c: Likewise.
65551         [HAVE_STDBOOL_H]: Include <stdbool.h>.
65552         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
65553         (t): Remove static var.
65554         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
65555         of static var.  All uses changed.
65556         (year): Do not reject years before 1900; they can occur with
65557         64-bit time_t.
65558         (posix_time_parse): Do not check for out-of-range components;
65559         that is now the caller's responsibility, since our checks were
65560         only approximations.
65561         (posixtime): Use mktime to check for out-of-range components,
65562         since it knows them exactly.
65563         If mktime returns (time_t) -1, check whether an error actually occurred
65564         by invoking localtime on -1.
65565         (main) [TEST_POSIXTIME]: Check for input data errors, and report
65566         posixtime failures better.
65567         Improve the test data (in comments only).
65568
65569 2003-06-02  Karl Berry  <karl@gnu.org>
65570
65571         * config/mkinstalldirs (version): new variable.
65572         (--version): new option.
65573         (usage): improve message.
65574
65575 2003-05-30  Karl Berry  <karl@gnu.org>
65576
65577         * lib/mktime.c: update from libc.
65578
65579 2003-05-30  Bruno Haible  <bruno@clisp.org>
65580
65581         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
65582         * config/config.rpath: Upgrade to gettext-0.12.1.
65583
65584 2003-05-30  Bruno Haible  <bruno@clisp.org>
65585
65586         * m4/gettext.m4: Upgrade to gettext-0.12.1.
65587         * m4/nls.m4: New file, from gettext-0.12.1.
65588         * m4/po.m4: New file, from gettext-0.12.1.
65589         * m4/progtest.m4: Upgrade to gettext-0.12.1.
65590
65591 2003-05-30  Bruno Haible  <bruno@clisp.org>
65592
65593         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
65594         * lib/localcharset.h: Likewise.
65595         * lib/localcharset.c: Likewise.
65596
65597 2003-05-29  Karl Berry  <karl@gnu.org>
65598
65599         * config/config.rpath: update from gettext.
65600
65601 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65602
65603         Assume the headers required for C89 freestanding compilers.
65604         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
65605         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
65606         * m4/human.m4 (gl_HUMAN): Likewise.
65607         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
65608         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
65609         * m4/userspec.m4 (gl_USERSPEC): Likewise.
65610         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
65611         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65612         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
65613
65614 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65615
65616         Assume the headers required for C89 freestanding compilers.
65617         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
65618         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
65619         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
65620         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
65621         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
65622         define, since <limits.h> is guaranteed to do that.
65623         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
65624         * lib/exclude.c: Include <stdbool.h> unconditionally.
65625         * lib/tempname.c: Include <stddef.h> unconditionally.
65626         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
65627         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
65628         <stddef.h> does that.
65629         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
65630         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
65631         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
65632         needed.
65633         * lib/xstrtol.c: Likewise.
65634         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
65635         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
65636
65637         * lib/addext.c (addext): Use assignment rather than cast, to avoid
65638         warnings on some platforms.
65639
65640         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65641         arbitrarily.
65642
65643 2003-05-26  Jim Meyering  <jim@meyering.net>
65644
65645         Merge in a change from coreutils:
65646         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
65647         that is guaranteed to be `no'.  Use `no_such_member' to indicate
65648         that condition, rather than `-1' which is slightly misleading.
65649         Change the name of the cache variable to have the gl_ prefix.
65650         Prompted by a patch from Richard Dawe for DJGPP.
65651
65652 2003-05-24  Karl Berry  <karl@gnu.org>
65653
65654         * config/config.guess: update from prep.
65655
65656 2003-05-22  Karl Berry  <karl@gnu.org>
65657
65658         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
65659
65660 2003-05-20  Karl Berry  <karl@gnu.org>
65661
65662         * config/config.guess: update from prep.
65663
65664 2003-05-18  Karl Berry  <karl@gnu.org>
65665
65666         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
65667         might actually be set by the user.
65668
65669         * config/depcomp, install-sh, mdate-sh: update from automake.
65670
65671 2003-05-17  Bruno Haible  <bruno@clisp.org>
65672
65673         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
65674         invalid expansion for AC_EGREP_CPP.
65675         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
65676         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
65677         Suggested by Akim Demaille <akim@epita.fr> in
65678         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
65679
65680 2003-05-12  Jim Meyering  <jim@meyering.net>
65681
65682         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
65683         the space-padded-by-default conversion specifiers, %e, %k, %l.
65684
65685 2003-05-12  Bruno Haible  <bruno@clisp.org>
65686
65687         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
65688         the string is longer than 4 KB.
65689
65690 2003-05-11  Karl Berry  <karl@gnu.org>
65691
65692         * config/config.{guess,sub}: update from prep.
65693
65694 2003-05-09  Bruno Haible  <bruno@clisp.org>
65695
65696         * modules/error: Add m4/strerror_r.m4 to file list.
65697
65698 2003-05-03  Bruno Haible  <bruno@clisp.org>
65699
65700         Upgrade to Unicode-4.0.
65701         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
65702         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
65703         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
65704         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
65705         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
65706         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
65707         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
65708         Change width of U+E0100..U+E01EF from 1 to 0.
65709
65710 2003-04-25  Jim Meyering  <jim@meyering.net>
65711
65712         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
65713         of type size_t, not int.
65714
65715 2003-04-25  Bruno Haible  <bruno@clisp.org>
65716
65717         * lib/copy-file.c: Include <stddef.h>, for size_t.
65718
65719 2003-04-21  Paul Eggert  <eggert@twinsun.com>
65720
65721         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
65722         code which expansion is under static control.  Patch imported from
65723         Akim Demaille's patch to Bison; see
65724         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
65725
65726 2003-04-14  Bruno Haible  <bruno@clisp.org>
65727
65728         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
65729
65730 2003-04-11  Jim Meyering  <jim@meyering.net>
65731
65732         Merge changes from Coreutils.
65733
65734         2003-03-22  Jim Meyering  <jim@meyering.net>
65735
65736         * lib/strftime.c (widen): Cast alloca return value to proper type.
65737
65738         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
65739
65740         From GNU libc.
65741         * lib/strftime.c (my_strftime): Handle very large width
65742         specifications for numeric values correctly.  Improve checks for
65743         overflow.
65744
65745         2003-01-19  Jim Meyering  <jim@meyering.net>
65746
65747         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
65748         definitions.
65749         (nl_get_alt_digit) [! defined my_strftime]: Define.
65750         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
65751         _nl_get_alt_digit and _nl_get_walt_digit.
65752
65753         * lib/strftime.c (my_strftime): Merge in locale-related changes from
65754         libc. These changes have no effect outside of _LIBC.
65755
65756 2003-04-10  Bruno Haible  <bruno@clisp.org>
65757
65758         * modules/findprog: New file.
65759         * MODULES.html.sh (func_all_modules): Add it.
65760
65761 2003-04-10  Bruno Haible  <bruno@clisp.org>
65762
65763         * m4/findprog.m4: New file.
65764         * m4/eaccess.m4: New file.
65765
65766 2003-04-10  Bruno Haible  <bruno@clisp.org>
65767
65768         * lib/findprog.h: New file, from GNU gettext.
65769         * lib/findprog.c: New file, from GNU gettext.
65770
65771 2003-04-05  Jim Meyering  <jim@meyering.net>
65772
65773         Merge changes from Coreutils.
65774
65775         * lib/exclude.h (PARAMS): Remove definition and uses.
65776         * lib/exclude.c: Remove uses of `PARAMS'.
65777
65778         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
65779         Add test-cases for DOS filenames. Declare program_name.
65780         (main): Set up program_name.  Patch by Rich Dawe.
65781
65782         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65783         error from mntctl.
65784         Use mntctl's return value to drive the entry-processing loop, since
65785         we can't rely on the value of the vmt_length member in the last
65786         entry.  On some systems doing so could result in exhausting
65787         virtual memory.  Based in part on a patch from Mike Jetzer.
65788
65789 2003-04-04  Bruno Haible  <bruno@clisp.org>
65790
65791         * modules/linebreak: New file.
65792         * MODULES.html.sh (func_all_modules): Add it.
65793
65794 2003-04-04  Bruno Haible  <bruno@clisp.org>
65795
65796         * m4/linebreak.m4: New file.
65797
65798 2003-04-04  Bruno Haible  <bruno@clisp.org>
65799
65800         * lib/linebreak.h: New file, from GNU gettext.
65801         * lib/linebreak.c: New file, from GNU gettext with slight
65802         modifications.
65803         * lib/lbrkprop.h: New file, from GNU gettext.
65804
65805 2003-04-03  Bruno Haible  <bruno@clisp.org>
65806
65807         * modules/utf8-ucs4: New file.
65808         * modules/utf16-ucs4: New file.
65809         * modules/ucs4-utf8: New file.
65810         * modules/ucs4-utf16: New file.
65811         * MODULES.html.sh (func_all_modules): Add them.
65812
65813 2003-04-03  Bruno Haible  <bruno@clisp.org>
65814
65815         * m4/utf-ucs4.m4: New file.
65816         * m4/ucs4-utf.m4: New file.
65817
65818 2003-04-03  Bruno Haible  <bruno@clisp.org>
65819
65820         * lib/utf8-ucs4.h: New file, from GNU gettext.
65821         * lib/utf16-ucs4.h: New file, from GNU gettext.
65822         * lib/ucs4-utf8.h: New file, from GNU gettext.
65823         * lib/ucs4-utf16.h: New file, from GNU gettext.
65824
65825 2003-04-02  Bruno Haible  <bruno@clisp.org>
65826
65827         * modules/binary-io: New file.
65828         * MODULES.html.sh (func_all_modules): Add it.
65829
65830 2003-04-02  Bruno Haible  <bruno@clisp.org>
65831
65832         * lib/binary-io.h: New file, from GNU gettext.
65833
65834 2003-04-01  Bruno Haible  <bruno@clisp.org>
65835
65836         * modules/pathname: New file.
65837         * MODULES.html.sh (func_all_modules): Add it.
65838
65839 2003-04-01  Bruno Haible  <bruno@clisp.org>
65840
65841         * lib/pathname.h: New file, from GNU gettext.
65842         * lib/concatpath.c: New file, from GNU gettext.
65843
65844 2003-03-30  Bruno Haible  <bruno@clisp.org>
65845
65846         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
65847
65848 2003-03-30  Bruno Haible  <bruno@clisp.org>
65849
65850         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
65851         function chown() doesn't exist.
65852
65853 2003-03-28  Bruno Haible  <bruno@clisp.org>
65854
65855         * modules/copy-file: New file.
65856         * MODULES.html.sh (func_all_modules): Add it.
65857
65858 2003-03-28  Bruno Haible  <bruno@clisp.org>
65859
65860         * m4/copy-file.m4: New file.
65861
65862 2003-03-28  Bruno Haible  <bruno@clisp.org>
65863
65864         * lib/copy-file.h: New file, from GNU gettext.
65865         * lib/copy-file.c: New file, from GNU gettext.
65866
65867 2003-03-18  Jim Meyering  <jim@meyering.net>
65868
65869         * lib/quote.c (quote_n): Fix typo in comment.
65870
65871 2003-03-18  Bruno Haible  <bruno@clisp.org>
65872
65873         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
65874         checking.
65875         * m4/onceonly_2_57.m4: Likewise.
65876
65877 2003-03-17  Bruno Haible  <bruno@clisp.org>
65878
65879         * m4/onceonly.m4: Require autoconf 2.54 or newer.
65880         (m4_quote): Remove macro.
65881         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
65882
65883 2003-03-14  Jim Meyering  <jim@meyering.net>
65884
65885         Merge changes from Coreutils.
65886         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
65887         to be const, in order to avoid warnings.
65888         (obstack_room): Likewise.
65889         (obstack_empty_p): Likewise.
65890
65891 2003-03-14  Bruno Haible  <bruno@clisp.org>
65892
65893         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
65894         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
65895
65896 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65897
65898         Merge changes from Bison.
65899         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
65900         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
65901         when compiling Bison 1.875's `bitset bset = obstack_alloc
65902         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
65903         * lib/hash.c: Include <stdbool.h> unconditionally.
65904
65905 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65906
65907         * m4/onceonly.m4 (m4_quote): New macro.
65908         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
65909         Quote AC_FOREACH variable-expansions properly.
65910
65911 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65912
65913         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
65914
65915 2003-03-09  Paul Eggert  <eggert@twinsun.com>
65916
65917         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
65918         Reported by Bruce Becker; see:
65919         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
65920
65921 2003-03-03  Paul Eggert  <eggert@twinsun.com>
65922             Bruno Haible  <bruno@clisp.org>
65923
65924         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
65925         Reported by John Hughes, see
65926         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
65927
65928 2003-02-20  Bruno Haible  <bruno@clisp.org>
65929
65930         * MODULES.html.sh (func_all_modules): Add poll.
65931
65932 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65933
65934         * modules/poll: New file.
65935
65936 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65937
65938         * lib/poll_.h: New file.
65939         * lib/poll.c: New file.
65940
65941 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65942
65943         * m4/poll.m4: New file.
65944
65945 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65946
65947         * modules/mathl: New file.
65948
65949 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65950
65951         * lib/mathl.h: New file.
65952         * lib/acosl.c: New file.
65953         * lib/asinl.c: New file.
65954         * lib/atanl.c: New file.
65955         * lib/ceill.c: New file.
65956         * lib/cosl.c: New file.
65957         * lib/expl.c: New file.
65958         * lib/floorl.c: New file.
65959         * lib/frexpl.c: New file.
65960         * lib/ldexpl.c: New file.
65961         * lib/logl.c: New file.
65962         * lib/sincosl.c: New file.
65963         * lib/sinl.c: New file.
65964         * lib/sqrtl.c: New file.
65965         * lib/tanl.c: New file.
65966         * lib/trigl.c: New file.
65967         * lib/trigl.h: New file.
65968
65969 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65970
65971         * m4/mathl.m4: New file.
65972
65973 2003-02-18  Bruno Haible  <bruno@clisp.org>
65974
65975         * MODULES.html.sh (func_all_modules): Add mathl.
65976
65977 2003-02-17  Bruno Haible  <bruno@clisp.org>
65978
65979         * modules/mkdtemp: New module.
65980         * MODULES.html.sh (func_all_modules): Add it.
65981
65982 2003-02-17  Bruno Haible  <bruno@clisp.org>
65983
65984         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
65985
65986 2003-02-17  Bruno Haible  <bruno@clisp.org>
65987
65988         * lib/mkdtemp.h: New file, from GNU gettext.
65989         * lib/mkdtemp.c: New file, from GNU gettext.
65990
65991 2003-02-02  Jim Meyering  <jim@meyering.net>
65992
65993         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
65994         e.g. glibc-2.2.93.
65995
65996 2003-01-31  Bruno Haible  <bruno@clisp.org>
65997
65998         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
65999         'rpl_rename'.
66000         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
66001         'rpl_strnlen'.
66002         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
66003         'rpl_strtod'.
66004         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
66005         'rpl_utime'.
66006
66007 2003-01-31  Bruno Haible  <bruno@clisp.org>
66008
66009         * lib/rename.c: #undef rename before defining rpl_rename.
66010         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
66011
66012 2003-01-30  Bruno Haible  <bruno@clisp.org>
66013
66014         * modules/vasnprintf, modules/vasprintf: New modules.
66015         * MODULES.html.sh (func_all_modules): Add them.
66016
66017 2003-01-30  Bruno Haible  <bruno@clisp.org>
66018
66019         * m4/signed.m4: New file, from GNU gettext.
66020         * m4/longdouble.m4: New file, from GNU gettext.
66021         * m4/wchar_t.m4: New file, from GNU gettext.
66022         * m4/wint_t.m4: New file, from GNU gettext.
66023         * m4/vasnprintf.m4: New file.
66024         * m4/vasprintf.m4: New file.
66025
66026 2003-01-30  Bruno Haible  <bruno@clisp.org>
66027
66028         * lib/printf-args.h: New file, from GNU gettext.
66029         * lib/printf-args.c: New file, from GNU gettext.
66030         * lib/printf-parse.h: New file, from GNU gettext.
66031         * lib/printf-parse.c: New file, from GNU gettext.
66032         * lib/vasnprintf.h: New file, from GNU gettext.
66033         * lib/vasnprintf.c: New file, from GNU gettext.
66034         * lib/asnprintf.c: New file, from GNU gettext.
66035         * lib/vasprintf.h: New file, from GNU gettext with modifications.
66036         * lib/vasprintf.c: New file, from GNU gettext.
66037         * lib/asprintf.c: New file, from GNU gettext.
66038
66039 2003-01-29  Bruno Haible  <bruno@clisp.org>
66040
66041         * modules/stpncpy: New module.
66042         * MODULES.html.sh (func_all_modules): Add it.
66043
66044 2003-01-29  Bruno Haible  <bruno@clisp.org>
66045
66046         * m4/stpncpy.m4: New file.
66047
66048 2003-01-29  Bruno Haible  <bruno@clisp.org>
66049
66050         * lib/stpncpy.h: New file, from GNU gettext with modifications.
66051         * lib/stpncpy.c: New file, from GNU gettext with modifications.
66052
66053 2003-01-28  Bruno Haible  <bruno@clisp.org>
66054
66055         * modules/c-ctype: New module.
66056         * MODULES.html.sh (func_all_modules): Add it.
66057
66058 2003-01-28  Bruno Haible  <bruno@clisp.org>
66059
66060         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
66061         Paul Eggert.
66062         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
66063         Paul Eggert.
66064
66065 2003-01-27  Bruno Haible  <bruno@clisp.org>
66066
66067         * modules/xsetenv: New module.
66068         * MODULES.html.sh (func_all_modules): Add it.
66069
66070 2003-01-27  Bruno Haible  <bruno@clisp.org>
66071
66072         * lib/xsetenv.h: New file, from GNU gettext.
66073         * lib/xsetenv.c: New file, from GNU gettext.
66074
66075 2003-01-23  Jim Meyering  <jim@meyering.net>
66076
66077         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
66078         from working on systems without dirfd (at least Irix and OSF1/Tru64).
66079
66080 2003-01-23  Bruno Haible  <bruno@clisp.org>
66081
66082         * modules/minmax: New module.
66083         * MODULES.html.sh (func_all_modules): Add it.
66084
66085 2003-01-23  Bruno Haible  <bruno@clisp.org>
66086
66087         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
66088         Eggert.
66089
66090 2003-01-22  Bruno Haible  <bruno@clisp.org>
66091
66092         * modules/exit: New module.
66093         * MODULES.html.sh (func_all_modules): Add it.
66094
66095 2003-01-22  Bruno Haible  <bruno@clisp.org>
66096
66097         * lib/exit.h: New file, from GNU gettext.
66098
66099 2003-01-19  Bruno Haible  <bruno@clisp.org>
66100
66101         * gnulib-tool: Recognize option --extract-maintainer.
66102         (func_get_maintainer): New function.
66103         * modules/*: Add Maintainer entry.
66104
66105 2003-01-16  Jim Meyering  <jim@meyering.net>
66106
66107         * m4/regex.m4: The `regex' struct is both input and output.
66108         Initialize it before each use.  Patch by Tim Waugh.
66109
66110 2003-01-16  Bruno Haible  <bruno@clisp.org>
66111
66112         * MODULES.html.sh: Add a table of contents. Add the module name as
66113         leftmost column. Add hyperlinks.
66114
66115 2003-01-15  Bruno Haible  <bruno@clisp.org>
66116
66117         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
66118
66119 2003-01-15  Bruno Haible  <bruno@clisp.org>
66120
66121         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
66122         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
66123         suffix.
66124
66125 2003-01-15  Bruno Haible  <bruno@clisp.org>
66126
66127         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
66128
66129 2003-01-15  Bruno Haible  <bruno@clisp.org>
66130
66131         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
66132         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
66133
66134 2003-01-14  Jim Meyering  <jim@meyering.net>
66135
66136         * lib/same.c (same_name): Tweak a comment.
66137
66138 2003-01-14  Bruno Haible  <bruno@clisp.org>
66139
66140         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
66141         when a string comparison is sufficient.
66142
66143 2003-01-14  Bruno Haible  <bruno@clisp.org>
66144
66145         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
66146         'unsigned int'.
66147
66148 2003-01-14  Bruno Haible  <bruno@clisp.org>
66149
66150         * lib/hash-pjw.c: Add comment about low quality of this function.
66151
66152 2003-01-13  Bruno Haible  <bruno@clisp.org>
66153
66154         * modules/stpcpy: Distribute lib/stpcpy.h.
66155         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
66156
66157 2003-01-13  Bruno Haible  <bruno@clisp.org>
66158
66159         * modules/*: Add a description.
66160         * modules/strpbrk: Fix Makefile.am snippet.
66161         * modules/strtoimax: Fix dependencies.
66162         * modules/strtoumax: Likewise.
66163
66164 2003-01-13  Bruno Haible  <bruno@clisp.org>
66165
66166         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
66167         * modules/alloca (Makefile.am): All object files depend on alloca.h.
66168         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
66169
66170 2003-01-13  Bruno Haible  <bruno@clisp.org>
66171
66172         * gnulib-tool (func_create_testdir): Store config/* files in the main
66173         directory.
66174         * config.rpath: Move to ...
66175         * config/config.rpath: ... here.
66176         * modules/gettext: Contains config/config.rpath, not config.rpath.
66177         * modules/iconv: Likewise.
66178
66179 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66180
66181         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66182         to avoid collisions with libcurses and libreadline.
66183
66184         * m4/getstr.m4: Remove.
66185         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
66186
66187 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66188
66189         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66190         to avoid collisions with libcurses and libreadline.
66191
66192         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
66193         * lib/getstr.h, getstr.c: Remove.
66194         * lib/getline.c: Include "getline.h", to check interface.
66195         Move body of old getstr.c here: this defines MIN_CHUNK and
66196         declares getdelim2, which is renamed from getstr.
66197         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
66198
66199         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
66200         All uses changed.
66201         * lib/linebuffer.h: Likewise.
66202         (readline): Remove backward-compatibility macro.
66203
66204 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66205
66206         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66207         to avoid collisions with libcurses and libreadline.
66208         * getstr: Remove.
66209         * MODULES.html.sh: Remove getstr.
66210         * modules/getline: Depend on unlocked-io, not getstr.
66211
66212 2003-01-12  Jim Meyering  <jim@meyering.net>
66213
66214         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
66215
66216 2003-01-10  Bruno Haible  <bruno@clisp.org>
66217
66218         * modules/alloca: Change Makefile.am requirements. Simplify Include
66219         requirements. Add lib/alloca_.h to file list.
66220
66221 2003-01-10  Bruno Haible  <bruno@clisp.org>
66222
66223         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
66224
66225 2003-01-10  Bruno Haible  <bruno@clisp.org>
66226
66227         * lib/alloca_.h: New file.
66228         * lib/getdate.y: Unconditionally include alloca.h.
66229         * lib/makepath.c: Likewise.
66230         * lib/setenv.c: Likewise.
66231         * lib/userspec.c: Likewise.
66232
66233 2003-01-09  Karl Berry  <karl@gnu.org>
66234
66235         * MODULES.html.sh: include `dirname $0` in PATH, to find
66236         gnulib-tool.
66237
66238 2003-01-09  Bruno Haible  <bruno@clisp.org>
66239
66240         * modules/stdbool: Change configure.ac, Makefile.am requirements.
66241         Simplify Include requirements. Add lib/stdbool.h.in to file list.
66242
66243 2003-01-09  Bruno Haible  <bruno@clisp.org>
66244
66245         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
66246
66247 2003-01-09  Bruno Haible  <bruno@clisp.org>
66248
66249         * lib/stdbool.h.in: New file.
66250
66251 2003-01-09  Bruno Haible  <bruno@clisp.org>
66252
66253         * gnulib-tool (func_all_modules): Ignore files ending in ~.
66254         * MODULES.html.sh: Likewise.
66255
66256 2003-01-08  Jim Meyering  <jim@meyering.net>
66257
66258         * lib/full-write.c: Undefine and define-away `const' after inclusion
66259         of errno.h, not before.  Suggestion from Bruno Haible.
66260
66261 2003-01-08  Bruno Haible  <bruno@clisp.org>
66262
66263         * modules/full-read: Depend on full-write.
66264
66265 2003-01-08  Bruno Haible  <bruno@clisp.org>
66266
66267         * lib/safe-read.c: Include specification header first, to ensure its
66268         selfcontainedness.
66269         * lib/full-write.c: Likewise.
66270
66271 2003-01-07  Jim Meyering  <jim@meyering.net>
66272
66273         * lib/full-write.c: Rework so that it may serve to define full_read,
66274         too.
66275         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
66276
66277 2003-01-07  Bruno Haible  <bruno@clisp.org>
66278
66279         * lib/strtoimax.c: Include <stdint.h> as an alternative to
66280         <inttypes.h>.
66281         * lib/xstrtol.h: Likewise.
66282         * lib/xstrtoimax.c: Likewise.
66283         * lib/xstrtoumax.c: Likewise.
66284         * lib/human.h: Likewise.
66285
66286         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
66287         on systems that have <inttypes.h> but not <stdint.h>.
66288
66289 2003-01-07  Bruno Haible  <bruno@clisp.org>
66290
66291         * MODULES.html.sh: Add copyright notice.
66292         (missed_files): Omit CVS directory entries.
66293         (func_module): Make it work with sed-3.02.
66294         * MODULES.txt: Remove file.
66295
66296 2003-01-06  Jim Meyering  <jim@meyering.net>
66297
66298         * lib/version-etc.c: Update year in translatable copyright string.
66299
66300 2003-01-03  Karl Berry  <karl@gnu.org>
66301
66302         * config/config.{guess,sub}: update from prep.
66303
66304 2003-01-02  Karl Berry  <karl@gnu.org>
66305
66306         * doc/COPYING.DOC: belatedly updated to 1.2.
66307
66308 2003-01-01  Karl Berry  <karl@gnu.org>
66309
66310         * gnulib-tool (func_verify_module): report module name $module in
66311         error message, not $1.
66312         * gnulib-tool (create-testdir): don't complain if destdir couldn't
66313         be created, only if it doesn't exist.
66314         * gnulib-tool (last_checkin_date): don't expand the $Date here.
66315
66316 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66317
66318         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
66319
66320 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66321
66322         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
66323         memcmp if strcoll doesn't work.
66324
66325 2002-12-31  Bruno Haible  <bruno@clisp.org>
66326
66327         * lib/utime.c (utime_null): No need to call ftruncate if the file was
66328         nonempty.
66329
66330 2002-12-31  Bruno Haible  <bruno@clisp.org>
66331
66332         * lib/memcoll.c (STRCOLL): New macro.
66333         (memcoll): Use it.
66334
66335 2002-12-31  Bruno Haible  <bruno@clisp.org>
66336
66337         * lib/localcharset.h: New file.
66338         * lib/localcharset.c: Include it.
66339         * lib/unicodeio.c: Likewise.
66340
66341 2002-12-31  Bruno Haible  <bruno@clisp.org>
66342
66343         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
66344         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
66345
66346 2002-12-31  Bruno Haible  <bruno@clisp.org>
66347
66348         * lib/getline.h: Include <stddef.h>, for size_t.
66349
66350         * lib/unicodeio.h: Include <stddef.h>, for size_t.
66351         * lib/unicodeio.c: Don't include <stddef.h>.
66352
66353 2002-12-31  Bruno Haible  <bruno@clisp.org>
66354
66355         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
66356         HAVE_TM_ZONE.
66357
66358 2002-12-24  Karl Berry  <karl@gnu.org>
66359
66360         * config/config.guess: update from prep.
66361
66362 2002-12-24  Bruno Haible  <bruno@clisp.org>
66363
66364         General infrasructure.
66365         * m4/README: Rewritten.
66366         * m4/onceonly.m4: New file.
66367         * m4/onceonly_2_57.m4: New file.
66368
66369         Module atexit.
66370         * m4/atexit.m4: New file.
66371
66372         Module strtod.
66373         * m4/strtod.m4: New file.
66374
66375         Module strtol.
66376         * m4/strtol.m4: New file.
66377
66378         Module strtoul.
66379         * m4/strtoul.m4: New file.
66380
66381         Module memchr.
66382         * m4/memchr.m4: New file.
66383
66384         Module memcmp.
66385         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
66386         (jm_FUNC_MEMCMP): Invoke it.
66387
66388         Module memcpy.
66389         * m4/memcpy.m4: New file.
66390
66391         Module memmove.
66392         * m4/memmove.m4: New file.
66393
66394         Module memset.
66395         * m4/memset.m4: New file.
66396
66397         Module strcspn.
66398         * m4/strcspn.m4: New file.
66399
66400         Module strpbrk.
66401         * m4/strpbrk.m4: New file.
66402
66403         Module strstr.
66404         * m4/strstr.m4: New file.
66405
66406         Module strerror.
66407         * m4/strerror.m4: New file.
66408
66409         Module mktime.
66410         * m4/mktime.m4: Renamed from jm-mktime.m4.
66411         (gl_PREREQ_MKTIME): New macro.
66412         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
66413
66414         Module malloc.
66415         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
66416         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
66417         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
66418
66419         Module realloc.
66420         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
66421         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
66422         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
66423
66424         Module strftime.
66425         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
66426         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
66427         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
66428         gl_TM_GMTOFF.
66429         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
66430
66431         Module xalloc.
66432         * m4/xalloc.m4: New file.
66433
66434         Module alloca.
66435         * m4/alloca.m4: New file.
66436
66437         Module putenv.
66438         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
66439         (jm_FUNC_PUTENV): Invoke it.
66440
66441         Module setenv.
66442         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
66443         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
66444         when invoked twice.
66445         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
66446         gt_FUNC_SETENV.
66447
66448         Module memrchr.
66449         * m4/memrchr.m4: New file.
66450
66451         Module stpcpy.
66452         * m4/stpcpy.m4: New file.
66453
66454         Module strcase.
66455         * m4/strcase.m4: New file.
66456
66457         Module strdup.
66458         * m4/strdup.m4: New file.
66459
66460         Module strnlen.
66461         * m4/strnlen.m4: New file.
66462
66463         Module strndup.
66464         * m4/strndup.m4: New file.
66465
66466         Module xstrtod.
66467         * m4/xstrtod.m4: New file.
66468
66469         Module xstrtol.
66470         * m4/xstrtol.m4: New file.
66471
66472         Module getdate.
66473         * m4/getdate.m4: New file.
66474
66475         Module unlocked-io.
66476         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
66477         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
66478         * m4/jm-glibc-io.m4n: Remove file.
66479
66480         Module long-options.
66481         * m4/long-options.m4: New file.
66482
66483         Module md5.
66484         * m4/md5.m4: New file.
66485
66486         Module sha.
66487         * m4/sha.m4: New file.
66488
66489         Module getstr.
66490         * m4/getstr.m4: New file.
66491
66492         Module getline.
66493         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
66494         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
66495         <sys/types.h>, for size_t. Use the function name gnu_getline, not
66496         simply getline. Infoke gl_PREREQ_GETLINE.
66497
66498         Module obstack.
66499         * m4/obstack.m4: New file.
66500
66501         Module hash.
66502         * m4/hash.m4: New file.
66503
66504         Module readtokens.
66505         * m4/readtokens.m4: New file.
66506
66507         Module strverscmp.
66508         * m4/strverscmp.m4: New file.
66509
66510         Module stdbool.
66511         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
66512         OSF/1.
66513
66514         Module strtoll.
66515         * m4/strtoll.m4: New file.
66516
66517         Module strtoull.
66518         * m4/strtoull.m4: New file.
66519
66520         Module strtoimax.
66521         * m4/strtoimax.m4: New file.
66522
66523         Module strtoumax.
66524         * m4/strtoumax.m4: New file.
66525
66526         Module xstrtoimax.
66527         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
66528         jm_AC_PREREQ_XSTRTOIMAX.
66529         Moved the strtol prerequisites to strtol.m4.
66530         Moved the strtoll prerequisites to strtoll.m4.
66531         Moved the strtoimax prerequisites to strtoimax.m4.
66532
66533         Module xstrtoumax.
66534         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
66535         jm_AC_PREREQ_XSTRTOUMAX.
66536         Moved the strtoul prerequisites to strtoul.m4.
66537         Moved the strtoull prerequisites to strtoull.m4.
66538         Moved the strtoumax prerequisites to strtoumax.m4.
66539
66540         Module chown.
66541         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
66542         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
66543
66544         Module dup2.
66545         * m4/dup2.m4: New file.
66546
66547         Module ftruncate.
66548         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
66549         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
66550
66551         Module getgroups.
66552         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
66553         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
66554
66555         Module gettimeofday.
66556         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
66557         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
66558         gl_PREREQ_GETTIMEOFDAY.
66559
66560         Module mkdir.
66561         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
66562         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
66563
66564         Module mkstemp.
66565         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
66566         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
66567         jm_AC_TYPE_UINTMAX_T.
66568         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
66569
66570         Module stat.
66571         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
66572         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
66573
66574         Module lstat.
66575         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
66576         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
66577
66578         Module timespec.
66579         * m4/timespec.m4 (gl_TIMESPEC): New macro.
66580         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
66581         * m4/st_mtim.m4: Indentation.
66582
66583         Module nanosleep.
66584         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
66585         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
66586         gl_PREREQ_NANOSLEEP.
66587
66588         Module regex.
66589         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
66590         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
66591         (gl_REGEX): New macro.
66592
66593         Module rename.
66594         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
66595         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
66596
66597         Module rmdir.
66598         * m4/rmdir.m4: New file.
66599
66600         Module utime.
66601         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
66602         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
66603         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
66604
66605         Module dirname.
66606         * m4/dirname.m4: New file.
66607
66608         Module getopt.
66609         * m4/getopt.m4: New file.
66610
66611         Module unistd-safer.
66612         * m4/unistd-safer.m4: New file.
66613
66614         Module fnmatch.
66615         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
66616         declaration.
66617         (gl_PREREQ_FNMATCH_EXTRA): New macro.
66618         (gl_FUNC_FNMATCH_POSIX): New macro.
66619         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
66620         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
66621         simply fnmatch.
66622
66623         Module exclude.
66624         * m4/exclude.m4: New file.
66625
66626         Module human.
66627         * m4/human.m4: New file.
66628
66629         Module acl.
66630         * m4/acl.m4: Nop.
66631
66632         Module backupfile.
66633         * m4/backupfile.m4: New file.
66634         * m4/d-ino.m4: Indentation.
66635
66636         Module fsusage.
66637         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
66638         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
66639         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
66640
66641         Module dirfd.
66642         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
66643         requirements.
66644
66645         Module euidaccess.
66646         * m4/euidaccess.m4: New file.
66647
66648         Module file-type.
66649         * m4/file-type.m4: New file.
66650
66651         Module fileblocks.
66652         * m4/fileblocks.m4: New file.
66653
66654         Module filemode.
66655         * m4/filemode.m4: New file.
66656
66657         Module isdir.
66658         * m4/isdir.m4: New file.
66659
66660         Module lchown.
66661         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
66662         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
66663
66664         Module makepath.
66665         * m4/makepath.m4: New file.
66666
66667         Module modechange.
66668         * m4/modechange.m4: New file.
66669
66670         Module mountlist.
66671         * m4/mountlist.m4: New file.
66672         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
66673         Indentation.
66674
66675         Module path-concat.
66676         * m4/path-concat.m4: New file.
66677
66678         Module pathmax.
66679         * m4/pathmax.m4: New file.
66680
66681         Module same.
66682         * m4/same.m4: New file.
66683
66684         Module save-cwd.
66685         * m4/save-cwd.m4: New file.
66686
66687         Module savedir.
66688         * m4/savedir.m4: New file.
66689
66690         Module xgetcwd.
66691         * m4/xgetcwd.m4: New file.
66692         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
66693
66694         Module xreadlink.
66695         * m4/xreadlink.m4: New file.
66696
66697         Module safe-read.
66698         * m4/safe-read.m4: New file.
66699
66700         Module safe-write.
66701         * m4/safe-write.m4: New file.
66702
66703         Module closeout.
66704         * m4/closeout.m4: New file.
66705
66706         Module stdio-safer.
66707         * m4/stdio-safer.m4: New file.
66708
66709         Module getpass.
66710         * m4/getpass.m4: New file.
66711
66712         Module getugroups.
66713         * m4/getugroups.m4: New file.
66714
66715         Module group-member.
66716         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
66717         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
66718
66719         Module idcache.
66720         * m4/idcache.m4: New file.
66721
66722         Module userspec.
66723         * m4/userspec.m4: New file.
66724
66725         Module gettime.
66726         * m4/clock_time.m4: New file.
66727         * m4/gettime.m4: New file.
66728
66729         Module settime.
66730         * m4/settime.m4: New file.
66731
66732         Module posixtm.
66733         * m4/posixtm.m4: New file.
66734
66735         Module gethostname.
66736         * m4/gethostname.m4: New file.
66737
66738         Module canon-host.
66739         * m4/canon-host.m4: New file.
66740
66741         Module gettext.
66742         * m4/codeset.m4: New file, from gettext-0.11.5.
66743         * m4/gettext.m4: New file, from gettext-0.11.5.
66744         * m4/glibc21.m4: New file, from gettext-0.11.5.
66745         * m4/iconv.m4: New file, from gettext-0.11.5.
66746         * m4/intdiv0.m4: New file, from gettext-0.11.5.
66747         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
66748         * m4/inttypes.m4: New file, from gettext-0.11.5.
66749         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
66750         * m4/isc-posix.m4: New file, from gettext-0.11.5.
66751         * m4/lcmessage.m4: New file, from gettext-0.11.5.
66752         * m4/lib-ld.m4: New file, from gettext-0.11.5.
66753         * m4/lib-link.m4: New file, from gettext-0.11.5.
66754         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
66755         * m4/progtest.m4: New file, from gettext-0.11.5.
66756         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
66757         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
66758         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
66759
66760         Module localcharset.
66761         * m4/localcharset.m4: New file.
66762
66763         Module hard-locale.
66764         * m4/hard-locale.m4: New file.
66765
66766         Module mbswidth.
66767         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
66768         onceonly macros.
66769         * m4/mbrtowc.m4: Add comment.
66770
66771         Module memcasecmp.
66772         * m4/memcasecmp.m4: New file.
66773
66774         Module memcoll.
66775         * m4/memcoll.m4: New file.
66776
66777         Module unicodeio.
66778         * m4/unicodeio.m4: New file.
66779
66780         Module rpmatch.
66781         * m4/rpmatch.m4: New file.
66782
66783         Module yesno.
66784         * m4/yesno.m4: New file.
66785
66786         Module exitfail.
66787         * m4/exitfail.m4: New file.
66788
66789         Module c-stack.
66790         * m4/c-stack.m4 (gl_C_STACK): New macro.
66791         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
66792
66793         Module error.
66794         * m4/error.m4 (gl_ERROR): New macro.
66795         (jm_PREREQ_ERROR): Use onceonly macros.
66796
66797         Module fatal.
66798         * m4/fatal.m4: New file.
66799
66800         Module getloadavg.
66801         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
66802         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
66803
66804         Module getpagesize.
66805         * m4/getpagesize.m4: New file.
66806
66807         Module getusershell.
66808         * m4/getusershell.m4: New file.
66809
66810         Module physmem.
66811         * m4/physmem.m4: New file.
66812
66813         Module posixver.
66814         * m4/posixver.m4: New file.
66815
66816         Module quotearg.
66817         * m4/quotearg.m4: New file.
66818
66819         Module quote.
66820         * m4/quote.m4: New file.
66821
66822         Module readutmp.
66823         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
66824
66825         Module sig2str.
66826         * m4/sig2str.m4: New file.
66827
66828         Other.
66829         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
66830         ulonglong.m4.
66831         * m4/intmax_t.m4: New file.
66832         * m4/d-type.m4: Indentation.
66833         * m4/jm-macros.m4: Update.
66834         * m4/prereq.m4 (jm_PREREQ): Update.
66835         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
66836         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
66837         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
66838         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
66839         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
66840         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
66841         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
66842         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
66843         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
66844         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
66845         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
66846         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
66847         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
66848         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
66849         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
66850         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
66851         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
66852         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
66853         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
66854
66855 2002-12-24  Bruno Haible  <bruno@clisp.org>
66856
66857         * MODULES.txt: Update according to m4/ changes.
66858
66859         Module gettext.
66860         * config.rpath: New file, from gettext-0.11.5.
66861
66862         * modules/*: New module descriptions.
66863         * gnulib-tool: New file.
66864         * MODULES.html.sh: New file.
66865
66866 2002-12-21  Karl Berry  <karl@gnu.org>
66867
66868         * doc/fdl.texi: update to version 1.2.
66869
66870 2002-12-19  Karl Berry  <karl@gnu.org>
66871
66872         * config/config.guess: update from prep.
66873
66874 2002-12-18  Bruno Haible  <bruno@clisp.org>
66875
66876         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
66877         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
66878
66879 2002-12-17  Bruno Haible  <bruno@clisp.org>
66880
66881         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
66882         stdlib.h, string.h.
66883
66884 2002-12-17  Bruno Haible  <bruno@clisp.org>
66885
66886         * lib/canon-host.c (strdup): Remove unused declaration.
66887
66888         * lib/fsusage.c: Include full_read.h.
66889         (get_fs_usage): Use full_read instead of safe_read.
66890
66891         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
66892
66893 2002-12-12  Karl Berry  <karl@gnu.org>
66894
66895         * config/config.guess: update from prep.
66896
66897 2002-12-11  Bruno Haible  <bruno@clisp.org>
66898
66899         * m4/setenv.m4: New file, from gettext-0.11.5.
66900
66901 2002-12-11  Bruno Haible  <bruno@clisp.org>
66902
66903         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
66904         not unsetenv().
66905         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
66906         modifications:
66907
66908         2002-12-11  Bruno Haible  <bruno@clisp.org>
66909
66910                 * setenv.c (alloca): Fall back to malloc.
66911                 (freea): New macro.
66912                 (setenv): Use freea() to free memory allocated with alloca().
66913
66914         2002-11-13  Bruno Haible  <bruno@clisp.org>
66915
66916                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
66917                 function declarations.
66918                 * unsetenv.c (unsetenv): Likewise.
66919
66920         2002-03-04  Bruno Haible  <bruno@clisp.org>
66921
66922                 Portability to AIX 4.3.3.
66923                 * unsetenv.c: New file, extracted from setenv.c.
66924                 * setenv.c: Move the unsetenv() function to unsetenv.c.
66925
66926         2001-12-20  Bruno Haible  <bruno@clisp.org>
66927
66928                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
66929                 use malloc instead. For SunOS 4.
66930
66931         2001-12-11  Bruno Haible  <bruno@clisp.org>
66932
66933                 * setenv.c: Declare alloca.
66934                 (compar_fn_t): New typedef.
66935                 (KNOWN_VALUE, STORE_VALUE): Use it.
66936
66937         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
66938         setenv.h.
66939
66940 2002-12-10  Paul Eggert  <eggert@twinsun.com>
66941
66942         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
66943         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
66944         Choose values that are less likely to collide with system fnmatch
66945         options.
66946         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
66947         defined (e.g., a pure POSIX system).
66948         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
66949         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
66950
66951 2002-12-06  Paul Eggert  <eggert@twinsun.com>
66952
66953         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
66954         a pain in practice to deal with generated m4 files.  This change
66955         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
66956
66957         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
66958         and jm-glibc-io.m4, as they are no longer a special case.
66959         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
66960         kludge and the auto-generation stuff.  Check only whether the
66961         functions are declared, not whether they exist, since older hosts
66962         that don't declare the functions can't use the optimization anyway.
66963
66964 2002-12-06  Jim Meyering  <jim@meyering.net>
66965
66966         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
66967
66968         Merge in changes from libc's misc/error.c, in preparation
66969         for the merge of gnulib's changes back into libc.
66970
66971         * lib/error.c (_): Define only if not already defined.
66972         Move definition to follow all #include directives.
66973         Include unlocked-io.h only if !_LIBC.
66974         [_LIBC]: Include <libio/libioP.h>.
66975         [USE_IN_LIBIO]: Include <libio/iolibio.h>
66976         (fflush): Tweak definition to use INTUSE.
66977         (putc): Define.
66978
66979 2002-12-05  Paul Eggert  <eggert@twinsun.com>
66980
66981         * lib/alloca.c [defined emacs]: Include "lisp.h".
66982         (xalloc_die) [defined emacs]: New macro.
66983         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
66984         [! defined emacs]: Include <xalloc.h>.
66985         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
66986         (pointer): Typedef to POINTER_TYPE *.
66987         (malloc): Remove decl; we now always use xmalloc.
66988         (alloca): Use old-style definition, since Emacs needs this.
66989         Check for arithmetic overflow when computing combined size.
66990
66991 2002-12-04  Paul Eggert  <eggert@twinsun.com>
66992
66993         Do not generate unlocked-io.h automatically, since it's easier to
66994         maintain it by hand.
66995
66996         * lib/unlocked-io.h: New file, from GNU diffutils,
66997         but with proper copyright notice and attribution.
66998         * lib/gen-uio: Remove.
66999         * lib/Makefile.am: Add copyright notice.
67000         (libfetish_a_SOURCES): Add unlocked-io.h.
67001         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
67002         (DISTCLEANFILES, io_functions): Remove macros.
67003         (EXTRA_DIST): Remove gen_uio.
67004         (unlocked-io.h): Remove rule.
67005
67006 2002-12-04  Jim Meyering  <jim@meyering.net>
67007
67008         Reflect the fact that stat.c and lstat.c are no longer generated.
67009         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
67010         (DISTCLEANFILES): Likewise.
67011         (EXTRA_DIST): Likewise.
67012         (all_local): Don't depend on stat.c or lstat.c.
67013         (stat.c, lstat.c): Remove rules.
67014         (EXTRA_DIST): Remove xstat.in.
67015
67016         * lib/xstat.in: Remove file.  Contents moved into stat.c.
67017         * lib/stat.c: New file.  Contents mostly from xstat.in.
67018         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
67019         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
67020
67021         * lib/safe-read.c: Rework so that it may serve to define safe_write,
67022         too.
67023         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
67024
67025 2002-12-03  Jim Meyering  <jim@meyering.net>
67026
67027         * lib/safe-read.c, safe-write.c: Change variable names and comments,
67028         but not semantics, to minimize the differences between these two files.
67029         (safe_read): Change comment to mention SAFE_READ_ERROR.
67030
67031         * lib/safe-read.c (IS_EINTR): Define.
67032         (safe_read): Use IS_EINTR in place of in-function cpp directives.
67033
67034 2002-12-02  Jim Meyering  <jim@meyering.net>
67035
67036         * lib/safe-read.c (EINTR): Define.
67037         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
67038         (INT_MAX): Provide fallback.
67039         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
67040
67041         * lib/safe-read.h (SAFE_READ_ERROR): Define.
67042
67043 2002-12-02  Bruno Haible  <bruno@clisp.org>
67044
67045         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
67046         Define, taken from safe-read.c.
67047         (INT_MAX): Provide fallback.
67048         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
67049         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
67050
67051         * lib/safe-read.c (EINTR): Remove definition.
67052         (safe_read): Don't use EINTR if it is absent.
67053
67054 2002-12-01  Jim Meyering  <jim@meyering.net>
67055
67056         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
67057         zero.
67058         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
67059
67060 2002-11-27  Paul Eggert  <eggert@twinsun.com>
67061
67062         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
67063         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
67064         with `if (! (value < limit)) abort ();', for readability.
67065
67066 2002-11-26  Karl Berry  <karl@gnu.org>
67067
67068         * lib/strdup.c: copy from libc again, with jim's ok.
67069         * lib/.cppi-disable: re-add strdup.c
67070
67071 2002-11-25  Karl Berry  <karl@gnu.org>
67072
67073         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
67074         instead of "strtol.c".
67075
67076 2002-11-25  Karl Berry  <karl@gnu.org>
67077
67078         * config/install-sh: update from automake for variable quoting, $0 in
67079         error msgs, etc.
67080
67081         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
67082         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
67083         entry.
67084
67085 2002-11-25  Jim Meyering  <jim@meyering.net>
67086
67087         * lib/mktime.c: Sync from libc, now that it has the latest fix.
67088
67089 2002-11-24  Karl Berry  <karl@gnu.org>
67090
67091         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
67092         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
67093
67094 2002-11-24  Jim Meyering  <jim@meyering.net>
67095
67096         Update from coreutils:
67097
67098         * lib/mktime.c: Merge in changes from libc.
67099
67100         Avoid a link-time failure on some Linux systems.
67101         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
67102         (otherwise).
67103         (__mon_yday): Declare with the STATIC attribute.
67104         (__mktime_internal): Likewise.
67105         Based on a report from Greg Schafer.
67106
67107 2002-11-23  Jim Meyering  <jim@meyering.net>
67108
67109         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
67110         Use `unsigned', not `int', as type of index.
67111
67112         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
67113
67114         * lib/fsusage.c: Remove unneeded parentheses around operands of
67115         `defined'.
67116
67117 2002-11-22  Paul Eggert  <eggert@twinsun.com>
67118
67119         * lib/quotearg.h: Allow multiple inclusion by surrounding with
67120         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
67121         so that we can be included first.
67122         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
67123         * lib/quotearg.c: Include quotearg.h immediately after config.h.
67124         No need to include stddef.h or sys/types.h any more.
67125         Surround local include files with "", not "<>".
67126         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
67127         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
67128         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
67129         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
67130         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
67131         (ISPRINT): Remove; no longer needed now that we assume C89.
67132
67133         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
67134         Preserve errno.
67135
67136         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
67137         quotearg_char): Use SIZE_MAX rather than
67138         (size_t) -1 when we are talking about "infinity".
67139
67140         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
67141
67142 2002-11-22  Paul Eggert  <eggert@twinsun.com>
67143
67144         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
67145         hint that one should use `if (! x) abort ();' rather than `assert
67146         (x);', and anyway it's one less thing to worry about configuring.
67147         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
67148         hash_rehash, hash_insert): Use abort rather than assert.
67149
67150 2002-11-22  Bruno Haible  <bruno@clisp.org>
67151
67152         * lib/safe-read.h: Assume C89. Add comments.
67153         (safe_read): Change return type to size_t.
67154         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
67155         byte counts > SSIZE_MAX correctly.
67156         * lib/safe-write.h: New file.
67157         * lib/safe-write.c: New file.
67158         * lib/full-read.h: New file.
67159         * lib/full-read.c: New file.
67160         * lib/full-write.h: Assume C89. Add comments.
67161         * lib/full-write.c: Include safe-write.h.
67162         (full_write): Rewritten to use safe_write.
67163         Suggested by Jim Meyering and Paul Eggert.
67164
67165 2002-11-21  Jim Meyering  <jim@meyering.net>
67166
67167         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
67168
67169         Merge in changes from the coreutils.
67170
67171         2002-09-25  Paul Eggert  <eggert@twinsun.com>
67172         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
67173         <stdint.h>.
67174         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
67175         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
67176         int.  Work more efficiently if X is the same width as uintmax_t.
67177         Do not compare X to -1, to avoid bogus compiler warning.
67178         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
67179         Don't assume that f_frsize and f_bsize are the same type.
67180
67181         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
67182         warning on FreeBSD.
67183
67184         * lib/makepath.c (make_path): Restore umask *before* creating the final
67185         component.
67186         (make_path): Minor reformatting.
67187
67188         * lib/xmalloc.c: Adjust to work with new autoconf macros,
67189         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
67190         HAVE_MALLOC/HAVE_REALLOC.
67191
67192         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
67193         dummy ones.  At least on GNU/Linux systems, `auto' means something
67194         else.
67195         From Michael Stone.
67196
67197 2002-11-21  Bruno Haible  <bruno@clisp.org>
67198
67199         Remove case insensitive option matching.
67200         * lib/argmatch.h (argcasematch): Remove declaration.
67201         (ARGCASEMATCH): Remove macro.
67202         (__xargmatch_internal): Remove case_sensitive argument.
67203         (XARGMATCH): Update.
67204         (XARGCASEMATCH): Remove macro.
67205         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
67206         case_sensitive argument.
67207         (argcasematch): Remove function.
67208         (__xargmatch_internal): Remove case_sensitive argument.
67209         (main): Use XARGMATCH instead of XARGCASEMATCH.
67210
67211         * lib/xmalloc.c: Change compile-time error message. Add comment about
67212         required autoconf version.
67213
67214 2002-11-20  Paul Eggert  <eggert@twinsun.com>
67215
67216         Merge argmatch cleanups from Bison.  Assume C89.
67217
67218         * lib/argmatch.c: Include config.h here, not in argmatch.h.
67219         Include stdlib.h, for EXIT_FAILURE.
67220         Always include <string.h>, since we assume C89.
67221         (EXIT_FAILURE): Remove pre-C89 bug workaround.
67222         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
67223         Include <stddef.h> instead, since it's all we need for size_t.
67224         (PARAMS): Remove.  All uses removed.
67225         (ARRAY_CARDINALITY): Do not bother to #undef.
67226         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
67227         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67228         Remove unnecessary parentheses.
67229         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67230         Insert necessary parentheses.
67231         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
67232         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
67233
67234 2002-11-19  Bruno Haible  <bruno@clisp.org>
67235
67236         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
67237         * lib/mbswidth.h: Include <stddef.h>, for size_t.
67238
67239         * lib/mbswidth.h (PARAMS): Remove macro.
67240         (mbswidth, mbsnwidth): Use ANSI C function declarations.
67241         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
67242
67243         * lib/gcd.h (PARAMS): Remove macro.
67244         (gcd): Use ANSI C function declarations.
67245         * lib/gcd.c (gcd): Likewise.
67246
67247 2002-11-15  Bruno Haible  <bruno@clisp.org>
67248
67249         * lib/strcspn.c: Include <stddef.h>.
67250         (strcspn): Use ANSI C function declaration. Change return type to
67251         size_t. Use NULL.
67252         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
67253         (strpbrk): Use NULL.
67254         * lib/strpbrk.h (PARAMS): Remove macro.
67255         (strpbrk): Use ANSI C function declaration.
67256         * lib/strstr.c: Don't include <sys/types.h>.
67257         * lib/strstr.h (PARAMS): Remove macro.
67258         (strstr): Use ANSI C function declarations.
67259
67260 2002-11-14  Karl Berry  <karl@gnu.org>
67261
67262         * config/mkinstalldirs: `do' on separate line, instead of
67263         `for var; do'.
67264
67265 2002-11-06  Bruno Haible  <bruno@clisp.org>
67266
67267         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
67268         * lib/gcd.c (gcd): Likewise.
67269
67270 2002-11-05  Bruno Haible  <bruno@clisp.org>
67271
67272         * lib/gcd.h: New file, from gettext-0.11.5.
67273         * lib/gcd.c: New file, from gettext-0.11.5.
67274
67275 2002-11-05  Bruno Haible  <bruno@clisp.org>
67276
67277         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67278         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67279         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67280         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67281
67282         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
67283         <libintl.h>.
67284         * lib/makepath.c: Include gettext.h instead of <locale.h> and
67285         <libintl.h>.
67286
67287         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
67288         * lib/human.c: Include gettext.h instead of <libintl.h>.
67289         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
67290         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
67291         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
67292         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
67293         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
67294         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
67295         (textdomain): Remove definition.
67296         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
67297
67298         * lib/long-options.c: Remove include of <libintl.h> and definition of
67299         _.
67300         * lib/same.c: Remove include of <libintl.h> and definition of _.
67301
67302 2002-11-04  Owen Taylor  <otaylor@redhat.com>
67303
67304         * lib/config.charset: A few additions for Solaris.
67305
67306 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67307
67308         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
67309         * lib/localcharset.c (locale_charset): Declare as extern "C".
67310
67311 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67312
67313         * lib/config.charset: msdos in uk_UA uses CP1125.
67314
67315 2002-11-04  Bruno Haible  <bruno@clisp.org>
67316
67317         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
67318         * lib/strcase.h: New file, from GNU gettext-0.11.5.
67319         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
67320         * lib/strstr.h: New file, from GNU gettext-0.11.5.
67321         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
67322
67323 2002-11-04  Bruno Haible  <bruno@clisp.org>
67324
67325         * lib/localcharset.c (locale_charset): Don't return an empty string.
67326
67327 2002-11-04  Bruno Haible  <bruno@clisp.org>
67328
67329         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
67330         aliases.
67331
67332 2002-11-04  Bruno Haible  <bruno@clisp.org>
67333
67334         * lib/config.charset: Update for newest glibc. Add canonical names
67335         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
67336
67337 2002-11-04  Bruno Haible  <bruno@clisp.org>
67338
67339         * lib/config.charset: Add support for NetBSD.
67340
67341 2002-11-04  Bruno Haible  <bruno@clisp.org>
67342
67343         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
67344
67345 2002-11-01  Bruno Haible  <bruno@clisp.org>
67346
67347         * configure.in: Add AC_CONFIG_AUX_DIR call.
67348         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
67349         test/Makefile.
67350         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
67351
67352 2002-09-28  Karl Berry  <karl@gnu.org>
67353
67354         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
67355         installed automake until the next release, since changes have been
67356         made.
67357
67358 2002-09-25  Karl Berry  <karl@gnu.org>
67359
67360         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
67361         * lib/getopt*: copy from libc/posix.
67362         * lib/gettext.h: copy from gettext.
67363         * lib/.cppi-disable: add strdup.c, gettext.h.
67364
67365 2002-09-25  Karl Berry  <karl@gnu.org>
67366
67367         * config/srclist.txt: enable gettext.h check.
67368         * config/config.{guess,sub}: update from prep.
67369         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
67370                 from automake 1.6.3.
67371         See srclist*.
67372
67373 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
67374
67375         * regex.c (PATFETCH): Remove the translating fetch.
67376         (PATFETCH_RAW): Rename to PATFETCH.
67377         (set_image_of_range): New fun.
67378         (SET_RANGE_TABLE_WORK_AREA): Use it.
67379         (regex_compile): Don't translate the pattern chars so eagerly.
67380         Only do it when inserting an `exactn' bytecode or when handling
67381         a char-range.
67382         (mutually_exclusive_p): Avoid empty statement.
67383
67384 2002-07-06  Jim Meyering  <meyering@lucent.com>
67385
67386         * m4/README: Don't mention Makefile.am.in.
67387         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
67388
67389 2002-07-01  Jim Meyering  <meyering@lucent.com>
67390
67391         * lib/c-stack.c: Include sys/time.h.
67392         From Volker Borchert.
67393
67394 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67395
67396         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
67397
67398 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67399
67400         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
67401         New macro.  Use it uniformly instead of
67402         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
67403         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
67404         reported by Vin Shelton.
67405
67406 2002-06-22  Paul Eggert  <eggert@twinsun.com>
67407
67408         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
67409         Do not assume SA_SIGINFO behavior.
67410         Bug reported by Jim Meyering on NetBSD 1.5.2.
67411
67412 2002-06-22  Jim Meyering  <meyering@lucent.com>
67413
67414         * m4/c-stack.m4: New file, from diffutils-2.8.2.
67415         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
67416
67417         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
67418         now that configure.ac uses AC_GNU_SOURCE.
67419         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
67420         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
67421
67422         Update to latest tools.  Suggestions from Paul Eggert.
67423         * m4/stdbool.m4: New file, from diffutils-2.8.2.
67424         * m4/gnu-source.m4: Update from diffutils-2.8.2.
67425         * m4/fnmatch.m4: Likewise.
67426         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
67427         to AC_HEADER_STDBOOL
67428
67429 2002-06-22  Jim Meyering  <meyering@lucent.com>
67430
67431         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
67432         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
67433
67434 2002-06-22  Jim Meyering  <meyering@lucent.com>
67435
67436         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
67437
67438         * lib/exitfail.c, exitfail.h: Likewise.
67439         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
67440
67441         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
67442         of fnmatch.h.
67443         (EXTRA_DIST): Add fnmatch_loop.c.
67444         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
67445
67446         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
67447         * lib/fnmatch.c: Update from diffutils-2.8.2.
67448         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
67449         * lib/fnmatch.h: Remove file.
67450
67451 2002-06-21  Jim Meyering  <meyering@lucent.com>
67452
67453         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
67454         * m4/mbrtowc.m4: Likewise.
67455
67456         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
67457         * m4/mbswidth.m4: Reflect name change:
67458         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
67459         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67460
67461         * m4/lib-link.m4: Update from gettext-0.11.2.
67462         * m4/gettext.m4: Likewise.
67463
67464         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
67465         From Alfred M. Szmidt.
67466
67467 2002-06-18  Paul Eggert  <eggert@twinsun.com>
67468
67469         * lib/file-type.h: Report an error if neither S_ISREG nor
67470         S_IFREG is defined, instead of using a test specific to glibc
67471         2.2.  This should be safe, since POSIX requires S_ISREG and
67472         Unix Version 7 had S_IFREG.  We don't need to check for
67473         <sys/types.h> since we don't use any symbols that it defines.
67474
67475 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
67476
67477         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
67478         $@-t, so that each temporary file name is unique and valid in the first
67479         8 characters, for operation under DOS.
67480
67481 2002-06-15  Paul Eggert  <eggert@twinsun.com>
67482
67483         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
67484
67485 2002-06-15  Jim Meyering  <meyering@lucent.com>
67486
67487         Work even with DJGPP 2.03, which lacks support for symlinks.
67488         From Richard Dawe.
67489         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
67490         is defined.
67491         * lib/lchown.c (S_ISLNK): Likewise.
67492
67493 2002-06-15  Jim Meyering  <meyering@lucent.com>
67494
67495         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
67496         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
67497         have been included before this file.
67498
67499 2002-06-14  Jim Meyering  <meyering@lucent.com>
67500
67501         * lib/file-type.h: Use the version from diffutils-2.8.2.
67502         * lib/file-type.c: Likewise.
67503
67504 2002-06-07  Jim Meyering  <meyering@lucent.com>
67505
67506         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
67507         They're needed at least for NetBSD 1.5.2.
67508         ($statxfs_includes): Include those same headers.
67509         ($statxfs_includes): Include sys/vfs.h if available.
67510         ($statxfs_includes): Likewise for sys/statvfs.h.
67511         Check for the following members in both structs statfs and statvfs:
67512         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
67513
67514 2002-06-01  Jim Meyering  <meyering@lucent.com>
67515
67516         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
67517         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
67518
67519 2002-05-28  Jim Meyering  <meyering@lucent.com>
67520
67521         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
67522         Reported by Volker Borchert.
67523
67524 2002-05-27  Jim Meyering  <meyering@lucent.com>
67525
67526         Fix a problem seen only on nonconforming systems whereby ls.c's
67527         use of localtime, and then of gettimeofday would cause trouble:
67528         the localtime call used to initialize rpl_gettimeofday's save
67529         mechanism would clobber ls's current local time information so
67530         that in any long listing the first file would always be listed
67531         with date 1970-01-01.  Analysis by Volker Borchert.
67532
67533         * lib/gettimeofday.c (localtime): Undefine.
67534         (rpl_localtime): New function.
67535
67536 2002-05-27  Jim Meyering  <meyering@lucent.com>
67537
67538         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
67539         localtime.
67540
67541         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
67542         use the replacement function; it wouldn't resolve at link time.
67543         Reported by Volker Borchert.
67544
67545 2002-05-22  Jim Meyering  <meyering@lucent.com>
67546
67547         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
67548         file-type.h.
67549         * lib/file-type.h: New file.
67550         * lib/file-type.c (file_type): New file/function.  Extracted from
67551         diffutils.
67552
67553 2002-04-30  Jim Meyering  <meyering@lucent.com>
67554
67555         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
67556
67557 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67558
67559         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
67560
67561 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67562
67563         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
67564         Do not check for alloca.h (no longer used) or stdbool.h (was never
67565         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
67566
67567 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67568
67569         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
67570
67571 2002-04-29  Jim Meyering  <meyering@lucent.com>
67572
67573         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
67574         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
67575         Use AC_FUNC_STRNLEN here instead.
67576
67577         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
67578         With autoconf-2.53a, it's part of AC_PROG_CC.
67579
67580 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67581
67582         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
67583         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
67584
67585 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67586
67587         * lib/sig2str.h, lib/sig2str.c: New files.
67588         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
67589
67590 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67591
67592         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
67593         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
67594         of 127, since 64 is the largest conceivable number for ancient
67595         nonstandard hosts.
67596         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
67597
67598 2002-04-28  Jim Meyering  <meyering@lucent.com>
67599
67600         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
67601
67602 2002-04-24  Jim Meyering  <meyering@lucent.com>
67603
67604         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
67605         (jm_PREREQ): Use it.
67606
67607         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
67608         mach/mach.h fcntl.h.
67609         Check for this function: setlocale.
67610
67611 2002-04-24  Jim Meyering  <meyering@lucent.com>
67612
67613         * lib/gettext.h: New file, from Gettext.
67614         * lib/Makefile.am (INCLUDES): Remove -I../intl.
67615         (libfetish_a_SOURCES): Add gettext.h.
67616
67617 2002-04-16  Jim Meyering  <meyering@lucent.com>
67618
67619         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
67620         ut_pid, ut_id, ut_exit.
67621
67622 2002-04-16  Jim Meyering  <meyering@lucent.com>
67623
67624         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
67625         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
67626         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
67627
67628 2002-04-12  Jim Meyering  <meyering@lucent.com>
67629
67630         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
67631         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
67632         existence of the getmntinfo function.  Needed for Darwin 5.3.
67633
67634         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
67635         This is necessary at least on Darwin 5.3.
67636
67637         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
67638         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
67639         strnlen.o in the library, and that makes some versions of ranlib
67640         object.
67641
67642 2002-04-12  Jim Meyering  <meyering@lucent.com>
67643
67644         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
67645
67646 2002-04-09  Jim Meyering  <meyering@lucent.com>
67647
67648         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
67649         to be more precise.  Rather than saying we're checking whether the
67650         function `works', say what we're testing.
67651         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
67652         Reported by Bruno Haible.
67653
67654 2002-03-10  Jim Meyering  <meyering@lucent.com>
67655
67656         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
67657         Suggestion from Santiago Vila.
67658
67659 2002-03-08  Jim Meyering  <meyering@lucent.com>
67660
67661         * lib/rename.c: Mention that this wrapper is needed also on
67662         mips-dec-ultrix4.4 systems.
67663
67664 2002-03-02  Jim Meyering  <meyering@lucent.com>
67665
67666         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
67667         not HAVE_CLOCK_SETTIME.
67668
67669 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67670
67671         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
67672         Check for clock_settime.
67673
67674 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67675
67676         * lib/nanosleep.h: Rename to....
67677         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
67678
67679         * lib/gettime.c: New file.
67680         * lib/settime.c: New file.
67681         * lib/stime.c: Remove.
67682
67683         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
67684         timespec.h.  Remove nanosleep.h.
67685
67686 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67687
67688         * m4/acl.m4: New file.
67689         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
67690         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
67691
67692 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67693
67694         * lib/acl.c, lib/acl.h: New files.
67695         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
67696
67697 2002-02-24  Jim Meyering  <meyering@lucent.com>
67698
67699         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
67700         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
67701         cause trouble.  Reported by Nelson Beebe.
67702
67703 2002-02-23  Paul Eggert  <eggert@twinsun.com>
67704
67705         * lib/path-concat.c (xpath_concat): Reorder code to pacify
67706         compilers that don't know that xalloc_die never returns.
67707
67708 2002-02-20  Jim Meyering  <meyering@lucent.com>
67709
67710         * lib/getdate.c: Regenerate using bison-1.33.
67711
67712 2002-02-17  Jim Meyering  <meyering@lucent.com>
67713
67714         * config/config.guess (main): Don't use `head -1'; it's no longer
67715         portable. Use `sed 1q' instead.
67716
67717 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
67718
67719         * m4/codeset.m4: Upgrade to gettext-0.11.
67720         * m4/gettext.m4: Upgrade to gettext-0.11.
67721         * m4/glibc21.m4: Upgrade to gettext-0.11.
67722         * m4/iconv.m4: Upgrade to gettext-0.11.
67723         * m4/isc-posix.m4: Upgrade to gettext-0.11.
67724         * m4/lcmessage.m4: Upgrade to gettext-0.11.
67725         * m4/lib-ld.m4: New file, from gettext-0.11.
67726         * m4/lib-link.m4: New file, from gettext-0.11.
67727         * m4/lib-prefix.m4: New file, from gettext-0.11.
67728         * m4/progtest.m4: Upgrade to gettext-0.11.
67729
67730 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67731
67732         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
67733         (jm_PREREQ): Use it.
67734
67735 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67736
67737         * lib/posixver.c, lib/posixver.h: New files.
67738         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67739
67740 2002-02-02  Paul Eggert  <eggert@twinsun.com>
67741             Bruno Haible  <bruno@clisp.org>
67742
67743         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
67744         (fwrite_success_callback): New declaration.
67745         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
67746         print_unicode_char. Call failure callback instead of error.
67747         (fwrite_success_callback): New function.
67748         (exit_failure_callback): New function.
67749         (fallback_failure_callback): New function.
67750         (print_unicode_char): Call unicode_to_mb.
67751
67752 2002-01-26  Jim Meyering  <meyering@lucent.com>
67753
67754         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
67755         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
67756
67757 2002-01-26  Jim Meyering  <meyering@lucent.com>
67758
67759         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
67760
67761 2002-01-22  Paul Eggert  <eggert@twinsun.com>
67762
67763         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
67764
67765 2002-01-22  Jim Meyering  <meyering@lucent.com>
67766
67767         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
67768         Otherwise, some versions of automake would omit the rule that makes
67769         Makefile from Makefile.in.
67770
67771 2002-01-21  Paul Eggert  <eggert@twinsun.com>
67772
67773         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
67774         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67775         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
67776         (memcoll): Set errno to zero if there is no error.
67777
67778         * lib/quotearg.c (quotearg_buffer_restyled):
67779         Fix bug with quoting buffers containing NUL when backslashing escapes.
67780         This bug was exposed by the other changes in this patch.
67781         (quotearg_n_options): New arg ARGSIZE.
67782         All callers changed.
67783         (quoting_options_from_style): New function.
67784         (quotearg_n_style): Use it.
67785         (quotearg_n_style_mem): New function.
67786
67787         * lib/quotearg.h (quotearg_n_style_mem): New function.
67788
67789 2002-01-19  Jim Meyering  <meyering@lucent.com>
67790
67791         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
67792         Remove useless quotes: DF_PROG="df".
67793         * m4/strnlen.m4: New file.
67794
67795 2002-01-16  Paul Eggert  <eggert@twinsun.com>
67796
67797         * lib/backupfile.c (ISDIGIT): Comment fix.
67798         * lib/getdate.y (ISDIGIT): Likewise.
67799         * lib/posixtm.c (ISDIGIT, year): Likewise.
67800         * lib/strverscmp.c (ISDIGIT): Likewise.
67801         * lib/userspec.c (ISDIGIT): Likewise.
67802
67803 2002-01-16  Jim Meyering  <meyering@lucent.com>
67804
67805         * lib/getdate.y: Add three semicolons, each just before a closing
67806         brace. Bison (as of version 1.31) no longer papers over that mistake.
67807
67808 2002-01-05  Jim Meyering  <meyering@lucent.com>
67809
67810         * lib/version-etc.c (version_etc_copyright): Update copyright year.
67811
67812 2001-12-19  Paul Eggert  <eggert@twinsun.com>
67813
67814         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
67815         not silently exit merely because the output buffer happens to
67816         have nothing pending.
67817
67818 2001-12-18  Paul Eggert  <eggert@twinsun.com>
67819
67820         See the big note in ../ChangeLog.
67821         * lib/human.c (suffixes): Prefer K to k for 1024.
67822         (generate_suffix_backwards): New function.
67823         (human_readable_inexact): Use it.
67824         * lib/xstrtol.c (__xstrtol): If there is no number but there
67825         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
67826         Accept 'K' as well as 'k'.
67827
67828 2001-12-15  Jim Meyering  <meyering@lucent.com>
67829
67830         * lib/regex.h (__restrict_arr): Update from libc.
67831
67832         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
67833         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
67834         (STREQ): Define.
67835
67836 2001-12-14  Jim Meyering  <meyering@lucent.com>
67837
67838         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
67839         Suggestion from Bruno Haible.
67840
67841 2001-12-10  Jim Meyering  <meyering@lucent.com>
67842
67843         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
67844         xrealloc, Instead, include "xalloc.h".
67845         (initbuffer): Don't cast xmalloc return value to char*.
67846         (readline): Reword comment.
67847         Don't cast xrealloc return value to char*
67848         Return NULL, not 0.
67849
67850 2001-12-09  Jim Meyering  <meyering@lucent.com>
67851
67852         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
67853         about `signed and unsigned type in conditional expression'.
67854         * lib/posixtm.c (posix_time_parse): Likewise.
67855
67856         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
67857
67858         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
67859         to avoid a pedantic warning.
67860
67861         * lib/getstr.c: Don't include assert.h.
67862         (getstr): Remove warning-evoking assertions.
67863         Return -1 if offset parameter is out of bounds.
67864         Change the type of a local from int to size_t.
67865
67866         * lib/strftime.c (my_strftime_localtime_r): Include this function
67867         definition in the `#if ! HAVE_TM_GMTOFF' block.
67868
67869         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
67870         Include xalloc.h instead.
67871
67872 2001-12-02  Jim Meyering  <meyering@lucent.com>
67873
67874         * lib/tempname.c: Don't declare getenv, thus reverting the change of
67875         2001-11-18.  It's no longer necessary, now that stdlib.h is always
67876         included.
67877
67878         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
67879         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
67880
67881 2001-11-30  Akim Demaille  <akim@epita.fr>
67882
67883         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
67884         before being defined.
67885
67886 2001-11-27  Paul Eggert  <eggert@twinsun.com>
67887
67888         * lib/quotearg.h (quotearg_n, quotearg_n_style):
67889         First arg is int, not unsigned.
67890         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
67891         (SIZE_MAX, UINT_MAX): New macros.
67892         (quotearg_n_options): Abort if N is negative.
67893         Avoid overflow check on hosts where size_t is 64 bits and int
67894         is 32 bits, as overflow is impossible there.
67895         Fix off-by-one typo that caused unnecessary reallocation.
67896
67897 2001-11-27  Jim Meyering  <meyering@lucent.com>
67898
67899         * lib/tempname.c: Merge with version from libc.
67900         * lib/regex.c: Likewise.
67901
67902         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
67903         systems for which STDC_HEADERS is 0, it was not included, resulting in
67904         a warning about an integer-to-pointer conversion problem with getenv.
67905         Reported by Volker Borchert.
67906
67907 2001-11-26  Jim Meyering  <meyering@lucent.com>
67908
67909         * lib/gtod.h: Remove file.
67910         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
67911         * lib/gettimeofday.c: Don't include gtod.h.
67912         (GTOD_init): Remove function.
67913         (rpl_gettimeofday): Do its job here instead, rather than aborting.
67914         Suggestion from Volker Borchert.
67915
67916 2001-11-23  Jim Meyering  <meyering@lucent.com>
67917
67918         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
67919         it.
67920         * lib/hash.c (struct hash_table): Define it here instead.
67921
67922 2001-11-22  Jim Meyering  <meyering@lucent.com>
67923
67924         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
67925
67926 2001-11-20  Jim Meyering  <meyering@lucent.com>
67927
67928         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
67929         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
67930
67931 2001-11-19  Jim Meyering  <meyering@lucent.com>
67932
67933         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
67934         directory.  Use "conftestXXXXXX" as the template.
67935         Suggestion from Paul Eggert.
67936
67937         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
67938         immediately, so the test doesn't mistakenly hit the max-open-files
67939         limit.
67940
67941 2001-11-18  Paul Eggert  <eggert@twinsun.com>
67942
67943         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
67944         (TEMPORARIES): New macro.
67945         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
67946         removes an artificial limitation (e.g. HP-UX 10.20, where
67947         TMP_MAX is 17576).
67948
67949 2001-11-18  Jim Meyering  <meyering@lucent.com>
67950
67951         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
67952
67953 2001-11-18  Jim Meyering  <meyering@lucent.com>
67954
67955         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
67956         on SunOS 4.
67957
67958         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
67959         files will be created before anything else.
67960
67961 2001-11-17  Paul Eggert  <eggert@twinsun.com>
67962
67963         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
67964         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
67965
67966 2001-11-17  Jim Meyering  <meyering@lucent.com>
67967
67968         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
67969         Prompted by a report from Bob Proulx.
67970
67971         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
67972         Instead, require UTILS_FUNC_MKSTEMP.
67973
67974 2001-11-17  Jim Meyering  <meyering@lucent.com>
67975
67976         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
67977         Now, that's done as part of AC_FUNC_STRTOD.
67978
67979 2001-11-17  Jim Meyering  <meyering@lucent.com>
67980
67981         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
67982         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
67983         rather than group writable.  Patch by Juan F. Codagnone.
67984
67985         * lib/readtokens.c: Remove explicit declarations of xmalloc and
67986         xrealloc, Instead, include "xalloc.h".
67987
67988         * lib/mountlist.c: Include unlocked-io.h after all system headers.
67989         Remove explicit declarations of xmalloc, xrealloc,
67990         and xstrdup.  Instead, include "xalloc.h".
67991
67992         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
67993         unlocked-io.h.
67994         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
67995         Likewise.
67996         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
67997
67998         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
67999         Reported by Padraig Brady.
68000
68001         * lib/mkstemp.c: #undef mkstemp.
68002         Include config.h.
68003         (rpl_mkstemp): Rename from mkstemp.
68004         Protoize.
68005
68006 2001-11-16  Jim Meyering  <meyering@lucent.com>
68007
68008         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
68009         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
68010         determine the amount of total physical memory, use pstat_getstatic.
68011         HPUX-11 doesn't define _SC_PHYS_PAGES.
68012         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
68013         If sysconf couldn't be used to determine the amount of available
68014         physical memory, use both pstat_getstatic and pstat_getdynamic.
68015         Based on a patch from Bob Proulx.
68016
68017 2001-11-10  Jim Meyering  <meyering@lucent.com>
68018
68019         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
68020         (jm_PREREQ): Use it.
68021
68022 2001-11-09  Jim Meyering  <meyering@lucent.com>
68023
68024         * m4/jm-macros.m4: Require autoconf-2.52f.
68025         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
68026         Use these AC_-prefixed names, not the AM_-prefixed ones.
68027
68028         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
68029
68030 2001-11-05  Jim Meyering  <meyering@lucent.com>
68031
68032         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
68033
68034 2001-11-04  Jim Meyering  <meyering@lucent.com>
68035
68036         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
68037         $DEFS.
68038
68039 2001-11-03  Jim Meyering  <meyering@lucent.com>
68040
68041         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
68042         of AC_DEFUN.
68043
68044         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
68045         know the name of the variable in the macro definition.
68046
68047 2001-11-03  Jim Meyering  <meyering@lucent.com>
68048
68049         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
68050         in argmatch_to_argument call.
68051
68052         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
68053         argument.
68054
68055         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
68056         e.g., a fault due to an attempt to free a NULL pointer.
68057
68058 2001-11-01  Jim Meyering  <meyering@lucent.com>
68059
68060         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
68061         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
68062
68063 2001-11-01  Jim Meyering  <meyering@lucent.com>
68064
68065         * lib/dirfd.c, lib/dirfd.h: New files.
68066         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
68067
68068         * lib/hash.c (hash_print) [TESTING]: Clean up.
68069
68070 2001-10-22  Paul Eggert  <eggert@twinsun.com>
68071
68072         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
68073         to avoid a warning if -Wall.
68074
68075 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
68076
68077         * README: New file
68078         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
68079         (per RMS's instructions, this is now the canonical source)
68080         * lgpl/, gpl/: New directories.
68081
68082 2001-10-21  Paul Eggert  <eggert@twinsun.com>
68083
68084         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
68085
68086 2001-10-21  Jim Meyering  <meyering@lucent.com>
68087
68088         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
68089         this code would end up calling gettext even in packages built
68090         with --disable-nls.
68091         * lib/getopt.c (_): Likewise.
68092         * lib/regex.c (_): Likewise.
68093
68094 2001-10-20  Paul Eggert  <eggert@twinsun.com>
68095
68096         * m4/error.m4 (jm_PREREQ_ERROR):
68097         Do not invoke AC_CHECK_FUNCS with strerror_r, as
68098         AC_FUNC_STRERROR_R does that.
68099         Check for strerror declaration.
68100
68101         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
68102         are supposed to have them these days.
68103         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
68104         Merge changes from latest Autoconf CVS.
68105         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
68106         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
68107         POSIX decided to standardize on the int flavor of strerror_r.
68108
68109 2001-10-20  Paul Eggert  <eggert@twinsun.com>
68110
68111         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
68112         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
68113         Use strerror_r that is only a macro, even if it is not a function.
68114         (strerror): Check for HAVE_DECL_STRERROR before declaring.
68115         (private_strerror): Use prototypes, not old-style function definition.
68116         (print_errno_message): New function.
68117         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
68118         char*-flavored one.
68119         (error_tail, error, error_at_line): Use it.
68120
68121 2001-10-11  Jim Meyering  <meyering@lucent.com>
68122
68123         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
68124         and quote_n (1, ... to avoid clobbering a buffer.
68125
68126 2001-10-05  Jim Meyering  <meyering@lucent.com>
68127
68128         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
68129         hash-pjw.h.
68130         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
68131         * lib/hash-pjw.h: New file.
68132
68133 2001-09-30  Jim Meyering  <meyering@lucent.com>
68134
68135         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
68136         `struct fsstat' has the `f_fstypename' member.
68137         Use that to define FS_TYPE, which is now used to make
68138         the getfsstat link test tighter.
68139
68140 2001-09-30  Jim Meyering  <meyering@lucent.com>
68141
68142         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
68143         Include <sys/ucred.h>, for Apple Darwin.
68144         Include sys/mount.h and sys/fs_types.h only if available.
68145         (FS_TYPE): Define.
68146         (read_filesystem_list): Use FS_TYPE.
68147
68148 2001-09-29  Paul Eggert  <eggert@twinsun.com>
68149
68150         * lib/exclude.c (excluded_filename): 0 -> false, since it's
68151         a boolean context.
68152
68153 2001-09-29  Jim Meyering  <meyering@lucent.com>
68154
68155         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
68156         [one-argument getmntent function]): Include stdio.h before mntent.h.
68157         SunOS 4.1.x needs it for the declaration of `FILE'.
68158         Patch by Volker Borchert.
68159
68160         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
68161         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
68162         sys/fs_types.h, and make the link-test for getfsstat guard #include
68163         directives with appropriate #if HAVE_*_H tests so that we can
68164         detect getfsstat on Apple Darwin1.3.7 systems.
68165         Reported by Nelson Beebe.
68166         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
68167
68168 2001-09-28  Paul Eggert  <eggert@twinsun.com>
68169
68170         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
68171         #defines strtoimax.  Also treat the other strto* functions
68172         like strtoimax.
68173
68174         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68175         Check for strtoul and strtoumax,
68176         as those declarations are made even in the signed case.
68177         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
68178         Likewise, for strtol and strtoimax.
68179
68180 2001-09-28  Paul Eggert  <eggert@twinsun.com>
68181
68182         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
68183         #defines strtoimax.  Also treat the other strto* functions
68184         like strtoimax.
68185
68186         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
68187         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
68188         (strtoimax, strtoumax): Do not declare if already defined as a macro.
68189
68190 2001-09-26  Jim Meyering  <meyering@lucent.com>
68191
68192         Most macros in unlocked-io.h had the wrong number of arguments.
68193         * lib/gen-uio: New script.
68194         (USE_UNLOCKED_IO): Define to 1 if not already defined.
68195         * lib/unlocked-io.hin: Remove file.
68196         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
68197         rather than trying to embed it here.
68198         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
68199         Reported by Padraig Brady.
68200
68201 2001-09-25  Volker Borchert  <bt@teknon.de>
68202
68203         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
68204         `result'.
68205
68206 2001-09-24  Jim Meyering  <meyering@lucent.com>
68207
68208         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
68209
68210 2001-09-23  Jim Meyering  <meyering@lucent.com>
68211
68212         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
68213         instead of the mere test for existence of mntent.h.  The latter
68214         would get a false-positive on AIX 3.4 systems.
68215         In the outer getmntent if-block, don't die if neither of the getmntent
68216         tests succeeds.  Instead, just fall through and continue with the
68217         remaining tests.
68218
68219 2001-09-23  Jim Meyering  <meyering@lucent.com>
68220
68221         * lib/mountlist.c: Remove useless parentheses in #if directives.
68222         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
68223         the deprecated MOUNTED symbol is no longer defined in mntent.h.
68224
68225 2001-09-22  Jim Meyering  <meyering@lucent.com>
68226
68227         * m4/gettext.m4: New file.  From gettext.
68228         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
68229         * m4/progtest.m4: Likewise
68230         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
68231         * m4/glibc21.m4: Likewise.
68232
68233         * m4/libintl.m4: Remove.  No longer used.
68234
68235 2001-09-22  Jim Meyering  <meyering@lucent.com>
68236
68237         * lib/localcharset.c: Update from latest gettext.
68238         * lib/config.charset: Likewise.
68239
68240 2001-09-20  Jim Meyering  <meyering@lucent.com>
68241
68242         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
68243         strtoimax.
68244         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
68245         strtoumax.
68246
68247 2001-09-20  Jim Meyering  <meyering@lucent.com>
68248
68249         * lib/xstrtol.c (strtoimax): Guard declaration with
68250         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
68251         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
68252         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
68253         (strtoumax): Likewise, for completeness (it wasn't necessary).
68254
68255 2001-09-17  Paul Eggert  <eggert@twinsun.com>
68256
68257         * lib/strtoimax.c (HAVE_LONG_LONG):
68258         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
68259         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
68260         to work around bug in IBM C compiler.
68261
68262 2001-09-17  Jim Meyering  <meyering@lucent.com>
68263
68264         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
68265         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
68266         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
68267         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
68268         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
68269         whenever the right hand side need not be expanded by the shell.
68270
68271 2001-09-16  Paul Eggert  <eggert@twinsun.com>
68272
68273         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
68274         library.  It's not correct, as some older glibcs are buggy.
68275         fnmatch wasn't fixed until glibc 2.2.
68276
68277         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
68278         special shell magic here.
68279
68280 2001-09-16  Jim Meyering  <meyering@lucent.com>
68281
68282         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
68283         * m4/jm-macros.m4: Require it.
68284
68285 2001-09-16  Jim Meyering  <meyering@lucent.com>
68286
68287         * lib/mkdir.c: New file.
68288
68289 2001-09-15  Jim Meyering  <meyering@lucent.com>
68290
68291         * m4/jm-macros.m4: Check for help2man.
68292
68293 2001-09-11  Jim Meyering  <meyering@lucent.com>
68294
68295         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
68296         The body, by Paul Eggert, was moved here from configure.in.
68297         * m4/jm-macros.m4: Require UTILS_HOST_OS.
68298
68299 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68300
68301         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
68302         (jm_PREREQ): Use it.
68303
68304 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68305
68306         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
68307         Use ssize_t, not int, to store result of readlink.
68308         Check for ssize_t overflow as well as size_t overflow,
68309         as POSIX says the result of readlink is implementation-defined
68310         when ssize_t overflows.
68311         Remove unnecessary cast to char*.
68312         Use free+malloc instead of realloc, as the storage doesn't need
68313         to be preserved and it's clearer and can be more efficient that way.
68314         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
68315         * lib/xreadlink.h (xreadlink): Update prototype.
68316
68317 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68318
68319         * lib/xgetcwd.c: Revert some of the previous change; intead,
68320         fix the HAVE_GETCWD_NULL code to behave more like the
68321         !HAVE_GETCWD_NULL code used to.
68322
68323         Include "xalloc.h".
68324         (xgetcwd): Do not return NULL when memory is exhausted; instead,
68325         invoke xalloc_die.
68326
68327 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68328
68329         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
68330         sys/param.h, as pathmax.h includes them.
68331
68332 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68333
68334         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
68335         (jm_PREREQ_XGETCWD): New macro.
68336
68337         * m4/getcwd.m4: New file.
68338
68339 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68340
68341         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
68342         like the HAVE_GETCWD_NULL code.
68343         Include pathmax.h if not HAVE_GETCWD.
68344         Do not include xalloc.h.
68345         (INITIAL_BUFFER_SIZE): New symbol.
68346         Do not use xmalloc / xrealloc, since the caller is responsible for
68347         handling errors.  Preserve errno around `free' during failure.
68348         Do not overrun buffer when using getwd.
68349
68350 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68351
68352         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
68353         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
68354         getcwd (NULL, 0).
68355
68356 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68357
68358         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
68359         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
68360         spotted by Jim Meyering.
68361
68362 2001-09-03  Jim Meyering  <meyering@lucent.com>
68363
68364         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
68365         failure.
68366
68367 2001-09-02  Jim Meyering  <meyering@lucent.com>
68368
68369         * lib/error.c: Update from GNU libc.
68370
68371 2001-09-01  Jim Meyering  <meyering@lucent.com>
68372
68373         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
68374         Used by df.
68375
68376 2001-09-01  Jim Meyering  <meyering@lucent.com>
68377
68378         * lib/xreadlink.c: New file.
68379         * lib/xreadlink.h: New file.
68380         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
68381         xreadlink.h.
68382
68383         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
68384         doesn't conflict with sparc Solaris 7's definition in
68385         /usr/include/sys/int_types.h.
68386
68387         * lib/exclude.c: Use `""', not `<>' to #include non-system header
68388         files.
68389         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
68390         and strncasecmp as r-values.  Unixware didn't have declarations.
68391
68392 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68393
68394         * lib/xstrtol.h: Add copyright notice.
68395         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
68396         LONGINT_INVALID_SUFFIX_CHAR.
68397
68398 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68399
68400         * lib/xstrtol.c (strtoimax): New decl.
68401
68402 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68403
68404         * lib/xgetcwd.c: Don't include pathmax.h.
68405         Include stdlib.h and unistd.h if available.
68406         Include xalloc.h.
68407         (xmalloc, xstrdup, free): Remove decls.
68408         (xgetcwd): Don't assume sizes fit in unsigned.
68409         Check for overflow when computing sizes.
68410         Simplify reallocation code.
68411
68412 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68413
68414         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
68415         a directory's st_size can have an arbitrary value, so the old
68416         usage could waste an arbitrary amount of memory.  All uses
68417         changed.
68418         * lib/savedir.h: Update prototype.
68419
68420 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68421
68422         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
68423
68424         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
68425         old strtoimax.c.
68426
68427         Also, make the following further changes to make this file's
68428         configuration more similar to that of strtol.c:
68429         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
68430         (strtoumax, uintmax_t, strtoull, strtol): Remove.
68431         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
68432         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
68433         changed to signed values.
68434
68435         And make the following changes as well:
68436         Fix copyright notice, as 1999 was missing.
68437         (verify): New macro.
68438         (strtoimax): Check sizes at compile-time, not run-time.
68439         Prefer strtol to strtoll if both work.
68440         (main): Remove; it was not that useful and was a pain to maintain.
68441
68442         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
68443
68444 2001-08-31  Jim Meyering  <meyering@lucent.com>
68445
68446         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
68447         Use an initial, malloc'd, buffer of length 128 rather than
68448         a statically allocated one of length 1024.
68449
68450 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68451
68452         Simplify code, partly by assuming autoconf 2.52 semantics.
68453
68454         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
68455
68456         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
68457         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
68458         All uses removed.
68459         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
68460         Move AC_REQUIRE to next-to-top level, to avoid confusion.
68461         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
68462         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
68463         jm_AC_HEADER_INTTYPES_H.
68464         * m4/jm-macros.m4 (jm_MACROS): Likewise.
68465
68466         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
68467
68468         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68469         Quote first arg of AC_DEFUN.
68470         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
68471         since they are needed to parse the include file even if we need
68472         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
68473         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
68474         but with opposite signedness.
68475
68476 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68477
68478         Merge 'exclude' changes from tar 1.13.22.
68479         This fixes one or two unlikely storage allocation overflow bugs,
68480         but doesn't change user-visible behavior otherwise.
68481
68482 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68483
68484         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
68485         (jm_PREREQ_EXCLUDE): New macro.
68486
68487 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68488
68489         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
68490         tm to be declared.
68491
68492 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68493
68494         * lib/hash.c: Remove '2001' from copyright notice.
68495
68496 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68497
68498         * lib/full-write.h: New file.
68499         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
68500         * lib/full-write.c: Correct credits, as cccp.c no longer
68501         exists and anyway it was so heavily changed from the old cccp
68502         code as to be unrecognizable.  Include full-write.h.
68503         (full_write) Return size_t, with short writes meaning failure.
68504         All callers changed.  This fixes a bug with large buffers
68505         on 64-bit hosts.
68506         * lib/utime.c: Include full-write.h.
68507
68508 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68509
68510         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
68511         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
68512         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
68513         Include if available.
68514         (<xalloc.h>): Include
68515         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
68516         (verify): New macro.  Use it to verify that EXCLUDE macros do not
68517         collide with FNM macros.
68518         (struct patopts): New struct.
68519         (struct exclude): Use it, as exclude patterns now come with options.
68520         (new_exclude): Support above changes.
68521         (new_exclude, add_exclude_file):
68522         Initial size must now be a power of two to simplify overflow checking.
68523         (free_exclude, fnmatch_no_wildcards): New function.
68524         (excluded_filename): No longer requires options arg, as the options
68525         are determined by add_exclude.  Now returns bool, not int.
68526         (excluded_filename, add_exclude):
68527         Add support for the fancy new exclusion options.
68528         (add_exclude, add_exclude_file): Now takes int options arg.
68529         Check for arithmetic overflow when computing sizes.
68530         (add_exclude_file): xrealloc might modify errno, so don't
68531         realloc until after errno might be used.
68532
68533         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
68534         New macros.
68535         (free_exclude): New decl.
68536         (add_exclude, add_exclude_file): Now takes int options arg.
68537         (excluded_filename): No longer requires options arg, as the options
68538         are determined by add_exclude.  Now returns bool, not int.
68539
68540 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68541
68542         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
68543
68544 2001-08-27  Jim Meyering  <meyering@lucent.com>
68545
68546         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
68547
68548         * lib/version-etc.c (N_): Remove definition.
68549         Revert most of last change.
68550         Instead, simply don't mark the `Copyright...' string for translation.
68551         Based on advice from Paul Eggert.
68552
68553         * lib/strtoxmax.c: Tweak comment.
68554
68555 2001-08-26  Jim Meyering  <meyering@lucent.com>
68556
68557         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
68558
68559         * m4/xstrtoimax.m4: New file.
68560         * m4/xstrtoumax.m4: Add comments explaining why we
68561         AC_REPLACE_FUNCS(strtol).
68562
68563 2001-08-26  Jim Meyering  <meyering@lucent.com>
68564
68565         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
68566         of copyright with `%s' so translators don't get an untranslated
68567         message in 2002.
68568         (COPYRIGHT_YEAR): Define.
68569         (version_etc): Use fprintf rather than fputs.
68570         Suggestion from Ulrich Drepper.
68571
68572         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
68573
68574         * lib/strtoll.c: New file, from GNU libc.
68575         * lib/xstrtoimax.c: New file.
68576
68577         * lib/xstrtol.h: Add xstrtoimax.
68578         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
68579         * lib/strtoimax.c: New file.  Likewise, but first define
68580         STRTOUXMAX_SIGNED.
68581
68582         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
68583         ...
68584         * lib/strtoxmax.c: ... then renamed to this.
68585
68586 2001-08-18  Paul Eggert  <eggert@twinsun.com>
68587
68588         * m4/inttypes.m4: Add AC_PREREQ(2.13).
68589         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
68590         (jm_AC_TYPE_INTMAX_T): New macro.
68591         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
68592
68593         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
68594
68595         * m4/longlong.m4: Renamed from ulonglong.m4.
68596         * m4/inttypes.m4: Renamed from inttypes_h.m4.
68597         * m4/uintmax_t.m4: Removed.
68598
68599 2001-08-13  Paul Eggert  <eggert@twinsun.com>
68600
68601         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
68602         Port to Solaris 8, where 'sed' requires a space after the 'r'
68603         command, and where sh dislikes "$/".  Clean up the spacing a bit.
68604         Redirect output to $tmp just once.
68605
68606 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
68607
68608         * lib/addext.c (<errno.h>): Include.
68609         (errno): Declare if not defined.
68610         (addext): Work correctly when pathconf returns -1 and leaves
68611         errno alone because there is no limit.  Also, work even if
68612         pathconf returns a value greater than SIZE_MAX.
68613
68614 2001-08-12  Jim Meyering  <meyering@lucent.com>
68615
68616         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
68617         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
68618         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
68619         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
68620         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
68621         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
68622         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
68623         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
68624         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
68625         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
68626         utime.m4, utimes.m4, xstrtoumax.m4:
68627         Quote the first argument in each use of AC_DEFUN.
68628
68629 2001-08-12  Jim Meyering  <meyering@lucent.com>
68630
68631         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
68632         Simply `return getcwd (NULL, 0);'.
68633         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
68634         Use 1300 as initial value for length, not PATH_MAX.
68635
68636         * lib/pathmax.h: Clean up cpp syntax.
68637
68638 2001-08-12  Jim Meyering  <meyering@lucent.com>
68639
68640         * lib/gettimeofday.c: New file.
68641         * lib/gtod.h: New file.
68642         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
68643
68644 2001-08-05  Jim Meyering  <meyering@lucent.com>
68645
68646         * m4/jm-macros.m4: Require autoconf-2.52.
68647
68648 2001-08-04  Jim Meyering  <meyering@lucent.com>
68649
68650         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
68651         stmt, to get in sync with glibc.
68652
68653 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68654
68655         The following changes are from gettext 0.10.39 as maintained by
68656         Bruno Haible.
68657
68658         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
68659         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
68660         with inverted sense.  All uses changed.
68661
68662         * lib/mbswidth.c: Don't include <limits.h>.
68663         Include <stdlib.h> and <string.h> unconditionally.
68664         (iswcntrl, mbsinit, ISCNTRL): New macros.
68665         (mbsnwidth): Use K&R style function declarations.
68666         Don't bother checking for MB_LEN_MAX == 1, since the compiler
68667         can optimize it when MB_CUR_MAX == 1.
68668         The width of control characters is zero, not 1.
68669
68670 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68671
68672         The following changes are from gettext 0.10.39 as maintained by
68673         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
68674
68675         * m4/codeset.m4: Upgrade to serial AM1.
68676         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
68677         all uses changed.  Quote first arg of AC_DEFUN.
68678         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
68679
68680         * m4/iconv.m4: Upgrade to serial AM2.
68681         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
68682         Add --with-libconv-prefix.
68683         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
68684         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
68685         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
68686         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
68687         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
68688
68689         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
68690         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
68691         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
68692         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
68693         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
68694         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
68695         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
68696         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
68697         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68698
68699         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
68700         string.h any more.
68701
68702         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
68703         not the default value.
68704
68705         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
68706         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
68707         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
68708         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
68709         Also check for iswcntrl, used for wcwidth fallback.
68710         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
68711         to Autoconf 2.13.
68712
68713 2001-08-03  Jim Meyering  <meyering@lucent.com>
68714
68715         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
68716         as it was in the original.  Reported by Paul Eggert.
68717
68718 2001-07-16  Jim Meyering  <meyering@lucent.com>
68719
68720         * m4/gettimeofday.m4: New file.
68721         Prompted by a report from Bernhard Baehr.
68722
68723 2001-07-15  Jim Meyering  <meyering@lucent.com>
68724
68725         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
68726         stuff. Now it's in ../Makefile.cfg.
68727
68728 2001-07-15  Jim Meyering  <meyering@lucent.com>
68729
68730         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
68731         (BUILT_SOURCES): Add unlocked-io.h.
68732         (io_functions): Define.
68733         (unlocked-io.h): New rule.
68734         (DISTCLEANFILES): Add unlocked-io.h.
68735         (all-local): Depend on unlocked-io.h, to ensure it is created.
68736
68737         * lib/unlocked-io.hin: New file
68738
68739         * lib/regex.c: Update from glibc.
68740
68741 2001-07-05  Jim Meyering  <meyering@lucent.com>
68742
68743         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
68744         recommendation.
68745         (libfetish_a_SOURCES): Put all .h files here instead.
68746         Remove a thus-exposed (better checks in automake) duplicate and
68747         two unnecessary .h files.
68748
68749 2001-07-04  Jim Meyering  <meyering@lucent.com>
68750
68751         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
68752         that generates jm-glibc-io.m4 so that it doesn't trigger any make
68753         distcheck failure.
68754
68755 2001-07-02  Jim Meyering  <meyering@lucent.com>
68756
68757         The following changes were prompted by suggestions from Bruno Haible.
68758
68759         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
68760         is now generated.
68761         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
68762         definition of EXTRA_DIST.
68763         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
68764         ensure that the generated file is created/updated whenever the list
68765         of $(unlocked_functions) is changed.
68766         (jm-glibc-io.m4): New rule.
68767         (unlocked-io.h): New rule -- currently unused.
68768
68769 2001-06-24  Jim Meyering  <meyering@lucent.com>
68770
68771         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
68772         unmatched right bracket, rather than kludging it with an extra,
68773         falsely-matching quote in a comment.  Patch by Akim Demaille.
68774
68775 2001-06-11  Jim Meyering  <meyering@lucent.com>
68776
68777         * lib/regex.c: Update from GNU libc.
68778
68779 2001-05-27  Jim Meyering  <meyering@lucent.com>
68780
68781         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
68782         Check for ut_type in struct utmp.
68783
68784 2001-05-27  Jim Meyering  <meyering@lucent.com>
68785
68786         * lib/readutmp.h (UT_TYPE): Define.
68787
68788 2001-05-24  Jim Meyering  <meyering@lucent.com>
68789
68790         * lib/argmatch.c: Include "quote.h".
68791         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
68792         quote function.  Reported by Göran Uddeborg.
68793
68794 2001-05-22  Jim Meyering  <meyering@lucent.com>
68795
68796         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
68797         now that we use the package-supplied version unconditionally.
68798         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
68799
68800 2001-05-21  Jim Meyering  <meyering@lucent.com>
68801
68802         * m4/regex.m4: Change a couple backticks to single quotes to avoid
68803         shell syntax errors.
68804
68805 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68806
68807         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
68808
68809 2001-05-20  Paul Eggert  <eggert@twinsun.com>
68810
68811         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
68812         Don't bother to check library strftime, since
68813         we'll be using our own my_strftime function anyway.
68814         Define my_strftime instead of strftime.
68815
68816 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
68817
68818         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
68819         which is not yet declared.
68820
68821 2001-05-15  Jim Meyering  <meyering@lucent.com>
68822
68823         * m4/regex.m4: Use proper quoting so brackets appear in the test
68824         program.
68825         Reported by, and with help from, Bruno Haible.
68826
68827 2001-05-13  Jim Meyering  <meyering@lucent.com>
68828
68829         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
68830         undefined.
68831
68832 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68833
68834         dirname code cleanup.  base_name now behaves more compatibly
68835         with POSIX basename when given file names that have trailing
68836         slashes, and similarly for dir_name.  Add new primitives
68837         base_len and dir_len.  Put the directory-name-related decls
68838         into dirname.h.
68839
68840         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
68841         * lib/backupfile.c (base_name): Likewise.
68842         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
68843         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
68844         * lib/makepath.c (strip_trailing_slashes): Likewise.
68845         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
68846         ISSLASH): Likewise.
68847         * lib/rename.c (strip_trailing_slashes): Likewise.
68848         * lib/same.c (base_name): Likewise.
68849         * lib/stripslash.c (ISSLASH): Likewise.
68850
68851         * lib/addext.c: Include <dirname.h> after size_t is defined.
68852         * lib/backupfile.c: Likewise.
68853
68854         * lib/addext.c (addext): Use base_len to trim redundant
68855         trailing slashes instead of doing it ourselves.
68856         But do not trim the last slash if it is not redundant.
68857
68858         * lib/backupfile.c (find_backup_file_name,
68859         max_backup_version): Use base_len instead of rolling it ourselves.
68860         Handle the case of "" and (on DOS) "C:" correctly.
68861
68862         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
68863         needed. Include <string.h>, <dirname.h>.
68864         (base_name): Allow file names ending in slashes, other than names
68865         that are all slashes.  In this case, return the basename followed
68866         by the slashes.  This is more general, and can be used in places
68867         where the original base_name purposely had an assertion failure.
68868         (base_len): New function.
68869
68870         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
68871         Do not include <assert.h>; no longer needed.
68872         Include xalloc.h.
68873         (memrchr): Remove decl.
68874         (dir_name_r): Remove.
68875         (dir_len): Renamed from dirlen.  All callers changed.
68876         Rewrite in terms of base_name, for simplicity and consistency.
68877         (dir_name): Never return NULL.  All callers changed.
68878         Do not include <stdlib.h> in test program; no longer needed.
68879         return 0; is fine for test program.
68880
68881         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
68882         New macros.
68883         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
68884
68885         * lib/path-concat.c (path_concat): Use base_len to compute
68886         base length, not strlen; this means we cannot rely on memcpy
68887         to null-terminate.
68888
68889         * lib/same.c (STREQ): Remove.
68890         (same_name): Handle the case where the basename ends in trailing '/'.
68891
68892         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
68893         a slash was stripped.  Do not strip the last slash after a
68894         file system prefix.
68895
68896 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68897
68898         * lib/Makefile.am (libfetish_a_SOURCES):
68899         Add strftime.c, since we now compile it on all hosts.
68900
68901         * lib/strftime.c (my_strftime):
68902         Define to nstrftime if emacs, but only if my_strftime is not defined.
68903         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
68904         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
68905         Add one more extra argument: a nanoseconds value.
68906         All uses changed.
68907         (ns): New macro.
68908         (my_strftime function): Add %N format.
68909         (emacs_strftimeu): Renamed from emacs_strftime,
68910         with extra ut argument.
68911
68912 2001-05-09  Paul Eggert  <eggert@twinsun.com>
68913
68914         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
68915
68916 2001-04-21  Jim Meyering  <meyering@lucent.com>
68917
68918         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
68919         doesn't interfere.
68920
68921 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68922
68923         * m4/ftruncate.m4: Check for chsize.
68924         Link with ftruncate.o unconditionally if ftruncate is missing.
68925         This was required when cross-compiling to i586-mingw32msvc.
68926
68927 2001-04-08  Jim Meyering  <meyering@lucent.com>
68928
68929         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
68930         recomputed; that's necessary when the offset spans a DST transition.
68931         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
68932
68933 2001-04-02  Jim Meyering  <meyering@lucent.com>
68934
68935         * lib/regex.h, regex.c: Update from GNU libc.
68936
68937 2001-03-24  Jim Meyering  <meyering@lucent.com>
68938
68939         * m4/jm-macros.m4: Require autoconf-2.49d.
68940
68941 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
68942
68943         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
68944
68945 2001-03-19  Paul Eggert  <eggert@twinsun.com>
68946
68947         * lib/version-etc.c (version_etc_copyright): Update to 2001.
68948
68949 2001-03-17  Jim Meyering  <meyering@lucent.com>
68950
68951         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
68952         now that the version in autoconf is equivalent.
68953         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
68954
68955         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
68956         Suggestion from Akim Demaille.
68957
68958         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
68959         (jm_PREREQ_TEMPNAME): New function.
68960
68961 2001-03-16  Paul Eggert  <eggert@twinsun.com>
68962
68963         * lib/tempname.c (uint64_t): Define to uintmax_t if
68964         not defined, and if UINT64_MAX is not defined.
68965         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
68966         Reported by John David Anglin.
68967
68968 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
68969
68970         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
68971         resolve alias if codeset is empty.
68972         * lib/config.charset (BeOS): Use wildcard syntax.
68973
68974 2001-03-13  Jim Meyering  <meyering@lucent.com>
68975
68976         * lib/path-concat.c (path_concat)
68977         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
68978         concatenating e.g., `C:' and `foo'.
68979         From Bruno Haible.
68980
68981 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68982
68983         * lib/localcharset.c (locale_charset): Don't use
68984         setlocale(LC_CTYPE,NULL). Don't return NULL.
68985         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
68986
68987 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68988
68989         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
68990         support for DOS/DJGPP.
68991
68992 2001-03-01  Paul Eggert  <eggert@twinsun.com>
68993
68994         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
68995         lacks mkstemp.  Compile our own tempname.c if we compile our own
68996         mkstemp.c, as mkstemp relies on tempname.
68997
68998 2001-03-01  Jim Meyering  <meyering@lucent.com>
68999
69000         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
69001         AH_VERBATIM really does output its argument verbatim.
69002
69003 2001-02-28  Paul Eggert  <eggert@twinsun.com>
69004
69005         * lib/Makefile.am (libfetish_a_SOURCES):
69006         Add dup-safer.c, fopen-safer.c.
69007         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
69008
69009         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
69010         * lib/unistd-safer.h: New files.
69011
69012 2001-02-25  Paul Eggert  <eggert@twinsun.com>
69013
69014         The mkstemp replacement is taken from glibc 2.2.2, with some
69015         portability fixes for use outside glibc, as follows:
69016
69017         * lib/tempname.c (struct_stat64): New macro.
69018         (direxists, __gen_tempname): Use it.
69019         This avoids a portability problem with Solaris 8.
69020
69021         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
69022         (<stddef.h>, <stdint.h>, <string.h>):
69023         Include only if STDC_HEADERS || _LIBC.
69024         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
69025         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
69026         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
69027         (__set_errno): Define this macro if <errno.h> doesn't.
69028         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
69029         Define these macros if <stdio.h> doesn't.
69030         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
69031         Define these macros if <sys/stat.h>
69032         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
69033         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
69034         __xstat64): Define if not _LIBC.
69035         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
69036         (__gen_tempname): Invoke gettimeofday only if
69037         HAVE_GETTIMEOFDAY || _LIBC;
69038         otherwise, fall back on plain "time".
69039         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
69040
69041         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
69042
69043         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
69044
69045 2001-02-18  Paul Eggert  <eggert@twinsun.com>
69046
69047         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
69048
69049 2001-02-17  Paul Eggert  <eggert@twinsun.com>
69050
69051         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
69052         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
69053         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
69054         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
69055
69056 2001-02-17  Paul Eggert  <eggert@twinsun.com>
69057
69058         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
69059         Remove workaround macros for hosts that have mbrtowc but not
69060         mbstate_t, as we now insist on proper declarations for both
69061         before using mbrtowc.
69062
69063 2001-02-17  Jim Meyering  <meyering@lucent.com>
69064
69065         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
69066         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
69067         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
69068         UnixWare 7.1.1.
69069
69070         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
69071         rather than AC_CACHE_VAL.
69072
69073 2001-02-17  Jim Meyering  <meyering@lucent.com>
69074
69075         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
69076         around included file name.
69077
69078         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
69079
69080         * lib/strftime.c: Update from GNU libc (the only changes were to
69081         comments).
69082
69083 2001-02-17  Jim Meyering  <meyering@lucent.com>
69084
69085         * lib/regex.c: Update from libc.
69086
69087 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
69088
69089         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
69090         clash.
69091
69092 2001-02-16  Paul Eggert  <eggert@twinsun.com>
69093
69094         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
69095         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
69096         Reported by Mark Hounschell via Paul Eggert.
69097
69098 2001-02-07  Jim Meyering  <meyering@lucent.com>
69099
69100         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
69101
69102 2001-02-05  Jim Meyering  <meyering@lucent.com>
69103
69104         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
69105         it includes the patch required for `large file' support with at least
69106         HP-UX's 10.20 /bin/cc.
69107
69108 2001-02-03  Jim Meyering  <meyering@lucent.com>
69109
69110         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
69111         AS_IF, now that it works once again (mysteriously).
69112         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
69113
69114 2001-01-30  Jim Meyering  <meyering@lucent.com>
69115
69116         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
69117         * m4/chown.m4: Rename conftestchown to conftest.chown.
69118         * m4/rename.m4: s/conftestdir/conftest.d1/ and
69119         s/conftestdir2/conftest.d2/.
69120         * m4/utimes.m4: s/conftestdata/conftest.data/
69121         Inspired by Pavel Roskin's change in autoconf.
69122
69123 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
69124
69125         * lib/config.charset: Update for FreeBSD 4.2.
69126
69127 2001-01-27  Jim Meyering  <meyering@lucent.com>
69128
69129         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
69130         a use of AS_IF.
69131         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
69132
69133 2001-01-26  Jim Meyering  <meyering@lucent.com>
69134
69135         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
69136         quotearg.c includes it.
69137
69138 2001-01-26  Jim Meyering  <meyering@lucent.com>
69139
69140         * lib/quotearg.c: Include stddef.h.
69141         * lib/quote.c: Include stddef.h.
69142         Reported by Axel Kittenberger.
69143
69144         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
69145         line in double quotes so that it evokes a better diagnostic.
69146         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
69147         Reported by Axel Kittenberger.
69148
69149 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
69150
69151         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
69152         as if it was a `charset'.
69153
69154 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
69155
69156         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
69157         has const.
69158
69159 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
69160
69161         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
69162         to avoid a warning.  Add back 'const' to inptr.
69163
69164 2001-01-20  Jim Meyering  <meyering@lucent.com>
69165
69166         Be sure that headers are checked before used in code compiled
69167         for the type checks.
69168         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
69169         In place of that, invoke jm_CHECK_ALL_TYPES.
69170         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
69171         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
69172         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
69173         The check for ssize_t was mistakenly run before the test for unistd.h.
69174
69175         The configure-time check for stdbool.h was missing.
69176         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
69177         (jm_PREREQ_HASH): New function.
69178
69179 2001-01-17  Jim Meyering  <meyering@lucent.com>
69180
69181         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
69182         for autoconf-2.49c.
69183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
69184
69185 2001-01-16  Jim Meyering  <meyering@lucent.com>
69186
69187         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
69188         From Bruno Haible.
69189
69190 2001-01-14  Jim Meyering  <meyering@lucent.com>
69191
69192         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
69193         foo and bar.  Create conftestdir/ in the script, not in the C code.
69194         Remove directories in the script, not in the C code.
69195         Remove conftestdir{,2} before trying to create the directory.
69196         Make the entire configure script fail if the mkdir fails.
69197
69198 2001-01-14  Jim Meyering  <meyering@lucent.com>
69199
69200         * lib/rename.c: New file.  From Volker Borchert.
69201         Include stdlib.h, string.h or strings.h, and xalloc.h.
69202         Use strip_trailing_slashes rather than open-coding it.
69203
69204 2001-01-03  Paul Eggert  <eggert@twinsun.com>
69205
69206         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
69207
69208 2001-01-03  Jim Meyering  <meyering@lucent.com>
69209
69210         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
69211         of local `inptr' to avoid warning with some system declarations of
69212         iconv.
69213
69214 2001-01-02  Volker Borchert  <bt@teknon.de>
69215
69216         * m4/rename.m4: New file.
69217         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
69218
69219 2001-01-01  Jim Meyering  <meyering@lucent.com>
69220
69221         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
69222         even on systems with utmpx.h.  It's necessary for the declaration of
69223         utmp's ut_user member.  Reported by Andreas Jaeger.
69224
69225         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
69226         available. They are required for the declarations of getgrgid and
69227         getpwuid resp.
69228         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
69229         Reported by Andreas Jaeger.
69230
69231 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
69232
69233         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
69234         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
69235         so `make install' also works in VPATH builds.
69236
69237 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
69238
69239         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
69240         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
69241         can be used in subdirectories.
69242
69243 2000-12-29  Paul Eggert  <eggert@twinsun.com>
69244
69245         * lib/modechange.c: Do not assume that mode_t uses the
69246         traditional octal encoding.  E.g. "chmod 1 FOO" should set
69247         the other-execute bit of FOO even if S_IXOTH != 1.
69248
69249         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
69250         WOTH, XOTH, ALLM): New macros.
69251         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
69252          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
69253         Use them.
69254         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
69255         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
69256         (mode_compile):
69257         No need to use uintmax_t; unsigned long is long enough.
69258         Don't bother to get suffix since we don't use it.
69259
69260 2000-12-26  Jim Meyering  <meyering@lucent.com>
69261
69262         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
69263         better with autoheader.
69264
69265 2000-12-24  Jim Meyering  <meyering@lucent.com>
69266
69267         * lib/hash.c (is_prime): Return explicit boolean values.
69268         (hash_get_first): Return NULL to appease Irix5.6's 89.
69269         Reported by Nelson Beebe.
69270
69271 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
69272
69273         * lib/localcharset.c (locale_charset): Add support for Win32.
69274
69275 2000-12-18  Paul Eggert  <eggert@twinsun.com>
69276
69277         * lib/physmem.h, lib/physmem.c: New files.
69278
69279         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
69280         (noinst_HEADERS): Add physmem.h.
69281
69282         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
69283         't' for compatibility with Solaris 8 sort.
69284
69285 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
69286
69287         * lib/config.charset: Add support for BeOS.
69288
69289 2000-12-17  Jim Meyering  <meyering@lucent.com>
69290
69291         * m4/dos.m4 (jm_AC_DOS): New file and macro.
69292         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
69293
69294 2000-12-16  Jim Meyering  <meyering@lucent.com>
69295
69296         This bug had a serious impact on chown: `chown N:M FILE' (for integer
69297         N and M) would have treated it like `chown N:N FILE'.
69298
69299         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
69300
69301 2000-12-16  Jim Meyering  <meyering@lucent.com>
69302
69303         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
69304         SHELLS_FILE to a file name that's useful on djgpp systems.
69305         Include stdlib.h.
69306         (ADDITIONAL_DEFAULT_SHELLS): Define.
69307         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
69308         Based mostly on a patch from Prashant TR.
69309
69310 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
69311
69312         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
69313         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
69314         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
69315
69316 2000-12-08  Andreas Schwab  <schwab@suse.de>
69317
69318         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
69319         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
69320
69321 2000-12-07  Jim Meyering  <meyering@lucent.com>
69322
69323         * lib/stripslash.c (ISSLASH): Define.
69324         (strip_trailing_slashes): Use ISSLASH rather than comparing against
69325         `/'.
69326         From Prashant TR.
69327
69328         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
69329         (dir_name_r): Declare this function as static.
69330         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
69331         manifest itself on a name containing a mix of slashes and
69332         backslashes.
69333         Make this function work with names starting with a DOS-style
69334         drive letter and colon prefix.
69335         (dir_name): Append `.' if necessary.
69336         Based mostly on patches from Prashant TR and Eli Zaretskii.
69337
69338         * lib/dirname.h (dir_name_r): Remove prototype.
69339
69340 2000-12-06  Paul Eggert  <eggert@twinsun.com>
69341
69342         * m4/off_t-format.m4: Remove this file.
69343         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
69344
69345 2000-12-06  Jim Meyering  <meyering@lucent.com>
69346
69347         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
69348         replacement strtoull, we may well need the replacement strtoul, too.
69349         Check for declarations of strtoul and strtoull.
69350         Check for strtol.  Mainly as a cue to cause automake to include
69351         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
69352         Check for limits.h -- strtol.c needs it.
69353
69354 2000-12-05  Jim Meyering  <meyering@lucent.com>
69355
69356         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
69357
69358 2000-12-04  Jim Meyering  <meyering@lucent.com>
69359
69360         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
69361         Also include memory.h, stdlib.h, unistd.h if appropriate.
69362         Reported by Andreas Jaeger (conflicting declaration of malloc).
69363
69364 2000-12-02  Jim Meyering  <meyering@lucent.com>
69365
69366         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
69367         * m4/jm-macros.m4 (jm_MACROS): require it.
69368
69369 2000-12-02  Jim Meyering  <meyering@lucent.com>
69370
69371         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
69372
69373 2000-12-01  Paul Eggert  <eggert@twinsun.com>
69374
69375         * lib/memrchr.c: Include <config.h> before any system include file.
69376
69377 2000-11-30  Jim Meyering  <meyering@lucent.com>
69378
69379         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
69380
69381 2000-11-30  Jim Meyering  <meyering@lucent.com>
69382
69383         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
69384
69385 2000-11-29  Paul Eggert  <eggert@twinsun.com>
69386
69387         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
69388
69389 2000-11-26  Jim Meyering  <meyering@lucent.com>
69390
69391         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
69392
69393 2000-11-22  Paul Eggert  <eggert@twinsun.com>
69394
69395         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
69396         size of (size_t) -1; it's not portable.
69397
69398 2000-11-17  Jim Meyering  <meyering@lucent.com>
69399
69400         * lib/strstr.c: Update from GNU libc.
69401
69402 2000-11-17  Akim Demaille  <akim@epita.fr>
69403
69404         * lib/obstack.h: Formatting changes.
69405         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
69406         prevent type checking.
69407         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
69408         cast the value to (void *): assigning a `foo *' to a `void *'
69409         variable is valid.
69410         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
69411
69412 2000-11-16  Jim Meyering  <meyering@lucent.com>
69413
69414         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
69415
69416 2000-11-11  Jim Meyering  <meyering@lucent.com>
69417
69418         * lib/error.c: Add a couple #includes, merging from GNU libc version.
69419
69420 2000-11-10  Jim Meyering  <meyering@lucent.com>
69421
69422         * lib/obstack.h: Update from GNU libc.
69423         * lib/obstack.c: Likewise.
69424
69425 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
69426
69427         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
69428
69429 2000-11-06  Paul Eggert  <eggert@twinsun.com>
69430
69431         * lib/getusershell.c (setusershell): Use rewind rather than
69432         fseek/fseeko, to avoid configuration hassles with fseeko.
69433         Don't bother opening SHELLS_FILE if shellstream is NULL;
69434         it's not necessary.
69435
69436 2000-11-05  Jim Meyering  <meyering@lucent.com>
69437
69438         * lib/makepath.h (make_dir): Declare.
69439         * lib/makepath.c (make_dir): Remove `static' attribute.
69440         Tweak a comment.
69441
69442 2000-11-04  Jim Meyering  <meyering@lucent.com>
69443
69444         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
69445
69446 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
69447
69448         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
69449         last one in a bucket, advance to the next bucket.
69450
69451 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
69452
69453         * lib/fnmatch.c: Do not comment out all the code if we are using
69454         the GNU C library, because in some cases we are replacing buggy
69455         code in the GNU C library itself.
69456
69457 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
69458
69459         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
69460         (regex_compile): Catch bogus \(\1\).
69461
69462 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69463
69464         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
69465         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
69466         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
69467
69468 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69469
69470         * lib/error.h, getline.h, modechange.h:
69471         Remove "2000" from Copyright line, as the file hasn't been
69472         changed this year other than in the copyright notice.
69473
69474         * lib/xalloc.h: Add "2000" to Copyright line, as this file
69475         was changed this year.
69476
69477 2000-10-29  Jim Meyering  <meyering@lucent.com>
69478
69479         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
69480         renaming.
69481         * m4/ls-mntd-fs.m4: Likewise
69482
69483 2000-10-29  Jim Meyering  <meyering@lucent.com>
69484
69485         * lib/xstat.in: Fix grammar in comment.
69486
69487 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
69488
69489         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
69490         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
69491         doesn't define __restrict_arr.
69492
69493 2000-10-28  Jim Meyering  <meyering@lucent.com>
69494
69495         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
69496         (jm_PREREQ_MEMCHR): New function.
69497
69498 2000-10-28  Jim Meyering  <meyering@lucent.com>
69499
69500         * lib/memchr.c: Update from libc.
69501         Adjust for portability:
69502         [HAVE_STDLIB_H]: Include stdlib.h.
69503         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
69504         Undef __memchr, too.
69505         [!weak_alias]: Define __memchr to memchr.
69506
69507         * lib/regex.c: Update from libc.
69508         * lib/regex.h: Likewise.
69509         * lib/getopt1.c: Likewise.
69510         * lib/memcmp.c: Likewise.
69511
69512         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
69513         Avoid using fseek, when possible -- it's broken by design.
69514         Patch by Ulrich Drepper.
69515
69516 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
69517
69518         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
69519         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
69520         Giving in to popular pressure to shut up the compiler with casts.
69521
69522 2000-10-26  Jim Meyering  <meyering@lucent.com>
69523
69524         * lib/strftime.c: Update from libc.
69525
69526 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
69527
69528         * regex.c: More `unsigned char' -> `re_char' changes.
69529         Also change several `int' into `re_wchar_t'.
69530         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
69531         (PUSH_FAILURE_POINTER): Don't cast any more.
69532         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
69533         We want GCC to complain, since this piece of code makes
69534         re_match non-reentrant, which *should* be fixed.
69535         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
69536         (EXTEND_BUFFER): Use RETALLOC.
69537         (SET_LIST_BIT): Don't cast.
69538         (re_wchar_t): New type.
69539         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
69540         that those two functions will always properly return.
69541         (IMMEDIATE_QUIT_CHECK): Cast to void.
69542         (analyse_first): Use recursion rather than an explicit stack.
69543         (re_compile_fastmap): Can't fail anymore.
69544         (re_search_2): Don't check re_compile_fastmap for failure.
69545         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
69546         Now also sets the new value (passed in a new argument).
69547         (re_match_2_internal): Use it.
69548         Also, use a new var `reg' of type size_t when looping through regs
69549         rather than reuse the inappropriate `mcnt'.
69550
69551 2000-10-25  Jim Meyering  <meyering@lucent.com>
69552
69553         * lib/obstack.c: Update from libc.
69554
69555 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
69556
69557         * regex.c (regex_compile): Change the way of handling a range from
69558         a char less than 256 to a char not less than 256.
69559
69560 2000-10-24  Andrew Innes  <andrewi@gnu.org>
69561
69562         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
69563         NT-Emacs only.
69564         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
69565         so that re_search functions only quit when callers expect them to.
69566
69567 2000-10-23  Jim Meyering  <meyering@lucent.com>
69568
69569         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
69570         wrong.  That set_locale call must not have any side effects.
69571         From Paul Eggert.
69572
69573 2000-10-22  Jim Meyering  <meyering@lucent.com>
69574
69575         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
69576         [CYCLIC]: Remove now-unused definition.
69577
69578         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
69579         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
69580         Suggestion from Ulrich Drepper.
69581
69582 2000-10-21  Jim Meyering  <meyering@lucent.com>
69583
69584         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
69585         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
69586         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
69587
69588 2000-10-21  Jim Meyering  <meyering@lucent.com>
69589
69590         * lib/dirname.c (memrchr): Declare if necessary.
69591         (dir_name): Remove the restriction that there be no
69592         trailing slashes.  Now, this code skips past them, effectively
69593         ignoring them.
69594         [TEST_DIRNAME] (main): New unit tests.
69595
69596         * lib/memrchr.c: New file from GNU libc.
69597         Undef __memrchr, too.
69598         [!weak_alias]: Define __memrchr to memrchr.
69599         Guard weak_alias use with `#ifdef weak_alias'.
69600
69601 2000-10-21  Jim Meyering  <meyering@lucent.com>
69602
69603         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
69604         (dir_name): Use dir_name_r.
69605         * lib/dirname.h (dir_name_r): Declare it.
69606
69607 2000-10-17  Jim Meyering  <meyering@lucent.com>
69608
69609         * lib/quote.h (PARAMS): Define and use.
69610         Reported by Akim Demaille.
69611
69612         * lib/getopt.c: Update from libc.
69613
69614 2000-10-16  Jim Meyering  <meyering@lucent.com>
69615
69616         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
69617         setlocale.
69618         From Jan Fedak.
69619
69620 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
69621
69622         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
69623
69624 2000-09-25  Jim Meyering  <meyering@lucent.com>
69625
69626         * lib/md5.h (rol): Define (from GnuPG).
69627
69628         * lib/sha.c: Give credit (GnuPG) where due.
69629         (M): Use rol rather than open-coding it.
69630         Add a FIXME comment.
69631
69632 2000-09-21  Jim Meyering  <meyering@lucent.com>
69633
69634         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
69635         Reported by Michael Stone.
69636
69637 2000-09-20  Jim Meyering  <meyering@lucent.com>
69638
69639         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
69640         (noinst_HEADERS): Add sha.h.
69641         Based on code from Scott G. Miller and from GnuPG.
69642
69643 2000-09-18  Jim Meyering  <meyering@lucent.com>
69644
69645         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
69646         LIBS. Otherwise, everyone ends up linking with -lelf for some
69647         configurations.
69648         Reported by Mike Stone.
69649
69650 2000-09-15  Jim Meyering  <meyering@lucent.com>
69651
69652         * lib/regex.c: Update from libc.
69653
69654 2000-09-10  Jim Meyering  <meyering@lucent.com>
69655
69656         * lib/getopt.c (_getopt_internal): Update from glibc.
69657
69658 2000-09-09  Jim Meyering  <meyering@lucent.com>
69659
69660         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
69661         think it should be used as a general replacement for isascii.
69662         * lib/fnmatch.c: Likewise.
69663         * lib/mbswidth.c: Likewise
69664         * lib/regex.c: Likewise.
69665
69666         Don't use atoi.
69667         * lib/userspec.c: Include sys/param.h and limits.h.
69668         Include xstrtol.h.
69669         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69670         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
69671         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
69672         UID, GID.  Check range.
69673
69674 2000-09-06  Jim Meyering  <meyering@lucent.com>
69675
69676         * lib/getopt.c (_getopt_internal): Update from glibc.
69677
69678 2000-08-30  Jim Meyering  <meyering@lucent.com>
69679
69680         * lib/strftime.c: Merge in changes from GNU libc.
69681
69682 2000-08-26  Jim Meyering  <meyering@lucent.com>
69683
69684         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
69685         * m4/fpending.m4: New file.
69686
69687 2000-08-26  Jim Meyering  <meyering@lucent.com>
69688
69689         * lib/closeout.c: Include "__fpending.h".
69690         (close_stdout_status): Return right away if there's nothing to flush.
69691
69692         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
69693         * lib/__fpending.c: New file.
69694         * lib/__fpending.h: New file.
69695
69696 2000-08-20  Jim Meyering  <meyering@lucent.com>
69697
69698         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
69699         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
69700         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
69701
69702 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
69703
69704         Improve fileutils installation on systems where running
69705         programs (like install) can't be unlinked.
69706         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
69707         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
69708
69709 2000-08-07  Paul Eggert  <eggert@twinsun.com>
69710
69711         Standardize on "memory exhausted" instead of "Memory exhausted"
69712         or "virtual memory exhausted".
69713         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
69714         "virtual memory exhausted".
69715         * lib/same.c (same_name): Invoke xalloc_die instead of printing
69716         our own message.
69717         * lib/userspec.c (parse_user_spec): Likewise.
69718         * lib/bumpalloc.h: comment fix
69719         * lib/same.c, userspec.c: Include xalloc.h.
69720
69721         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
69722         not char *const and pointing to a constant array.
69723         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
69724         (xrealloc): Comment fix.
69725
69726         * lib/userspec.c (parse_user_spec):
69727         Don't translate a message until just before returning,
69728         to avoid unnecessary translation.
69729
69730 2000-08-07  Jim Meyering  <meyering@lucent.com>
69731
69732         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
69733         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
69734         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
69735         getgroups.c, gethostname.c, getopt.h, group-member.c,
69736         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
69737         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
69738         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
69739         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
69740         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
69741         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
69742         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
69743         yesno.c: Back out Copyright date changes for each file with no change
69744         this year.  This eases coordination with other programs using the same
69745         source code modules.  From Paul Eggert.
69746
69747 2000-08-06  Paul Eggert  <eggert@twinsun.com>
69748
69749         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
69750         not char, for compatibility with glibc 2.1.3 strftime.c.
69751
69752 2000-08-03  Greg McGary  <greg@mcgary.org>
69753
69754         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
69755         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
69756         (EXTEND_BUFFER): Use them.
69757
69758 2000-08-01  Jim Meyering  <meyering@lucent.com>
69759
69760         * lib/dirname.c (ISSLASH): Define.
69761         (BACKSLASH_IS_PATH_SEPARATOR): Define.
69762         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
69763         both `\' and `/' may be use as path separators.
69764         Based on a patch from Prashant TR.
69765
69766 2000-07-31  Paul Eggert  <eggert@twinsun.com>
69767
69768         * lib/quotearg.c (quotearg_n_options): Don't make the initial
69769         slot vector a constant, since it might get modified.
69770
69771 2000-07-31  Jim Meyering  <meyering@lucent.com>
69772
69773         * lib/xmalloc.c: Use `virtual memory exhausted', not
69774         `Memory exhausted'.
69775         * lib/obstack.c (print_and_abort): Likewise.
69776
69777 2000-07-30  Paul Eggert  <eggert@twinsun.com>
69778
69779         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
69780         buffer, so that the caller can always quote one small
69781         component of a "memory exhausted" message in slot 0.
69782         From a suggestion by Jim Meyering.
69783
69784 2000-07-30  Jim Meyering  <meyering@lucent.com>
69785
69786         * lib/makepath.c (make_path): Quote the other instance, too.
69787
69788         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
69789         (STATIC_BUF_SIZE): Define.
69790         (quotearg_n_options): Use only statically allocated storage when
69791         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
69792         than STATIC_BUF_SIZE.
69793
69794 2000-07-29  Jim Meyering  <meyering@lucent.com>
69795
69796         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
69797         * lib/dirname.c (dir_name): Likewise.
69798
69799         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
69800         `/'.
69801
69802         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
69803         (dir_name): Assert that there are no trailing slashes.
69804
69805 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
69806
69807         * lib/mbswidth.h (mbswidth): Add a flags argument.
69808         (mbswidth): New declaration.
69809         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
69810         * lib/mbswidth.c (mbswidth): Add a flags argument.
69811         (mbsnwidth): New function.
69812
69813 2000-07-24  Jim Meyering  <meyering@lucent.com>
69814
69815         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
69816
69817 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69818
69819         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
69820
69821 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69822
69823         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
69824         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
69825         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
69826         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
69827         invoke multibyte primitives.
69828
69829 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69830
69831         * lib/quotearg.c:
69832         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
69833         so that mbstate_t is always defined.
69834
69835         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
69836         be 1 in at least one GCC installation, and this configuration
69837         error is likely to be common.  Ignoring MB_LEN_MAX hurts
69838         performance on hosts that have mbrtowc but have only unibyte
69839         locales, but I assume these hosts are rare.
69840
69841 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69842
69843         * lib/mbswidth.c (_XOPEN_SOURCE):
69844         Don't define; this causes problems on Solaris 7.
69845         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
69846
69847 2000-07-23  Jim Meyering  <meyering@lucent.com>
69848
69849         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
69850         too: getgrgid, getpwuid, getuid.
69851
69852 2000-07-23  Jim Meyering  <meyering@lucent.com>
69853
69854         * lib/basename.c (base_name): Add an assertion.
69855
69856 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
69857
69858         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
69859         shadow its mbsinit function.
69860
69861 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69862
69863         * lib/mbswidth.h: New file.
69864         * lib/mbswidth.c: New file.
69865         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
69866         (noinst_HEADERS): Add mbswidth.h.
69867
69868 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69869
69870         * lib/config.charset: Add support for FreeBSD. Improve support for
69871         HP-UX and IRIX 6.
69872
69873 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
69874
69875         * m4/mbswidth.m4: New file.
69876         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
69877
69878 2000-07-15  Jim Meyering  <meyering@lucent.com>
69879
69880         * lib/makepath.c: Include quote.h.
69881         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
69882         corresponding argument in a `quote (...)' call.
69883         Give better diagnostics.
69884
69885         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
69886         (noinst_HEADERS): Add quote.h.
69887
69888         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
69889         from tar's src/misc.c.
69890         * lib/quote.h: New file.  Prototypes for same.
69891
69892 2000-07-14  Paul Eggert  <eggert@twinsun.com>
69893
69894         From a suggestion by Bruno Haible.
69895         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
69896         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
69897         to decide whether to define the BeOS workaround macro;
69898         this adjusts to the change to AC_MBSTATE_T.
69899
69900 2000-07-14  Jim Meyering  <meyering@lucent.com>
69901
69902         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
69903         jm_AC_TYPE_UINTMAX_T.
69904
69905 2000-07-13  Paul Eggert  <eggert@twinsun.com>
69906
69907         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
69908
69909         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
69910         quotearg_buffer_restyled): Add support for
69911         clocale_quoting_style.  Undo previous change to
69912         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
69913         and "{RIGHT QUOTATION MARK}" msgids.
69914
69915 2000-07-10  Paul Eggert  <eggert@twinsun.com>
69916
69917         From a suggestion by Bruno Haible.
69918         * m4/mbstate_t.m4 (AC_MBSTATE_T):
69919         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
69920         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
69921         and mbstate_t, to a single-part test that simply defines mbstate_t.
69922         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
69923         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
69924
69925 2000-07-10  Jim Meyering  <meyering@lucent.com>
69926
69927         * m4/strerror_r.m4: Mirror the correction made in autoconf.
69928
69929         * m4/gnu-source.m4: Output to confdefs.h directly.
69930         Suggestion from Akim Demaille.
69931
69932 2000-07-09  Paul Eggert  <eggert@twinsun.com>
69933
69934         The old behavior of quoting `like this' doesn't look good with
69935         newer, ISO-style fonts.  See:
69936         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
69937
69938         Instead, quote "like this" by default.  Let the translator
69939         tailor the locale-specific quoting behavior by providing
69940         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
69941
69942         * lib/quotearg.c (N_): New macro.
69943         (gettext_default): New function.
69944         (quotearg_buffer_restyled): Use
69945         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
69946         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
69947
69948 2000-07-09  Jim Meyering  <meyering@lucent.com>
69949
69950         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
69951         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
69952
69953         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
69954         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
69955
69956 2000-07-09  Jim Meyering  <meyering@lucent.com>
69957
69958         * lib/Most files: Update copyright dates to include 2000.
69959
69960 2000-07-08  Jim Meyering  <meyering@lucent.com>
69961
69962         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
69963         if not defined.
69964         (xgethostname): Remove now-unnecessary #ifdef.
69965         Move declaration of `err' into loop where it's used.
69966
69967 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69968         and Bruno Haible  <haible@clisp.cons.org>
69969
69970         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
69971         only if the test for an object-type mbstate_t fails.  This
69972         prevents us from mistakenly reporting that mbstate_t is a
69973         system object type after we "#define mbstate_t int" to work
69974         around its lack.
69975
69976 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69977         and Bruno Haible  <haible@clisp.cons.org>
69978
69979         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
69980
69981 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69982
69983         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
69984         to strerror_r.
69985         Include <ctype.h> for use of isalpha.
69986
69987 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69988
69989         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
69990         by allocating a larger buffer. Test the gethostname return value for
69991         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
69992         returns an error and ENAMETOOLONG isn't defined.
69993
69994 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69995
69996         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
69997         dimension.
69998
69999 2000-07-04  Jim Meyering  <meyering@lucent.com>
70000
70001         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
70002         of the deprecated AC_CHECKING.
70003
70004 2000-07-04  Jim Meyering  <meyering@lucent.com>
70005
70006         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
70007         Reported by Bruno Haible.
70008
70009 2000-07-04  Jim Meyering  <meyering@lucent.com>
70010
70011         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
70012         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
70013         lacks mbrtowc.
70014
70015 2000-07-03  Paul Eggert  <eggert@twinsun.com>
70016
70017         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
70018         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
70019
70020 2000-07-03  Paul Eggert  <eggert@twinsun.com>
70021         and Bruno Haible  <haible@clisp.cons.org>
70022
70023         * lib/quotearg.c (mbrtowc):
70024         Assign to *pwc, and return 1 only if result is nonzero.
70025         (iswprint): Use ISPRINT when substituting our own mbrtowc.
70026
70027 2000-07-03  Jim Meyering  <meyering@lucent.com>
70028
70029         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
70030
70031 2000-07-03  Jim Meyering  <meyering@lucent.com>
70032
70033         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
70034         This is necessary to get a definition of e.g., UTMP_FILE on
70035         HP-UX 10.20.
70036         From Bob Proulx.
70037
70038 2000-07-02  Jim Meyering  <meyering@lucent.com>
70039
70040         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
70041
70042         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
70043         AC_LIBOBJ(function_name).
70044         * m4/chown.m4: Likewise.
70045         * m4/fnmatch.m4: Likewise.
70046         * m4/ftruncate.m4: Likewise.
70047         * m4/getgroups.m4: Likewise.
70048         * m4/getline.m4: Likewise.
70049         * m4/group-member.m4: Likewise.
70050         * m4/jm-macros.m4: Likewise.
70051         * m4/lstat.m4: Likewise.
70052         * m4/malloc.m4: Likewise.
70053         * m4/memcmp.m4: Likewise.
70054         * m4/nanosleep.m4: Likewise.
70055         * m4/putenv.m4: Likewise.
70056         * m4/realloc.m4: Likewise.
70057         * m4/regex.m4: Likewise.
70058         * m4/stat.m4: Likewise.
70059         * m4/strftime.m4: Likewise.
70060
70061 2000-07-02  Jim Meyering  <meyering@lucent.com>
70062
70063         * lib/quotearg.c (mbstate_t): Don't define here.
70064
70065 2000-07-02  Jim Meyering  <meyering@lucent.com>
70066
70067         * lib/nanosleep.c (SIGCONT): Define if not already defined.
70068
70069 2000-07-01  Jim Meyering  <meyering@lucent.com>
70070
70071         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
70072
70073 2000-07-01  Jim Meyering  <meyering@lucent.com>
70074
70075         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
70076         problem.
70077
70078 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
70079
70080         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
70081         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
70082
70083 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
70084
70085         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
70086         per change in ../m4/ls-mntd-fs.m4.
70087         (read_filesystem_list): Ignore symbolic links.
70088
70089 2000-06-29  Jim Meyering  <meyering@lucent.com>
70090
70091         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
70092         for declaration of strcmp.
70093
70094         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
70095
70096         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
70097         Avoid warning by casting result to `char *' to remove `const'.
70098
70099 2000-06-28  Jim Meyering  <meyering@lucent.com>
70100
70101         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
70102         included by quotearg.c, for which we perform this test.  From
70103         Bruno Haible.
70104
70105 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
70106
70107         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
70108         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
70109         <utmpx.h> exists, put readutmp.o into LIBOBJS.
70110
70111 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
70112
70113         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
70114
70115 2000-06-26  Paul Eggert  <eggert@twinsun.com>
70116
70117         savedir now sets errno on failure and invokes xmalloc to get memory.
70118         Fix a couple of other minor bugs while we're at it.
70119
70120         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
70121         (NAMLEN): Remove macro.
70122         (malloc, realloc): Remove decls.
70123         (stpcpy): Likewise.
70124         ("xalloc.h"): Include.
70125         (NAME_SIZE_DEFAULT): New macro.
70126         (savedir): Use xmalloc / xrealloc to allocate memory.
70127         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
70128         Skip "" directory entries.
70129         Use strlen to calculate directory entry length, since the old method
70130         is rarely used these days and isn't worth supporting.
70131         Don't use a pointer after freeing it.
70132         Check for integer overflow when calculating allocation size.
70133         Use memcpy to copy entries, instead of stpcpy.
70134         Set errno properly when returning NULL.
70135         Check for readdir error.
70136
70137 2000-06-26  Jim Meyering  <meyering@lucent.com>
70138
70139         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
70140
70141 2000-06-25  Jim Meyering  <meyering@lucent.com>
70142
70143         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
70144         Linux header bug when _XOPEN_SOURCE is defined to 500.
70145
70146 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
70147
70148         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
70149         deficiency.
70150
70151 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
70152
70153         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
70154         Include xalloc.h.
70155         Don't include <stdlib.h>.  Don't declare malloc, realloc.
70156
70157 2000-06-24  Jim Meyering  <meyering@lucent.com>
70158
70159         * m4/strerror_r.m4: Revive this file -- to try out an experimental
70160         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
70161         for which strerror does return char*, but which lacks a conveniently
70162         accessible declaration of the function.  If the compile-test says
70163         strerror_r doesn't work, then resort to a `run'-test that works on
70164         BeOS and segfaults on DEC Unix.
70165
70166 2000-06-24  Jim Meyering  <meyering@lucent.com>
70167
70168         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
70169
70170 2000-06-23  Paul Eggert  <eggert@twinsun.com>
70171
70172         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
70173         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
70174
70175 2000-06-23  Paul Eggert  <eggert@twinsun.com>
70176
70177         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
70178         (mbrtowc, mbstate_t): Define substitutes if
70179         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
70180         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
70181         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
70182
70183 2000-06-23  Jim Meyering  <meyering@lucent.com>
70184
70185         * m4/afs.m4: Add missing AC_MSG_RESULT.
70186         Reported by Bruno Haible.
70187
70188         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
70189         Suggestion from Bruno Haible.
70190
70191 2000-06-23  Jim Meyering  <meyering@lucent.com>
70192
70193         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
70194
70195 2000-06-21  Jim Meyering  <meyering@lucent.com>
70196
70197         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
70198
70199 2000-06-21  Jim Meyering  <meyering@lucent.com>
70200
70201         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
70202         (noinst_HEADERS): Add getstr.h.
70203
70204         * lib/getline.c (getstr): Move into a separate file.
70205         * lib/getstr.c (getstr): New file, extracted from getline.c, with
70206         the following changes: new parameter, delim2; both delim[12]
70207         parameters have type `int', not `char'.  The latter would lose
70208         with 8-bit delimiters.
70209         * lib/getstr.h: New file.
70210
70211 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70212
70213         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
70214         than 1024, return a memory chunk of least possible size, instead
70215         of size PATH_MAX + 2. In the loop, increment the size proportionally.
70216         Use free/xmalloc instead of xrealloc to avoid copying for very long
70217         paths.
70218
70219 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70220
70221         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
70222         the empty string.
70223
70224 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70225
70226         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
70227         address, not strdup.  Include <stdlib.h> and don't declare free().
70228
70229 2000-06-19  Jim Meyering  <meyering@lucent.com>
70230
70231         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
70232
70233 2000-06-18  Jim Meyering  <meyering@lucent.com>
70234
70235         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
70236
70237         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
70238         `checking whether...' message to be consistent with that of the
70239         lstat test.
70240
70241 2000-06-18  Jim Meyering  <meyering@lucent.com>
70242
70243         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
70244         Besides, these days every porting target provides a mkdir function.
70245
70246         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
70247         needed. (this snippet comes from src/system.h).
70248
70249 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
70250
70251         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
70252
70253 2000-06-15  Paul Eggert  <eggert@twinsun.com>
70254
70255         * lib/human.c (adjust_value): New function.
70256         (human_readable_inexact): Apply rounding style even when
70257         printing approximate values.
70258
70259 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70260
70261         * lib/human.c (human_readable_inexact): Allow an input block
70262         size that is not a multiple of the output block size, and vice versa.
70263         Reported by Piergiorgio Sartor.
70264
70265 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70266
70267         * lib/getdate.y (get_date): Apply relative times after time
70268         zone indicator, not before.  Reported by Todd A. Jacobs.
70269
70270 2000-06-13  Jim Meyering  <meyering@lucent.com>
70271
70272         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
70273
70274         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
70275
70276 2000-06-12  Paul Eggert  <eggert@twinsun.com>
70277
70278         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
70279
70280 2000-06-12  Jim Meyering  <meyering@lucent.com>
70281
70282         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
70283         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
70284         optional argument.
70285         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
70286         the optional argument, `lib'.
70287
70288 2000-06-08  Jim Meyering  <meyering@lucent.com>
70289
70290         * m4/largefile.m4: Remove file (now that it's part of autoconf).
70291
70292 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70293
70294         Rewrite largefile configuration so that we don't need to run
70295         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
70296         AC_CANONICAL_HOST in configure.in -- jmm]
70297
70298         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
70299         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
70300         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
70301         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
70302         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
70303         All uses changed.
70304         Instead of inspecting the output of getconf, try to compile the
70305         test program without and with the macro definition.
70306         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
70307         for getconf.  Instead, check for the needed flags by compiling
70308         test programs.
70309
70310 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70311
70312         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
70313
70314 2000-06-04  Jim Meyering  <meyering@lucent.com>
70315
70316         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
70317         SunOS 4.1.4 for which gid_t is an unsigned type.
70318
70319 2000-06-03  Jim Meyering  <meyering@lucent.com>
70320
70321         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
70322         now that autoconf requires that.
70323
70324         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
70325         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
70326         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
70327
70328 2000-06-03  Jim Meyering  <meyering@lucent.com>
70329
70330         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
70331
70332 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70333
70334         * m4/glibc21.m4: New file.
70335         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
70336
70337 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70338
70339         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
70340         newer, don't install charset.alias.
70341         * lib/config.charset: Change the Linux/glibc rules so they become empty
70342         on glibc-2.1 or newer.
70343
70344 2000-06-02  Jim Meyering  <meyering@lucent.com>
70345
70346         * lib/mountlist.c: Back out last change.  Instead, do this...
70347         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
70348         me_dummy member using the same `ignore'-testing code.
70349         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
70350         fs_type strings.
70351         From Mark D. Roth.
70352
70353 2000-05-29  Jim Meyering  <meyering@lucent.com>
70354
70355         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
70356         mounts with the `ignore' attribute.  Based on a patch from
70357         Mark D. Roth.
70358
70359 2000-05-28  Jim Meyering  <meyering@lucent.com>
70360
70361         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
70362         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70363         * m4/stat.m4: Likewise.
70364         * m4/lstat.m4: Likewise.
70365         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
70366
70367         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
70368         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
70369
70370 2000-05-26  Jim Meyering  <meyering@lucent.com>
70371
70372         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
70373
70374 2000-05-24  Jim Meyering  <meyering@lucent.com>
70375
70376         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
70377         autoconf requires that.
70378         * m4/lib-check.m4: Likewise.
70379         * m4/jm-macros.m4: Likewise.
70380         * m4/strftime.m4: Likewise.
70381
70382         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
70383         AC_CHECK_DECLS, now that autoconf requires that.
70384
70385 2000-05-22  Jim Meyering  <meyering@lucent.com>
70386
70387         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70388         * m4/lstat.m4: Likewise.
70389
70390 2000-05-22  Jim Meyering  <meyering@lucent.com>
70391
70392         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
70393
70394 2000-05-20  Jim Meyering  <meyering@lucent.com>
70395
70396         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
70397         (jm_PREREQ): Use it.
70398
70399 2000-05-18  Jim Meyering  <meyering@lucent.com>
70400
70401         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
70402         back, too, since it may have been modified by allocate_entry.
70403         (hash_delete): Rewrite to use neither the assignment operator
70404         nor the comma operator in an if-expression.
70405
70406 2000-05-15  Paul Eggert  <eggert@twinsun.com>
70407
70408         * lib/closeout.c:
70409         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
70410         Remove; no longer needed.
70411         "quotearg.h": Add include.
70412         (file_name): Do not bother to explicitly initialize to NULL; it's less
70413         efficient on some hosts.
70414         (close_stdout_status): Remove test as to whether stdout was already
70415         closed; it breaks for the case "echo x | sort >&-".
70416         Quote file name colons.
70417         Do not assume that _("write error") lacks format strings.
70418
70419 2000-05-15  Jim Meyering  <meyering@lucent.com>
70420
70421         * lib/version-etc.c (version_etc_copyright): Update the copyright
70422         string used in all --version output.
70423
70424 2000-05-14  Jim Meyering  <meyering@lucent.com>
70425
70426         * lib/closeout.c (close_stdout_set_file_name): New function.
70427         (close_stdout_status): Use new file-scoped global.
70428         Return right away if fstat says the stdout file descriptor is invalid.
70429         * lib/closeout.h (close_stdout_set_file_name): Declare.
70430
70431 2000-05-10  Jim Meyering  <meyering@lucent.com>
70432
70433         * lib/closeout.c [default_exit_status]: New file-scoped variable.
70434         (close_stdout_set_status): New function.
70435         * lib/closeout.h (close_stdout_set_status): Declare.
70436
70437 2000-05-09  Jim Meyering  <meyering@lucent.com>
70438
70439         * m4/gettext.m4: Rename this...
70440         * m4/libintl.m4: ...to this.
70441
70442 2000-05-08  Jim Meyering  <meyering@lucent.com>
70443
70444         * lib/long-options.c: Don't include closeout.h.
70445         (parse_long_options): Don't call close_stdout for --version.
70446
70447 2000-05-06  Paul Eggert  <eggert@twinsun.com>
70448
70449         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
70450         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
70451         2.1.3 bug.  This avoids a clash when files like regex.c define
70452         _GNU_SOURCE.
70453
70454 2000-05-06  Jim Meyering  <meyering@lucent.com>
70455
70456         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
70457         (AC_REPLACE_FUNCS): Add strnlen.
70458
70459         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
70460         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
70461
70462         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
70463         AC_SEARCH_LIBS call for nanosleep.
70464         (LIB_NANOSLEEP): Set and AC_SUBST.
70465
70466 2000-05-06  Jim Meyering  <meyering@lucent.com>
70467
70468         * lib/strnlen.c: Undefine __strnlen and strnlen.
70469         [!weak_alias]: Define __strnlen to strnlen.
70470
70471         * lib/atexit.c: New file, from libiberty.
70472
70473 2000-05-06  Jim Meyering  <meyering@lucent.com>
70474
70475         * lib/closeout.c (close_stdout_status): Also check for errors on the
70476         stderr stream.
70477
70478 2000-05-05  Jim Meyering  <meyering@lucent.com>
70479
70480         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
70481         AC_SEARCH_LIBS call for clock_gettime.
70482         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
70483
70484         * m4/search-libs.m4: Update from autoconf.
70485
70486         su doesn't work on Solaris 2.6.
70487         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
70488         <shadow.h>.  Reported by Dragos Harabor.
70489
70490 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
70491
70492         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
70493         memcpy instead of xmalloc, xrealloc, path_concat.
70494         (locale_charset): Treat empty environment variables as absent.
70495         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
70496
70497 2000-05-04  Jim Meyering  <meyering@lucent.com>
70498
70499         * lib/getopt.c: Update from glibc.
70500         * lib/obstack.c: Likewise.
70501         * lib/obstack.h: Likewise.
70502         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
70503         file
70504
70505         * lib/regex.h: Likewise.
70506         * lib/strndup.c: Likewise.
70507         * lib/strnlen.c: New file, from glibc.
70508
70509 2000-05-03  Jim Meyering  <meyering@lucent.com>
70510
70511         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
70512
70513 2000-05-02  Paul Eggert  <eggert@twinsun.com>
70514
70515         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
70516         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
70517         compile-time test, rather than inspecting host and OS, to
70518         decide whether to define _LARGEFILE_SOURCE.
70519
70520 2000-05-01  Jim Meyering  <meyering@lucent.com>
70521
70522         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
70523
70524         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
70525         Based on a patch from Bruno Haible.
70526
70527 2000-05-01  Jim Meyering  <meyering@lucent.com>
70528
70529         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
70530
70531 2000-04-29  Jim Meyering  <meyering@lucent.com>
70532
70533         * lib/path-concat.c: Declare strdup only if it's not defined.
70534         * lib/canon-host.c: Likewise.
70535
70536 2000-04-28  Jim Meyering  <meyering@lucent.com>
70537
70538         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
70539         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
70540         is included first, then limits.h is included by locale.h by libintl.h.
70541         From John David Anglin.
70542
70543 2000-04-25  Jim Meyering  <meyering@lucent.com>
70544
70545         * lib/makepath.c (S_IRWXUGO): Define.
70546         (make_path): Always perform explicit chmod if MODE specifies any
70547         of the `special' permission bits.  Prompted by a bug report against
70548         install from Mate Wierdl and Joost van Baal.
70549
70550 2000-04-18  Jim Meyering  <meyering@lucent.com>
70551
70552         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
70553         (jm_PREREQ): Use it.
70554
70555 2000-04-18  Jim Meyering  <meyering@lucent.com>
70556
70557         * lib/README: New file.
70558
70559         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
70560         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
70561
70562 2000-04-17  Jim Meyering  <meyering@lucent.com>
70563
70564         Get it right :-)
70565         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
70566         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
70567         Suggestion from Akim Demaille.
70568
70569 2000-04-17  Jim Meyering  <meyering@lucent.com>
70570
70571         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
70572         the definition of it to rpl_strftime also defined-away the system's
70573         declaration.
70574
70575 2000-04-15  Jim Meyering  <meyering@lucent.com>
70576
70577         Use `C' to denote so-called `contiguous' files, the same way
70578         that tar does.
70579         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
70580         (ftypelet): Use S_ISCTG.
70581         From Michael Deutschmann.
70582
70583 2000-04-14  Jim Meyering  <meyering@lucent.com>
70584
70585         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
70586         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
70587         clobbered.
70588
70589 2000-04-14  Jim Meyering  <meyering@lucent.com>
70590
70591         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
70592
70593 2000-04-13  Jim Meyering  <meyering@lucent.com>
70594
70595         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
70596         AH_VERBATIM to insert required #ifndef into config.h.in.
70597         Suggestion from Akim Demaille.
70598
70599 2000-04-12  Jim Meyering  <meyering@lucent.com>
70600
70601         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
70602         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
70603         Christian Krackowizer.
70604
70605         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
70606         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
70607         (AC_SYS_LARGEFILE): Require.
70608         (AM_C_PROTOTYPES): Require.
70609
70610 2000-04-08  Jim Meyering  <meyering@lucent.com>
70611
70612         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
70613         names don't conflict.  Reported by Eli Zaretskii.
70614
70615 2000-04-07  Jim Meyering  <meyering@lucent.com>
70616
70617         * lib/putenv.c: Move inclusion of errno.h so it follows that of
70618         sys/types.h, to work around system header problems on AIX 3.2.5.
70619         From Bruno Haible.
70620
70621 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
70622
70623         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
70624         bug.  Deal with the different error behavior of Irix iconv.
70625
70626 2000-04-05  Paul Eggert  <eggert@twinsun.com>
70627
70628         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
70629         IRIX if the installer said otherwise.
70630
70631 2000-04-05  Jim Meyering  <meyering@lucent.com>
70632
70633         Portability tweaks required for ultrix4.3.
70634         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
70635         (jm_CHECK_DECLS): Add getutent to the list of functions.
70636         (_jm_DECL_HEADERS): Add utmpx.h.
70637         From John David Anglin.
70638
70639         * m4/strftime.m4: Back out the 2000-04-02 change.
70640         Instead of that change, simply undefine putenv in the test program.
70641
70642 2000-04-05  Jim Meyering  <meyering@lucent.com>
70643
70644         Portability tweaks required for ultrix4.3.
70645         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
70646         getutent.
70647         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
70648         * lib/canon-host.c: Declare strdup.
70649         * lib/path-concat.c: Likewise.
70650         From John David Anglin.
70651
70652 2000-04-04  Jim Meyering  <meyering@lucent.com>
70653
70654         Be more DOS 8.3-friendly.
70655         * lib/ref-add.sin: Renamed from ref-add.sed.in.
70656         * lib/ref-del.sin: Renamed from ref-del.sed.in.
70657         * lib/Makefile.am: Reflect renaming.
70658         Reported by Eli Zaretskii.
70659
70660         Use a temporary file name that won't clash with `charset.alias'
70661         in the DOS 8.3 name space.
70662         * lib/Makefile.am (charset_tmp): Define.
70663         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
70664         (uninstall-local): Likewise.
70665         Reported by Eli Zaretskii.
70666
70667 2000-04-03  Jim Meyering  <meyering@lucent.com>
70668
70669         * m4/gettext.m4: Fix typo in comment.
70670
70671         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
70672         textutils/configure.in).  Suggestion from Paul Eggert.
70673         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
70674
70675 2000-04-02  Paul Eggert  <eggert@twinsun.com>
70676
70677         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
70678         variable in the shell rather than using putenv, which isn't
70679         portable.  This avoids the configure-time inter-test dependency
70680         on the potentially-renamed putenv function.
70681
70682 2000-03-30  Paul Eggert  <eggert@twinsun.com>
70683
70684         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
70685         before checking struct stat.st_blksize, so that
70686         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
70687
70688 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70689
70690         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
70691         since strftime.c uses HAVE_STRFTIME to decide whether to use
70692         the underlying strftime.
70693
70694 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70695
70696         * lib/time/strftime.c (my_strftime): Make sure we call the system
70697         strftime, not ourselves, when invoking the underlying strftime.
70698
70699 2000-03-24  Jim Meyering  <meyering@lucent.com>
70700
70701         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
70702         (charset_alias): Define.
70703         (install-exec-local): Factor out common code.
70704         (uninstall-local): Split lines longer than 80.
70705         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
70706         (SUFFIXES): Define.
70707         (.sed.in.sed): New rule.  Don't redirect directly to $@.
70708         (CLEANFILES): Add ref-add.sed and ref-del.sed.
70709
70710 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
70711
70712         * lib/config.charset: Output a line containing "Packages using this
70713         file".
70714         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
70715         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
70716         ref-del.sed): New rules.
70717
70718 2000-03-17  Jim Meyering  <meyering@lucent.com>
70719
70720         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
70721         Otherwise, include <strings.h>
70722
70723 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
70724
70725         * lib/unicodeio.c (utf8_wctomb): New function.
70726         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
70727         format instead of in UCS-4 with platform dependent endianness.
70728
70729 2000-03-10  Jim Meyering  <meyering@lucent.com>
70730
70731         * m4/lib-check.m4: Look for getspnam in -lgen, too.
70732         From Marco Franzen.
70733
70734 2000-03-07  Paul Eggert  <eggert@twinsun.com>
70735
70736         * lib/savedir.c (savedir): Work even if directory size is
70737         negative; this can happen with some screwy NFS configurations.
70738
70739 2000-03-06  Jim Meyering  <meyering@lucent.com>
70740
70741         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
70742         if it's NULL (because we ran out of memory).  From Bruno Haible.
70743
70744 2000-03-05  Jim Meyering  <meyering@lucent.com>
70745
70746         * lib/localcharset.c ("path-concat.h"): Include.
70747         (get_charset_aliases): Use path_concat instead of ANSI string
70748         concatenation.
70749
70750         * lib/unicodeio.h (PARAMS): Define.
70751         Use it to guard prototype.
70752
70753 2000-03-04  Jim Meyering  <meyering@lucent.com>
70754
70755         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
70756         for lib/localcharset.c.
70757
70758 2000-03-04  Jim Meyering  <meyering@lucent.com>
70759
70760         * lib/Makefile.am (install-exec-local): Create $(libdir) before
70761         installing into it.
70762         (uninstall-local): Uncomment this rule so `make distcheck' works
70763         once again.
70764
70765         * lib/unicodeio.c (<errno.h>): Include it.
70766         (errno): Declare if not defined.
70767
70768         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
70769
70770         * lib/config.charset: New version, incorporating remarks from a linux
70771         i18n mailing list.  From Bruno Haible.
70772
70773 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
70774
70775         * m4/codeset.m4: New file.
70776         * m4/iconv.m4: New file.
70777         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
70778
70779 2000-03-03  Jim Meyering  <meyering@lucent.com>
70780
70781         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
70782
70783 2000-03-02  Jim Meyering  <meyering@lucent.com>
70784
70785         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
70786         the messages come out on separate lines.
70787
70788         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
70789         rather than jm_CHECK_DECLARATIONS.
70790         * m4/decl.m4: Remove now-unused file.
70791
70792         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
70793         geteuid.
70794
70795 2000-03-02  Jim Meyering  <meyering@lucent.com>
70796
70797         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
70798
70799 2000-03-01  Jim Meyering  <meyering@lucent.com>
70800
70801         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
70802         * lib/unicodeio.c: Likewise.
70803
70804 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
70805
70806         * lib/config.charset: New file.
70807         * lib/localcharset.c: New file.
70808         * lib/unicodeio.h, lib/unicodeio.c: New files.
70809         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
70810         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
70811         (noinst_HEADERS): Add unicodeio.h.
70812         (all-local, install-exec-local, charset.alias): New targets.
70813
70814 2000-02-28  Paul Eggert  <eggert@twinsun.com>
70815
70816         * lib/quotearg.c (ALERT_CHAR): New macro.
70817         (quotearg_buffer_restyled): Use it.
70818
70819 2000-02-27  Jim Meyering  <meyering@lucent.com>
70820
70821         * m4/check-decl.m4: Add getenv to the list.
70822
70823 2000-02-27  Jim Meyering  <meyering@lucent.com>
70824
70825         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
70826         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
70827
70828         * lib/backupfile.c: Guard inclusion of stdlib.h with
70829         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
70830         Declare malloc if needed.
70831
70832         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
70833         `#ifndef HAVE_DECL..'
70834         now that autoconf always defines the HAVE_DECL_ symbols.
70835         * lib/human.c: Likewise.
70836         * lib/same.c: Likewise.
70837         * lib/strtoumax.c: Likewise.
70838
70839         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
70840         declaration check was not run.
70841         * lib/hash.c: Likewise.
70842         * lib/human.c: Likewise.
70843         * lib/same.c: Likewise.
70844         * lib/strtoumax.c: Likewise.
70845
70846         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
70847         `.', then first look up the entire `.'-containing string as a login
70848         name.
70849
70850 2000-02-23  Jim Meyering  <meyering@lucent.com>
70851
70852         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
70853         in place of my hack.
70854
70855 2000-02-18  Paul Eggert  <eggert@twinsun.com>
70856
70857         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
70858         (textint): New typedef.
70859         (parser_control): Member year changed from int to textint.
70860         All uses changed.
70861         (YYSTYPE): Removed; replaced by %union with int and textint members.
70862         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
70863         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
70864         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
70865         (tSNUMBER, tUNUMBER): Now of type <textintval>.
70866         (date, number, to_year): Use width of number in digits, not its value,
70867         to determine whether it's a 2-digit year, or a 2-digit time.
70868         (yylex): Store number of digits of numeric tokens.
70869         Reported by John Kendall.
70870
70871         (parser_control): Changed from struct parser_control to typedef (for
70872         consistency).  All uses changed.
70873
70874         (tID): Removed; not used.
70875         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
70876
70877 2000-02-14  Paul Eggert  <eggert@twinsun.com>
70878
70879         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
70880         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
70881
70882 2000-02-12  Jim Meyering  <meyering@lucent.com>
70883
70884         * lib/userspec.c (ISDIGIT): Define it.
70885         (isdigit): Remove definition.
70886         (is_number): Use ISDIGIT, not isdigit.
70887         <libintl.h>: Include.
70888         (_ and N_): Define.
70889         (parse_user_spec): Mark translatable strings.
70890
70891 2000-02-10  Jim Meyering  <meyering@lucent.com>
70892
70893         With these changes, nanosleep.[ch] are finally enough like the other
70894         lib/* replacement files to compile on a few more losing systems.
70895
70896         * lib/nanosleep.h: Don't include config.h.
70897         Remove prototype from declaration of nanosleep.
70898         (PARAMS): Remove now-unneeded definition.
70899         * lib/nanosleep.c: #undef nanosleep.
70900         (rpl_nanosleep): Rename from nanosleep.
70901
70902 2000-02-10  Jim Meyering  <meyering@lucent.com>
70903
70904         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
70905         gnu_nanosleep to rpl_nanosleep.
70906
70907 2000-02-09  Jim Meyering  <meyering@lucent.com>
70908
70909         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
70910         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
70911
70912 2000-02-08  Akim Demaille  <akim@epita.fr>
70913
70914         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
70915         `[' and `]' and remove uses of `changequote'.
70916         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
70917         (AC_SYS_LARGEFILE): Likewise.
70918         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
70919         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
70920         of changequote.
70921         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
70922         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
70923         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
70924         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
70925
70926 2000-02-05  Jim Meyering  <meyering@lucent.com>
70927
70928         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
70929         Remove explicit use of AC_HEADER_TIME.  It is required by
70930         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
70931         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
70932         in autoconf whereby the expansion of the latter ended up preceding
70933         the expansion of its prerequisite, AC_HEADER_TIME.
70934         Reported by Volker Borchert.
70935
70936 2000-02-03  Jim Meyering  <meyering@lucent.com>
70937
70938         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
70939
70940 2000-02-03  Jim Meyering  <meyering@lucent.com>
70941
70942         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
70943         rather than with `#if HAVE_UTMPNAME'.
70944
70945 2000-02-02  Jim Meyering  <meyering@lucent.com>
70946
70947         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
70948         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
70949         Reported by Eli Zaretskii.
70950
70951 2000-02-01  Jim Meyering  <meyering@lucent.com>
70952
70953         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
70954
70955 2000-01-31  Jim Meyering  <meyering@lucent.com>
70956
70957         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
70958         functions.  Add the time.h and sys/time.h headers along with the
70959         AC_REQUIRE'ment of AC_HEADER_TIME.
70960
70961 2000-01-31  Jim Meyering  <meyering@lucent.com>
70962
70963         * lib/nanosleep.h (nanosleep): Guard declaration with
70964         `#if ! HAVE_DECL_NANOSLEEP'.
70965         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
70966         the declaration in that vendor's sys/timers.h.
70967         Reported by Christian Krackowizer.
70968
70969         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
70970         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
70971         (ISPRINT): Likewise.
70972         Reported by Tom Tromey.
70973
70974 2000-01-30  Jim Meyering  <meyering@lucent.com>
70975
70976         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
70977
70978         * m4/prereq.m4 (utmp_includes): Define.
70979         Check for ut_user and ut_name members in both struct utmpx
70980         and struct utmp.
70981
70982 2000-01-30  Jim Meyering  <meyering@lucent.com>
70983
70984         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
70985         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
70986         header files where only utmpx.ut_user is declared.
70987
70988         * lib/readutmp.h (UT_USER): Define.
70989
70990 2000-01-29  Jim Meyering  <meyering@lucent.com>
70991
70992         * m4/lib-check.m4: New file containing library-related checks from
70993         fileutils and sh-utils (textutils had none).
70994
70995 2000-01-28  Jim Meyering  <meyering@lucent.com>
70996
70997         * m4/perl.m4: Change format of warning message to look more like that
70998         from the missing script.  Suggestion from François Pinard.
70999
71000 2000-01-25  Jim Meyering  <meyering@lucent.com>
71001
71002         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
71003         well as time.h in the compile check.
71004         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
71005         Fix typo in cross-compiling case: s/yes/no/.
71006
71007 2000-01-23  Jim Meyering  <meyering@lucent.com>
71008
71009         * m4/jm-macros.m4: Move df-related tests here from
71010         fileutils/configure.in
71011
71012         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
71013         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
71014
71015         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
71016         s/space/ac_fsusage_space/.
71017         (jm_FILE_SYSTEM_USAGE): Take two parameters.
71018
71019         * m4/ftruncate.m4: New file (derived from part of
71020         fileutils/configure.in).
71021         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
71022         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
71023
71024         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
71025         AC_SUBST these here, rather than just in sh-util/configure.in, so
71026         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
71027         all the same.
71028         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
71029         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
71030         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
71031         (AC_SUBST(POW_LIBM)): Likewise.
71032         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
71033
71034 2000-01-23  Jim Meyering  <meyering@lucent.com>
71035
71036         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
71037         obstack.c.
71038
71039 2000-01-22  Jim Meyering  <meyering@lucent.com>
71040
71041         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
71042
71043         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
71044
71045         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
71046         configure.in
71047         (AC_CHECK_HEADERS): Likewise for sh-utils.
71048         (AC_CHECK_HEADERS): Likewise for textutils.
71049         Merge the three lists of headers.
71050
71051         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
71052         from fileutils' configure.in.
71053
71054         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
71055         code. Moved tests into their own function (_jm_DECL_HEADERS) in
71056         check-decl.m4.
71057
71058         * m4/check-decl.m4: Use #if rather than #ifdef.
71059         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
71060         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
71061         (_jm_DECL_HEADERS): Define new function.
71062         (jm_CHECK_DECLARATIONS): Require it.
71063
71064 2000-01-22  Jim Meyering  <meyering@lucent.com>
71065
71066         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
71067         [! HAVE_DECL_STRTOULL]: Declare strtoull.
71068         Required for some AIX systems.  Reported by Christian Krackowizer.
71069         [TESTING] (main): New function.
71070
71071         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
71072         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
71073         letters.
71074
71075         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
71076         iswprint.
71077
71078         * lib/strverscmp.c (ISDIGIT): Define.
71079         (strverscmp): Use ISDIGIT, not isdigit.
71080
71081 2000-01-19  Jim Meyering  <meyering@lucent.com>
71082
71083         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
71084         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
71085         defines `struct timespec' in <sys/time.h>
71086
71087         * m4/c-bs-a.m4: Remove uses of changequote altogether.
71088         Thanks to Akim for explaining.
71089
71090 2000-01-17  Paul Eggert  <eggert@twinsun.com>
71091
71092         * lib/nanosleep.c (nanosleep):
71093         Don't use SA_INTERRUPT to decide whether to call sigaction, as
71094         POSIX.1 doesn't require SA_INTERRUPT and some systems
71095         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
71096         it's been part of POSIX.1 since day 1 (in 1988).
71097
71098 2000-01-17  Jim Meyering  <meyering@lucent.com>
71099
71100         * lib/interlock: Remove unused file.  Reported by François Pinard.
71101
71102 2000-01-16  Paul Eggert  <eggert@twinsun.com>
71103
71104         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
71105         alert, backslash, formfeed, and vertical tab unnecessarily in
71106         shell quoting style.
71107
71108 2000-01-16  Jim Meyering  <meyering@lucent.com>
71109
71110         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
71111         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
71112         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
71113         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
71114
71115 2000-01-16  Jim Meyering  <meyering@lucent.com>
71116
71117         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
71118         because the latter didn't work.
71119
71120 2000-01-15  Jim Meyering  <meyering@lucent.com>
71121
71122         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
71123         (AC_REPLACE_FUNCS): Add memcpy and memset.
71124         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
71125         Add strpbrk.
71126         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
71127
71128 2000-01-12  Jim Meyering  <meyering@lucent.com>
71129
71130         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
71131         (jm_PREREQ): Use it.
71132         (jm_PREREQ_READUTMP): New macro.
71133         (jm_PREREQ): Use it.
71134
71135 2000-01-11  Paul Eggert  <eggert@twinsun.com>
71136
71137         Quote multibyte characters correctly.
71138         * m4/c-bs-a.m4: New file.
71139         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
71140         (jm_PREREQ): Use it.
71141
71142 2000-01-11  Paul Eggert  <eggert@twinsun.com>
71143
71144         * m4/uintmax_t.m4: Port to autoconf 2.13.
71145
71146 2000-01-08  Jim Meyering  <meyering@ascend.com>
71147
71148         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
71149         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
71150
71151 2000-01-04  Jim Meyering  <meyering@ascend.com>
71152
71153         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
71154         jm_STRUCT_DIRENT_D_TYPE.
71155         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
71156         jm_STRUCT_DIRENT_D_INO.
71157         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
71158         jm_STRUCT_UTIMBUF.
71159         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
71160         renamings.
71161         * m4/utime.m4: Likewise.
71162
71163         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
71164         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
71165
71166 2000-01-03  Paul Eggert  <eggert@twinsun.com>
71167
71168         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
71169         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
71170
71171 2000-01-02  Jim Meyering  <meyering@ascend.com>
71172
71173         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
71174         remember if this is necessary.
71175
71176 1999-12-26  Jim Meyering  <meyering@ascend.com>
71177
71178         * m4/jm-macros.m4: Use it here.
71179         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
71180
71181 1999-12-23  Jim Meyering  <meyering@ascend.com>
71182
71183         * m4/jm-macros.m4: Check for clock_gettime (moved from
71184         fileutils/configure.in)
71185         Check for gettimeofday.
71186
71187 1999-12-20  Jim Meyering  <meyering@ascend.com>
71188
71189         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
71190         autoconf-2.14a-1999-12-20.
71191
71192 1999-12-19  Jim Meyering  <meyering@ascend.com>
71193
71194         * m4/lstat-slash.m4: New file.
71195         * m4/jm-macros.m4: Use the new macro:
71196         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71197
71198 1999-12-07  Jim Meyering  <meyering@ascend.com>
71199
71200         * m4/perl.m4: Require that File::Compare be available, too.
71201         Too many systems seem to lack it.
71202
71203         * m4/strftime.m4: Add checks for most of the cpp macros tested in
71204         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
71205
71206 1999-11-18  Paul Eggert  <eggert@twinsun.com>
71207
71208         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
71209         problem with the QNX 4.25 shell, which doesn't propagate exit
71210         status of failed commands inside shell assignments.
71211
71212 1999-11-17  Jim Meyering  <meyering@ascend.com>
71213
71214         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
71215
71216 1999-11-07  Jim Meyering  <meyering@ascend.com>
71217
71218         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
71219
71220 1999-11-06  Jim Meyering  <meyering@ascend.com>
71221
71222         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
71223         * m4/jm-macros.m4 (jm_MACROS): Use it here.
71224
71225 1999-11-05  Jim Meyering  <meyering@ascend.com>
71226
71227         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
71228         configure.in of textutils, fileutils, and sh-utils into this one
71229         (shared between those packages) file.
71230         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
71231         AC_STRUCT_ST_BLKSIZE.
71232
71233 1999-11-03  Jim Meyering  <meyering@ascend.com>
71234
71235         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
71236         of AC_CHECK_TYPE checks includes unistd.h.
71237         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
71238         Suggestion from Akim Demaille.
71239
71240 1999-10-30  Jim Meyering  <meyering@ascend.com>
71241
71242         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
71243         m4-quoted string.
71244         * m4/ls-mntd-fs.m4: Likewise.
71245         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
71246         * m4/jm-winsz1.m4: Likewise.
71247
71248         * m4/const.m4: Remove file, since the fix made it into the experimental
71249         version of autoconf.
71250         * m4/mktime.m4: Likewise.
71251
71252         * m4/check-type.m4: Remove file, now that the latest version of
71253         AC_CHECK_TYPE takes a third arg to specify additional #includes.
71254
71255         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
71256         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
71257         AC_CHECK_TYPE.
71258
71259 1999-10-04  Jim Meyering  <meyering@ascend.com>
71260
71261         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
71262
71263 1999-09-22  Paul Eggert  <eggert@twinsun.com>
71264
71265         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
71266         2.95.1 bug with HP-UX 10.20.
71267
71268 1999-09-17  Jim Meyering  <meyering@ascend.com>
71269
71270         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
71271         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
71272         due to missing strdup (against sh-utils-2.0).
71273
71274 1999-08-29  Jim Meyering  <meyering@ascend.com>
71275
71276         * m4/jm-macros.m4: Require jm_BISON.
71277         * m4/bison.m4: New file.
71278
71279 1999-08-17  Paul Eggert  <eggert@twinsun.com>
71280
71281         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
71282         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
71283
71284 1999-08-05  Jim Meyering  <meyering@ascend.com>
71285
71286         * m4/getline.m4: Rename test file from conftestdata to conftest.data
71287         to avoid conflicts with `conftest' on 8+3 filesystems.
71288         Suggestion from Eli Zaretskii.
71289
71290 1999-08-04  Jim Meyering  <meyering@ascend.com>
71291
71292         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
71293         fileutils and sh-utils (textutils's getline test was inadequate).
71294         (AM_FUNC_GETLINE): Run this test.
71295         (AC_CHECK_FUNCS): Check for getdelim.
71296         Reported by Bob Proulx.
71297
71298 1999-08-02  Jim Meyering  <meyering@ascend.com>
71299
71300         * m4/jm-macros.m4: Add a comment.
71301
71302 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71303
71304         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
71305         <inttypes.h> defines strtoumax as a macro (and not as a
71306         function).
71307
71308 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71309
71310         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
71311         that we can shift, multiply and divide unsigned long long
71312         values; Ultrix cc can't do it.
71313
71314 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71315
71316         * m4/mktime.m4: New file, which is a preview of what should appear
71317         in the next public autoconf release.
71318
71319 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71320
71321         * m4/lfs.m4: Remove this file.
71322         * m4/largefile.m4: New file.  It contains the old contents of
71323         lfs.m4, except that all names with prefix AC_LFS have been
71324         changed to use the prefix AC_SYS_LARGEFILE instead, to be
71325         compatible with future autoconf versions.  Also, some minor m4
71326         quoting problems have been fixed.
71327
71328 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71329
71330         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
71331         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
71332         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
71333         and simplify the shell code.
71334
71335 1999-08-01  Jim Meyering  <meyering@ascend.com>
71336
71337         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
71338         m4.
71339
71340 1999-07-20  Jim Meyering  <meyering@ascend.com>
71341
71342         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
71343
71344 1999-07-15  Jim Meyering  <meyering@ascend.com>
71345
71346         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
71347
71348 1999-05-22  Jim Meyering  <meyering@ascend.com>
71349
71350         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
71351
71352 1999-05-20  Jim Meyering  <meyering@ascend.com>
71353
71354         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
71355         Add a colon after each `then' in case $4 is empty.
71356
71357 1999-05-16  Jim Meyering  <meyering@ascend.com>
71358
71359         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
71360
71361 1999-05-10  Jim Meyering  <meyering@ascend.com>
71362
71363         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
71364
71365         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
71366         AC_FUNC_MKTIME.
71367
71368 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
71369
71370         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
71371
71372 1999-05-04  Paul Eggert  <eggert@twinsun.com>
71373
71374         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
71375         not CPPFLAGS, so that linking works correctly in IRIX.
71376
71377 1999-04-30  Paul Eggert  <eggert@twinsun.com>
71378
71379         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
71380
71381 1999-04-20  Paul Eggert  <eggert@twinsun.com>
71382
71383         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
71384         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
71385         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
71386         jm_AC_TYPE_UNSIGNED_LONG_LONG.
71387         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
71388
71389         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
71390
71391 1999-04-20  Jim Meyering  <meyering@ascend.com>
71392
71393         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
71394         AC_REPLACE xstroull if necessary.  From Paul Eggert.
71395         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
71396
71397 1999-04-18  Jim Meyering  <meyering@ascend.com>
71398
71399         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
71400         * m4/jm-macros.m4: Use it.
71401
71402 1999-04-06  Jim Meyering  <meyering@ascend.com>
71403
71404         * m4/strftime.m4: Remove test for %f.
71405
71406 1999-03-29  Jim Meyering  <meyering@ascend.com>
71407
71408         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
71409         superset of the AC_TYPE_* checks in the textutils, fileutils,
71410         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
71411         AC_TYPE_PID_T.
71412
71413 1999-03-28  Jim Meyering  <meyering@ascend.com>
71414
71415         * m4/jm-macros.m4: Define GNU_PACKAGE here.
71416         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
71417         replaced e.g., in the *.sh files of the sh-utils.
71418
71419 1999-03-20  Jim Meyering  <meyering@ascend.com>
71420
71421         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
71422         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
71423         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
71424
71425 1999-03-19  Jim Meyering  <meyering@ascend.com>
71426
71427         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
71428
71429 1999-03-12  Jim Meyering  <meyering@ascend.com>
71430
71431         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
71432
71433 1999-03-07  Jim Meyering  <meyering@ascend.com>
71434
71435         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
71436         declared.
71437
71438 1999-02-17  Jim Meyering  <meyering@ascend.com>
71439
71440         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
71441         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
71442
71443 1999-02-07  Jim Meyering  <meyering@ascend.com>
71444
71445         * m4/group-member.m4: New file -- extracted from sh-utils'
71446         configure.in.
71447
71448         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
71449         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
71450
71451 1999-02-06  Jim Meyering  <meyering@ascend.com>
71452
71453         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
71454         * m4/fnmatch.m4: Likewise.
71455         * m4/getgroups.m4: Likewise.
71456         * m4/lstat.m4: Likewise.
71457         * m4/malloc.m4: Likewise.
71458         * m4/putenv.m4: Likewise.
71459         * m4/realloc.m4: Likewise.
71460         * m4/regex.m4: Likewise.
71461         * m4/stat.m4: Likewise.
71462         * m4/strftime.m4: Likewise.
71463         Suggestion from Alain Magloire.
71464
71465         * m4/chown.m4: Use `.$ac_objext', not `.o'.
71466         * m4/fnmatch.m4: Likewise.
71467         * m4/getgroups.m4: Likewise.
71468         * m4/getline.m4: Likewise.
71469         * m4/lstat.m4: Likewise.
71470         * m4/malloc.m4: Likewise.
71471         * m4/memcmp.m4: Likewise.
71472         * m4/putenv.m4: Likewise.
71473         * m4/realloc.m4: Likewise.
71474         * m4/regex.m4: Likewise.
71475         * m4/stat.m4: Likewise.
71476         * m4/strftime.m4: Likewise.
71477         Suggestion from Alain Magloire.
71478
71479         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
71480         an argument.
71481
71482         * m4/regex.m4: Add a run-time Test for proper operation of
71483         re_compile_pattern.
71484
71485 1999-01-31  Jim Meyering  <meyering@ascend.com>
71486
71487         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
71488
71489 1999-01-30  Jim Meyering  <meyering@ascend.com>
71490
71491         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
71492
71493         * m4/jm-mktime.m4: Make this a wrapper around the official
71494         AM_FUNC_MKTIME rather than my private copy, now that the official one
71495         is up to date.
71496         * m4/mktime.m4: Remove file.
71497
71498         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
71499         * m4/uptime.m4: Likewise.
71500         * m4/uintmax_t.m4: Likewise.
71501
71502 1999-01-28  Jim Meyering  <meyering@ascend.com>
71503
71504         * m4/jm-macros.m4: Use jm_AFS.
71505         * m4/afs.m4: New file (from fileutils' configure.in).
71506
71507         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
71508         * m4/chown.m4: Likewise.
71509         * m4/d-ino.m4: Likewise.
71510         * m4/d-type.m4: Likewise.
71511         * m4/fnmatch.m4: Likewise.
71512         * m4/getgroups.m4: Likewise.
71513         * m4/gettext.m4: Likewise.
71514         * m4/jm-mktime.m4: Likewise.
71515         * m4/jm-winsz2.m4: Likewise.
71516         * m4/lcmessage.m4: Likewise.
71517         * m4/ls-mntd-fs.m4: Likewise.
71518         * m4/malloc.m4: Likewise.
71519         * m4/memcmp.m4: Likewise.
71520         * m4/putenv.m4: Likewise.
71521         * m4/realloc.m4: Likewise.
71522         * m4/st_mtim.m4: Likewise.
71523         * m4/strftime.m4: Likewise.
71524
71525 1999-01-16  Jim Meyering  <meyering@ascend.com>
71526
71527         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
71528         (ARGMATCH_DIE_DECL): Define.
71529
71530 1999-01-12  Jim Meyering  <meyering@ascend.com>
71531
71532         * m4/Makefile.am.in: Rewrite to avoid using fmt.
71533         Reported by Lars Hecking.
71534
71535 1999-01-10  Jim Meyering  <meyering@ascend.com>
71536
71537         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
71538         gross kludge.
71539         * m4/inttypes_h.m4: Likewise.
71540         * m4/lstat.m4: Likewise.
71541         * m4/malloc.m4: Likewise.
71542         * m4/readdir.m4: Likewise.
71543         * m4/realloc.m4: Likewise.
71544         * m4/st_dm_mode.m4: Likewise.
71545         * m4/stat.m4: Likewise.
71546         * m4/utimbuf.m4: Likewise.
71547         * m4/utimes.m4: Likewise.
71548
71549         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
71550         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
71551         comments in config.h.in are meaningful.
71552
71553         * m4/jm-macros.m4: Require autoconf-2.13 here.
71554
71555         * m4/regex.m4: By default, don't use the included regex.c on systems
71556         with glibc 2.  Suggestion from Uli Drepper.
71557
71558 1999-01-02  Jim Meyering  <meyering@ascend.com>
71559
71560         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
71561
71562 1998-12-18  Jim Meyering  <meyering@ascend.com>
71563
71564         * m4/Makefile.am.in (Makefile.am): Simplify rule.
71565         Based on a suggestion from Lars Hecking.
71566
71567 1998-11-16  Paul Eggert  <eggert@twinsun.com>
71568
71569         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
71570
71571 1998-11-16  Jim Meyering  <meyering@ascend.com>
71572
71573         * m4/lfs.m4: Double-quote the `uname...` expression.
71574
71575 1998-11-14  Jim Meyering  <meyering@ascend.com>
71576
71577         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
71578         * m4/stat.m4: Likewise.
71579
71580 1998-11-03  Jim Meyering  <meyering@ascend.com>
71581
71582         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
71583         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
71584
71585 1998-10-18  Jim Meyering  <meyering@ascend.com>
71586
71587         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
71588
71589 1998-10-17  Jim Meyering  <meyering@ascend.com>
71590
71591         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
71592         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
71593         calls for those previously hard-coded headers.  Instead, take a new
71594         parameter.
71595         (jm_CHECK_DECLARATIONS): Reflect interface change.
71596         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
71597         (jm_CHECK_DECL_LOCALTIME_R): New macro.
71598
71599         * m4/mktime.m4: Test for spring-forward gap before long-running test.
71600
71601 1998-10-14  Jim Meyering  <meyering@ascend.com>
71602
71603         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
71604         instead of "TZ=America/Vancouver".  From Paul Eggert.
71605
71606 1998-10-11  Jim Meyering  <meyering@ascend.com>
71607
71608         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
71609         This adds a test for a recently added compatibility fix for mktime.c.
71610         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
71611
71612 1998-09-27  Jim Meyering  <meyering@ascend.com>
71613
71614         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
71615
71616         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
71617         ../configure.in, including a change from Gordon Matzigkeit to allow
71618         cross-compiling for the Hurd.
71619
71620         * m4/glibc.m4: New file/macro to test for the GNU C Library
71621         versions 1 and 2.  From Gordon Matzigkeit.
71622         Indent.
71623
71624 1998-09-21  Jim Meyering  <meyering@ascend.com>
71625
71626         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
71627
71628 1998-08-18  Paul Eggert  <eggert@twinsun.com>
71629
71630         Port nanosecond-resolution times to UnixWare 2.1.2 and
71631         pedantic Solaris 2.6.
71632
71633         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
71634         AC_STRUCT_ST_MTIM.
71635         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
71636         Generate name of ns member, instead of just 1 or undef.
71637         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
71638
71639 1998-08-15  Jim Meyering  <meyering@ascend.com>
71640
71641         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
71642         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
71643         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
71644         instead of jm_TYPE_SSIZE_T.
71645
71646 1998-08-12  Jim Meyering  <meyering@ascend.com>
71647
71648         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
71649
71650 1998-08-02  Jim Meyering  <meyering@ascend.com>
71651
71652         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
71653         in acconfig.h manually.
71654
71655 1998-07-31  Paul Eggert  <eggert@twinsun.com>
71656
71657         * m4/st_mtim.m4: New file.
71658
71659 1998-07-28  Jim Meyering  <meyering@ascend.com>
71660
71661         * m4/utimes.m4: Undef stat.
71662
71663 1998-07-25  Jim Meyering  <meyering@ascend.com>
71664
71665         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
71666         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
71667
71668 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
71669
71670         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
71671         uid and gid actually remain unchanged.
71672
71673 1998-07-07  Jim Meyering  <meyering@ascend.com>
71674
71675         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
71676
71677 1998-07-04  Jim Meyering  <meyering@ascend.com>
71678
71679         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
71680         to prove that this macro can be used in packages without regex.c.
71681
71682 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
71683
71684         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
71685         is to be used.
71686
71687 1998-07-03  Jim Meyering  <meyering@ascend.com>
71688
71689         * m4/gettext.m4: Add -lintl if it's found to be necessary.
71690
71691         * m4/gettext.m4: New file -- from gettext-0.10.35.
71692         * m4/lcmessage.m4: Likewise.
71693         * m4/progtest.m4: Likewise.
71694
71695         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
71696         * m4/jm-macros.m4: Require the new macro.
71697
71698 1998-06-29  Jim Meyering  <meyering@ascend.com>
71699
71700         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
71701         for the definition of NGROUPS (used in a system header included
71702         by sys/mount.h).
71703
71704 1998-06-28  Jim Meyering  <meyering@ascend.com>
71705
71706         * m4/ls-mntd-fs.m4: New file.
71707         * m4/fstypename.m4: New file.
71708
71709         * m4/jm-macros.m4: Require the new macro.
71710         * m4/jm-glibc-io.m4: New file.
71711
71712 1998-05-19  Jim Meyering  <meyering@ascend.com>
71713
71714         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
71715         * m4/lchown.m4: New file.
71716
71717         * m4/Makefile.am.in: New file.
71718         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
71719
71720 1998-05-14  Jim Meyering  <meyering@ascend.com>
71721
71722         * m4/Makefile.am (EXTRA_DIST): Add them.
71723         * m4/jm-macros.m4: New file.
71724         * m4/utimbuf.m4: New file.
71725
71726 1998-05-12  Jim Meyering  <meyering@ascend.com>
71727
71728         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
71729
71730 1998-05-11  Jim Meyering  <meyering@ascend.com>
71731
71732         * m4/isc-posix.m4: New file.
71733
71734 1998-05-10  Jim Meyering  <meyering@ascend.com>
71735
71736         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
71737
71738 1998-05-09  Jim Meyering  <meyering@ascend.com>
71739
71740         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
71741         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
71742         with automake.
71743
71744         * m4/ssize_t.m4: New file.
71745         * m4/mktime.m4: Remove file -- the new automake has this now.
71746
71747 1998-04-26  Jim Meyering  <meyering@ascend.com>
71748
71749         * m4/assert.m4: New file.
71750         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
71751
71752 1998-04-05  Jim Meyering  <meyering@ascend.com>
71753
71754         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
71755         (jm_PREREQ): Use it here.
71756
71757 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
71758
71759         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
71760         in acconfig.h.
71761
71762 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
71763
71764         * m4/prereq.m4: New file.
71765         * m4/error.m4: New file.
71766         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
71767
71768 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
71769
71770         * m4/getline.m4: Don't set am_cv_func_working_getline before the
71771         cache-check for the same variable -- that defeated the purpose of
71772         the test; the test program was never run.  This was a problem only
71773         on systems with losing getline functions -- HP-UX 10.20 is one.
71774         Reported by Bjorn Helgaas.
71775
71776 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
71777
71778         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
71779
71780 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
71781
71782         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
71783
71784         * m4/const.m4: New file.  Use an initializer in this declaration
71785         typedef int charset[2]; const charset x;
71786         Reported by Bob Glickstein.
71787
71788 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
71789
71790         * m4/chown.m4: Fix reversed types on -1 args to chown.
71791         From Kaveh Ghazi.
71792
71793 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
71794
71795         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
71796         Add lseek and memchr.
71797
71798         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
71799         T.E.Dickey <dickey@clark.net> said that some older preprocessors
71800         have a 20-character limit on names.
71801
71802 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
71803
71804         * m4/inttypes_h.m4: New file.
71805         * m4/uintmax_t.m4: New file.
71806         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
71807
71808
71809         -----
71810
71811         Local Variables:
71812         coding: utf-8
71813         End:
71814
71815         Copyright (C) 1997-2010 Free Software Foundation, Inc.
71816
71817         Copying and distribution of this file, with or without
71818         modification, are permitted provided the copyright notice
71819         and this notice are preserved.